/* ============================================================
   CRODE — main site. Black / white single-screen landing.
   Thick translucent top bar (Linear-style mega nav) + full hero
   + thick dense bottom bar.
   Inter (display/body) · JetBrains Mono (labels / live-run panel).
   ============================================================ */
:root {
  /* Crovi-aligned violet-tinted dark system */
  --bg:        #0B0A0F;
  --bg-2:      #16151F;
  --surface:   #1A1922;
  --black:     #08070C;
  --white:     #F3F4F7;   /* headings */
  --w-sub:     #C3C5CF;   /* body text */
  --w-mid:     #A7AAB6;
  --w-mute:    #898C99;
  --w-faint:   #6C6F7C;
  --line:      #26252F;
  --line-2:    #2C2B38;
  --accent:    #5E6AD2;   /* indigo — badge, constellation */
  --accent-soft: rgba(94,106,210,0.12);
  --ink:       #0C0D10;   /* text on light buttons */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --wrap: 1240px;
  --topbar-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--w-sub);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
img { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2.2rem; width: 100%; }
.bar-inner { display: flex; align-items: center; gap: 2rem; }

/* ============================================================
   Top bar — thick, slightly translucent
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  display: flex; align-items: stretch;
  background: rgba(11,10,15,0.72);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.9rem; letter-spacing: -0.02em; color: var(--white); flex-shrink: 0; }
.brand img { width: 20px; height: 20px; filter: grayscale(1) brightness(2.2); }

.topnav { display: flex; align-items: center; gap: 0.1rem; height: 100%; }
.topnav::before { content: ""; width: 1px; height: 16px; background: var(--line-2); margin: 0 0.9rem 0 0.3rem; align-self: center; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-trigger, .nav-link {
  font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 0.28rem;
  padding: 0.32rem 0.65rem; font-size: 0.83rem; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--w-sub); background: none; border: 0; border-radius: 6px;
  cursor: pointer; transition: color .12s, background .12s;
}
.nav-link:hover, .nav-item:hover .nav-trigger { color: var(--white); background: rgba(245,245,243,0.08); }
.nav-trigger::after {
  content: ""; width: 5px; height: 5px; margin-left: 0.15rem;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: translateY(-1px) rotate(45deg); transition: transform .18s;
}
.nav-item:hover .nav-trigger::after { transform: translateY(1px) rotate(225deg); }

.nav-right { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-login { font-size: 0.83rem; font-weight: 500; color: var(--w-sub); padding: 0.4rem 0.7rem; transition: color .12s; }
.nav-login:hover { color: var(--white); }
.btn-nav { padding: 0.45rem 1.05rem; font-size: 0.8rem; font-weight: 600; background: var(--white); color: var(--ink); border-radius: 7px; transition: transform .12s, background .12s; }
.btn-nav:hover { background: #fff; transform: translateY(-1px); }

/* ---- Mega dropdown ---- */
.mega {
  position: absolute; top: var(--topbar-h); left: 0;
  transform: translateY(8px);
  width: min(720px, 92vw);
  background: rgba(16,16,18,0.97);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 200;
}
/* invisible bridge: keeps :hover alive across the gap between trigger and panel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-item--drop { position: relative; }
.mega.mega-sm { width: min(320px, 90vw); left: 50%; right: auto; transform: translateX(-50%) translateY(8px); }
.nav-item--drop:hover .mega.mega-sm { transform: translateX(-50%) translateY(0); }
.nav-item:hover .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav-item:hover .mega.mega-sm { transform: translateX(-50%) translateY(0); }

.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.mega-col { display: flex; flex-direction: column; padding: 1rem 1.2rem; gap: 0.7rem; }
.mega-col:not(:first-child) { border-left: 1px solid var(--line); }
.mega-list { display: flex; flex-direction: column; padding: 0.3rem; }

.mega-cell { display: block; border-radius: 9px; padding: 0.55rem 0.7rem; margin: -0.05rem; transition: background .12s; }
.mega-cell:hover { background: rgba(245,245,243,0.06); }
.mc-name { display: flex; align-items: center; gap: 0.45rem; font-size: 0.76rem; font-weight: 600; color: var(--w-mute); letter-spacing: 0.01em; margin-bottom: 0.25rem; transition: color .12s; }
.mega-cell:hover .mc-name { color: var(--white); }
.mc-pill { font-family: var(--mono); font-size: 0.56rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--w-faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.05rem 0.38rem; }
.mc-pill.live { color: var(--white); border-color: var(--w-mute); }
.mc-desc { display: block; font-size: 0.9rem; font-weight: 500; line-height: 1.28; color: var(--white); letter-spacing: -0.01em; }
/* Resources menu: title-prominent cells (name bold, desc secondary) */
.mega--res .mc-name { font-size: 0.92rem; font-weight: 600; color: var(--white); margin-bottom: 0.22rem; letter-spacing: -0.01em; }
.mega--res .mc-desc { font-size: 0.82rem; font-weight: 400; color: var(--w-mute); }

.mega-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; border-top: 1px solid var(--line); margin-top: 0.15rem;
}
.mf-new { font-size: 0.82rem; color: var(--w-sub); }
.mf-new b { color: var(--white); font-weight: 600; margin-right: 0.3rem; }
.mf-link { font-size: 0.82rem; font-weight: 500; color: var(--white); opacity: 0.7; transition: opacity .12s; }
.mf-link:hover { opacity: 1; }

/* ============================================================
   Ambient background — Crovi-style constellation + glow (global)
   ============================================================ */
#pageCvs { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page-orb { position: fixed; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; z-index: 0; }
.page-orb-1 { width: 520px; height: 520px; top: -120px; left: -80px;  background: radial-gradient(circle, rgba(94,106,210,0.22), transparent 70%); }
.page-orb-2 { width: 460px; height: 460px; top: 8%;   right: -120px; background: radial-gradient(circle, rgba(126,110,255,0.16), transparent 70%); }
.page-orb-3 { width: 400px; height: 400px; bottom: -140px; left: 30%; background: radial-gradient(circle, rgba(94,106,210,0.12), transparent 70%); }
.topbar, .hero, .botbar { position: relative; z-index: 1; }
.topbar { z-index: 100; }

/* ============================================================
   Hero — full bleed
   ============================================================ */
.hero {
  position: relative;
  flex: 1;
  min-height: calc(100dvh - var(--topbar-h));
  display: flex; align-items: center;
  overflow: hidden;
  padding: 3.5rem 0;
}

/* ---- Crovi-style lead hero (home) ---- */
.hero--lead { overflow: visible; }
.hero--lead .hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 52% at 34% 34%, rgba(94,106,210,0.14), transparent 68%),
    radial-gradient(ellipse 50% 46% at 50% 30%, rgba(243,244,247,0.05), transparent 72%);
}
.hero-lead { position: relative; z-index: 2; max-width: 66rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--w-mid);
  background: var(--accent-soft); border: 1px solid rgba(94,106,210,0.22);
  padding: 0.42rem 0.95rem; border-radius: 999px; margin-bottom: 2.4rem;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fd07f; box-shadow: 0 0 8px rgba(63,208,127,0.7); }
.hero-display {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(3rem, 8.6vw, 6.6rem);
  line-height: 0.98; letter-spacing: -0.05em;
  color: var(--white); margin: 0;
}
.hero-display .mut { color: var(--w-mute); }
.hero-lead .hero-sub {
  margin-top: 2rem; font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.65; color: var(--w-mid); max-width: 40ch;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  /* background-image: url('static/img/hero.jpg'); background-size: cover; */
  background:
    radial-gradient(1100px 640px at 78% 26%, rgba(245,245,243,0.10), transparent 60%),
    radial-gradient(900px 700px at 10% 92%, rgba(0,0,0,0.6), transparent 60%),
    linear-gradient(135deg, #17171a 0%, #0e0e10 46%, #050506 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,245,243,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,243,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 120% at 80% 40%, #000 28%, transparent 82%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 44%, transparent 66%);
  pointer-events: none;
}
.hero-tick {
  position: absolute; z-index: 3;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--w-faint);
}
.hero-tick.tl { top: 1.6rem; left: 2.2rem; }
.hero-tick.tr { top: 1.6rem; right: 2.2rem; }
.hero-tick.br { bottom: 1.6rem; right: 2.2rem; }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center;
}
.hero-copy { max-width: none; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--w-mute); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--line-2); }
.hero-line {
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  color: var(--white);
}
.hero-line .mut { color: var(--w-mute); }
.hero-sub {
  margin-top: 1.9rem; font-size: 1.06rem; line-height: 1.65;
  color: var(--w-sub); max-width: 40ch;
}
.hero-cta { margin-top: 2.2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn-hero { padding: 0.7rem 1.4rem; font-size: 0.88rem; font-weight: 600; border-radius: 10px; transition: transform .12s, background .12s, border-color .12s; }
.btn-hero.solid { background: var(--white); color: var(--ink); }
.btn-hero.solid:hover { transform: translateY(-1px); }
.btn-hero.ghost { background: transparent; color: var(--white); border: 1px solid var(--line-2); }
.btn-hero.ghost:hover { border-color: var(--w-mute); }

/* ---- live-run terminal + node diagram ---- */
.hero-run { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-end; }
.run-panel {
  width: min(430px, 100%);
  background: rgba(8,8,9,0.55);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
  overflow: hidden;
}
.run-head { display: flex; align-items: center; gap: 7px; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.run-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--w-faint); }
.run-title { margin-left: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--w-mute); }
.run-body { padding: 1.1rem 1.15rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.9; }
.run-line { display: flex; align-items: center; white-space: nowrap; color: var(--white); opacity: 0; animation: reveal 8.5s infinite; }
.run-line .p     { color: var(--w-mute); margin-right: 0.5rem; }
.run-line .ok    { color: var(--white); margin-right: 0.7rem; }
.run-line .st    { color: var(--w-sub); }
.run-line .muted { color: var(--w-mute); font-size: 0.76rem; }
.run-line .fill  { flex: 1; margin: 0 0.6rem; border-bottom: 1px dotted var(--line-2); }
.l0 { animation-delay: 0.2s; } .l1 { animation-delay: 1.0s; } .l2 { animation-delay: 1.7s; }
.l3 { animation-delay: 2.4s; } .l4 { animation-delay: 3.1s; } .l5 { animation-delay: 3.9s; }
.l6 { animation-delay: 4.5s; opacity: 1; animation: none; }
@keyframes reveal {
  0% { opacity: 0; transform: translateY(6px); }
  4% { opacity: 1; transform: translateY(0); }
  82% { opacity: 1; transform: translateY(0); }
  92% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 0; }
}
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--white); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }
.run-diagram { width: min(320px, 100%); height: auto; opacity: 0.85; }
.run-diagram .edge { stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 4 4; animation: flow 3.5s linear infinite; }
.run-diagram .e2 { animation-delay: .4s; } .run-diagram .e3 { animation-delay: .8s; }
.run-diagram .e4 { animation-delay: 1.2s; } .run-diagram .e5 { animation-delay: 1.6s; }
.run-diagram .node { fill: var(--white); stroke: rgba(0,0,0,0.4); stroke-width: 2; animation: pulse 2.6s ease-in-out infinite; }
.run-diagram .n1 { animation-delay: .5s; } .run-diagram .n2 { animation-delay: .9s; }
.run-diagram .n3 { animation-delay: 1.3s; } .run-diagram .n4 { animation-delay: 1.7s; }
@keyframes flow  { to { stroke-dashoffset: -16; } }
@keyframes pulse { 0%,100% { r: 5; opacity: .55; } 50% { r: 7; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .run-line, .cursor, .run-diagram .edge, .run-diagram .node { animation: none !important; opacity: 1 !important; }
}

/* ============================================================
   Footer — Crovi-style: brand + 3 columns, divider, bottom row
   ============================================================ */
.botbar { position: relative; z-index: 1; background: #100F16; border-top: 1px solid var(--line-2); padding: 3.6rem 0 2rem; }
.botbar-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line); }
.bb-brand-wrap { max-width: 300px; }
.bb-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.bb-brand img { width: 22px; height: 22px; border-radius: 5px; filter: grayscale(1) brightness(2.2); }
.bb-tag { margin-top: 0.85rem; font-size: 0.82rem; line-height: 1.65; color: var(--w-mute); }
.bb-col { display: flex; flex-direction: column; gap: 0.7rem; }
.bb-col h5 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--w-mid); margin-bottom: 0.15rem; }
.bb-col a { font-size: 0.85rem; color: var(--w-mute); width: fit-content; transition: color .12s; }
.bb-col a:hover { color: var(--white); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-top: 1.6rem; }
.foot-bottom span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--w-faint); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .topnav, .nav-login { display: none; }
  .nav-right { margin-left: auto; padding-left: 0; border-left: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-run { align-items: flex-start; }
  .botbar-inner { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .bb-brand-wrap { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
  :root { --topbar-h: 60px; }
  .wrap { padding: 0 1.3rem; }
  .hero-tick { display: none; }
  .botbar-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Theme toggle button
   ============================================================ */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--w-sub); background: none; border: 0; cursor: pointer;
  transition: color .12s, background .12s;
}
.theme-toggle:hover { color: var(--white); background: rgba(245,245,243,0.08); }
.theme-toggle .ic { display: block; }
.theme-toggle .ic-moon { display: none; }
.theme-toggle .ic-sun  { display: block; }
[data-theme="light"] .theme-toggle .ic-sun  { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: block; }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.05); }

/* ============================================================
   LIGHT THEME — opt-in via [data-theme="light"]
   ============================================================ */
:root[data-theme="light"] {
  --bg:        #FFFFFF;
  --bg-2:      #F4F5F7;
  --surface:   #FFFFFF;
  --black:     #F4F5F7;
  --white:     #0C0D10;   /* headings → near-black */
  --w-sub:     #3B3F46;
  --w-mid:     #5B606A;
  --w-mute:    #767B85;
  --w-faint:   #9CA1AB;
  --line:      #E8EAEE;
  --line-2:    #D7DAE0;
  --accent-soft: rgba(94,106,210,0.10);
  --ink:       #FFFFFF;   /* text on dark buttons */
}
[data-theme="light"] .topbar { background: rgba(255,255,255,0.78); border-bottom-color: var(--line-2); }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-item:hover .nav-trigger { background: rgba(0,0,0,0.05); }
[data-theme="light"] .mega { background: rgba(255,255,255,0.98); box-shadow: 0 30px 70px -28px rgba(20,22,40,0.28); }
[data-theme="light"] .mega-cell:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(1100px 640px at 78% 26%, rgba(94,106,210,0.10), transparent 60%),
    radial-gradient(900px 700px at 12% 90%, rgba(0,0,0,0.05), transparent 60%),
    linear-gradient(135deg, #FBFBFD 0%, #F4F5F8 46%, #EEEFF3 100%);
}
[data-theme="light"] .hero-bg::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px);
}
[data-theme="light"] .hero::before { background: none; }
[data-theme="light"] .hero--lead .hero-glow {
  background:
    radial-gradient(ellipse 62% 52% at 34% 34%, rgba(94,106,210,0.10), transparent 68%);
}
[data-theme="light"] .botbar { background: #F4F5F7; border-top-color: var(--line-2); }
[data-theme="light"] .run-panel { background: rgba(255,255,255,0.72); }
[data-theme="light"] .badge { border-color: rgba(94,106,210,0.28); }
/* Logo mark: the dark-theme filter brightens the mark to near-white, which
   vanishes on the light-theme white bar. Render it as a dark mark instead. */
[data-theme="light"] .brand img,
[data-theme="light"] .bb-brand img { filter: grayscale(1) brightness(0); }

/* ============================================================
   Content pages (How it works / Security / Status / Philosophy)
   ============================================================ */
.page { position: relative; z-index: 1; flex: 1; padding-bottom: 5rem; }
.page-head { padding: 4.5rem 0 2.6rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.page-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--w-mute); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.page-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--line-2); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; color: var(--white); }
.page-lead { margin-top: 1.2rem; max-width: 62ch; font-size: 1.08rem; line-height: 1.6; color: var(--w-mid); }
.page-body { display: grid; gap: 2.6rem; }

.doc-sec { max-width: 780px; }
.doc-id { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
.doc-sec h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); margin-bottom: 0.9rem; }
.doc-sec p { color: var(--w-sub); line-height: 1.75; margin-bottom: 1rem; max-width: 68ch; }
.doc-sec code { font-family: var(--mono); font-size: 0.85em; background: var(--bg-2); padding: 0.1em 0.4em; border-radius: 4px; color: var(--white); }
.spec { width: 100%; border-collapse: collapse; margin: 1.2rem 0 0.4rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.spec th { width: 34%; color: var(--white); font-weight: 600; }
.spec td { color: var(--w-sub); line-height: 1.6; }
.callout { margin-top: 1.3rem; padding: 1.1rem 1.3rem; background: var(--accent-soft); border: 1px solid rgba(94,106,210,0.22); border-radius: 12px; }
.callout p { margin: 0; color: var(--w-sub); }
.callout strong { color: var(--white); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 2.6rem; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem; }
.step-n { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.7rem; }
.step-t { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.step-d { font-size: 0.86rem; color: var(--w-mute); line-height: 1.55; }

.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 3rem; }
.statrow > div { background: var(--bg); padding: 1.6rem 1.2rem; text-align: center; }
.stat-v { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.stat-k { font-size: 0.78rem; color: var(--w-mute); margin-top: 0.4rem; }

.status-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 780px; }
.status-row { display: flex; align-items: center; justify-content: space-between; background: var(--bg); padding: 1.05rem 1.4rem; }
.status-name { font-weight: 600; color: var(--white); }
.status-name span { display: block; font-weight: 400; font-size: 0.82rem; color: var(--w-mute); margin-top: 0.15rem; }
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.74rem; color: #3fd07f; }
.status-pill .d { width: 8px; height: 8px; border-radius: 50%; background: #3fd07f; box-shadow: 0 0 8px rgba(63,208,127,0.6); }
.status-pill.dev { color: #d9a441; }
.status-pill.dev .d { background: #d9a441; box-shadow: 0 0 8px rgba(217,164,65,0.55); }
.status-pill.plan { color: var(--w-mute); }
.status-pill.plan .d { background: var(--w-mute); box-shadow: none; }

.princ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 980px; }
.princ-cell { border: 1px solid var(--line); border-radius: 14px; padding: 1.7rem; }
.princ-n { font-family: var(--mono); font-size: 0.9rem; color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.princ-t { font-size: 1.12rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.princ-d { font-size: 0.92rem; color: var(--w-sub); line-height: 1.6; }

@media (max-width: 760px) { .steps, .statrow, .princ { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps, .statrow, .princ { grid-template-columns: 1fr; } }
