/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0c10;
  --bg2:      #0f1117;
  --bg3:      #161b24;
  --border:   #1e2736;
  --text:     #e2e8f0;
  --sub:      #94a3b8;
  --accent:   #3b82f6;
  --accent-h: #2563eb;
  --green:    #22c55e;
  --radius:   12px;
  --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 38%, #3b82f6 72%, #a78bfa 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset,
              0 2px 14px rgba(59,130,246,0.4),
              0 0 28px rgba(239,68,68,0.18);
  position: relative;
  overflow: hidden;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 55%);
  border-radius: inherit;
  pointer-events: none;
}
.btn-primary:hover {
  filter: brightness(1.12) saturate(1.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset,
              0 4px 22px rgba(59,130,246,0.55),
              0 0 40px rgba(239,68,68,0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--sub);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: #475569; }

.btn-lg  { padding: 14px 32px; font-size: 17px; border-radius: 10px; }
.btn-primary.btn-lg { border-radius: 50px; }
.btn-full { width: 100%; }

.section-inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--sub);
  font-size: 18px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.accent { color: var(--accent); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  flex: 0 0 auto;
  white-space: nowrap;
  z-index: 1;
}
.nav-logo svg { width: 22px; height: 22px; color: var(--accent); }
.nav-logo-img { width: 28px; height: 28px; object-fit: contain; }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 15px;
  color: var(--sub);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; z-index: 1; }
.nav-cta { padding: 8px 18px; font-size: 14px; }

.nav-account {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--sub);
  padding: 7px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.nav-account:hover { color: var(--text); border-color: rgba(167,139,250,0.45); }
.nav-account svg { flex-shrink: 0; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.12) 0%, transparent 70%);
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  text-wrap: balance;
  background: linear-gradient(140deg, #38bdf8 0%, #818cf8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--sub);
  font-size: 17px;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 40px;
}
.hero-sub em { color: #c4b5fd; font-style: normal; font-weight: 600; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ── Video placeholder ─────────────────────────────────────────────────── */
.video-placeholder {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg2);
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.12),
    0 0 40px rgba(139, 92, 246, 0.25),
    0 0 90px rgba(139, 92, 246, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ── App Mockup ────────────────────────────────────────────────────────── */
.app-mockup {
  margin: 56px auto 0;
  max-width: 740px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 120px rgba(59,130,246,0.06);
  background: var(--bg2);
  text-align: left;
  user-select: none;
}
.app-bar {
  height: 36px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
}
.app-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.app-bar-title { flex: 1; text-align: center; font-size: 12px; color: var(--sub); }
.app-body { display: flex; min-height: 210px; }
.app-sidebar {
  width: 130px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.app-nav-item { display: block; padding: 8px 16px; font-size: 13px; color: var(--sub); border-right: 2px solid transparent; }
.app-nav-item.active { color: var(--text); background: rgba(59,130,246,0.08); border-right-color: var(--accent); }
.app-main { flex: 1; padding: 18px 20px; overflow: hidden; }
.app-status-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-status-badge {
  background: rgba(34,197,94,0.1);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 100px;
}
.app-status-meta { color: var(--sub); font-size: 12px; }
.app-stat-grid { display: flex; gap: 10px; margin-bottom: 14px; }
.app-stat { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; flex: 1; }
.app-stat-num { font-size: 19px; font-weight: 700; color: var(--text); }
.app-stat-lbl { font-size: 10px; color: var(--sub); margin-top: 2px; }
.app-rows { display: flex; flex-direction: column; gap: 6px; }
.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-family: 'SF Mono', Consolas, 'Courier New', monospace;
}
.app-row-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.app-row.safe .app-row-dot { background: var(--green); }
.app-row.warn .app-row-dot { background: #f59e0b; }
.app-row-name { flex: 1; color: var(--text); }
.app-row-badge { font-size: 10px; font-family: var(--font); padding: 2px 8px; border-radius: 100px; font-weight: 600; }
.app-row-badge.safe { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.app-row-badge.warn { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.app-row-score { color: var(--sub); font-size: 11px; min-width: 28px; text-align: right; }

/* ── Strip ─────────────────────────────────────────────────────────────── */
.strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  overflow: hidden;
}

.strip-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sub);
}
.strip-inner .dot { color: var(--border); }
/* ── AI Threat Explainer ───────────────────────────────────────────────────── */
.ai-threat {
  padding: 96px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ai-threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.ai-threat-card {
  background: var(--bg);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 0 12px rgba(239,68,68,0.12), 0 0 28px rgba(239,68,68,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-threat-card:hover {
  border-color: rgba(239,68,68,0.55);
  box-shadow: 0 0 18px rgba(239,68,68,0.2), 0 0 40px rgba(239,68,68,0.09);
}

.ai-threat-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.ai-threat-card p {
  font-size: 15px;
  color: var(--sub);
  line-height: 1.75;
}

.ai-threat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ai-threat-icon--red    { background: rgba(239,68,68,0.1);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.ai-threat-icon--amber  { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.ai-threat-icon--purple { background: rgba(139,92,246,0.1); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }
/* ── Features ──────────────────────────────────────────────────────────── */
.features {
  padding: 96px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 0 12px rgba(59,130,246,0.1), 0 0 28px rgba(59,130,246,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 0 18px rgba(59,130,246,0.18), 0 0 40px rgba(59,130,246,0.08);
}

/* feature-icon removed */

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.65;
}

/* ── How It Works ──────────────────────────────────────────────────────── */
.how-it-works {
  padding: 96px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius);
  box-shadow: 0 0 12px rgba(59,130,246,0.1), 0 0 28px rgba(59,130,246,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step:hover {
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 0 18px rgba(59,130,246,0.18), 0 0 40px rgba(59,130,246,0.08);
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--accent);
}

.step-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-body p {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.7;
}

.golden-q {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.golden-q-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 20px;
}

.golden-q-question {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.3px;
  max-width: 720px;
  margin: 0 auto 28px;
}

.golden-q-answer {
  color: var(--sub);
  font-size: 18px;
  line-height: 1.85;
  max-width: 680px;
  margin: 0 auto;
}

.hiw-nerds {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---- Detection Pipeline (How It Works infographic) ---- */
.hiw-pipeline {
  position: relative;
  max-width: 780px;
  margin: 44px auto 0;
}

/* Vertical spine line running through all stages */
.hiw-pipeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 25px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(148,163,184,0.4) 0%,
    rgba(239,68,68,0.5) 22%,
    rgba(59,130,246,0.55) 40%,
    rgba(167,139,250,0.55) 70%,
    rgba(34,197,94,0.55) 100%
  );
  z-index: 0;
}

.pipeline-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.pipeline-cap-row {
  align-items: center;
  padding: 4px 0;
}

.pipeline-node-col {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  justify-content: center;
}

/* Entry / exit dots */
.pipeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pipeline-dot--entry {
  background: rgba(239,68,68,0.9);
  box-shadow: 0 0 10px rgba(239,68,68,0.55);
}

.pipeline-dot--exit {
  background: rgba(34,197,94,0.9);
  box-shadow: 0 0 10px rgba(34,197,94,0.55);
}

.pipeline-cap-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sub);
}

/* Stage number nodes */
.pipeline-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  background: var(--bg3);
  flex-shrink: 0;
}

.pipeline-node--1 {
  border: 2px solid rgba(59,130,246,0.6);
  color: #60a5fa;
  box-shadow: 0 0 14px rgba(59,130,246,0.2);
}

.pipeline-node--2 {
  border: 2px solid rgba(167,139,250,0.6);
  color: #a78bfa;
  box-shadow: 0 0 14px rgba(167,139,250,0.2);
}

.pipeline-node--3 {
  border: 2px solid rgba(34,197,94,0.6);
  color: #4ade80;
  box-shadow: 0 0 14px rgba(34,197,94,0.2);
}

/* Stage content cards */
.pipeline-card {
  flex: 1;
  padding: 22px 26px;
  background: var(--bg);
  border-radius: var(--radius);
  margin: 8px 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pipeline-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 9px;
}

.pipeline-card p {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.pipeline-card--1 { border: 1px solid rgba(59,130,246,0.25); }
.pipeline-card--1:hover {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 20px rgba(59,130,246,0.1);
}

.pipeline-card--2 { border: 1px solid rgba(167,139,250,0.25); }
.pipeline-card--2:hover {
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 0 20px rgba(167,139,250,0.1);
}

.pipeline-card--3 { border: 1px solid rgba(34,197,94,0.25); }
.pipeline-card--3:hover {
  border-color: rgba(34,197,94,0.5);
  box-shadow: 0 0 20px rgba(34,197,94,0.1);
}

/* Baseline stage node + card */
.pipeline-node--0 {
  border: 2px solid rgba(148,163,184,0.5);
  color: #94a3b8;
  box-shadow: 0 0 14px rgba(148,163,184,0.15);
}

.pipeline-card--0 { border: 1px solid rgba(148,163,184,0.2); }
.pipeline-card--0:hover {
  border-color: rgba(148,163,184,0.4);
  box-shadow: 0 0 20px rgba(148,163,184,0.08);
}

/* Thin event rows (trigger + contained) */
.pipeline-row--thin {
  align-items: center;
}

.pipeline-card--thin {
  padding: 12px 20px;
  margin: 6px 0;
}

.pipeline-card--thin p {
  font-size: 13px;
  margin: 4px 0 0;
}

.pipeline-thin-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pipeline-card--alert { border: 1px solid rgba(239,68,68,0.25); }
.pipeline-card--alert:hover {
  border-color: rgba(239,68,68,0.5);
  box-shadow: 0 0 16px rgba(239,68,68,0.08);
}
.pipeline-card--alert .pipeline-thin-label { color: rgba(239,68,68,0.8); }

.pipeline-card--contained { border: 1px solid rgba(34,197,94,0.25); }
.pipeline-card--contained:hover {
  border-color: rgba(34,197,94,0.5);
  box-shadow: 0 0 16px rgba(34,197,94,0.08);
}
.pipeline-card--contained .pipeline-thin-label { color: rgba(34,197,94,0.8); }

/* ── How It Works Stack ────────────────────────────────────────────────── */
.hiw-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 44px auto 0;
}

.hiw-card {
  position: relative;
  padding: 22px 26px 22px 22px;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid rgba(167,139,250,0.22);
  box-shadow: 0 0 16px rgba(167,139,250,0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hiw-card:hover {
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 0 28px rgba(167,139,250,0.16);
}

.hiw-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-right: 72px;
}

.hiw-card p {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.hiw-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(167,139,250,0.12);
  color: #a78bfa;
}

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing {
  padding: 96px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.08), 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(59,130,246,0.06);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(59,130,246,0.12);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-top {
  margin-bottom: 32px;
  text-align: center;
}

.pricing-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}
.price-period {
  font-size: 20px;
  font-weight: 400;
  color: var(--sub);
  letter-spacing: 0;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.pricing-features li {
  font-size: 15px;
  color: var(--sub);
}
.pricing-features li::first-letter { color: var(--green); }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: #475569;
  margin-top: 16px;
  line-height: 1.5;
}

.pricing-per-month {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-top: 6px;
}

.pricing-note--warning {
  color: #94a3b8;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.pricing-note--warning strong { color: #fca5a5; }
.pricing-note--warning a { color: var(--accent); text-decoration: underline; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
  padding: 96px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--sub);
  flex-shrink: 0;
  transition: transform 0.2s;
  font-weight: 300;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 20px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Auth Pages (Sign In / Register) ───────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg2);
  border: 1px solid rgba(167,139,250,0.22);
  box-shadow: 0 0 40px rgba(167,139,250,0.08);
  border-radius: 16px;
  padding: 40px 36px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  display: block;
  margin: 0 auto 16px;
  object-fit: contain;
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.auth-header p {
  color: var(--sub);
  font-size: 14px;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-field-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--sub);
  transition: color 0.15s;
}
.auth-field-link:hover { color: #a78bfa; }

.auth-field input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.auth-field input::placeholder { color: rgba(148,163,184,0.4); }

.auth-field input:focus {
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.1);
}

.auth-switch {
  text-align: center;
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--sub);
}
.auth-switch a { color: #a78bfa; }
.auth-switch a:hover { color: #c4b5fd; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  padding: 56px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
}
.footer-logo svg { width: 22px; height: 22px; color: var(--accent); }
.footer-logo-img { width: 26px; height: 26px; object-fit: contain; }

.footer-tagline {
  color: var(--sub);
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--sub);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: #334155;
}

/* ── Legal pages ───────────────────────────────────────────────────────── */
.legal-page {
  padding: 72px 24px 96px;
}

.legal-inner {
  max-width: 680px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--sub);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-inner h2 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-inner h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-inner p {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-inner ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-inner ul li {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-inner a { color: var(--accent); text-decoration: underline; }
.legal-inner a:hover { color: #93c5fd; }

.legal-inner strong { color: var(--text); font-weight: 600; }

/* ── Auth modal ─────────────────────────────────────────────────────────── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal[hidden] { display: none !important; }

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.auth-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--bg2);
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: 0 0 80px rgba(167, 139, 250, 0.08), 0 24px 64px rgba(0, 0, 0, 0.5);
  border-radius: 18px;
  padding: 40px 36px 36px;
  margin: 20px;
  max-height: 92vh;
  overflow-y: auto;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--sub);
  font-size: 22px;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.auth-modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.auth-header { margin-bottom: 24px; }
.auth-header h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.auth-header p  { font-size: 14px; color: var(--sub); margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.auth-field-link { font-size: 12px; color: var(--sub); text-decoration: none; transition: color 0.15s; }
.auth-field-link:hover { color: var(--accent); }

.auth-field input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.auth-field input::placeholder { color: rgba(148, 163, 184, 0.5); }
.auth-field input:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.auth-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #f87171;
  line-height: 1.45;
}
.auth-error[hidden] { display: none; }

.btn-full { width: 100%; justify-content: center; }

.auth-switch { font-size: 13px; color: var(--sub); text-align: center; margin: 0; }
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Nav signed-in state (icon + dropdown) ──────────────────────────────── */
.nav-account-wrap { position: relative; }

.nav-account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--sub);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-account-btn:hover {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.45);
  background: var(--bg3);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 195px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 200;
}
.nav-dropdown[hidden] { display: none; }

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--sub);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}
.nav-dropdown-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.nav-dropdown-logout { color: rgba(239, 68, 68, 0.7); }
.nav-dropdown-logout:hover { color: #f87171; }

/* ── Account page ───────────────────────────────────────────────────────── */
.account-page {
  max-width: 900px;
  margin: 80px auto 120px;
  padding: 0 24px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.account-sidebar {
  flex: 0 0 180px;
  position: sticky;
  top: 88px;
}
.account-sidebar-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sub);
  margin: 0 0 12px;
}
.account-sidebar a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--sub);
  text-decoration: none;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
  margin-bottom: 2px;
}
.account-sidebar a:hover, .account-sidebar a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.account-content { flex: 1; min-width: 0; }

.account-section {
  padding: 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}
.account-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
}
.account-section-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.account-field       { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.account-field label { font-size: 13px; font-weight: 500; color: var(--text); }
.account-field input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.account-field input:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}
.account-field input[readonly] { opacity: 0.55; cursor: default; }
.account-field input::placeholder { color: rgba(148, 163, 184, 0.5); }

.account-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.account-msg {
  font-size: 13px;
  color: #34d399;
  margin-top: 8px;
  display: none;
}
.account-msg.visible { display: block; }

.sub-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sub-status-badge.active   { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.sub-status-badge.trialing { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.sub-status-badge.expired,
.sub-status-badge.canceled { background: rgba(239, 68, 68, 0.12);  color: #f87171; }
.sub-status-badge.past_due { background: rgba(239, 68, 68, 0.12);  color: #f87171; }

.sub-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--sub);
}
.sub-info-row strong { color: var(--text); }

.token-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
}
.token-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.05em;
  word-break: break-all;
}
.token-copy-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--sub);
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.token-copy-btn:hover { color: var(--text); border-color: rgba(167,139,250,0.4); }

.account-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--sub);
}
.account-empty h3 { color: var(--text); margin: 0 0 8px; }
.account-empty p  { font-size: 14px; margin: 0 0 20px; }

/* ── Password visibility toggle ────────────────────────────────────────── */
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap input { width: 100%; padding-right: 42px !important; box-sizing: border-box; }
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  color: rgba(148,163,184,0.45);
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: color 0.15s;
  line-height: 1;
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle:focus-visible { outline: 2px solid rgba(167,139,250,0.5); outline-offset: 2px; }

/* ── Auth field label row ────────────────────────────────────────────────── */
.auth-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-field-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: rgba(167,139,250,0.7);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-field-link:hover { color: var(--accent); text-decoration: underline; }

/* ── Auth terms row ──────────────────────────────────────────────────────── */
.auth-terms-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.55;
  margin-bottom: 16px;
}
.auth-terms-row input[type=checkbox] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.auth-terms-row a { color: var(--accent); text-decoration: none; }
.auth-terms-row a:hover { text-decoration: underline; }

/* ── Auth link buttons (panel switch, back links) ────────────────────────── */
.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-link-btn:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────────────────── */
/* Hide nav links before they can reach the logo or button */
@media (max-width: 880px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 72px 24px 60px; }
  .video-placeholder { margin-top: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 16px; }
  .pricing-card { padding: 28px 24px; }
}
