/* ═══════════════════════════════════════════════════════════════
   SDET-AI — styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & tokens ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-void:      #080b12;
  --bg-surface:   #101624;
  --bg-elevated:  #1a2332;
  --bg-card:      #141b2a;
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.12);

  --blue-400:     #60a5fa;
  --blue-500:     #3b82f6;
  --blue-600:     #2563eb;
  --violet-400:   #a78bfa;
  --cyan-400:     #22d3ee;
  --green-400:    #4ade80;
  --orange-400:   #fb923c;
  --yellow-400:   #facc15;
  --red-400:      #f87171;

  --text-primary:   #eef4ff;
  --text-secondary: #94a3b8;
  --text-muted:     #5b6779;

  --gradient-brand: linear-gradient(120deg, #60a5fa 0%, #a78bfa 100%);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Fira Code', monospace;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.6);
  --transition:  0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(59,130,246,0.35); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.icon { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.08);
  color: var(--blue-400);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px rgba(74,222,128,0.8);
}

/* ─── Nav ────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding var(--transition), background var(--transition);
}

#nav.scrolled {
  background: rgba(8,11,18,0.9);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.nav-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.nav-logo-text { font-size: 17px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--blue-400); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}

#nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: absolute;
  top: 60px; left: 0; right: 0;
  background: rgba(8,11,18,0.98);
  backdrop-filter: blur(16px);
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
}

#nav-links.open a { display: block; padding: 10px 0; font-size: 16px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn .icon { width: 15px; height: 15px; }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-primary:hover { background: var(--blue-500); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

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

.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ─── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 150px 24px 90px;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

#hero > *:not(#particle-canvas):not(.hero-glow) { position: relative; z-index: 1; }

.hero-glow {
  position: absolute;
  z-index: 0;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 620px;
  background: radial-gradient(ellipse at center,
    rgba(59,130,246,0.12) 0%,
    rgba(139,92,246,0.05) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-badge { margin-bottom: 28px; }

.hero-headline {
  font-size: clamp(40px, 7.5vw, 78px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-sub strong { color: var(--text-primary); font-weight: 600; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 64px;
}

/* ─── Hero terminal ──────────────────────────────────────────── */
.hero-terminal-wrap { width: 100%; max-width: 940px; }

.terminal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-red   { background: #ff5f57; }
.t-amber { background: #febc2e; }
.t-green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-status {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-status .ok { color: var(--green-400); }

.terminal-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 340px;
}

.terminal-panel { padding: 22px; min-width: 0; }
.terminal-panel:first-child { border-right: 1px solid var(--border); }
.terminal-panel:last-child { background: rgba(8,11,18,0.45); }

.panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-dot { width: 6px; height: 6px; border-radius: 50%; }

.story-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.story-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--violet-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.story-text { color: var(--text-secondary); }
.story-text strong { color: var(--text-primary); }

.story-ac { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

.ac-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--green-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ac-item { display: flex; gap: 8px; margin-bottom: 5px; font-size: 12px; color: var(--text-secondary); }
.ac-item .icon { width: 13px; height: 13px; color: var(--green-400); margin-top: 3px; }

.terminal-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ─── Code syntax ────────────────────────────────────────────── */
.code-block {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre;
  overflow-x: auto;
}

.tk-cmt  { color: #46587a; }
.tk-kw   { color: var(--violet-400); }
.tk-fn   { color: var(--blue-400); }
.tk-str  { color: var(--green-400); }
.tk-cls  { color: var(--cyan-400); }
.tk-type { color: var(--yellow-400); }
.tk-pln  { color: var(--text-secondary); }
.tk-num  { color: var(--orange-400); }

.typing-cursor {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--blue-400);
  margin-left: 1px;
  vertical-align: -2px;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── Facts strip (replaces fake stats) ──────────────────────── */
#facts {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(16,22,36,0.5);
}

.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 8px 20px;
  border-right: 1px solid var(--border);
}

.fact-item:last-child { border-right: none; }

.fact-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.fact-desc { font-size: 13px; color: var(--text-muted); }

/* ─── Sections ───────────────────────────────────────────────── */
section { position: relative; }

.section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Features ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: background var(--transition);
}

.feature-card:hover { background: var(--bg-elevated); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--blue-400);
}

.feature-icon .icon { width: 20px; height: 20px; }

.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }

.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ─── How it works ───────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 8px;
}

.steps-grid::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.step-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--blue-400);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step-circle .icon { width: 22px; height: 22px; }

.step-item:hover .step-circle {
  border-color: var(--blue-500);
  box-shadow: 0 0 20px rgba(59,130,246,0.25);
}

.step-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ─── Demo tabs ──────────────────────────────────────────────── */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 40px;
  align-items: start;
}

.demo-left { position: sticky; top: 96px; }

.demo-tab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  margin-bottom: 8px;
  border: 1px solid transparent;
  background: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: var(--font-sans);
}

.demo-tab[aria-selected="true"] { background: var(--bg-card); border-color: var(--border-strong); }

.demo-tab:hover:not([aria-selected="true"]) { background: rgba(255,255,255,0.02); }

.tab-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.demo-tab[aria-selected="true"] .tab-num {
  background: var(--blue-600);
  border-color: transparent;
  color: #fff;
}

.tab-label { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.tab-hint  { font-size: 13px; color: var(--text-muted); }

.demo-panel { display: none; }
.demo-panel.active { display: block; }

.big-terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.big-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.big-bar-title { flex: 1; font-size: 12px; font-family: var(--font-mono); color: var(--text-muted); }

.bar-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.dot-green { color: var(--green-400); }
.dot-blue  { color: var(--blue-400); }

.big-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  min-height: 380px;
  overflow-x: auto;
}

.ln {
  display: inline-block;
  width: 26px;
  color: #26344e;
  user-select: none;
  text-align: right;
  margin-right: 18px;
}

.clr { display: flex; align-items: baseline; white-space: pre; }
.clc { flex: 1; }

/* ─── Stack strip ────────────────────────────────────────────── */
#stack {
  padding: 52px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.marquee-mask {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-right: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tech-pill .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); opacity: 0.7; }

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured { border-color: rgba(59,130,246,0.45); background: var(--bg-surface); }

.price-flag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  background: var(--blue-600);
  color: #fff;
  white-space: nowrap;
}

.price-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }

.price-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.price-amount small { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

.price-tagline { font-size: 13px; color: var(--text-muted); margin: 8px 0 24px; }

.price-list { list-style: none; margin-bottom: 28px; flex: 1; }

.price-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.price-list .icon { width: 15px; height: 15px; color: var(--green-400); margin-top: 4px; }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 28px;
}

/* ─── Founder ────────────────────────────────────────────────── */
.founder-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.founder-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--violet-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.founder-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.founder-body p strong { color: var(--text-primary); }

.founder-sig { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.founder-role { font-size: 13px; color: var(--text-muted); }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { background: rgba(255,255,255,0.02); }

.faq-item summary .icon {
  width: 16px; height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-answer a { color: var(--blue-400); }

/* ─── CTA ────────────────────────────────────────────────────── */
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(59,130,246,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card > * { position: relative; }

.cta-title {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 20px 0 16px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 14px;
}

.form-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-input[aria-invalid="true"] { border-color: rgba(248,113,113,0.6); }

.form-msg { font-size: 13px; min-height: 20px; margin-bottom: 6px; }
.form-msg.error { color: var(--red-400); }
.form-msg.success { color: var(--green-400); }

.cta-note { font-size: 12px; color: var(--text-muted); }
.cta-note a { color: var(--blue-400); text-decoration: none; }
.cta-note a:hover { text-decoration: underline; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ─── Toast ──────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 9999;
  background: var(--bg-elevated);
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 48px));
}

#toast.show { transform: translateY(0); opacity: 1; }
#toast.error { border-color: rgba(248,113,113,0.4); }

/* ─── Footer ─────────────────────────────────────────────────── */
#footer { border-top: 1px solid var(--border); padding: 56px 0 36px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 300px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 13px; color: var(--text-muted); }

.footer-bottom-links { display: flex; gap: 24px; }

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ─── Legal pages ────────────────────────────────────────────── */
.legal-page { max-width: 720px; margin: 0 auto; padding: 140px 24px 80px; }

.legal-page h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }

.legal-page h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.01em; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; }
.legal-page a { color: var(--blue-400); }

/* ─── 404 ────────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(72px, 15vw, 140px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page p { color: var(--text-secondary); margin-bottom: 32px; max-width: 420px; }

/* ─── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .typing-cursor { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-layout   { grid-template-columns: 1fr; }
  .demo-left     { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
  .demo-tab      { flex-direction: column; gap: 10px; margin-bottom: 0; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps-grid::after { display: none; }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  #nav-demo-btn { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .fact-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .terminal-body { grid-template-columns: 1fr; }
  .terminal-panel:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .waitlist-form { flex-direction: column; }
  .cta-card { padding: 48px 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .steps-grid { grid-template-columns: 1fr; }
  .demo-left { grid-template-columns: 1fr; }
  .founder-card { flex-direction: column; padding: 32px 24px; }
  #toast { left: 24px; right: 24px; }
}
