/* ═══════════════ Unwind Code — design tokens ═══════════════ */
:root {
  --bg: #06060c;
  --surface: #0f0f1e;
  --accent: #9b59f5;
  --accent-soft: rgba(155, 89, 245, 0.16);
  --accent-glow: rgba(155, 89, 245, 0.45);
  --text: #eceafb;
  --text-dim: #9a97b8;
  --line: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 15, 30, 0.55);
  --radius: 20px;
  --font: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 0.5em; }
.accent { color: var(--accent); }
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.section-sub { color: var(--text-dim); max-width: 46ch; font-size: 1.05rem; }

section { padding: 9rem 6vw; position: relative; }

/* ═══════════════ Glassmorphism ═══════════════ */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ═══════════════ Buttons ═══════════════ */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 rgba(155, 89, 245, 0), 0 10px 30px rgba(155, 89, 245, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--accent-glow), 0 14px 40px rgba(155, 89, 245, 0.45); }
.btn-big { font-size: 1.15rem; padding: 1.1rem 2.6rem; }

/* ═══════════════ Boot — cinematic entrance ═══════════════ */
body.booting { overflow: hidden; }
#boot {
  position: fixed; inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease 0.25s, visibility 0.7s ease 0.25s;
}
#boot.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-core { text-align: center; position: relative; z-index: 2; }
.boot-inf {
  display: block;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow), 0 0 120px var(--accent-glow);
  animation: bootpulse 1.4s ease-in-out infinite;
}
@keyframes bootpulse {
  0%, 100% { filter: brightness(0.85); transform: scale(0.985); }
  50% { filter: brightness(1.5); transform: scale(1.015); }
}
.boot-title {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
}
.boot-title em { font-style: normal; color: var(--accent); }
.boot-status {
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  min-height: 1.4em;
}
.boot-bar {
  margin: 1.6rem auto 0;
  width: 200px; height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.boot-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #d3b4ff);
  box-shadow: 0 0 14px var(--accent-glow);
  transition: width 0.3s ease;
}
.boot-burst {
  position: absolute; left: 50%; top: 50%;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #d3b4ff 30%, var(--accent) 55%, transparent 72%);
  filter: blur(6px);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.boot-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ecdfff 45%, #c9a4ff 100%);
  opacity: 0;
  pointer-events: none;
}
#boot.splash .boot-core { animation: corefade 0.5s ease forwards; }
#boot.splash .boot-burst { animation: burst 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
#boot.splash .boot-flash { animation: flash 0.9s ease-out forwards; }
@keyframes corefade { to { opacity: 0; transform: scale(1.12); filter: blur(6px); } }
@keyframes burst {
  0% { transform: scale(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: scale(70); opacity: 0; }
}
@keyframes flash {
  0% { opacity: 0; }
  30% { opacity: 0.85; }
  100% { opacity: 0; }
}
body.lit .hero-copy { animation: herolit 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes herolit {
  from { opacity: 0; transform: translateY(26px) scale(0.965); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ═══════════════ Nav ═══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4vw;
  padding-left: max(4vw, env(safe-area-inset-left));
  padding-right: max(4vw, env(safe-area-inset-right));
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
}
.logo-inf {
  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
  text-shadow: 0 0 18px var(--accent-glow);
}
.logo-word em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.btn-nav { background: var(--accent-soft); border-color: rgba(155, 89, 245, 0.35); }
.btn-nav:hover { background: var(--accent); color: #fff; }

/* mobile nav: burger + full-screen glass drawer */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.9rem;
  background: rgba(6, 6, 12, 0.88);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu > a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-menu > a:not(.btn):active { color: var(--accent); }
.mobile-menu .btn { margin-top: 0.8rem; }
body.menu-open { overflow: hidden; }
@media (max-width: 720px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
}

/* ═══════════════ Hero — scroll-scrub assembly ═══════════════ */
.hero { height: 360vh; padding: 0; }
.hero-sticky {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#hero-canvas, #hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
#hero-video { opacity: 0; transition: opacity 0.8s ease; }
#hero-video.ready { opacity: 1; }
body.lit #hero-video, body.lit #hero-canvas { animation: herosettle 1.7s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes herosettle { from { transform: scale(1.055); } to { transform: scale(1); } }
.hero-exit {
  position: absolute; inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(6, 6, 12, 0.85) 100%);
  pointer-events: none;
}

.hero-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 6vw;
  pointer-events: none;
}
.hero-copy h1 {
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  max-width: 15ch;
  text-shadow: 0 4px 60px rgba(6, 6, 12, 0.9);
}
.hero-sub {
  margin-top: 1.6rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 52ch;
}

/* organism map overlay */
.org-map { position: absolute; inset: 0; pointer-events: none; }
.org-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.org-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.22;
  stroke-linecap: round;
  opacity: 0.7;
  filter: drop-shadow(0 0 3px var(--accent-glow));
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.org-core {
  position: absolute; left: 50%; top: 52%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--accent);
  opacity: 0;
  text-shadow: 0 0 30px var(--accent-glow), 0 0 90px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.org-node {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) scale(0.8);
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1.2rem;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(155, 89, 245, 0.35);
  border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 30px rgba(155, 89, 245, 0.15);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.org-node i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.org-node.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@keyframes pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.6); }
}

.hero-cta {
  position: absolute; left: 50%; bottom: 9vh;
  transform: translateX(-50%) translateY(20px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.hero-cta.on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.hero-cta-line { color: var(--text-dim); margin-bottom: 1rem; font-size: 0.95rem; letter-spacing: 0.04em; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 3.5vh;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  transition: opacity 0.4s ease;
}
.scroll-hint span {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ═══════════════ Boundary — pinned anatomy strip ═══════════════ */
.boundary { height: 320vh; padding: 0; }
.boundary-sticky {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
#boundary-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease;
}
#boundary-video.ready { opacity: 0.55; }
#boundary-video.ready + .lanes-fallback, #proof-video.ready + .ledger-fallback { display: none; }
.lanes-fallback { position: absolute; inset: 0; overflow: hidden; opacity: 0.5; }
.lane {
  position: absolute; left: -20%; right: -20%; height: 1px;
  background: repeating-linear-gradient(90deg,
    transparent 0 40px, rgba(155, 89, 245, 0.55) 40px 90px,
    transparent 90px 160px, rgba(88, 196, 255, 0.35) 160px 200px, transparent 200px 300px);
  animation: laneflow 7s linear infinite;
}
.lane:nth-child(1) { top: 18%; animation-duration: 9s; }
.lane:nth-child(2) { top: 32%; animation-duration: 6s; animation-direction: reverse; }
.lane:nth-child(3) { top: 50%; animation-duration: 8s; }
.lane:nth-child(4) { top: 66%; animation-duration: 5.5s; animation-direction: reverse; }
.lane:nth-child(5) { top: 82%; animation-duration: 10s; }
@keyframes laneflow { to { transform: translateX(300px); } }
.lane-block {
  position: absolute; top: 20%; left: 76%;
  transform: translate(-50%, -50%);
  padding: 0.5rem 1rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  color: #ff5470;
  border: 1px solid rgba(255, 84, 112, 0.6);
  border-radius: 8px;
  background: rgba(255, 84, 112, 0.08);
  animation: blockpulse 2.2s ease-in-out infinite;
}
.lane-lock { margin-right: 0.4rem; }
@keyframes blockpulse { 0%,100% { box-shadow: 0 0 0 rgba(255,84,112,0); } 50% { box-shadow: 0 0 30px rgba(255,84,112,0.5); } }
.boundary-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(6,6,12,0.35) 0%, rgba(6,6,12,0.88) 100%);
}
.boundary-enter {
  position: absolute; inset: 0;
  background: var(--bg);
  opacity: 1;
  pointer-events: none;
  z-index: 10;
}
.boundary-sticky::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 14vh;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}
.boundary-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 6vw;
  max-width: 1100px;
}
.boundary-content .section-sub { margin: 0 auto 3rem; }
.anatomy-strip {
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  justify-content: center;
}
.organ {
  font-family: var(--font);
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.organ.active {
  color: #fff;
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 34px var(--accent-glow);
  transform: translateY(-3px);
}
.organ-line {
  margin: 2.2rem auto 0;
  max-width: 520px;
  padding: 1rem 1.6rem;
  color: var(--text);
  font-size: 1rem;
  border-radius: 14px;
}

/* ═══════════════ Organisms ═══════════════ */
.organisms { text-align: center; }
.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  max-width: 1200px;
  margin: 3.5rem auto 0;
  text-align: left;
}
.proto { padding: 2.4rem 2.2rem; position: relative; overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.proto:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 30px 80px rgba(155, 89, 245, 0.18); }
.proto-glyph {
  font-size: 2rem; color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  margin-bottom: 1.2rem;
}
.proto h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.proto-line { color: var(--text-dim); font-size: 0.98rem; min-height: 4.6em; }
.proto-tag {
  display: inline-block; margin-top: 1.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(155, 89, 245, 0.35);
  border-radius: 100px;
  background: var(--accent-soft);
}

/* ═══════════════ Metrics ═══════════════ */
.metrics {
  display: flex; flex-wrap: wrap; gap: 3rem;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(155, 89, 245, 0.04), transparent);
  padding: 5rem 6vw;
}
.metric { text-align: center; min-width: 220px; }
.metric-num {
  display: block;
  font-size: clamp(3.4rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-shadow: 0 0 44px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}
.metric-label { color: var(--text-dim); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ═══════════════ Product — browser frame ═══════════════ */
.product { text-align: center; }
.product .section-sub { margin: 0 auto; }
.browser-frame {
  max-width: 960px;
  margin: 3.5rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 40px 120px rgba(0, 0, 0, 0.65),
    0 20px 70px rgba(155, 89, 245, 0.12);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.browser-url {
  margin-left: 1rem;
  flex: 1;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
}
.browser-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
}
@media (max-width: 760px) { .browser-body { grid-template-columns: 1fr; } }
.radar { width: 100%; max-width: 340px; }
.radar-grid polygon, .radar-grid line { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; }
.radar-shape {
  fill: rgba(155, 89, 245, 0.22);
  stroke: var(--accent);
  stroke-width: 2;
  filter: drop-shadow(0 0 14px var(--accent-glow));
}
.radar-labels text {
  fill: var(--text-dim);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-anchor: middle;
  text-transform: uppercase;
}
.radar-side { text-align: left; }
.radar-side h4 { font-size: 1.05rem; margin-bottom: 1.2rem; letter-spacing: -0.01em; }
.radar-list { list-style: none; }
.radar-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.radar-list b { font-weight: 600; }
.status {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 100px;
}
.status.ok { color: #4ade80; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.3); }
.status.gate { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(155, 89, 245, 0.4); }

/* ═══════════════ Paths ═══════════════ */
.paths { text-align: center; }
.paths .section-sub { margin: 0 auto; }
.path-toggle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 3.5rem auto 1.6rem;
}
.path-card {
  font-family: var(--font);
  color: var(--text);
  padding: 1.8rem 1.4rem;
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.path-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.path-card p { color: var(--text-dim); font-size: 0.85rem; }
.path-card:hover { transform: translateY(-4px); }
.path-card[aria-selected="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 44px rgba(155, 89, 245, 0.3);
  transform: translateY(-4px);
}
.path-card.featured { background: linear-gradient(160deg, rgba(155, 89, 245, 0.16), var(--glass-bg) 60%); }
.badge {
  position: absolute; top: -0.7rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 0.3rem 0.9rem; border-radius: 100px;
  box-shadow: 0 6px 20px rgba(155, 89, 245, 0.5);
}
.path-detail {
  max-width: 620px;
  margin: 1.6rem auto 0;
  padding: 2.4rem 2.6rem;
  text-align: left;
}
.path-detail h3 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.path-detail ul { list-style: none; margin-bottom: 1.8rem; }
.path-detail li {
  padding: 0.55rem 0 0.55rem 1.7rem;
  position: relative;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.path-detail li::before {
  content: '∞';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ═══════════════ FAQ ═══════════════ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-list { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border-radius: 16px; overflow: hidden; }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  cursor: pointer;
  padding: 1.35rem 1.7rem;
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon {
  color: var(--accent);
  font-size: 1.3rem; font-weight: 400;
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.7rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ═══════════════ Final CTA ═══════════════ */
.final {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 6rem 6vw;
}
#proof-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease;
}
#proof-video.ready { opacity: 0.5; }
.ledger-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8vw;
  opacity: 0.5;
}
.ledger-card { padding: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; transform: rotate(3deg); }
.ledger-row { display: flex; align-items: center; gap: 0.8rem; font-size: 0.82rem; color: var(--text-dim); }
@media (max-width: 900px) { .ledger-fallback { display: none; } }
.final-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(6,6,12,0.55) 0%, rgba(6,6,12,0.92) 100%);
}
.final-content { position: relative; z-index: 2; text-align: center; }
.final-content h2 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 2.2rem; }

/* ═══════════════ Footer ═══════════════ */
.footer {
  text-align: center;
  padding: 4.5rem 6vw 3rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.tagline { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; }
.fineprint { color: var(--text-dim); font-size: 0.8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; justify-content: center; }
.footer-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

/* ═══════════════ Site links inside content ═══════════════ */
.proto-link {
  display: inline-block; margin-top: 1.1rem;
  color: var(--accent); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
  transition: transform 0.2s ease;
}
.proto-link:hover { transform: translateX(4px); }
.faq-item p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(155, 89, 245, 0.4); }
.faq-item p a:hover { border-bottom-color: var(--accent); }

/* ═══════════════ Reveal on scroll ═══════════════ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══════════════ Mobile refinements ═══════════════ */
@media (max-width: 720px) {
  section { padding: 5.5rem 6vw; }
  .hero { height: 300vh; }
  .hero-copy h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hero-sub { font-size: 0.98rem; }
  .hero-cta { bottom: 7vh; width: max-content; max-width: 92vw; }
  .org-node { padding: 0.45rem 0.9rem; font-size: 0.72rem; gap: 0.4rem; }
  .org-node[data-node="1"] { --x: 22% !important; }
  .org-node[data-node="2"] { --x: 78% !important; }
  .boot-title { letter-spacing: 0.32em; text-indent: 0.32em; }
  .boundary { height: 260vh; }
  .anatomy-strip { gap: 0.55rem; }
  .organ { padding: 0.65rem 1.1rem; font-size: 0.8rem; }
  .organ-line { font-size: 0.9rem; padding: 0.85rem 1.2rem; }
  .proto { padding: 1.9rem 1.6rem; }
  .proto-line { min-height: 0; }
  .metrics { gap: 2.2rem; padding: 4rem 6vw; }
  .metric { min-width: 130px; }
  .browser-body { padding: 1.5rem; gap: 1.4rem; }
  .path-detail { padding: 1.8rem 1.5rem; }
  .path-toggle { gap: 0.9rem; }
  .faq-item summary { padding: 1.1rem 1.25rem; font-size: 0.95rem; }
  .faq-item p { padding: 0 1.25rem 1.2rem; font-size: 0.92rem; }
  .footer-links { gap: 0.7rem 1.3rem; }
  .final { min-height: 88svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
