:root {
  --bg: #0a0b10;
  --bg-elevated: #12141c;
  --card-bg: #14161f;
  --border: rgba(255,255,255,0.08);
  --text: #eef0f6;
  --text-dim: #9aa0b4;
  --text-faint: #6b7086;
  --accent: #6d5bff;
  --accent-2: #00c88c;
  --radius: 16px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,11,16,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.nav-wrapper {
  display: contents;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.main-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quick-links {
  display: flex;
  gap: 8px;
}

.quick-links a {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}

.quick-links a:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f3fdb);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); }

.btn-card {
  font-size: 13.5px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-card:hover { border-color: var(--accent); }

.btn-card-alt {
  background: transparent;
  color: var(--text-dim);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(109,91,255,0.25), transparent 60%),
    radial-gradient(500px circle at 80% 10%, rgba(0,200,140,0.18), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Products ---------- */
.products { padding: 40px 0 100px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%);
  opacity: 0;
  transition: opacity .2s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
}

.product-card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  font-size: 26px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.card-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 5px 10px;
  border-radius: 999px;
}

.product-card h3 {
  margin: 0;
  font-size: 21px;
}

.card-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  flex-grow: 1;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- About ---------- */
.about {
  padding: 20px 0 100px;
  border-top: 1px solid var(--border);
}

.about-inner { padding-top: 60px; }

.about-text {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 720px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .brand-logo {
  height: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 10px 0 0;
}

@media (min-width: 640px) {
  .footer-copy { width: auto; text-align: right; margin: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-wrapper {
    display: none;
  }

  .nav-toggle { display: flex; }

  .nav-wrapper.open {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
  }

  .nav-wrapper.open .main-nav,
  .nav-wrapper.open .quick-links {
    flex-direction: column;
    gap: 14px;
  }

  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 0 56px; }
  .hero-actions .btn { width: 100%; }
}
