/* === BASE RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080d12;
  --surface: #0e1621;
  --surface-2: #141e2e;
  --border: #1a2a3d;
  --fg: #c8d8e8;
  --fg-muted: #5a7a99;
  --accent: #00d9ff;
  --accent-dim: rgba(0, 217, 255, 0.12);
  --accent-glow: rgba(0, 217, 255, 0.3);
  --amber: #ff9f1c;
  --amber-dim: rgba(255, 159, 28, 0.15);
  --green: #2dd4a0;
  --red: #ff6b6b;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; overflow-x: hidden; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav-logo svg rect { fill: none; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative; padding-top: 60px;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-text { max-width: 520px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: #ffffff; margin-bottom: 24px;
}
.headline-accent { color: var(--accent); }
.hero-lede {
  font-size: 1.05rem; color: var(--fg-muted); line-height: 1.7;
  max-width: 460px;
}

/* === TERMINAL === */
.hero-visual { position: relative; }
.terminal-window {
  background: #0a1119;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,217,255,0.08), 0 24px 64px rgba(0,0,0,0.6);
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }
.terminal-title {
  margin-left: 8px; font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--fg-muted); letter-spacing: 0.02em;
}
.terminal-body {
  padding: 20px; font-family: var(--font-mono); font-size: 0.78rem;
  line-height: 1.7;
}
.terminal-line { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.t-prompt { color: var(--accent); font-weight: 600; }
.t-cmd { color: #e2e8f0; }
.t-cursor { color: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.terminal-output { color: var(--fg-muted); margin-bottom: 6px; }
.terminal-output.success { color: var(--green); }
.t-comment { color: #4a6a8a; font-style: italic; }
.terminal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 8px 0 12px;
}
.t-line { white-space: pre; }
.indent { padding-left: 20px; }
.indent.indent { padding-left: 40px; }
.t-keyword { color: #c792ea; }
.t-fn { color: #82aaff; }
.t-var { color: #f78c6c; }
.t-str { color: #c3e88d; }
.t-obj { color: #ffcb6b; }

/* === PRODUCT STRIP === */
.product-strip {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.strip-label {
  max-width: 1200px; margin: 0 auto 32px;
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg-muted);
}
.strip-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.strip-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.strip-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border-radius: 8px;
}
.strip-text { display: flex; flex-direction: column; gap: 4px; }
.strip-text strong { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: #fff; }
.strip-text span { font-size: 0.8rem; color: var(--fg-muted); line-height: 1.5; }

/* === FEATURES === */
.features {
  padding: 100px 24px;
  max-width: 1200px; margin: 0 auto;
}
.section-header { max-width: 560px; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: #fff;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub { margin-top: 16px; color: var(--fg-muted); font-size: 1rem; line-height: 1.6; max-width: 480px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: rgba(0,217,255,0.3); box-shadow: 0 0 24px rgba(0,217,255,0.05); }
.feature-num {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--fg-muted);
  margin-bottom: 16px; letter-spacing: 0.1em;
}
.feature-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 10px;
}
.feature-card p { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.65; }
.feature-tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--amber); background: var(--amber-dim);
  border: 1px solid rgba(255,159,28,0.2);
  padding: 2px 8px; border-radius: 4px; letter-spacing: 0.05em;
}

/* === BENCHMARKS === */
.benchmarks {
  padding: 100px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benchmarks .section-header { max-width: unset; margin: 0 auto 48px; text-align: center; }
.benchmarks .section-header .section-eyebrow { margin-bottom: 12px; }
.benchmark-table {
  max-width: 860px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.bm-row {
  display: grid; grid-template-columns: 1fr 140px 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.bm-row:last-child { border-bottom: none; }
.bm-head {
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-muted);
}
.bm-row span:first-child { color: var(--fg); font-weight: 600; }
.bm-target { font-family: var(--font-mono); color: var(--accent); font-weight: 600; font-size: 0.85rem; }
.bm-sota { color: var(--fg-muted); font-size: 0.85rem; }
.benchmarks-note {
  max-width: 860px; margin: 24px auto 0;
  font-size: 0.8rem; color: var(--fg-muted); text-align: center;
  font-family: var(--font-mono);
}

/* === PHILOSOPHY === */
.philosophy { padding: 100px 24px; }
.philosophy-inner { max-width: 1200px; margin: 0 auto; }
.philosophy-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent);
  margin-bottom: 32px;
}
.philosophy-quote {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.02em;
  color: #fff; max-width: 820px; margin-bottom: 48px;
  border-left: 3px solid var(--accent); padding-left: 28px;
}
.philosophy-body { max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.philosophy-body p { font-size: 1rem; color: var(--fg-muted); line-height: 1.8; }

/* === CLOSING === */
.closing { padding: 100px 24px; position: relative; overflow: hidden; }
.closing-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0,217,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { position: relative; max-width: 1200px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 20px;
}
.closing-sub { font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg-muted); }

/* === FOOTER === */
.footer { padding: 32px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--fg-muted); font-weight: 600; font-size: 0.9rem; }
.footer-copy { font-size: 0.8rem; color: var(--fg-muted); font-family: var(--font-mono); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-content { padding: 60px 16px 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .bm-row { grid-template-columns: 1fr; gap: 4px; }
  .bm-sota { display: none; }
  .features, .benchmarks, .philosophy, .closing { padding: 64px 16px; }
}