:root {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --surface: #16161f;
  --surface-2: #1d1d28;
  --border: #26263a;
  --text: #ededf2;
  --text-muted: #9b9bb0;
  --primary: #7c5cff;
  --primary-2: #5b8cff;
  --accent: #00d4a8;
  --danger: #ff5577;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #5b8cff 50%, #00d4a8 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(0,212,168,0.12));
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.35);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-logo {
  height: 270px;
  width: auto;
  display: block;
  margin: -60px 0;
}
.site-footer .brand-logo { height: 240px; margin: -48px 0; }
.nav-links {
  display: flex; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(124,92,255,0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(124,92,255,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: #3a3a55; }
.btn-link { background: transparent; padding: 10px 4px; color: var(--text-muted); }
.btn-link:hover { color: var(--text); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(124,92,255,0.28), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,212,168,0.18);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.hero-trust span::before { content: "✓ "; color: var(--accent); }

/* ===== Sections ===== */
section { padding: 80px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ===== Stats ===== */
.stats {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.stat .num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; display: block; }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,255,0.45);
  background: var(--surface-2);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--primary); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-muted); font-size: 0.97rem; }

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 24px; right: 28px;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.7;
}
.step h3 { margin-bottom: 10px; font-size: 1.15rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Pricing ===== */
.pricing-hero { padding-top: 72px; padding-bottom: 32px; text-align: center; }
.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--gradient);
  border-radius: 18px;
  z-index: -1;
  opacity: 0.6;
}
.price-card-inner {
  background: var(--surface);
  border-radius: 17px;
  padding: 40px;
  margin: -40px;
  padding: 40px;
}
.price-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(124,92,255,0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--text);
}
.price-amount { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; }
.price-amount .unit { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.price-desc { color: var(--text-muted); margin: 12px 0 28px; }
.price-features { list-style: none; text-align: left; margin: 28px 0; display: grid; gap: 12px; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.97rem; }
.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* Tiered table */
.tiers {
  max-width: 760px;
  margin: 60px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tier-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.tier-row:last-child { border-bottom: none; }
.tier-row.head { background: var(--bg-elevated); font-weight: 600; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tier-row .save { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.testimonial p { color: var(--text); margin-bottom: 24px; font-size: 0.98rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}
.testimonial-author .name { font-weight: 600; font-size: 0.95rem; }
.testimonial-author .role { color: var(--text-muted); font-size: 0.85rem; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--gradient);
  border-radius: 22px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: white; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 28px; font-size: 1.05rem; }
.cta-banner .btn-primary { background: white; color: #1a1a2e; box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.cta-banner .btn-primary:hover { transform: translateY(-1px); }
.cta-banner .btn-ghost { color: white; border-color: rgba(255,255,255,0.4); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text); font-size: 0.94rem; opacity: 0.85; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-about p { color: var(--text-muted); font-size: 0.95rem; max-width: 320px; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== Auth pages ===== */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 60px 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.auth-card .sub { color: var(--text-muted); margin-bottom: 28px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.field input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.97rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.18);
}
.auth-foot { text-align: center; margin-top: 22px; font-size: 0.92rem; color: var(--text-muted); }
.auth-foot a { color: var(--primary-2); font-weight: 500; }
.form-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ff8888;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* ===== Use cases ===== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; gap: 20px; align-items: flex-start;
}
.usecase .feature-icon { flex-shrink: 0; }
.usecase h3 { margin-bottom: 8px; font-size: 1.15rem; }
.usecase p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Page heads (inner) ===== */
.page-head {
  text-align: center;
  padding: 72px 0 32px;
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(124,92,255,0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-head > * { position: relative; z-index: 1; }
.page-head h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 16px;
}
.page-head p { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .features-grid, .steps, .testimonials-grid, .stats-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .tier-row { grid-template-columns: 1fr 1fr; padding: 16px 20px; gap: 8px; }
  .tier-row .save { grid-column: 1 / -1; }
  .hero { padding: 64px 0 40px; }
  section { padding: 56px 0; }
  .cta-banner { padding: 44px 24px; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 16px 24px; display: grid; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 10px 4px;
  color: var(--text);
  font-weight: 500;
}
