:root {
  --bg: #07080d;
  --bg-2: #0c0e16;
  --panel: rgba(18, 21, 34, 0.72);
  --panel-solid: #11131f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef6;
  --text-2: #a6abc2;
  --text-3: #6d7290;
  --violet: #8b7bff;
  --teal: #2ee6c5;
  --amber: #ffb547;
  --rose: #ff6b8a;
  --grad: linear-gradient(120deg, #a597ff 0%, #8b7bff 35%, #2ee6c5 100%);
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .88em; background: rgba(139, 123, 255, .12); color: #cfc8ff; padding: .1em .38em; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: rgba(139, 123, 255, .4); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--text-3); }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 22s var(--ease) infinite alternate; }
.orb-a { width: 560px; height: 560px; background: #5b47ff; top: -200px; left: -140px; }
.orb-b { width: 480px; height: 480px; background: #14b8a6; top: 10%; right: -180px; opacity: .32; animation-delay: -7s; }
.orb-c { width: 420px; height: 420px; background: #b14bff; top: 60%; left: 30%; opacity: .16; animation-delay: -14s; }
@keyframes drift { to { transform: translate3d(80px, 60px, 0) scale(1.12); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7, 8, 13, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; color: var(--text-2); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--grad); color: #0a0a12; box-shadow: 0 8px 30px -8px rgba(139, 123, 255, .65), inset 0 1px 0 rgba(255,255,255,.35); background-size: 160% 100%; }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 40px -10px rgba(46, 230, 197, .55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(139, 123, 255, .6); background: rgba(139, 123, 255, .08); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(46,230,197,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46,230,197,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,197,0); } }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.04; font-weight: 800; margin: 22px 0 22px; letter-spacing: -0.035em; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.harness-row { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.harness-row li { font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--text-2); font-family: var(--mono); }
.harness-row li.muted { border-style: dashed; color: var(--text-3); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
#network { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--line); stroke-dasharray: 2 6; animation: spin 80s linear infinite; transform-origin: 260px 260px; }
.ring-2 { animation-direction: reverse; animation-duration: 60s; }
.hub-glow { animation: breathe 4s ease-in-out infinite; transform-origin: 260px 260px; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.hub-label { fill: var(--text); font: 600 13px var(--mono); letter-spacing: .02em; }
.link { stroke: rgba(165, 151, 255, .28); stroke-width: 1.2; fill: none; transition: stroke .3s; }
.link.hot { stroke: rgba(46, 230, 197, .8); stroke-width: 1.8; }
.node-bg { fill: #0f1220; stroke: var(--line-2); stroke-width: 1.2; transition: stroke .3s; }
.node.hot .node-bg { stroke: var(--teal); }
.node-ring { fill: none; stroke: var(--teal); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.node.hot .node-ring { animation: ping .9s var(--ease); }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.node-name { fill: var(--text); font: 600 12.5px var(--sans); }
.node-user { fill: var(--text-3); font: 500 11px var(--mono); }
.node-status { transition: fill .3s; }
.packet { filter: drop-shadow(0 0 6px currentColor); }

.toast { position: absolute; left: 50%; bottom: -7%; transform: translate(-50%, 12px); display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: rgba(15, 18, 32, .9); border: 1px solid var(--line-2); border-radius: 12px; font: 500 12.5px var(--mono); color: var(--text-2); opacity: 0; transition: opacity .4s, transform .4s var(--ease); white-space: nowrap; backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px #000; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-tag { color: #0a0a12; background: var(--teal); padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 750; }
.sub { color: var(--text-2); font-size: 18px; margin-top: 16px; }

/* Problem */
.problem { padding-top: 70px; }
.problem-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: end; }
.problem-text { font-size: 19px; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat-n { font-size: 44px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; letter-spacing: -.03em; }
.stat-l { color: var(--text-2); font-size: 14.5px; }

/* How */
.how-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 22px 22px 22px 18px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background .35s, border-color .35s; position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.step.is-active { background: var(--panel); border-color: var(--line); }
.step.is-active::before { transform: scaleY(1); }
.step-n { font: 600 14px var(--mono); color: var(--text-3); padding-top: 3px; transition: color .3s; }
.step.is-active .step-n { color: var(--teal); }
.step h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15.5px; }

.term-wrap { position: sticky; top: 100px; }
.term { border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, #10131f, #0a0c14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(139,123,255,.06), 0 0 80px -30px rgba(139,123,255,.35); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-title { margin-left: 10px; font: 500 12.5px var(--mono); color: var(--text-3); }
.term-body { margin: 0; padding: 20px 20px 24px; min-height: 380px; font: 13.2px/1.75 var(--mono); color: #c9cde0; white-space: pre-wrap; word-break: break-word; }
.term-body .p { color: var(--teal); }
.term-body .u { color: var(--text); }
.term-body .t { color: #a597ff; }
.term-body .h { color: var(--amber); }
.term-body .ok { color: #5ee58a; }
.term-body .dim { color: var(--text-3); }
.cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; background: var(--teal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-progress { height: 2px; margin: 14px 8px 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.term-progress span { display: block; height: 100%; width: 0; background: var(--grad); }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; backdrop-filter: blur(6px); }
.card h3 { font-size: 20px; font-weight: 650; }
.card-sub { color: var(--text-3); font-size: 14.5px; margin: 6px 0 22px; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139,123,255,.14), transparent 45%); }
.spot:hover::after { opacity: 1; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(46,230,197,.55), transparent 50%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.spot:hover::before { opacity: 1; }

/* Messaging */
.msg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.addr-list { display: flex; flex-direction: column; gap: 8px; }
.addr { all: unset; cursor: pointer; display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.addr span { font-size: 13.5px; color: var(--text-2); text-align: right; }
.addr:hover { transform: translateX(3px); }
.addr.is-active { border-color: rgba(46,230,197,.5); background: rgba(46,230,197,.06); }
.addr:focus-visible, .tab:focus-visible, .step:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.addr-viz { width: 100%; max-width: 420px; display: block; margin: 18px auto 0; height: auto; }
.addr-viz text { fill: var(--text-3); font: 500 9.5px var(--mono); }
.av-sender circle { fill: url(#hubFill); }
.av-target circle { fill: #141829; stroke: var(--line-2); transition: fill .35s, stroke .35s; }
.av-target.on circle { fill: rgba(46,230,197,.18); stroke: var(--teal); }
.av-target.claim circle { fill: var(--teal); }
.av-line { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 4 4; transition: stroke .35s, opacity .35s; opacity: .3; }
.av-line.on { stroke: var(--teal); opacity: 1; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }

.lifecycle { margin-top: 10px; }
.lc-track { display: flex; align-items: flex-start; gap: 0; margin: 26px 0 30px; }
.lc-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; width: 112px; flex-shrink: 0; }
.lc-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg-2); margin-bottom: 8px; transition: all .4s var(--ease); }
.lc-node b { font: 600 13.5px var(--mono); color: var(--text-3); transition: color .4s; }
.lc-node small { color: var(--text-3); font-size: 12px; line-height: 1.35; }
.lc-node.on .lc-dot { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 6px rgba(46,230,197,.15), 0 0 20px rgba(46,230,197,.6); }
.lc-node.on b { color: var(--text); }
.lc-line { flex: 1; height: 2px; background: var(--line-2); margin-top: 9px; border-radius: 2px; overflow: hidden; }
.lc-line span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .9s var(--ease); }
.lc-line.on span { width: 100%; }
.lc-branches { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.chip { display: inline-block; font: 600 12px var(--mono); padding: 3px 9px; border-radius: 6px; margin-right: 8px; }
.chip-warn { background: rgba(255,181,71,.14); color: var(--amber); }
.chip-muted { background: rgba(255,255,255,.06); color: var(--text-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { transition: transform .4s var(--ease), border-color .3s; }
.feat:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feat-wide { grid-column: span 2; }
.feat h3 { margin: 18px 0 10px; font-size: 19px; }
.feat p { color: var(--text-2); font-size: 15.5px; }
.feat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(139,123,255,.22), rgba(46,230,197,.12)); border: 1px solid rgba(139,123,255,.3); }
.feat-icon svg { width: 22px; height: 22px; fill: none; stroke: #d6d0ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.host-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.host-row span { font: 500 12.5px var(--mono); padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); color: var(--text-2); }
.pres { font: 600 12.5px var(--mono); padding: 1px 7px; border-radius: 6px; }
.pres-a { color: #5ee58a; background: rgba(94,229,138,.12); }
.pres-i { color: var(--amber); background: rgba(255,181,71,.12); }
.pres-o { color: var(--text-3); background: rgba(255,255,255,.06); }

/* Setup */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); margin-bottom: 40px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { all: unset; position: relative; z-index: 1; cursor: pointer; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: color .25s; white-space: nowrap; }
.tab.is-active { color: #0a0a12; }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 10px; background: var(--grad); transition: transform .45s var(--ease), width .45s var(--ease); box-shadow: 0 6px 20px -6px rgba(139,123,255,.6); }
.setup { position: relative; display: flex; flex-direction: column; gap: 18px; }
.setup::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--violet), var(--teal)); opacity: .3; }
.setup-step { display: grid; grid-template-columns: 44px 1fr; gap: 24px; }
.setup-n { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--mono); background: var(--bg-2); border: 1px solid rgba(139,123,255,.5); color: #d6d0ff; box-shadow: 0 0 0 6px var(--bg); }
.setup-final .setup-n { background: var(--grad); color: #0a0a12; border: 0; }
.setup-body { padding: 6px 0 22px; min-width: 0; }
.setup-body h3 { font-size: 20px; margin-bottom: 8px; }
.setup-body > p { color: var(--text-2); margin-bottom: 16px; max-width: 760px; }
.setup-body q { color: var(--text); font-style: italic; }
.code { position: relative; border-radius: 14px; border: 1px solid var(--line); background: #0a0c14; overflow: hidden; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.7 var(--mono); color: #d8dbea; }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.code .c { color: var(--text-3); }
.code.swap-in { animation: swapIn .4s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } }
.copy { position: absolute; top: 10px; right: 10px; z-index: 2; font: 600 12px var(--sans); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(20, 24, 40, .9); color: var(--text-2); cursor: pointer; transition: all .2s; }
.copy:hover { color: var(--text); border-color: rgba(139,123,255,.6); }
.copy.done { color: #0a0a12; background: var(--teal); border-color: var(--teal); }

/* Self-host */
.selfhost { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px; align-items: center; background: linear-gradient(140deg, rgba(139,123,255,.1), rgba(18,21,34,.7) 40%, rgba(46,230,197,.07)); }
.selfhost-copy > p { color: var(--text-2); margin: 16px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(46,230,197,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%232ee6c5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.selfhost-code pre { font-size: 13px; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--text-2); padding: 0 0 20px; }

/* CTA */
.cta { text-align: center; padding: 72px 32px; border-radius: 28px; border: 1px solid var(--line-2); position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, rgba(139,123,255,.28), transparent 60%), radial-gradient(ellipse at 50% 100%, rgba(46,230,197,.14), transparent 60%), var(--bg-2); }
.cta h2 { font-size: clamp(32px, 4.4vw, 52px); }
.cta p { color: var(--text-2); font-size: 18px; margin: 14px 0 28px; }
.cta-code { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 18px; margin-bottom: 26px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0,0,0,.35); }
.cta-code code { background: none; color: var(--text); font-size: 14.5px; padding: 0; overflow-wrap: anywhere; text-align: left; }
.copy-inline { position: static; }
.cta .btn { margin: 0 auto; }
.cta-section { padding-top: 40px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; }
.footer-inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer nav { margin-left: auto; display: flex; gap: 20px; color: var(--text-2); }
.footer nav a:hover { color: var(--text); }
.brand-sm { font-size: 15px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .how-grid, .problem-grid, .selfhost, .msg-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .term-wrap { position: relative; top: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .selfhost { padding: 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding-top: 36px; }
  .section { padding: 76px 0; }
  .bento { grid-template-columns: 1fr; }
  .feat-wide { grid-column: auto; }
  .card { padding: 24px; }
  .selfhost { padding: 24px; }
  .step { grid-template-columns: 40px 1fr; padding: 18px 16px 18px 14px; }
  .term-body { min-height: 340px; font-size: 12px; padding: 16px; }
  .setup-step { grid-template-columns: 36px 1fr; gap: 14px; }
  .setup-n { width: 36px; height: 36px; font-size: 13px; }
  .setup::before { left: 17px; }
  .addr { flex-direction: column; align-items: flex-start; gap: 4px; }
  .addr span { text-align: left; }
  .lc-node { width: 76px; }
  .code pre { font-size: 12.5px; padding: 16px; padding-top: 44px; }
  .cta { padding: 52px 20px; }
  .cta-code { flex-direction: column; padding: 12px; }
}

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