:root {
  --bg: #0a0f1a;
  --surface: #111827;
  --surface-2: #1a2435;
  --fg: #f0f4f8;
  --fg-muted: #8899a8;
  --accent: #f59e0b;
  --accent-dim: #b45309;
  --border: #1e2d40;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

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

/* NAV */
.nav { border-bottom: 1px solid var(--border); padding: 18px 48px; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 3px; color: var(--accent); }
.nav-tag { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 1px; }

/* HERO */
.hero { padding: 96px 48px 80px; max-width: 1200px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--accent); margin-bottom: 20px; }
.hero-headline { font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--fg); }
.hero-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 40px; max-width: 440px; font-weight: 400; }
.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--fg-muted); letter-spacing: 0.5px; margin-top: 4px; }

/* TERMINAL */
.terminal { background: #050811; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.terminal-bar { background: var(--surface); padding: 10px 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); margin-left: 8px; }
.terminal-body { padding: 20px 24px; font-family: var(--font-mono); font-size: 12px; line-height: 1.8; }
.t-line { display: flex; gap: 12px; }
.t-ts { color: var(--fg-muted); opacity: 0.6; flex-shrink: 0; }
.t-cmd { color: #93c5fd; }
.t-ok { color: #34d399; }
.t-dim { color: var(--fg-muted); opacity: 0.5; }
.t-blank { height: 8px; }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); margin-top: 4px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* PROTOCOLS */
.protocols { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 96px 48px; }
.protocols-header { max-width: 1200px; margin: 0 auto 56px; }
.section-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; color: var(--accent); margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.2; }
.protocol-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.protocol-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.protocol-icon { color: var(--accent); margin-bottom: 16px; }
.protocol-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.protocol-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }

/* ARCHITECTURE */
.architecture { padding: 96px 48px; max-width: 1200px; margin: 0 auto; }
.arch-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.arch-body { color: var(--fg-muted); font-size: 15px; line-height: 1.8; margin-bottom: 32px; }
.arch-features { display: flex; flex-direction: column; gap: 14px; }
.arch-feat { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.arch-feat-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* ARCH DIAGRAM */
.arch-diagram { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.arch-node { font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 10px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; text-align: center; letter-spacing: 1px; }
.arch-supervisor { background: var(--accent-dim); border-color: var(--accent); color: #fff; }
.arch-sub { font-size: 10px; padding: 7px 14px; background: var(--bg); border-color: var(--border); color: var(--fg-muted); }
.arch-row { display: flex; gap: 10px; }
.arch-row-sub { gap: 10px; }
.arch-arrow { font-family: var(--font-mono); font-size: 16px; color: var(--fg-muted); opacity: 0.4; }

/* CLOSING */
.closing { padding: 100px 48px; text-align: center; background: var(--surface); border-top: 1px solid var(--border); }
.closing-inner { max-width: 720px; margin: 0 auto; }
.closing-rule { width: 40px; height: 2px; background: var(--accent); margin: 0 auto 40px; }
.closing-statement { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.closing-sub { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); letter-spacing: 1px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 28px 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--font-mono); font-size: 13px; letter-spacing: 3px; color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--fg-muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { padding: 64px 24px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .protocols { padding: 64px 24px; }
  .protocol-grid { grid-template-columns: 1fr 1fr; }
  .architecture { padding: 64px 24px; }
  .arch-layout { grid-template-columns: 1fr; }
  .arch-diagram { display: none; }
  .closing { padding: 64px 24px; }
  .nav, .footer { padding: 18px 24px; }
  .hero-stats { flex-direction: column; gap: 16px; }
}