/* ───────────────────────── LITHOS · base ───────────────────────── */
:root {
  --bg: #dedede;
  --bg-hi: #eeeeee;
  --bg-lo: #cfcfcf;
  --ink: #0f1010;
  --ink-2: #353737;
  --muted: #727474;
  --muted-2: #9a9c9c;
  --white: #ffffff;
  --line: rgba(15, 16, 16, 0.09);
  --line-2: rgba(15, 16, 16, 0.16);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-2: rgba(255, 255, 255, 0.72);
  --smoke: rgba(36, 38, 38, 0.2);
  --smoke-2: rgba(36, 38, 38, 0.34);
  --accent: #f2a516;
  --moss: #6b8c27;
  --moss-2: #87a832;
  --ok: #4f7a12;
  --warn: #b45309;
  --bad: #b42318;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.25), 0 2px 8px -2px rgba(0, 0, 0, 0.06);
  --font: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 72% 8%, #f4f4f4 0%, rgba(244, 244, 244, 0) 60%),
    radial-gradient(70% 50% at 10% 90%, #d2d2d2 0%, rgba(210, 210, 210, 0) 70%),
    linear-gradient(180deg, #e6e6e6 0%, #dadada 100%);
  background-attachment: fixed;
  min-height: 100%;
}
body {
  margin: 0;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* backdrop: faint dot grid + soft light sweep like the studio render */
.backdrop { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.15) 40%, rgba(0,0,0,.4));
}
.backdrop::after { content: ""; position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%);
  filter: blur(40px); animation: sweep 18s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
#stage.no-webgl { background: radial-gradient(30% 22% at 62% 46%, #4a4d48 0%, #6f7e4a 40%, transparent 70%); filter: blur(30px); opacity: .5; }

/* ───────────────────────── type ───────────────────────── */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss-2); box-shadow: 0 0 0 4px rgba(135,168,50,.18); }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.display { font-weight: 400; letter-spacing: -0.045em; line-height: .94; margin: 0; font-size: clamp(46px, 7.4vw, 112px); }
.display .lite { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.08); }
.h2 { font-weight: 400; letter-spacing: -0.035em; line-height: 1; margin: 0; font-size: clamp(34px, 4.6vw, 68px); }
.h2 .lite { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.14), 0 1px 1px rgba(0,0,0,.1); }
.h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-size: clamp(20px, 1.8vw, 26px); }
.lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.muted { color: var(--muted); }

/* ───────────────────────── buttons ───────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px 0 18px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -14px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.06); }
.btn .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: transform .25s; }
.btn:hover .ico { transform: translateX(2px) rotate(-45deg); }
.btn .ico svg { width: 13px; height: 13px; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark .ico { background: #fff; color: var(--ink); }
.btn.ghost { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.btn.sm { height: 36px; font-size: 13px; padding: 0 6px 0 14px; border-radius: 10px; }
.btn.sm .ico { width: 24px; height: 24px; }
.btn.plain { padding: 0 18px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.is-connected .ico { background: var(--moss); }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--glass); border: 1px solid rgba(255,255,255,.55); color: var(--ink-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip.dark { background: var(--smoke); color: #fff; border-color: rgba(255,255,255,.18); }

/* ───────────────────────── nav ───────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 18px var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; transition: background .3s, backdrop-filter .3s; }
.nav.scrolled { background: linear-gradient(180deg, rgba(222,222,222,.85), rgba(222,222,222,0)); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; font-size: 20px; color: var(--ink); }
.logo-mark { width: 26px; height: 26px; flex: none; }
.logo .slash { color: var(--accent); font-style: italic; font-weight: 500; margin-right: -4px; }
.nav-pill { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--smoke); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.nav-pill a { padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: rgba(255,255,255,.92); transition: background .2s, color .2s; text-shadow: 0 1px 2px rgba(0,0,0,.12); }
.nav-pill a:hover, .nav-pill a.active { background: rgba(255,255,255,.9); color: var(--ink); text-shadow: none; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s; }
.icon-btn:hover { background: #fff; }
.icon-btn svg { width: 16px; height: 16px; }
.burger { display: none; }

@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-pill { display: none; }
  .nav-right .icon-btn.social { display: none; }
  .burger { display: grid; }
  .nav.open .nav-pill { display: flex; position: absolute; top: 70px; left: var(--gutter); right: var(--gutter); flex-direction: column; border-radius: 18px; padding: 8px; background: rgba(30,32,32,.72); }
  .nav.open .nav-pill a { padding: 14px 16px; }
}
@media (max-width: 520px) { .nav-right [data-connect] .lbl-long { display: none; } }

/* ───────────────────────── sections ───────────────────────── */
section { position: relative; }
.sec { padding: clamp(90px, 12vw, 170px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }

/* hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero h1 { margin-top: 18px; }
.hero .lead { margin: 26px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-side { justify-self: end; display: grid; gap: 12px; width: min(380px, 100%); }
.converge { padding: 16px 18px; border-radius: var(--r); background: var(--glass); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.converge-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.converge-row b { color: var(--ink); font-weight: 500; }
.converge-bar { position: relative; height: 34px; margin: 12px 0 8px; }
.converge-bar i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ink); transition: left .25s ease-out; }
.converge-bar i.b { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.converge-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.converge-pct { font-family: var(--mono); font-size: 28px; letter-spacing: -0.04em; }
.ca { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: rgba(20,21,21,.82); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ca .tag { color: rgba(255,255,255,.55); }
.ca-addr { font-family: var(--mono); font-size: 12.5px; word-break: break-all; color: rgba(255,255,255,.92); }
.ca-actions { display: flex; gap: 8px; }
.ca-actions .btn { flex: 1; justify-content: space-between; }
.scroll-cue { margin-top: clamp(30px, 6vh, 70px); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; gap: 16px; flex-wrap: wrap; }
.scroll-cue .tag:first-child::before { content: "↓"; margin-right: 10px; display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

@media (max-width: 960px) {
  .hero { justify-content: flex-start; padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { justify-self: stretch; width: 100%; margin-top: 34vh; }
}

/* stats ring: dark glossy tiles like the "trusted by" carousel */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; perspective: 1400px; }
.tile { position: relative; padding: 22px 20px 20px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 14px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, #3a3c3c 0%, #161717 55%, #0c0d0d 100%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.12) 48%, rgba(186,170,255,.12) 52%, transparent 62%); transform: translateX(-60%); transition: transform .9s; }
.tile:hover::after { transform: translateX(60%); }
.tile:nth-child(1) { --ry: 14deg; --tz: -30px; } .tile:nth-child(2) { --ry: 5deg; } .tile:nth-child(3) { --ry: -5deg; } .tile:nth-child(4) { --ry: -14deg; --tz: -30px; }
.tile .tag { color: rgba(255,255,255,.5); }
.tile strong { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.tile small { color: rgba(255,255,255,.6); font-size: 13px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { --ry: 0deg !important; --tz: 0 !important; min-height: 140px; } }

/* philosophy */
.philo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.philo .latin { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 14px; margin-bottom: 26px; }
.philo p { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); margin: 0 0 18px; }
.glass-card { background: var(--glass-2); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); box-shadow: var(--shadow); }
@media (max-width: 860px) { .philo { grid-template-columns: 1fr; } }

/* process stepper (Our Process.) */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; min-height: 80vh; }
.process-title { position: sticky; top: 120px; }
.pipeline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.pipeline span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--glass); color: var(--muted); border: 1px solid rgba(255,255,255,.5); transition: all .3s; }
.pipeline span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.stages { display: grid; gap: 8px; }
.stage { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; text-align: left; padding: 18px 20px; border-radius: var(--r); cursor: pointer; border: 1px solid transparent; background: transparent; transition: background .35s, border-color .35s, box-shadow .35s, transform .35s; }
.stage .star { font-size: 26px; line-height: 1; color: var(--white); text-shadow: 0 1px 10px rgba(0,0,0,.15); transition: color .3s; }
.stage .st-title { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.05; color: var(--white); text-shadow: 0 1px 18px rgba(0,0,0,.16); transition: color .3s; }
.stage .st-inv { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-top: 6px; text-shadow: 0 1px 6px rgba(0,0,0,.2); }
.stage .st-title, .stage .st-inv { display: block; }
.stage .st-title { text-shadow: 0 1px 2px rgba(0,0,0,.22), 0 0 24px rgba(0,0,0,.14) !important; }
.stage.on .st-title { text-shadow: none !important; }
.stage .st-body { display: none; grid-column: 2; margin-top: 4px; }
.stage:hover { background: rgba(255,255,255,.18); }
.stage.on { background: #fff; box-shadow: var(--shadow); grid-template-columns: 44px .9fr 1.1fr; }
.stage.on .star, .stage.on .st-title { color: var(--ink); text-shadow: none; }
.stage.on .st-inv { color: var(--muted); text-shadow: none; }
.stage.on .st-body { display: block; grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 14px; color: var(--ink-2); }
.st-body code { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink); background: #f1f1f1; border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process-title { position: static; }
  .stage.on { grid-template-columns: 44px 1fr; }
  .stage.on .st-body { grid-column: 2; grid-row: auto; margin-top: 8px; }
}

/* walkthrough demo */
.demo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.panel { background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 30px); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); min-width: 0; }
.panel.dark { background: rgba(16,17,17,.9); color: #e9e9e9; border-color: rgba(255,255,255,.06); }
.panel.dark .tag { color: rgba(255,255,255,.45); }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.field output, .field .val { font-family: var(--mono); font-size: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), #d4d4d4 var(--p, 50%)); border-radius: 4px; outline-offset: 8px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); cursor: grab; }
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: #ececec; gap: 4px; }
.toggle button { border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; cursor: pointer; color: var(--muted); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.panel.dark .toggle { background: rgba(255,255,255,.08); }
.panel.dark .toggle button.on { background: #fff; color: var(--ink); }
.trace-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.steps { display: flex; gap: 4px; }
.steps button { width: 38px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 11px; cursor: pointer; }
.steps button.on { background: #fff; color: var(--ink); border-color: #fff; }
.trace { display: grid; gap: 8px; font-family: var(--mono); font-size: 12.5px; }
.trace-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); opacity: .28; transition: opacity .4s, background .4s, border-color .4s; }
.trace-row.on { opacity: 1; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.trace-row .k { color: #fff; letter-spacing: .04em; }
.trace-row .v { color: var(--moss-2); text-align: right; }
.trace-row .d { grid-column: 1 / -1; color: rgba(255,255,255,.5); font-size: 11.5px; line-height: 1.55; font-family: var(--font); }
.trace-row.bad .v { color: #f97066; }
.verdict { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.verdict.ok { background: rgba(135,168,50,.16); color: #c7e27a; }
.verdict.bad { background: rgba(240,68,56,.14); color: #fda29b; }
.rounds { display: flex; gap: 3px; align-items: end; height: 56px; margin: 4px 0 14px; }
.rounds i { flex: 1; border-radius: 3px 3px 0 0; min-width: 4px; }
.rounds i.s { background: rgba(255,255,255,.75); }
.rounds i.b { background: var(--moss-2); }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.calc-out { display: grid; gap: 2px; margin-top: 6px; }
.calc-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.calc-line b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.calc-line.total b { font-size: 20px; }
.pill-ok, .pill-bad { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; margin-top: 14px; }
.pill-ok { background: rgba(107,140,39,.14); color: var(--ok); }
.pill-bad { background: rgba(180,35,24,.1); color: var(--bad); }
.input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; padding: 0 14px; font-family: var(--mono); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
select.input { font-family: var(--font); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* architecture (template cards) */
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.layer { position: relative; padding: 24px; min-height: 300px; border-radius: var(--r-lg); background: rgba(255,255,255,.88); border: 1px solid #fff; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); overflow: hidden; transition: transform .4s; }
.layer:hover { transform: translateY(-4px); }
.layer:nth-child(1) { background: #111212; color: #eee; border-color: #111; }
.layer:nth-child(1) .tag, .layer:nth-child(1) p { color: rgba(255,255,255,.6); }
.layer:nth-child(3) { background: linear-gradient(160deg, #6f8f2c, #3d5414); color: #fff; border-color: transparent; }
.layer:nth-child(3) .tag, .layer:nth-child(3) p { color: rgba(255,255,255,.75); }
.layer p { margin: 0; font-size: 14px; color: var(--ink-2); }
.layer .glyph { margin-top: auto; width: 54px; height: 54px; opacity: .9; }
@media (max-width: 1080px) { .layers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .layers { grid-template-columns: 1fr; } .layer { min-height: 0; } }

/* network preview */
.netwrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; }
.topo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(70% 70% at 50% 50%, #1b1d1c 0%, #0c0d0d 100%); box-shadow: var(--shadow); }
.topo svg { width: 100%; height: 100%; }
.topo .tag { position: absolute; left: 18px; top: 16px; color: rgba(255,255,255,.5); }
.topo .legend { position: absolute; left: 18px; bottom: 14px; display: flex; gap: 14px; font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.55); letter-spacing: .06em; flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.feed { display: grid; gap: 8px; align-content: start; max-height: 520px; overflow: auto; }
.feed-item { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.75); border: 1px solid #fff; font-size: 13px; }
.feed-item .tag { font-size: 10px; display: flex; justify-content: space-between; margin-bottom: 4px; }
.status { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--moss-2); margin-right: 8px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 960px) { .netwrap { grid-template-columns: 1fr; } }

/* CTA */
.cta { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0; }
.cta .h2 { font-size: clamp(44px, 7vw, 108px); }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* footer */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.5)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .backdrop::after { animation: none; } html { scroll-behavior: auto; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13.5px; box-shadow: var(--shadow); transition: all .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* docs */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 70px); padding-top: 130px; padding-bottom: 100px; }
.toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 4px; }
.toc a { padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.toc a:hover, .toc a.on { background: rgba(255,255,255,.7); color: var(--ink); }
.doc article { min-width: 0; }
.doc article h2 { font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; margin: 70px 0 16px; scroll-margin-top: 110px; }
.doc article h3 { font-weight: 500; font-size: 18px; margin: 30px 0 10px; }
.doc article p, .doc article li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.doc article ul { padding-left: 20px; }
.doc pre { background: #111212; color: #e8e8e8; border-radius: 14px; padding: 18px 20px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.doc code { font-family: var(--mono); font-size: .9em; background: rgba(255,255,255,.7); padding: 2px 6px; border-radius: 6px; }
.doc pre code { background: none; padding: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; background: rgba(255,255,255,.6); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.doc td.mono { font-size: 12.5px; word-break: break-all; }
.callout { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.7); border-left: 3px solid var(--accent); margin: 20px 0; font-size: 15px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; grid-auto-flow: column; overflow-x: auto; } .toc a { white-space: nowrap; } }
