:root {
  --bg: #0B0F1A;
  --bg-alt: #111827;
  --bg-section: #0F1521;
  --bg-card: #141D2B;
  --fg: #E8E4D4;
  --fg-dim: #8892A0;
  --fg-muted: #4A5568;
  --accent: #CAFF00;
  --accent-dim: rgba(202, 255, 0, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(202, 255, 0, 0.25);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --terminal-green: #39FF6A;
  --terminal-dim: #3D4A5C;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  background: var(--bg);
  overflow-x: hidden;
}

/* ─── Manifesto ─── */
.manifesto {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 780px; }
.manifesto-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.manifesto-headline {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 32px;
}
.manifesto-sub {
  font-size: 18px;
  color: var(--fg);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 16px;
}
.manifesto-sub--secondary { color: var(--fg-dim); font-size: 16px; }
.gspl-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-accent);
}

/* Seed tree visual */
.seed-tree-visual {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seed-node {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 6px;
  display: inline-block;
}
.seed-node--root {
  background: var(--accent);
  color: #0B0F1A;
  font-weight: 600;
  width: fit-content;
}
.seed-branch {
  display: flex;
  gap: 8px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}
.seed-node--domain {
  background: rgba(255,255,255,0.06);
  color: var(--fg-dim);
  border: 1px solid var(--border);
}
.seed-branch--runtimes {
  border-left: 2px solid var(--border);
  padding-left: 20px;
}
.seed-node--runtime {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  font-size: 12px;
}

/* Manifesto stats */
.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 64px;
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 28px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

/* ─── Shared Section Styles ─── */
.section-header {
  margin-bottom: 56px;
}
.section-header--centered {
  text-align: center;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--fg-dim);
  max-width: 560px;
  line-height: 1.65;
}
.section-header--centered .section-sub { margin: 0 auto; }

/* ─── Schema Section ─── */
.schema-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.schema-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.schema-code-block {
  background: #070A0F;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.code-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.code-block {
  padding: 24px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.code-keyword { color: #FF79C6; }
.code-var { color: #8BE9FD; }
.code-str { color: #F1FA8C; }
.code-num { color: #BD93F9; }
.code-brace { color: var(--fg-dim); }
.code-bracket { color: var(--fg-dim); }
.code-prop { color: #50FA7B; }

.schema-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.schema-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.schema-feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.schema-feature p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ─── Engines Section ─── */
.engines-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.engines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.engine-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s;
}
.engine-card:hover { border-color: var(--border-accent); }
.engine-domain {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.engine-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.engine-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px dashed var(--border);
}

/* ─── Contract Section ─── */
.contract-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.contract-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contract-body {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 36px;
}
.contract-clauses {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clause {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.clause-letter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}
.clause-text {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* Terminal */
.contract-terminal {
  background: #04060A;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terminal-dim);
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
}
.terminal-line { color: var(--fg-dim); }
.terminal-success { color: var(--terminal-green); }
.terminal-pass { color: var(--terminal-green); }
.terminal-dim { color: var(--terminal-dim); }
.terminal-bold { color: var(--accent); font-weight: 600; }
.terminal-spacer { height: 8px; }

/* ─── Realms Section ─── */
.realms-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.realms-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.realm-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s;
}
.realm-tab:hover { border-color: var(--border-accent); }
.realm-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.realm-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* ─── Closing ─── */
.closing-section {
  padding: 100px 0 80px;
}
.closing-inner { max-width: 860px; }
.closing-headline {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.closing-accent { color: var(--accent); }
.closing-sub {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Footer ─── */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.footer-tagline {
  font-size: 12px;
  color: var(--fg-muted);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-sep { color: var(--border); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .manifesto { padding: 64px 0 56px; }
  .manifesto-stats { grid-template-columns: repeat(2, 1fr); }
  .schema-layout { grid-template-columns: 1fr; }
  .contract-inner { grid-template-columns: 1fr; }
  .realms-tabs { grid-template-columns: 1fr 1fr; }
  .engines-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .realms-tabs { grid-template-columns: 1fr; }
  .engines-grid { grid-template-columns: 1fr; }
  .manifesto-stats { grid-template-columns: repeat(2, 1fr); }
  body { padding: 0 16px; }
}