/* ═══════════════════════════════════════════════════════════════════════
   CHAINLORE DESIGN SYSTEM — "The Codex"
   Editorial terminal aesthetic: ancient authority meets live terminal.
   Gold (#d4a853) on deep navy (#050810). Fraunces serif + Space Mono.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg:       #050810;
  --bg2:      #090d1a;
  --bg3:      #0d1220;
  --surface:  #111827;
  --gold:     #d4a853;
  --gold2:    #f0c96a;
  --gold-dim: rgba(212,168,83,0.4);
  --cold:     #7dd3fc;
  --green:    #4ade80;
  --red:      #f87171;
  --text:     #f0ebe0;
  --muted:    #8892a4;
  --dim:      #3d4860;
  --border:   rgba(212,168,83,0.12);
  --border2:  rgba(212,168,83,0.25);
  --mono:     'Space Mono', monospace;
  --serif:    'Fraunces', Georgia, serif;
  --sans:     'Instrument Sans', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* ─── TYPOGRAPHY ─── */
h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
  color: var(--text);
}
h1 .line2 { font-style: italic; color: var(--gold); }
h1 .line3 { font-style: normal; font-weight: 300; color: var(--muted); display: block; font-size: 0.65em; letter-spacing: 0.05em; margin-top: 0.3rem; }

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
h2 em { font-style: italic; color: var(--gold); }

h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }

/* ─── LIVE TICKER ─── */
.ticker-wrap {
  position: relative;
  z-index: 100;
  background: rgba(212,168,83,0.06);
  border-bottom: 1px solid var(--border2);
  padding: 0;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
}
.ticker-inner { display: flex; gap: 3rem; animation: tick 40s linear infinite; white-space: nowrap; width: max-content; }
.ticker-item { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.5rem; }
.ticker-item .chain { color: var(--gold2); font-weight: 700; }
.ticker-item .ver { color: var(--text); }
.ticker-item .badge { padding: 1px 6px; border-radius: 2px; font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; }
.badge-high { background: rgba(248,113,113,0.15); color: #f87171; }
.badge-med  { background: rgba(251,191,36,0.12); color: #fbbf24; }
.badge-low  { background: rgba(74,222,128,0.1); color: #4ade80; }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-dot 2s ease-in-out infinite; flex-shrink: 0; }

@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ─── NAVIGATION ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(5,8,16,0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; text-decoration: none; }
.nav-logo em { font-style: italic; color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-family: var(--mono); letter-spacing: 0.05em; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--gold); color: var(--bg) !important; padding: 0.5rem 1.4rem !important; font-weight: 700 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--gold2) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--border2); color: var(--gold); font-family: var(--mono); font-size: 0.7rem; padding: 0.4rem 0.8rem; cursor: pointer; letter-spacing: 0.1em; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--gold);
  color: #000;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.9rem 2.2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { background: var(--gold2); }
.btn-ghost {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.05em;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-outline {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.85rem 2rem;
  text-decoration: none;
  border: 1px solid var(--border2);
  color: var(--text);
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  padding: 6rem 3rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212,168,83,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { font-family: var(--mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--gold); }
.hero-desc { font-size: 1.05rem; color: var(--muted); line-height: 1.75; max-width: 520px; margin-bottom: 2.5rem; }
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-content { display: flex; flex-direction: column; justify-content: center; }
.hero-stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-item { min-width: 0; }
.stat-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; display: block; }
.stat-label { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 4px; }

/* ─── TERMINAL PANEL ─── */
.terminal-panel { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 3rem; }
.terminal { background: #020510; border: 1px solid var(--border2); overflow: hidden; position: relative; }
.terminal::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(212,168,83,0.03) 0%, transparent 60%); pointer-events: none; }
.t-bar { background: var(--bg3); padding: 0.55rem 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.t-dot { width: 9px; height: 9px; border-radius: 50%; }
.t-dot-r { background: #ef4444; } .t-dot-y { background: #f59e0b; } .t-dot-g { background: #22c55e; }
.t-title { font-family: var(--mono); font-size: 0.65rem; color: var(--dim); margin-left: 0.5rem; }
.t-body { padding: 1.2rem 1.4rem; font-family: var(--mono); font-size: 0.72rem; line-height: 2; }
.t-prompt { color: var(--gold); }
.t-cmd    { color: var(--text); }
.t-out    { color: var(--cold); }
.t-ok     { color: var(--green); }
.t-key    { color: var(--gold2); }
.t-val    { color: #a78bfa; }
.t-comment{ color: var(--dim); font-style: italic; }
.t-explain { color: var(--muted); border-left: 2px solid var(--dim); padding-left: 0.8rem; margin: 0.2rem 0; font-style: italic; font-size: 0.68rem; }
.t-cursor { display: inline-block; width: 7px; height: 13px; background: var(--gold); animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 2px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.update-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2); padding: 0.55rem 1rem; font-family: var(--mono); font-size: 0.68rem; color: var(--green); letter-spacing: 0.05em; }
.update-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite; }

/* ─── SCROLL REVEAL ─── */
/* Reveal: elements start hidden, JS adds .visible on scroll intersection */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Fallback: if JS hasn't run after 2s, show content anyway (accessibility + SSR) */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 999; color: var(--gold); background: var(--bg); padding: 0.5rem 1rem; font-family: var(--mono); font-size: 0.8rem; text-decoration: none; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; overflow: visible; border: 1px solid var(--gold); }

/* ─── LAYOUT ─── */
.divider { border: none; border-top: 1px solid var(--border); max-width: 1200px; margin: 0 auto; }
.section { max-width: 1200px; margin: 0 auto; padding: 6rem 3rem; position: relative; z-index: 2; }
.section-label { font-family: var(--mono); font-size: 0.68rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem; }
.section-label::before { content:''; display:inline-block; width:16px; height:1px; background:var(--gold); }
.section-intro { color: var(--muted); max-width: 580px; font-size: 1rem; margin-bottom: 3rem; line-height: 1.75; }

/* ─── 3 WALLS ─── */
.walls { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.wall { background: var(--bg); padding: 2.5rem 2rem; position: relative; transition: background 0.2s; }
.wall:hover { background: var(--bg3); }
.wall-num { font-family: var(--mono); font-size: 3rem; font-weight: 700; color: var(--border2); line-height: 1; margin-bottom: 1rem; display: block; transition: color 0.2s; }
.wall:hover .wall-num { color: var(--gold); }
.wall-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.7rem; }
.wall-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ─── PIPELINE ─── */
.pipeline { display: grid; grid-template-columns: repeat(5,1fr); position: relative; gap: 0; }
.pipeline::before { content: ''; position: absolute; top: 36px; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, var(--border), var(--border2), var(--border)); z-index: 0; }
.pipe-step { text-align: center; padding: 0 1rem 2rem; position: relative; z-index: 1; }
.pipe-icon { width: 72px; height: 72px; border: 1px solid var(--border2); background: var(--bg2); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: var(--gold); position: relative; transition: border-color 0.2s, background 0.2s; }
.pipe-step:hover .pipe-icon { border-color: var(--gold); background: var(--bg3); }
.pipe-step-title { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--text); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.pipe-step-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ─── CHAIN GRID ─── */
.chains-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.chain-card { background: var(--bg); padding: 1.5rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.2s; cursor: default; }
.chain-card:hover { background: var(--bg3); }
.chain-icon { font-size: 1.4rem; line-height: 1; }
.chain-name { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--text); letter-spacing: 0.05em; }
.chain-consensus { font-size: 0.68rem; color: var(--dim); line-height: 1.4; }
.chain-status { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; width: fit-content; margin-top: auto; }
.status-live { background: rgba(74,222,128,0.1); color: var(--green); }
.status-soon { background: rgba(212,168,83,0.1); color: var(--gold); }

/* ─── PRODUCTS ─── */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.product-card { background: var(--bg); padding: 2.5rem 2rem; display: flex; flex-direction: column; transition: background 0.2s; }
.product-card.featured { background: var(--bg3); position: relative; }
.product-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%); background: var(--gold); color: var(--bg); font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.15em; padding: 0.25rem 0.8rem; }
.product-card:hover { background: var(--bg2); }
.product-name { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.8rem; }
.product-price { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--text); margin-bottom: 0.4rem; }
.product-price sup { font-size: 1.2rem; vertical-align: super; color: var(--muted); }
.product-period { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); margin-bottom: 1.5rem; }
.product-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; margin-bottom: 1.8rem; }
.product-features li { font-size: 0.82rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: flex-start; }
.product-features li::before { content: '\2192'; color: var(--gold); font-family: var(--mono); font-size: 0.72rem; flex-shrink: 0; margin-top: 0.1rem; }
.product-btn { display: block; text-align: center; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.85rem; text-decoration: none; border: 1px solid var(--border2); color: var(--text); text-transform: uppercase; transition: all 0.2s; }
.product-btn:hover { border-color: var(--gold); color: var(--gold); }
.product-card.featured .product-btn { background: var(--gold); color: #000; border-color: var(--gold); }
.product-card.featured .product-btn:hover { background: var(--gold2); }

/* ─── DIFFERENTIATORS ─── */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.diff-item { padding: 2rem; border: 1px solid var(--border); transition: border-color 0.2s, background 0.2s; }
.diff-item:hover { border-color: var(--border2); background: var(--bg3); }
.diff-icon { font-family: var(--mono); font-size: 1.5rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.diff-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.diff-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ─── COMPARISON TABLE ─── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin-top: 2rem; }
.compare-table th { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
.compare-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.compare-table td:first-child { color: var(--text); }
.compare-table tr:hover td { background: rgba(212,168,83,0.02); }
.chk { color: var(--green); font-family: var(--mono); }
.xmark { color: var(--dim); }
.highlight-col { color: var(--gold2) !important; font-weight: 600; }

/* ─── PHILOSOPHY SECTION (new) ─── */
.philosophy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 3rem;
  position: relative;
  z-index: 2;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.philosophy-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--gold-dim);
}
.philosophy-body { display: flex; flex-direction: column; gap: 1.5rem; }
.philosophy-body p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; }
.philosophy-body strong { color: var(--text); font-weight: 600; }
.philosophy-body em { color: var(--gold); font-style: italic; }
.philosophy-term {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* ─── ABOUT PAGE SPECIFICS ─── */
.page-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 3rem 4rem;
  position: relative;
  z-index: 2;
}
.page-hero h1 { max-width: 800px; }
.page-hero .hero-desc { max-width: 640px; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillar {
  background: var(--bg);
  padding: 3rem 2.5rem;
  transition: background 0.2s;
}
.pillar:hover { background: var(--bg3); }
.pillar-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.pillar h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.pillar p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ─── CURRICULUM BROWSER ─── */
.module-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.module-item {
  background: var(--bg);
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  transition: background 0.2s;
  cursor: pointer;
}
.module-item:hover { background: var(--bg3); }
.module-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--border2);
  line-height: 1;
  transition: color 0.2s;
}
.module-item:hover .module-num { color: var(--gold); }
.module-content { display: flex; flex-direction: column; gap: 0.4rem; }
.module-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.module-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.module-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.3rem; }
.module-tag { font-family: var(--mono); font-size: 0.58rem; color: var(--dim); letter-spacing: 0.08em; padding: 2px 8px; border: 1px solid var(--border); }
.module-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  text-align: right;
  white-space: nowrap;
}
.module-detail {
  display: none;
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.module-item.expanded .module-detail { display: block; }
.module-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.module-detail h4 { font-family: var(--mono); font-size: 0.68rem; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.8rem; }
.module-detail ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.module-detail li { font-size: 0.82rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.module-detail li::before { content: '\2192'; color: var(--gold); font-family: var(--mono); font-size: 0.72rem; flex-shrink: 0; }

/* ─── CTA BAND ─── */
.cta-band { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6rem 3rem; text-align: center; position: relative; z-index: 2; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(212,168,83,0.05) 0%, transparent 70%); pointer-events: none; }
.cta-band h2 { margin-bottom: 1rem; position: relative; }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 2.5rem; font-size: 1rem; position: relative; }
.cta-band .btn-primary { font-size: 0.9rem; padding: 1.1rem 3rem; position: relative; }
.cta-subtext { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); margin-top: 1.5rem; position: relative; }

/* ─── ENTERPRISE STRIP ─── */
.enterprise-strip { background: var(--bg3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; }
.enterprise-text h3 { margin-bottom: 0.3rem; }
.enterprise-text p { font-size: 0.85rem; color: var(--muted); }
.enterprise-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.badge-item { border: 1px solid var(--border2); padding: 0.4rem 0.8rem; font-family: var(--mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.08em; }

/* ─── NAV DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 0.3rem; }
.nav-arrow { font-size: 0.7em; transition: transform 0.2s; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 0.5rem 0; min-width: 180px; z-index: 100;
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 0.5rem 1.2rem;
  color: var(--text); font-family: var(--sans); font-size: 0.85rem;
}
.nav-dropdown-menu a:hover { background: var(--bg3); color: var(--gold); }

/* ─── PRICE PERIOD ─── */
.price-period { font-family: var(--mono); font-size: 0.9rem; font-weight: 400; color: var(--muted); }

/* ─── FEATURES TABLE ─── */
.features-table-wrap { margin-top: 3rem; overflow-x: auto; }
.features-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.features-table th { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
.features-table th:first-child { text-align: left; }
.features-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); text-align: center; }
.features-table td:first-child { text-align: left; color: var(--text); }

/* ─── GRANDFATHERING NOTICE ─── */
.grandfathering-notice { margin-top: 2rem; padding: 1.5rem 2rem; border: 1px solid var(--border2); background: var(--bg3); font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.grandfathering-notice strong { color: var(--gold); }
.grandfathering-notice a { color: var(--gold); text-decoration: underline; }

/* ─── CHAIN HUB GRID ─── */
.chain-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.chain-hub-card { background: var(--bg); padding: 2.5rem 2rem; display: flex; flex-direction: column; gap: 0.8rem; transition: background 0.2s; }
.chain-hub-card:hover { background: var(--bg3); }
.chain-hub-card .chain-icon { font-size: 1.8rem; }
.chain-hub-card .chain-name { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--text); letter-spacing: 0.05em; }
.chain-hub-card .chain-tagline { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--gold); }
.chain-hub-card .chain-modules { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; }
.chain-hub-card .product-btn { margin-top: auto; }

/* ─── RELATED CHAINS ─── */
.related-chains { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 2rem; }
.related-chain-card { background: var(--bg); padding: 2rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.2s; }
.related-chain-card:hover { background: var(--bg3); }
.related-chain-card .chain-name { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--text); letter-spacing: 0.05em; }
.related-chain-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.related-chain-card a { color: var(--gold); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-decoration: none; }
.related-chain-card a:hover { color: var(--gold2); }

/* ─── FOOTER ─── */
footer { padding: 2.5rem 3rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.footer-logo, .footer-inner .footer-logo { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.footer-logo em { font-style: italic; color: var(--gold); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); text-decoration: none; letter-spacing: 0.08em; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-family: var(--mono); font-size: 0.65rem; color: var(--dim); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .terminal-panel { display: none; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); padding: 1.5rem; border-bottom: 1px solid var(--border); gap: 1rem; }
  .nav-toggle { display: block; }
  .section { padding: 4rem 1.5rem; }
  .walls, .products-grid, .pillar-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2,1fr); }
  .pipeline::before { display: none; }
  .diff-grid, .philosophy-grid, .module-detail-content { grid-template-columns: 1fr; }
  .chains-grid { grid-template-columns: repeat(3,1fr); }
  .enterprise-strip { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  .nav-dropdown-menu { position: static; background: transparent; border: none; padding-left: 1rem; }
  .chain-hub-grid { grid-template-columns: 1fr; }
  .related-chains { grid-template-columns: 1fr; }
  .features-table-wrap { margin-left: -1rem; margin-right: -1rem; }
  h1 { font-size: 3rem; }
  .philosophy { padding: 4rem 1.5rem; }
  .page-hero { padding: 4rem 1.5rem 2rem; }
}
