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

:root {
  --bg:          #0a0a0a;
  --bg-raised:   #121212;
  --bg-card:     #151515;
  --ink:         #0a0a0a;
  --green:       #2ddc74;
  --green-dim:   #1a9e50;
  --green-glow:  rgba(45, 220, 116, 0.14);
  --amber:       #e8a13a;
  --amber-dim:   #a8740f;
  --text:        #ededed;
  --text-dim:    #9a9a9a;
  --text-muted:  #5c5c5c;
  --border:      #232323;
  --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--mono); }

/* ─── DECORATIVE PLUS MARKS ──────────────────────────────────────────────── */
.plus {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0.35;
  pointer-events: none;
}
.plus::before, .plus::after {
  content: '';
  position: absolute;
  background: var(--green);
}
.plus::before { width: 100%; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.plus::after  { height: 100%; width: 1.5px; left: 50%; top: 0; transform: translateX(-50%); }

/* ─── NAV ────────────────────────────────────────────────────────────────── */
.nav2 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav2-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav2-brand { display: flex; align-items: center; gap: 10px; }
.nav2-logo { width: 26px; height: 26px; border-radius: 4px; }
.nav2-name {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.nav2-links { display: flex; align-items: center; gap: 28px; }
.nav2-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav2-links a:hover { color: var(--green); }
.nav2-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--ink) !important;
  padding: 9px 18px;
  font-weight: 700;
}
.nav2-switch {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 10px;
}
.nav2-switch:hover { color: var(--green); border-color: var(--green-dim); }
@media (max-width: 860px) { .nav2-links { display: none; } }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero2 {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 28px 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero2-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,220,116,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,220,116,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 75%);
  animation: gridshift 40s linear infinite;
}
.hero2-logo-bg {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 60%;
  max-width: 820px;
  transform: translateY(-50%) scale(1.3);
  filter: blur(33px) saturate(1.6) brightness(0.9);
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes gridshift { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }
.hero2-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero2-inner { position: relative; max-width: 1060px; margin: 0 auto; width: 100%; }
.hero2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 7px 14px;
  margin-bottom: 2rem;
}
.hero2-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse2 2s ease-in-out infinite;
}
@keyframes pulse2 { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero2-headline {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 920px;
}
.hero2-headline em {
  font-style: normal;
  font-weight: 800;
  color: var(--green);
}
.hero2-sub {
  margin-top: 1.75rem;
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.hero2-cta { margin-top: 2.5rem; display: flex; gap: 14px; flex-wrap: wrap; }
.btn2-solid {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--green);
  color: var(--ink);
  padding: 15px 28px;
  border: 1px solid var(--green);
  transition: all 0.15s ease;
}
.btn2-solid:hover { background: transparent; color: var(--green); }
.btn2-ghost {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: transparent;
  color: var(--text);
  padding: 15px 28px;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.btn2-ghost:hover { border-color: var(--text-dim); }

.hero2-stats {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  max-width: 920px;
}
.hstat2 { padding-right: 1.5rem; }
.hstat2-num { font-size: 1.9rem; font-weight: 800; color: var(--green); font-family: var(--mono); }
.hstat2-label { margin-top: 0.3rem; font-size: 0.78rem; color: var(--text-dim); }
@media (max-width: 760px) { .hero2-stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } }

/* ─── FULL-BLEED STATEMENT BAND ──────────────────────────────────────────── */
.band {
  position: relative;
  background: linear-gradient(135deg, var(--green-dim) 0%, var(--green) 55%, #6dffb0 100%);
  color: var(--ink);
  padding: 110px 28px;
}
.band-inner { max-width: 1020px; margin: 0 auto; position: relative; }
.band-text {
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.band-text strong { font-weight: 800; }
.band .plus { background: none; }
.band .plus::before, .band .plus::after { background: var(--ink); opacity: 0.5; }

/* ─── SECTION SHELL ──────────────────────────────────────────────────────── */
.sec2 { padding: 110px 28px; position: relative; }
.sec2-dark { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec2-inner { max-width: 1120px; margin: 0 auto; }
.sec2-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}
.sec2-heading {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 740px;
  margin-bottom: 3rem;
}
.sub-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

/* ─── NUMBERED ACCORDION ─────────────────────────────────────────────────── */
.accordion2 { border-top: 1px solid var(--border); }
.acc2-item { border-bottom: 1px solid var(--border); }
.acc2-head {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 26px 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.acc2-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 36px;
  flex-shrink: 0;
}
.acc2-title {
  font-size: 1.2rem;
  font-weight: 700;
  flex: 1;
}
.acc2-icon {
  width: 20px; height: 20px;
  position: relative;
  flex-shrink: 0;
}
.acc2-icon::before, .acc2-icon::after {
  content: '';
  position: absolute;
  background: var(--green);
  transition: transform 0.2s ease;
}
.acc2-icon::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.acc2-icon::after  { height: 100%; width: 2px; left: 50%; top: 0; transform: translateX(-50%); }
.acc2-item.open .acc2-icon::after { transform: translateX(-50%) scaleY(0); }
.acc2-item.open .acc2-title { color: var(--green); }
.acc2-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.acc2-item.open .acc2-body { max-height: 320px; }
.acc2-body-inner {
  padding: 0 0 30px 64px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}
.acc2-desc { color: var(--text-dim); font-size: 0.98rem; line-height: 1.65; max-width: 560px; }
.acc2-spec {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 18px;
}
.acc2-spec div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text-dim); }
.acc2-spec div:last-child { border-bottom: none; }
.acc2-spec span:last-child { color: var(--green); }
@media (max-width: 760px) {
  .acc2-body-inner { grid-template-columns: 1fr; padding-left: 36px; }
  .acc2-head { gap: 16px; }
}

/* ─── FLOW DIAGRAM ───────────────────────────────────────────────────────── */
.flow2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.flow2-step {
  padding: 32px 26px;
  border-right: 1px solid var(--border);
  position: relative;
}
.flow2-step:last-child { border-right: none; }
.flow2-step::after {
  content: '→';
  position: absolute;
  right: -11px; top: 32px;
  color: var(--green);
  background: var(--bg);
  font-size: 1rem;
  z-index: 2;
}
.flow2-step:last-child::after { content: ''; }
.flow2-idx { font-family: var(--mono); color: var(--green); font-size: 0.78rem; margin-bottom: 0.9rem; }
.flow2-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 0.6rem; }
.flow2-desc { font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 900px) {
  .flow2 { grid-template-columns: 1fr; }
  .flow2-step { border-right: none; border-bottom: 1px solid var(--border); }
  .flow2-step::after { content: '↓'; right: auto; left: 26px; top: auto; bottom: -11px; }
  .flow2-step:last-child { border-bottom: none; }
}

.routes2 {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.route2 { padding: 22px; border: 1px solid var(--border); }
.route2-recall  { background: #080f09; border-color: #0f2a18; }
.route2-graph   { background: #080d09; border-color: #102218; }
.route2-handoff { background: var(--bg-raised); }
.route2-generic { background: var(--bg-raised); border-color: #1a1a1a; }
.route2-name { font-family: var(--mono); font-size: 0.85rem; color: var(--green); margin-bottom: 0.5rem; }
.route2-handoff .route2-name,
.route2-generic .route2-name { color: var(--text-muted); }
.route2-desc { font-size: 0.84rem; color: var(--text-dim); line-height: 1.5; }
@media (max-width: 760px) { .routes2 { grid-template-columns: repeat(2, 1fr); } }

/* ─── EVIDENCE GRID ──────────────────────────────────────────────────────── */
.proof2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.proof2-card { background: var(--bg); padding: 34px 30px; }
.proof2-num { font-family: var(--mono); font-size: 2.1rem; font-weight: 800; color: var(--green); }
.proof2-claim { margin-top: 0.4rem; font-weight: 700; font-size: 1rem; }
.proof2-detail { margin-top: 0.6rem; font-size: 0.86rem; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 860px) { .proof2-grid { grid-template-columns: 1fr; } }

/* ─── TIMELINE (COMPACT) ─────────────────────────────────────────────────── */
.timeline2 { border-top: 1px solid var(--border); }
.tl2-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.tl2-stage {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.tl2-stage .state { display: block; width: fit-content; margin: 0.6rem auto 0; font-size: 0.68rem; padding: 3px 8px; border: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.06em; }
.tl2-stage .state.done { color: var(--green); border-color: var(--green-dim); }
.tl2-stage .state.current { color: var(--amber); border-color: var(--amber-dim); }
.tl2-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; }
.tl2-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; max-width: 640px; }
@media (max-width: 700px) { .tl2-row { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ─── CTA / FORM ─────────────────────────────────────────────────────────── */
.cta2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.form2 { display: grid; gap: 14px; }
.f2-row { display: grid; gap: 6px; }
.f2-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.f2-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
}
.f2-input:focus { outline: none; border-color: var(--green-dim); }
@media (max-width: 860px) { .cta2-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer2 {
  padding: 50px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer2 p { font-size: 0.85rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.footer2 .links { margin-top: 1rem; display: flex; gap: 1.5rem; justify-content: center; font-family: var(--mono); font-size: 0.72rem; }
.footer2 .links a { color: var(--text-dim); }
.footer2 .links a:hover { color: var(--green); }

/* ─── FOUNDER QUOTE ──────────────────────────────────────────────────────── */
.founder-quote {
  border-left: 3px solid var(--green);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.founder-quote p { color: var(--text-dim); margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.6; }
.founder-quote p:last-child { margin-bottom: 0; }
.founder-attribution { font-weight: 600; color: var(--text); letter-spacing: 0.02em; font-family: var(--mono); font-size: 0.85rem; }

/* ─── THESIS DRAWER ──────────────────────────────────────────────────────── */
.thesis-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 200;
}
.thesis-overlay.open { opacity: 1; visibility: visible; }
.thesis-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 92vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.thesis-panel.open { transform: translateX(0); }
.thesis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.thesis-close { background: none; border: none; color: var(--text-dim); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.thesis-close:hover { color: var(--text); }
.thesis-body { padding: 1.25rem 1.75rem 2rem; }
.thesis-body h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 1rem; }
.thesis-body p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }
.thesis-body sup { color: var(--green); font-weight: 600; }
.thesis-pillars { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.thesis-pillars li { font-size: 0.9rem; color: var(--text-dim); border-left: 2px solid var(--green); padding-left: 0.9rem; }
.thesis-pillars li strong { color: var(--text); }
.thesis-quote { border-left: 2px solid var(--green); padding-left: 0.9rem; font-style: italic; }
.thesis-quote-attribution { display: inline-block; margin-top: 0.4rem; font-style: normal; font-weight: 600; color: var(--text); }
.thesis-sources { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.thesis-sources-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.6rem; }
.thesis-sources ol { padding-left: 1.1rem; }
.thesis-sources li { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.5; }
.thesis-sources a { color: var(--green); }
