/* zyth.io: near-black, one spectral gradient (magenta, violet, cyan, lime), heavy tight type */
:root {
  --void: #05060a; --ink: #0a0c13; --raise: #10131d; --panel: rgba(255,255,255,.035); --panel2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16);
  --text: #e8eaf3; --dim: #a2a8bc; --mute: #6d7389;
  --z1: #ff4fd8; --z2: #8b5cff; --z3: #22d3ee; --z4: #a3ff5c; --warn: #ffb547; --bad: #ff5c7a;
  --spectrum: linear-gradient(100deg, var(--z1) 0%, var(--z2) 34%, var(--z3) 68%, var(--z4) 100%);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 76rem; --r: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%); }
a { color: var(--z3); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--z3); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--ink); padding: .5rem 1rem; }

/* gradient text and borders */
.spec { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255,79,216,.55), rgba(139,92,255,.25) 30%, rgba(34,211,238,.18) 65%, rgba(163,255,92,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: rgba(5,6,10,.62); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: .25rem; flex: 1; }
.nav a { color: var(--dim); font-size: .93rem; font-weight: 500; padding: .45rem .75rem; border-radius: 10px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--panel2); text-decoration: none; }
.top .cta { display: flex; gap: .6rem; }
.btn { display: inline-flex; align-items: center; gap: .55rem; font: 600 .95rem/1 var(--sans); padding: .78rem 1.2rem; border-radius: 12px; border: 1px solid var(--line2); color: var(--text); background: var(--panel); cursor: pointer; transition: transform .15s, background .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--panel2); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-hot { border: 0; color: #08090d; background: var(--spectrum); background-size: 160% 100%; box-shadow: 0 8px 30px -8px rgba(139,92,255,.7), 0 0 0 1px rgba(255,255,255,.12) inset; }
.btn-hot:hover { background: var(--spectrum); background-size: 160% 100%; background-position: 100% 0; color: #08090d; box-shadow: 0 10px 40px -6px rgba(34,211,238,.6); }
.btn-sm { padding: .55rem .9rem; font-size: .88rem; border-radius: 10px; }
details.mobile { display: none; margin-left: auto; }
details.mobile summary { list-style: none; cursor: pointer; color: var(--text); padding: .4rem; }
details.mobile summary::-webkit-details-marker { display: none; }
details.mobile nav { position: absolute; right: 1rem; top: 60px; background: var(--raise); border: 1px solid var(--line2); border-radius: 14px; padding: .5rem; display: grid; min-width: 14rem; box-shadow: 0 30px 60px -20px #000; }
details.mobile nav a { color: var(--text); padding: .6rem .8rem; border-radius: 8px; }
@media (max-width: 960px) { .nav, .top .cta { display: none; } details.mobile { display: block; } }

/* hero */
.hero { position: relative; padding: 6.5rem 0 4rem; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 38%, rgba(5,6,10,.15), var(--void) 78%); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: .5rem .85rem; border: 1px solid var(--line2); border-radius: 999px; background: rgba(10,12,19,.7); }
.eyebrow b { width: 7px; height: 7px; border-radius: 50%; background: var(--z4); box-shadow: 0 0 12px var(--z4); }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.hero h1 { font-size: clamp(2.9rem, 8.2vw, 6.6rem); font-weight: 850; margin: 1.4rem 0 1.4rem; }
.hero .lead { font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: var(--dim); max-width: 44rem; margin: 0 0 2.2rem; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero .row { display: flex; gap: .8rem; flex-wrap: wrap; }
.center { text-align: center; } .center .lead, .center .row { margin-left: auto; margin-right: auto; justify-content: center; }
.sub-hero { padding: 5rem 0 2.5rem; }
.sub-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 850; margin: 1.2rem 0 1.2rem; }

/* the live editor */
.stage { margin: 3.5rem auto 0; max-width: 64rem; }
.editor { border-radius: var(--r); background: rgba(10,12,19,.88); box-shadow: 0 50px 120px -40px rgba(139,92,255,.55), 0 0 0 1px var(--line) inset; overflow: hidden; text-align: left; }
.editor .bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.editor .dots { display: flex; gap: 6px; margin-right: .6rem; } .editor .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e3b; }
.editor .tab { font: 500 .82rem var(--mono); color: var(--dim); padding: .25rem .7rem; border-radius: 7px; }
.editor .tab.on { color: var(--text); background: var(--panel2); }
.editor .bar .btn { margin-left: auto; }
.editor .panes { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 21rem; }
@media (max-width: 860px) { .editor .panes { grid-template-columns: 1fr; } }
.editor pre { margin: 0; padding: 1.1rem 1.2rem; font-size: .86rem; line-height: 1.7; overflow-x: auto; white-space: pre; }
.editor .code { border-right: 1px solid var(--line); counter-reset: ln; }
.editor .code span.l { display: block; transition: background .4s; border-radius: 4px; }
.editor .code span.l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 1.6rem; color: #3f4559; user-select: none; }
.editor .code span.l.hit { background: rgba(255,92,122,.12); box-shadow: inset 2px 0 0 var(--bad); }
.editor .code span.l.fixed { background: rgba(163,255,92,.11); box-shadow: inset 2px 0 0 var(--z4); }
.editor .term { background: rgba(0,0,0,.25); color: var(--dim); min-height: 21rem; }
.editor .term .p { color: var(--z3); } .editor .term .e { color: var(--bad); font-weight: 700; } .editor .term .n { color: var(--z2); } .editor .term .h { color: var(--z4); } .editor .term .w { color: var(--text); } .editor .term .c { color: var(--warn); }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--z3); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.k { color: #c792ea; } .t { color: #7fdbff; } .s { color: #c3e88d; } .num { color: #f78c6c; } .cm { color: #586079; font-style: italic; } .fn { color: #82aaff; } .op { color: #89ddff; }
.stage .under { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.3rem; color: var(--mute); font-size: .88rem; }
.stage .under span::before { content: "✓ "; color: var(--z4); }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.15rem 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 3rem; width: max-content; animation: slide 46s linear infinite; font: 600 .95rem var(--mono); color: var(--dim); letter-spacing: .02em; }
.marquee .track span { display: inline-flex; align-items: center; gap: .7rem; }
.marquee .track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--spectrum); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section.band { padding: 6.5rem 0; position: relative; }
.kicker { font: 700 .78rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--z3); margin-bottom: 1rem; display: block; }
.band h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 820; max-width: 52rem; }
.band .intro { color: var(--dim); font-size: 1.15rem; max-width: 44rem; margin: 1.3rem 0 3rem; }
.band .intro strong { color: var(--text); }
.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { border-radius: var(--r); background: var(--panel); padding: 1.7rem; border: 1px solid var(--line); transition: transform .25s, border-color .25s, background .25s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-3px); border-color: var(--line2); background: var(--panel2); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.2rem; background: rgba(139,92,255,.14); color: var(--z1); box-shadow: inset 0 0 0 1px rgba(139,92,255,.3); }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.28rem; font-weight: 750; margin-bottom: .6rem; letter-spacing: -.02em; }
.card p { color: var(--dim); margin: 0; font-size: .98rem; }
.card pre { margin: 1.2rem 0 0; padding: .9rem 1rem; background: rgba(0,0,0,.35); border-radius: 12px; font-size: .78rem; line-height: 1.6; overflow-x: auto; border: 1px solid var(--line); color: var(--dim); }
.card .more { display: inline-block; margin-top: 1.1rem; font-weight: 600; font-size: .93rem; }
.card.wide { grid-column: span 2; } @media (max-width: 680px) { .card.wide { grid-column: auto; } }
.card.c2 .ico { background: rgba(34,211,238,.12); color: var(--z3); box-shadow: inset 0 0 0 1px rgba(34,211,238,.3); }
.card.c3 .ico { background: rgba(163,255,92,.1); color: var(--z4); box-shadow: inset 0 0 0 1px rgba(163,255,92,.28); }
.card.c4 .ico { background: rgba(255,181,71,.1); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(255,181,71,.28); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 1.7rem 1.5rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.stat .big { font-size: clamp(2.4rem, 4.4vw, 3.5rem); font-weight: 850; letter-spacing: -.045em; line-height: 1; }
.stat .big small { font-size: .45em; font-weight: 700; letter-spacing: -.01em; margin-left: .15em; color: var(--dim); }
.stat p { margin: .8rem 0 0; color: var(--dim); font-size: .93rem; }
.stat p b { color: var(--text); font-weight: 600; }

/* bars */
.chart { border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); padding: 1.8rem; }
.chart .head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.chart .head h3 { font-size: 1.25rem; }
.legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .82rem; color: var(--dim); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.bench { display: grid; grid-template-columns: 6.5rem 1fr; gap: .35rem 1.2rem; align-items: center; }
.bench + .bench { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.bench .name { font: 600 .9rem var(--mono); color: var(--text); grid-row: span 4; align-self: center; }
.meter { display: flex; align-items: center; gap: .6rem; height: 16px; font: 500 .74rem var(--mono); color: var(--mute); }
.meter i { display: block; height: 100%; border-radius: 5px; width: 0; transition: width 1.3s cubic-bezier(.2,.8,.2,1); }
.seen .meter i { width: var(--w); }
.meter.zy i { background: var(--spectrum); box-shadow: 0 0 18px -4px rgba(139,92,255,.8); } .meter.zy { color: var(--text); font-weight: 700; }
.meter.rs i { background: #8e6f5c; } .meter.go i { background: #3c7c8c; } .meter.jv i { background: #565b6e; } .meter.py i { background: #4b5a3f; }
.note { color: var(--mute); font-size: .84rem; margin-top: 1.2rem; }
.note a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.split .intro { margin-bottom: 1.6rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
.ticks li { padding-left: 2rem; position: relative; color: var(--dim); }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 6px; background: var(--spectrum); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/100% no-repeat; }
.window { border-radius: var(--r); background: rgba(10,12,19,.9); border: 1px solid var(--line2); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(34,211,238,.35); }
.window .bar { all: unset; display: flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); font: 500 .8rem var(--mono); color: var(--dim); }
.window .bar .dots { display: flex; gap: 6px; margin-right: .5rem; } .window .bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2e3b; }
.window pre { margin: 0; padding: 1.2rem; font-size: .84rem; line-height: 1.7; overflow-x: auto; color: var(--dim); }

/* AI bars */
.models { display: grid; gap: 1.3rem; }
.model .who { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: .45rem; font-size: .95rem; }
.model .who span { color: var(--mute); font: 500 .8rem var(--mono); }
.duo { display: grid; gap: 5px; }
.duo .meter { height: 12px; }

/* install */
.install { max-width: 50rem; margin: 0 auto; }
.tabs { display: flex; gap: .4rem; margin-bottom: -1px; }
.tabs button { font: 600 .88rem var(--sans); color: var(--dim); background: transparent; border: 1px solid transparent; border-bottom: 0; padding: .65rem 1.1rem; border-radius: 12px 12px 0 0; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--raise); border-color: var(--line2); }
.shell { display: flex; align-items: center; gap: 1rem; background: var(--raise); border: 1px solid var(--line2); border-radius: 0 14px 14px 14px; padding: 1.15rem 1.3rem; font: 500 .98rem var(--mono); }
.shell code { flex: 1; overflow-x: auto; white-space: nowrap; color: var(--text); }
.shell code::before { content: "$ "; color: var(--z3); }
.shell.ps code::before { content: "PS> "; }
.copy { flex: none; }
.soon { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; border: 1px dashed rgba(255,181,71,.4); background: rgba(255,181,71,.06); color: #f3d6a4; font-size: .92rem; }

/* big call to action */
.finale { text-align: center; padding: 7rem 0; position: relative; overflow: hidden; }
.finale::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70rem; height: 32rem; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(139,92,255,.32), rgba(34,211,238,.12) 55%, transparent); filter: blur(30px); z-index: -1; }
.finale h2 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 860; margin: 0 auto 1.4rem; max-width: 60rem; }
.finale p { color: var(--dim); font-size: 1.2rem; margin: 0 auto 2.4rem; max-width: 40rem; }
.finale .row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* prose (sub pages) */
.prose { max-width: 50rem; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 3.5rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--dim); }
.prose p strong, .prose li strong { color: var(--text); }
.prose pre { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; font-size: .85rem; line-height: 1.65; overflow-x: auto; color: var(--dim); }
.prose code { font-size: .88em; background: var(--panel2); padding: .12rem .4rem; border-radius: 6px; color: var(--text); }
.prose pre code { background: none; padding: 0; color: inherit; }
/* the book and the manual */
.book h1, .manual h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.03em; }
.book .lead, .manual .lead { font-size: 1.12rem; color: var(--dim); }
.book h2 .num { color: var(--z3); font-family: var(--mono); font-size: .7em; margin-right: .4rem; }
.book .contents { border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 2rem 0; background: rgba(255,255,255,.02); }
.book .contents h3 { margin: 0 0 .7rem; }
.book .contents ol { list-style: none; padding: 0; margin: 0; columns: 2 18rem; column-gap: 2rem; }
.book .contents li { margin: .25rem 0; break-inside: avoid; }
.book .contents a { color: var(--dim); text-decoration: none; }
.book .contents a:hover { color: var(--text); }
.book .contents .num { font-family: var(--mono); color: var(--mute); display: inline-block; min-width: 2.8rem; }
.book .next { margin-top: 3rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.manual { max-width: 56rem; }
.manual h1 + p, .manual hr { display: none; }
.manual table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.2rem 0; display: block; overflow-x: auto; }
.manual th { text-align: left; color: var(--mute); padding: .5rem .7rem; border-bottom: 1px solid var(--line2); font-weight: 600; }
.manual td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); color: var(--dim); vertical-align: top; }
.manual h4 { font-size: 1.05rem; margin: 1.8rem 0 .6rem; }
.manual a { color: var(--z3); }
.manual p code, .manual li code { overflow-wrap: anywhere; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.2rem 0; }
table.data th { text-align: left; font: 600 .76rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: .7rem .8rem; border-bottom: 1px solid var(--line2); }
table.data td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); color: var(--dim); font-variant-numeric: tabular-nums; }
table.data td:first-child { color: var(--text); font-weight: 600; }
table.data td.win { color: var(--z4); font-weight: 700; }
.scroll { overflow-x: auto; }

/* maker block and footer */
.maker { display: flex; gap: 2rem; align-items: center; padding: 2.4rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.maker img { width: 132px; height: auto; flex: none; background: #fff; border-radius: 12px; padding: .5rem .8rem; }
.maker h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.maker p { color: var(--dim); margin: 0; }
@media (max-width: 680px) { .maker { flex-direction: column; align-items: flex-start; } }
footer.foot { border-top: 1px solid var(--line); padding: 4rem 0 3rem; margin-top: 2rem; color: var(--mute); font-size: .9rem; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .foot .cols { grid-template-columns: repeat(2, 1fr); } }
.foot h4 { font: 700 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 1rem; }
.foot a { display: block; color: var(--mute); padding: .2rem 0; }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot .brand { margin-bottom: 1rem; }
.foot .legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.seen { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; } .meter i { width: var(--w); }
}

/* feature comparison */
.compare-wrap { margin: 0 -.4rem; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; min-width: 52rem; }
table.compare th, table.compare td { padding: .62rem .55rem; text-align: center; border-bottom: 1px solid var(--line); }
table.compare thead th, table.compare tr:first-child th { font: 700 .82rem var(--mono); color: var(--dim); letter-spacing: .03em; text-transform: uppercase; }
table.compare th[scope=row] { text-align: left; font-weight: 600; color: var(--text); white-space: nowrap; }
table.compare th[scope=row] sup { color: var(--mute); font-size: .7em; margin-left: .15em; }
table.compare tr:first-child th:first-child { text-align: left; }
table.compare td svg { width: 20px; height: 20px; margin: 0 auto; color: #8f97ad; }
table.compare td.n span { color: #3f4559; font-weight: 700; }
table.compare td.l span, table.compare td.p span { display: inline-block; font: 600 .72rem var(--mono); padding: .14rem .45rem; border-radius: 999px; }
table.compare td.l span { color: var(--mute); border: 1px solid var(--line2); }
table.compare td.p span { color: var(--warn); border: 1px solid rgba(255,181,71,.35); background: rgba(255,181,71,.07); }
table.compare .zy { background: linear-gradient(180deg, rgba(139,92,255,.16), rgba(34,211,238,.08)); }
table.compare th.zy { color: transparent; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; font-size: 1rem; }
table.compare tr:first-child th.zy { border-top-left-radius: 12px; border-top-right-radius: 12px; }
table.compare td.zy.y svg { color: var(--z4); filter: drop-shadow(0 0 6px rgba(163,255,92,.55)); width: 22px; height: 22px; }
table.compare tr:hover th[scope=row], table.compare tr:hover td:not(.zy) { background: var(--panel); }
table.compare tr.total th, table.compare tr.total td { border-bottom: 0; font: 800 1.15rem var(--mono); color: var(--dim); padding-top: .9rem; }
table.compare tr.total td.zy { color: var(--z4); font-size: 1.5rem; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.notes { color: var(--mute); font-size: .84rem; margin: 1.4rem 0 0; padding-left: 1.3rem; columns: 2 26rem; column-gap: 2.5rem; }
.notes li { margin-bottom: .35rem; break-inside: avoid; }
.notes code { font-size: .92em; color: var(--dim); }

/* ---- phones and small tablets (desktop layout above is unchanged) */
@media (max-width: 680px) {
  section.band { padding: 3.75rem 0; }
  .hero { padding: 3.25rem 0 2.75rem; }
  .sub-hero { padding: 3rem 0 1.5rem; }
  .finale { padding: 4.5rem 0; }
  .wrap { padding: 0 1.15rem; }
  .band .intro { font-size: 1.05rem; margin: 1rem 0 2rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .08em; line-height: 1.35; padding: .45rem .75rem; max-width: 100%; }
  .hero .row, .finale .row { flex-direction: column; align-items: stretch; max-width: 22rem; margin-left: auto; margin-right: auto; }
  .hero .row .btn, .finale .row .btn { justify-content: center; min-height: 48px; }
  .stage { margin-top: 2.25rem; }
  .editor .bar { padding: .55rem .7rem; }
  .editor .dots, .editor .bar .tab:not(.on) { display: none; }
  .editor .panes, .editor .term { min-height: 0; }
  .editor .code { border-right: 0; border-bottom: 1px solid var(--line); }
  .editor pre { font-size: .74rem; padding: .9rem .85rem; }
  .editor .term { min-height: 15rem; }
  .stage .under { gap: .4rem 1.1rem; font-size: .82rem; }
  .chart { padding: 1.15rem; }
  .bench { grid-template-columns: 3.9rem 1fr; gap: .3rem .7rem; }
  .bench .name { font-size: .8rem; }
  .meter { white-space: nowrap; font-size: .7rem; }
  .seen .bench .meter i { flex: none; width: calc((100% - 4.4rem) * var(--f, 1)); }
  .shell { padding: .95rem 1rem; font-size: .84rem; gap: .7rem; }
  .shell code { white-space: normal; word-break: break-all; }
  .tabs button { padding: .6rem .85rem; font-size: .84rem; min-height: 44px; }
  table.data { font-size: .84rem; }
  table.data th, table.data td { padding: .6rem .5rem; }
  pre { font-size: .76rem; }
  .maker { padding: 1.5rem; }
  .foot .cols a { display: block; padding: .3rem 0; }
  details.mobile nav a { padding: .8rem 1rem; }

  /* comparison: feature names stay at the left and Zyth at the right while the other languages scroll between */
  .compare-wrap { margin: 0 -1.15rem; padding: 0; -webkit-overflow-scrolling: touch; }
  table.compare { min-width: 40rem; font-size: .8rem; }
  table.compare th, table.compare td { padding: .55rem .4rem; }
  table.compare tr:first-child th { font-size: .66rem; letter-spacing: 0; }
  table.compare th[scope=row] { position: sticky; left: 0; z-index: 2; width: 9.5rem; min-width: 9.5rem; white-space: normal; line-height: 1.3; background: #0d0f17; padding-left: 1.15rem; box-shadow: 8px 0 12px -10px #000; }
  table.compare tr:first-child th:first-child { position: sticky; left: 0; z-index: 2; background: #0d0f17; padding-left: 1.15rem; }
  table.compare .zy { position: sticky; right: 0; z-index: 2; background: #17132a; box-shadow: -8px 0 12px -10px #000; }
  table.compare th.zy { background: #17132a; color: var(--z4); -webkit-background-clip: border-box; background-clip: border-box; }
  table.compare td svg { width: 17px; height: 17px; }
  table.compare td.l span, table.compare td.p span { font-size: .64rem; padding: .1rem .35rem; }
  .notes { font-size: .8rem; }
  .chart .swipe { display: block; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: .8rem; }
  .stat { padding: 1.2rem 1.3rem; }
  .stat p { margin-top: .5rem; }
  .foot .cols { gap: 1.5rem 1rem; }
}
.swipe { display: none; color: var(--mute); font-size: .8rem; margin: 0 0 .7rem; }

/* the solar system demo on the home page */
.solar{position:relative;display:block;margin-top:28px;border-radius:18px;overflow:hidden;border:1px solid var(--line);box-shadow:0 30px 80px -30px rgba(255,140,60,.35)}
.solar video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000 url(/assets/solar.jpg) center/cover;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.solar:hover video{transform:scale(1.03)}
.solar .go{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:rgba(8,10,18,.6);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font-weight:600;border:1px solid rgba(255,255,255,.15);white-space:nowrap}
.chatcard{box-shadow:0 30px 80px -30px rgba(34,211,238,.35)}
.chatcard img{display:block;width:100%;height:auto;aspect-ratio:16/9;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.chatcard:hover img{transform:scale(1.03)}
.solar .go svg{width:16px;height:16px}
.solar:hover .go{background:rgba(255,79,216,.35)}
