:root {
  --bg: #0D0D0F;
  --bg-alt: #131318;
  --fg: #F2F2F0;
  --fg-muted: #8A8A92;
  --accent: #C8FF00;
  --accent-dim: #9CBB00;
  --blue: #3B82F6;
  --border: rgba(255,255,255,0.08);
  --terminal-bg: #111116;
  --terminal-green: #4ADE80;
  --terminal-blue: #60A5FA;
  --terminal-yellow: #FACC15;
  --terminal-purple: #C084FC;
  --font-head: 'IBM Plex Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1160px;
  --pad-x: clamp(24px, 5vw, 80px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.dot { color: var(--accent); }
.nav-tag {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 140px var(--pad-x) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero-bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  background: rgba(200,255,0,0.1);
  border: 1px solid rgba(200,255,0,0.3);
  padding: 6px 12px;
  border-radius: 4px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.stat {
  flex: 1;
  padding: 24px 28px;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 12px 0;
}

/* Terminal */
.hero-visual { position: relative; z-index: 1; }
.terminal-window {
  background: var(--terminal-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red { background: #FF5F57; }
.yellow { background: #FEBC2E; }
.green { background: #28C840; }
.t-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  min-height: 260px;
}
.t-line { color: var(--fg-muted); }
.t-keyword { color: var(--terminal-purple); }
.t-var { color: var(--terminal-blue); }
.t-fn { color: var(--terminal-green); }
.t-string { color: var(--terminal-yellow); }
.t-comment { color: rgba(138,138,146,0.6); }
.t-prompt { margin-top: 8px; }
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Problem */
.problem {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px var(--pad-x);
}
.problem-inner { max-width: var(--max-w); margin: 0 auto; }
.problem-label, .systems-label, .process-label, .results-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.problem-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 640px;
  margin-bottom: 64px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.problem-card {
  background: var(--bg-alt);
  padding: 40px 36px;
  position: relative;
}
.problem-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}
.problem-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Systems */
.systems { padding: 100px var(--pad-x); }
.systems-inner { max-width: var(--max-w); margin: 0 auto; }
.systems-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.systems-sub {
  color: var(--fg-muted);
  margin-bottom: 56px;
}
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.system-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s;
}
.system-card:hover { border-color: rgba(200,255,0,0.3); }
.system-icon {
  width: 40px;
  height: 40px;
  background: rgba(200,255,0,0.1);
  border: 1px solid rgba(200,255,0,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.system-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.system-card p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.6; }
.systems-badge {
  display: flex;
  justify-content: center;
  margin-top: 0;
}
.badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.2);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }

/* Process */
.process {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px var(--pad-x);
}
.process-inner { max-width: var(--max-w); margin: 0 auto; }
.process-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 64px;
}
.process-steps {
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.process-step {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.process-step h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-duration {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-body p:last-child {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.process-arrow {
  font-size: 1.4rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.4;
}

/* Results */
.results { padding: 100px var(--pad-x); }
.results-inner { max-width: var(--max-w); margin: 0 auto; }
.results-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 56px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.result-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-quote {
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  font-family: Georgia, serif;
}
.result-text {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
}
.result-attr { display: flex; align-items: center; gap: 14px; }
.attr-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200,255,0,0.15);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.attr-name {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
}
.attr-role { font-size: 0.78rem; color: var(--fg-muted); }
.result-metric {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.15);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

/* Closing */
.closing {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 100px var(--pad-x);
  text-align: center;
}
.closing-inner { max-width: 720px; margin: 0 auto; }
.closing-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.2);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.meta-dot { color: var(--fg-muted); opacity: 0.4; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--pad-x);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}
.footer-tagline { font-size: 0.8rem; color: var(--fg-muted); margin-top: 4px; }
.footer-bottom { font-size: 0.78rem; color: var(--fg-muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); justify-content: center; }
  .hero-stats { flex-direction: column; }
  .stat-divider { width: 100%; height: 1px; margin: 0; }
}
@media (max-width: 600px) {
  .hero-headline { font-size: 2.2rem; }
  .systems-grid { grid-template-columns: 1fr; }
}