/* Framecalm
   One deep indigo world lit from above. Huge editorial type that reveals line by line, sections that pin
   while you scroll, line-art PC parts floating in the light. Amber is for actions; mint means done or safe;
   red marks Extreme, always with a 1-2-3 bar meter so color is never the only signal. Onest throughout,
   registry keys in a monospace. */

:root {
  --void: #0A0824;
  --night: #0E0B2E;
  --deep: #1A1757;
  --indigo: #2A2580;
  --glow: #6C66F5;
  --line: #8F8BFF;
  --panel: #161344;
  --panel-2: #1F1B5A;
  --rule: #2A2670;
  --rule-2: #3A358A;
  --paper: #F3F2FF;
  --muted: #B6B3E3;
  --faint: #7E7AB8;
  --amber: #FFB224;
  --amber-hi: #FFC452;
  --mint: #7CF5C0;
  --red: #FF6B6B;
  --safe: var(--mint);
  --adv: var(--amber);
  --ext: var(--red);
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, Consolas, "SF Mono", Menlo, monospace;
  --sans: "Onest", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 20px;
  --max: 1320px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--night); color: var(--paper);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }
::selection { background: var(--amber); color: var(--void); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .82em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--amber); color: var(--void); padding: 8px 14px; border-radius: 6px; z-index: 300; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 40px; } }
section { position: relative; scroll-margin-top: 80px; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; color: var(--paper); font-weight: 500; }
.mega { font-size: clamp(64px, 13.2vw, 220px); line-height: .86; letter-spacing: -.065em; font-weight: 500; }
.mega em { font-style: normal; color: var(--amber); }
.big { font-size: clamp(42px, 6.6vw, 112px); line-height: .92; letter-spacing: -.055em; font-weight: 500; margin-bottom: 36px; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.fine { font-size: 13.5px; color: var(--faint); margin: 0; line-height: 1.45; }
.sub { color: var(--muted); font-size: 19px; max-width: 40em; margin: -12px 0 40px; }

/* line-by-line reveal: each .line clips its inner span, which rises into view */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; will-change: transform; }
.js .line > span { transform: translateY(105%); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .in .line > span, .js .line.in > span { transform: none; transition: transform 1.1s var(--ease); }
.js .in .line:nth-child(2) > span { transition-delay: .08s; }
.js .in .line:nth-child(3) > span { transition-delay: .16s; }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s; }

/* ---------- grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 250; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary { cursor: none; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 7px; height: 7px; background: var(--amber); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(243, 242, 255, .55); transition: width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s; }
.cursor.hover .cursor-ring { width: 70px; height: 70px; background: rgba(255, 178, 36, .12); border-color: var(--amber); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--void); display: none; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 40px; }
.js .loader { display: flex; }
.loader.done { transform: translateY(-100%); transition: transform 1s var(--ease) .1s; }
.loader-line { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 140px; transform: translateY(-50%); }
.loader-line path { fill: none; stroke: var(--amber); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.6s var(--ease) forwards; filter: drop-shadow(0 0 8px rgba(255, 178, 36, .7)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-row { display: flex; justify-content: space-between; align-items: flex-end; }
.loader-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.loader-count { font-size: clamp(80px, 16vw, 220px); line-height: .8; letter-spacing: -.06em; font-weight: 400; color: var(--paper); }

/* ---------- buttons: rounded rectangles, never pills ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; overflow: hidden;
  min-height: 52px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 var(--sans);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn-amber { background: var(--amber); color: var(--void); box-shadow: 0 10px 40px rgba(255, 178, 36, .3); }
.btn-amber:hover { background: var(--amber-hi); box-shadow: 0 14px 60px rgba(255, 178, 36, .5); }
.btn-amber:disabled { background: var(--panel-2); color: var(--faint); cursor: default; box-shadow: none; }
.btn-amber .chip { display: grid; place-items: center; width: 38px; height: 38px; margin-right: -12px; border-radius: 8px; background: var(--void); }
.btn-amber .chip svg { width: 16px; height: 16px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { background: rgba(14, 11, 46, .4); color: var(--paper); border-color: var(--rule-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--line); }
.btn-sm { min-height: 40px; font-size: 14px; border-radius: 10px; padding: 0 16px; }
.btn-lg { min-height: 62px; font-size: 17px; padding: 0 22px 0 26px; }
.btn-lg .chip { width: 44px; height: 44px; }
.btn-amber::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); animation: sheen 5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.magnetic { will-change: transform; }

/* ---------- nav ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.top.solid { background: rgba(14, 11, 46, .72); backdrop-filter: blur(14px); border-bottom-color: rgba(58, 53, 138, .5); }
.top.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -.03em; }
.brand-sm { font-size: 16px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- tier meter ---------- */
.meter { display: inline-flex; gap: 2px; flex: none; vertical-align: middle; }
.meter i { width: 4px; height: 14px; background: var(--rule-2); border-radius: 1px; }
.t-safe i:nth-child(1) { background: var(--safe); }
.t-advanced i:nth-child(-n+2) { background: var(--adv); }
.t-extreme i { background: var(--ext); }

/* ---------- light: beams, stars, floating parts ---------- */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.beams { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; overflow: hidden; }
.beams i { position: absolute; top: -10%; left: 50%; width: 32vw; max-width: 560px; height: 130%; transform-origin: 50% 0; filter: blur(26px); opacity: .5;
  background: linear-gradient(180deg, rgba(190, 186, 255, .5), rgba(108, 102, 245, .14) 45%, transparent 80%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); animation: sweep 16s ease-in-out infinite alternate; }
.beams i:nth-child(1) { --a: -40deg; --b: -14deg; left: 30%; }
.beams i:nth-child(2) { --a: 30deg; --b: 6deg; left: 60%; animation-duration: 19s; animation-delay: -5s; }
.beams i:nth-child(3) { --a: -8deg; --b: 22deg; left: 46%; animation-duration: 23s; animation-delay: -9s; opacity: .35; background: linear-gradient(180deg, rgba(255, 178, 36, .45), rgba(255, 178, 36, .1) 45%, transparent 75%); }
@keyframes sweep { from { transform: translateX(-50%) rotate(var(--a)); } to { transform: translateX(-50%) rotate(var(--b)); } }
.parts { position: absolute; inset: 0; pointer-events: none; }
.part { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; overflow: visible;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--r)); transition: transform .9s var(--ease);
  --f1: #1E1A63; --f2: #2E2992; --st: var(--line); --sl: var(--line);
  filter: drop-shadow(0 0 10px rgba(143, 139, 255, .5)) drop-shadow(0 0 30px rgba(108, 102, 245, .3)); }
.part use { animation: drift 9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); transform-box: fill-box; transform-origin: center; }
.part.hot { --f1: var(--amber); --f2: #FFCB63; --st: #FFE3A6; --sl: #8A5A00; filter: drop-shadow(0 0 14px rgba(255, 178, 36, .8)); }
.part.mint { --f1: var(--mint); --f2: #B4FFDF; --st: #D6FFEE; --sl: #2E8F6A; filter: drop-shadow(0 0 14px rgba(124, 245, 192, .7)); }
@keyframes drift { from { transform: translateY(-10px) rotate(-3deg); } to { transform: translateY(12px) rotate(4deg); } }
@media (max-width: 760px) { .part { --w: 64px !important; opacity: .6; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 60px; overflow: hidden;
  background: radial-gradient(90% 70% at 70% 0%, #2E2990 0%, var(--night) 60%); }
.hero-in { position: relative; z-index: 2; }
.hero .mega { max-width: 9em; }
.hero-foot { display: grid; gap: 28px; margin-top: 48px; align-items: end; }
@media (min-width: 960px) { .hero-foot { grid-template-columns: minmax(0, 1fr) auto; gap: 60px; } }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 32em; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.scroll-cue { position: absolute; right: var(--gutter); top: -40px; display: none; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 60px; background: linear-gradient(var(--amber), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 1200px) { .scroll-cue { display: flex; } }

/* ---------- zoom: the app grows to fill the screen ---------- */
.zoom { height: 220vh; background: linear-gradient(var(--night), var(--void) 40%, var(--night)); }
.zoom-stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.zoom-kicker { font-size: 14px; color: var(--faint); margin: 0 0 18px; }
.zoom-win { margin: 0; width: min(92vw, 1500px); border-radius: 18px; overflow: hidden; border: 1px solid var(--rule-2);
  box-shadow: 0 60px 160px rgba(0, 0, 0, .6), 0 0 120px rgba(108, 102, 245, .35); transform: scale(var(--zs, 1)); will-change: transform; }
.js .zoom-win { --zs: .55; }

/* ---------- one click ---------- */
.auto { display: grid; gap: 56px; align-items: center; padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(100px, 14vw, 200px); }
@media (min-width: 1000px) { .auto { grid-template-columns: 1.05fr 1fr; gap: 80px; } }
.auto-text > p { color: var(--muted); font-size: 19px; max-width: 30em; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; max-width: 30em; }
.ticks li { padding: 14px 0 14px 32px; border-top: 1px solid var(--rule); position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 7px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.ticks b { color: var(--paper); margin-right: 6px; font-weight: 600; }
.plan { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--rule-2); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .45), 0 0 80px rgba(108, 102, 245, .2); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
.plan-head b { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.plan-head span { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 10px 0; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 12px 24px; }
.plan li i { width: 20px; height: 20px; border-radius: 6px; margin-top: 2px; border: 1.5px solid var(--faint); position: relative; transition: background-color .4s, border-color .4s, box-shadow .4s; }
.plan li i.ok { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 14px rgba(255, 178, 36, .5); }
.plan li i.ok::after { content: ""; position: absolute; left: 5px; top: 4px; width: 8px; height: 5px; border-left: 2px solid var(--void); border-bottom: 2px solid var(--void); transform: rotate(-45deg); transition: opacity .3s; }
.js .plan:not(.in) li i.ok { background: transparent; border-color: var(--faint); box-shadow: none; }
.js .plan:not(.in) li i.ok::after { opacity: 0; }
.js .plan.in li:nth-child(2) i { transition-delay: .15s; } .js .plan.in li:nth-child(3) i { transition-delay: .3s; }
.js .plan.in li:nth-child(4) i { transition-delay: .45s; } .js .plan.in li:nth-child(5) i { transition-delay: .6s; }
.plan li b { display: block; font-size: 15.5px; font-weight: 600; }
.plan li span { display: block; font-size: 14px; color: var(--muted); }
.plan li.dropped { opacity: .5; }
.plan-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--amber); background: rgba(255, 178, 36, .06); font-size: 14px; color: var(--muted); }
.plan-foot b { background: var(--amber); color: var(--void); border-radius: 9px; padding: 9px 18px; font-size: 14px; }

/* ---------- categories: a sideways strip ---------- */
.cats { padding-top: 40px; }
.cats-stick { overflow: hidden; }
.js-pinned .cats-stick { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.cats-head { display: grid; gap: 20px; align-items: end; margin-bottom: 40px; }
@media (min-width: 1000px) { .cats-head { grid-template-columns: 1fr 22em; } }
.cats-head .big { margin: 0; }
.cats-head p { color: var(--muted); margin: 0 0 10px; }
.cats-track { display: flex; gap: 20px; padding: 0 var(--gutter) 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cats-track::-webkit-scrollbar { display: none; }
.js-pinned .cats-track { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; padding-bottom: 0; }
.cat-panel { position: relative; flex: none; width: min(78vw, 420px); height: min(56vh, 520px); min-height: 440px; padding: 30px 30px 26px; border-radius: 22px; scroll-snap-align: start;
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 60%); border: 1px solid var(--rule-2); overflow: hidden; display: flex; flex-direction: column; }
.cat-panel::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 120%; height: 80%; background: radial-gradient(closest-side, rgba(108, 102, 245, .35), transparent); pointer-events: none; }
.cat-art { position: absolute; right: -10px; top: 24px; width: 200px; height: 140px; opacity: .9; --f1: #1E1A63; --f2: #2E2992; --st: var(--line); --sl: var(--line); filter: drop-shadow(0 0 16px rgba(143, 139, 255, .5)); }
.cat-n { margin: 0; color: var(--muted); font-size: 15px; }
.cat-n b { font-size: 64px; line-height: 1; letter-spacing: -.05em; font-weight: 400; color: var(--paper); display: block; }
.cat-panel h3 { font-size: 30px; letter-spacing: -.035em; margin: 22px 0 8px; }
.cat-about { color: var(--muted); font-size: 15px; }
.cat-panel ul { list-style: none; margin: auto 0 0; padding: 0; }
.cat-panel li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.cat-tiers { display: flex; gap: 14px; margin: 14px 0 0; font-size: 12.5px; }
.t-s { color: var(--safe); } .t-a { color: var(--adv); } .t-e { color: var(--ext); }

/* ---------- try it ---------- */
.pick { padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(100px, 14vw, 200px); }
.pick-grid { display: grid; gap: 50px; align-items: start; }
@media (min-width: 1000px) { .pick-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; } }
.pick-grid > div > p { color: var(--muted); font-size: 19px; max-width: 28em; }
.console { background: var(--panel); border: 1px solid var(--rule-2); border-radius: 20px; overflow: hidden; font-size: 15px; box-shadow: 0 40px 120px rgba(0, 0, 0, .45), 0 0 80px rgba(108, 102, 245, .18); }
.console-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 24px 6px; }
.console-title { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.console-count { color: var(--muted); font-size: 14px; }
.console-count b { color: var(--paper); font-size: 20px; }
.console-tabs { display: flex; gap: 2px; padding: 8px 16px 0; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.console-tabs button { background: none; border: 0; color: var(--muted); font: 500 14px var(--sans); padding: 10px 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.console-tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--amber); }
.console-rows { list-style: none; margin: 0; padding: 6px 0; }
.trow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 24px; transition: background-color .3s; }
.trow .meter { align-self: start; margin-top: 4px; }
.trow-text { display: flex; flex-direction: column; min-width: 0; }
.trow-name { font-weight: 500; }
.trow-key { color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-height: 0; opacity: 0; transition: max-height .4s var(--ease), opacity .4s; }
.trow-key .plus { font-family: var(--sans); font-size: 12px; }
.trow.staged { background: rgba(255, 178, 36, .07); box-shadow: inset 3px 0 0 var(--amber); }
.trow.staged .trow-key, .trow.on .trow-key { max-height: 24px; opacity: 1; }
.trow.staged .trow-key code { color: var(--amber); }
.trow.on .trow-key code { color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; border-radius: 13px; flex: none; cursor: pointer; background: var(--void); border: 1px solid var(--rule-2); padding: 0; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .4s var(--ease), background-color .3s; }
.switch[aria-checked="true"] { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 16px rgba(255, 178, 36, .6); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--void); }
.console-foot { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--rule); transition: background-color .3s; }
.console-foot.live { background: rgba(255, 178, 36, .06); border-top-color: var(--amber); }
.foot-text { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.4; min-width: 0; }
.foot-text b { color: var(--paper); font-size: 15px; }
.console-log { list-style: none; margin: 0; padding: 0 24px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.console-log.open { max-height: 260px; padding: 12px 24px 18px; border-top: 1px solid var(--rule); }
.console-log li { display: flex; gap: 10px; animation: pop .35s var(--ease) both; }
.console-log li::before { content: ""; width: 6px; height: 6px; margin-top: 7px; flex: none; border-radius: 1px; background: var(--mint); }
@keyframes pop { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- stacking cards ---------- */
.stack-sec { padding-bottom: clamp(60px, 8vw, 120px); }
.stack { display: grid; gap: 30px; }
.card { position: sticky; top: calc(96px + var(--i) * 18px); display: grid; gap: 28px; padding: 32px; border-radius: 26px; align-items: center;
  background: linear-gradient(160deg, #221E66, var(--panel) 70%); border: 1px solid var(--rule-2); box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); transform-origin: 50% 0; }
@media (min-width: 1000px) { .card { grid-template-columns: .7fr 1.3fr; gap: 50px; padding: 44px; } }
.card h3 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.045em; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 18px; margin: 0; }
.card figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }

/* ---------- games ---------- */
.games { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.games-head { display: grid; gap: 20px; align-items: end; margin-bottom: 40px; }
@media (min-width: 1000px) { .games-head { grid-template-columns: 1fr 24em; } }
.games-head .big { margin: 0; }
.games-head p { color: var(--muted); margin: 0 0 10px; }
.marquees { transform: rotate(-3deg); margin: 20px -40px 0; display: grid; gap: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track, .marquees.paused .marquee-track { animation-play-state: paused; }
.marquee-track .dup { display: flex; }
.marquee img { width: clamp(130px, 13vw, 190px); height: auto; aspect-ratio: 2 / 3; object-fit: cover; margin-right: 18px; border-radius: 14px; border: 1px solid var(--rule-2); background: var(--panel); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: transform .5s var(--ease); }
.marquee img:hover { transform: translateY(-8px) scale(1.03); }
@keyframes slide { to { transform: translateX(-50%); } }
.strip-toggle { display: block; margin: 34px auto 0; background: none; border: 1px solid var(--rule-2); color: var(--muted); font: 500 13px var(--sans); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.strip-toggle:hover { color: var(--paper); border-color: var(--line); }

/* ---------- levels ---------- */
.presets { padding-bottom: clamp(100px, 14vw, 180px); }
.preset-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .preset-grid { grid-template-columns: repeat(3, 1fr); } }
.preset { position: relative; border: 1px solid var(--rule-2); border-radius: 22px; padding: 30px 30px 24px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.preset::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; }
.p-safe::before { background: var(--safe); } .p-advanced::before { background: var(--adv); } .p-extreme::before { background: var(--ext); }
.p-safe:hover { box-shadow: 0 30px 80px rgba(124, 245, 192, .14); transform: translateY(-8px); }
.p-advanced:hover { box-shadow: 0 30px 80px rgba(255, 178, 36, .14); transform: translateY(-8px); }
.p-extreme:hover { box-shadow: 0 30px 80px rgba(255, 107, 107, .16); transform: translateY(-8px); }
.preset h3 { font-size: 34px; margin: 20px 0 4px; letter-spacing: -.04em; }
.preset-n { color: var(--muted); margin: 0 0 12px; }
.preset-n b { color: var(--paper); font-size: 20px; }
.preset > p { color: var(--muted); font-size: 15.5px; }
.preset-sub { font-size: 13.5px; color: var(--faint) !important; margin: 18px 0 6px; }
.preset ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.preset li { padding: 9px 0; border-top: 1px solid var(--rule); }

/* ---------- catalog ---------- */
.catalog { padding-bottom: clamp(100px, 12vw, 160px); }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; position: sticky; top: 72px; z-index: 5; background: rgba(14, 11, 46, .9); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid var(--rule); }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; border-right: 1px solid var(--rule-2); color: var(--muted); font: 500 14px var(--sans); padding: 9px 14px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button span { color: var(--faint); margin-left: 4px; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--paper); }
.search input { width: min(320px, 100%); background: var(--panel); border: 1px solid var(--rule-2); border-radius: 10px; color: var(--paper); font: 15px var(--sans); padding: 10px 12px; }
.search input:focus { outline: none; border-color: var(--amber); }
@media (max-width: 560px) { .search, .search input { width: 100%; } .seg { width: 100%; } .seg button { flex: 1; padding: 9px 6px; } }
.tier-key { display: grid; gap: 8px 24px; margin: 0 0 40px; color: var(--muted); font-size: 14.5px; }
@media (min-width: 860px) { .tier-key { grid-template-columns: repeat(3, 1fr); } }
.tier-key p { margin: 0; display: flex; gap: 10px; align-items: baseline; }
.tier-key b { color: var(--paper); margin-right: 2px; }
.cat { display: grid; gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--rule); }
@media (min-width: 960px) { .cat { grid-template-columns: 300px minmax(0, 1fr); } }
.cat-head h3 { font-size: 26px; letter-spacing: -.035em; }
.cat-head p { color: var(--faint); font-size: 14.5px; margin: 8px 0 0; }
.tw-list { list-style: none; margin: 0; padding: 0; }
.tw + .tw { border-top: 1px solid var(--rule); }
.tw summary { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 4px; cursor: pointer; list-style: none; transition: padding .4s var(--ease); }
.tw summary::-webkit-details-marker { display: none; }
.tw summary:hover { padding-left: 12px; }
.tw summary:hover .tw-name { color: var(--amber); }
.tw-name { font-weight: 500; transition: color .3s; }
.tw-impact { color: var(--faint); font-size: 14px; }
.tw-tier { font-size: 13px; font-weight: 600; width: 70px; text-align: right; }
.tw[data-tier="safe"] .tw-tier { color: var(--safe); }
.tw[data-tier="advanced"] .tw-tier { color: var(--adv); }
.tw[data-tier="extreme"] .tw-tier { color: var(--ext); }
@media (max-width: 640px) { .tw summary { grid-template-columns: 22px minmax(0, 1fr) auto; } .tw-impact { display: none; } }
.tw-body { padding: 0 4px 18px 38px; color: var(--muted); font-size: 15.5px; max-width: 760px; }
.tw-trade b { color: var(--paper); }
.tw-keys { list-style: none; margin: 0; padding: 12px 14px; background: var(--void); border: 1px solid var(--rule); border-radius: 12px; }
.tw-keys li { display: flex; flex-direction: column; padding: 4px 0; }
.tw-keys code { color: var(--paper); word-break: break-all; }
.tw-keys span { font-size: 13px; color: var(--faint); }
.tw-keys span code { color: var(--amber); }
.empty { color: var(--muted); }

/* ---------- left out ---------- */
.leftout { padding-bottom: clamp(100px, 12vw, 160px); }
.leftout-list { display: grid; gap: 0 48px; margin: 0; }
@media (min-width: 860px) { .leftout-list { grid-template-columns: 1fr 1fr; } }
.leftout-list div { border-top: 1px solid var(--rule); padding: 20px 0; }
.leftout-list dt { font-weight: 500; font-size: 20px; letter-spacing: -.02em; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.leftout-list dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- safety: sticky title, steps scroll by ---------- */
.safety { display: grid; gap: 40px; padding-bottom: clamp(100px, 12vw, 160px); }
@media (min-width: 1000px) { .safety { grid-template-columns: 1fr 1fr; gap: 80px; } .safety-side { position: sticky; top: 120px; align-self: start; } }
.safety-side p { color: var(--muted); font-size: 19px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 34px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 80px 1fr; gap: 6px 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-size: 44px; line-height: 1; letter-spacing: -.05em; color: var(--faint); font-weight: 400; }
.steps li:nth-child(4)::before { color: var(--amber); }
.steps h3 { font-size: 26px; letter-spacing: -.03em; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }
.steps li.aside { display: block; counter-increment: none; }
.steps li.aside::before { content: none; }
.steps li.aside p { color: var(--faint); font-size: 15px; }

/* ---------- faq ---------- */
.faq { padding-bottom: clamp(100px, 12vw, 160px); }
.faq-list { max-width: 940px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 26px 40px 26px 0; font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; list-style: none; position: relative; transition: color .3s; }
.faq summary:hover { color: var(--amber); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 46em; font-size: 17px; }

/* ---------- the end ---------- */
.end { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0 0; background: radial-gradient(90% 70% at 50% 0%, #2E2990, var(--void) 70%); }
.end-in { position: relative; z-index: 2; }
.end .big { max-width: 12em; }
.end-cta { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin: 10px 0 70px; }
.end-cta .fine a { color: var(--muted); }
.end-nav { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 24px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.end-nav a { color: var(--muted); text-decoration: none; }
.end-nav a:hover { color: var(--paper); }
.wordmark { position: relative; z-index: 1; font-size: 22.5vw; line-height: .78; letter-spacing: -.07em; font-weight: 600; text-align: center; white-space: nowrap; margin-bottom: -2.4vw;
  background: linear-gradient(180deg, rgba(243, 242, 255, .95), rgba(108, 102, 245, .25) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- tweaks page ---------- */
.tweaks-intro { padding-top: 150px; padding-bottom: 40px; }
.tweaks-page .presets { padding-bottom: 80px; }
.tweaks-page .catalog .big, .tweaks-page .catalog > .sub { display: none; }
body:has(.tweaks-page) .top { background: rgba(14, 11, 46, .85); backdrop-filter: blur(14px); }
.plan li i.ok { transition: background-color .35s, border-color .35s, box-shadow .35s; }

/* ---------- guides, privacy, 404 ---------- */
body:has(.article) .top { background: rgba(14, 11, 46, .9); border-bottom-color: var(--rule); }
.article { max-width: 780px; margin: 0 auto; padding: 130px var(--gutter) 80px; }
.article h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: .98; letter-spacing: -.05em; margin: 14px 0 20px; }
.article h2 { font-size: clamp(26px, 3vw, 36px); margin: 48px 0 14px; letter-spacing: -.035em; }
.article h3 { margin: 28px 0 10px; }
.article p, .article li { color: #D6D4F5; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; }
.article th, .article td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.article th { color: var(--paper); }
.label { font-size: 14px; color: var(--faint); margin: 0; }
.label a { text-decoration: none; }
.muted { color: var(--muted); }
.accent { color: var(--amber); }
.tldr { border-left: 3px solid var(--amber); background: var(--panel); padding: 18px 22px; margin: 24px 0 32px; border-radius: 0 12px 12px 0; }
.tldr p { margin: 0; }
.tldr-h { font-weight: 600; color: var(--paper) !important; margin-bottom: 4px !important; }
.guide-list { list-style: none; padding: 0 !important; }
.guide-list li { border-top: 1px solid var(--rule); padding: 16px 0; margin: 0; }
.guide-list li a { font-weight: 500; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.guide-list li a:hover { color: var(--amber); }
.guide-list li p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.cta-box { display: grid; grid-template-columns: auto 1fr; gap: 18px 20px; align-items: center; margin: 48px 0; padding: 26px; background: var(--panel); border: 1px solid var(--rule-2); border-radius: 20px; }
.cta-box h2 { margin: 0 0 6px; font-size: 22px; }
.cta-box p { margin: 0; font-size: 15px; color: var(--muted); }
.cta-box .btn { grid-column: 1 / -1; justify-self: start; }
.btn-primary { background: var(--amber); color: var(--void); }
.btn-primary:hover { background: var(--amber-hi); }
.footer { background: var(--void); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--paper); }

/* ---------- calm version: no loader, no scroll-jacking, no zoom; gentle fades and drifting light stay ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  .js .zoom-win { --zs: 1; }
  .zoom { height: auto; padding: 60px 0; }
  .zoom-stick { position: static; height: auto; }
  .grain { animation: none; }
}

/* GitHub star buttons */
.nav-cta { display: flex; gap: 8px; align-items: center; }
.star-btn { gap: 8px; }
.star-btn svg { color: var(--amber); flex: none; }
.star-count { font-weight: 600; padding-left: 9px; margin-left: 1px; border-left: 1px solid var(--rule-2); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .nav-cta .star-btn span { display: none; } }

/* tweak, category, download and FAQ pages */
.article pre { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 14px 0 22px; }
.article pre code { font-size: 13.5px; line-height: 1.7; color: var(--paper); white-space: pre; }
.article .facts th { width: 34%; font-weight: 500; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.table-scroll td code { word-break: break-all; }
.tw-meta .meter { vertical-align: middle; margin-right: 4px; }
.tw-more { margin-top: 10px; font-size: 14px; }
.cat-head h3 a { color: inherit; text-decoration: none; }
.cat-head h3 a:hover { color: var(--amber); }
.changes { list-style: none; padding: 0 !important; margin: 16px 0; }
.changes li { border-top: 1px solid var(--rule); padding: 14px 0; margin: 0; display: grid; gap: 6px; }
.changes .where { word-break: break-all; color: var(--paper); }
.changes span { font-size: 15px; color: var(--muted); }
