/* Hero layout: 1 --u = 1px of a 720×540 design frame, scaled to fit one screen. */
:root {
  --u: min(calc(100vw / 720), calc(100vh / 540));
  --edge: calc(42 * var(--u));
  --bg: #0b1222; --card: rgba(20, 30, 54, .72); --line: #22304f;
  --fg: #eef2fb; --dim: #9ba7c2; --gold: #f6b35c; --red: #ef6b5b; --green: #7fcf8a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── hero: the looping coin video, one screen tall ── */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
#bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
#fade { position: absolute; inset: 0; background: #000; pointer-events: none; opacity: 1; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 1; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(26 * var(--u)) var(--edge) 0;
  height: calc(55 * var(--u));
  transition: background .3s, height .3s, padding .3s;
}
.nav.solid { background: rgba(11, 18, 34, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: calc(70 * var(--u)); padding-bottom: calc(15 * var(--u)); border-bottom: 1px solid rgba(255,255,255,.06); }
.logo { font-family: Montserrat, sans-serif; font-weight: 700; font-size: max(calc(21 * var(--u)), 17px); letter-spacing: -.01em; }
.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: calc(26 * var(--u)); top: calc(31 * var(--u)); }
.links a { font-size: max(calc(12.5 * var(--u)), 12px); font-weight: 500; opacity: .9; transition: opacity .2s; }
.links a:hover { opacity: 1; }
.links a { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.links a svg { width: max(calc(13 * var(--u)), 13px); height: max(calc(13 * var(--u)), 13px); flex: none; }
.links a.ext { opacity: .75; }
.links a.ext:hover { opacity: 1; color: var(--gold, #f6b35c); }
.btn-ghost {
  font-size: max(calc(10.5 * var(--u)), 11px); font-weight: 500;
  padding: 0 calc(12 * var(--u)); height: max(calc(29 * var(--u)), 28px); display: inline-flex; align-items: center;
  border-radius: calc(7 * var(--u)); background: rgba(70, 70, 70, .72); backdrop-filter: blur(6px); transition: background .2s;
}
.btn-ghost:hover { background: rgba(95, 95, 95, .8); }

.slide { position: absolute; left: var(--edge); right: var(--edge); bottom: calc(41 * var(--u)); z-index: 2; }
.slide h1 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: max(calc(62 * var(--u)), 40px); line-height: .92; letter-spacing: -.012em; }
.slide-b h1 { line-height: .89; }
.ln { display: block; will-change: opacity; }
.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: calc(12 * var(--u)); }
.slide-a .row { margin-top: calc(-28 * var(--u)); }
.slide-b .row { margin-top: calc(-6 * var(--u)); }
.sub { font-size: max(calc(13.5 * var(--u)), 13px); color: rgba(255,255,255,.82); padding-bottom: calc(2 * var(--u)); white-space: nowrap; }
.store span, .btn-white, .btn-ghost, .links a { white-space: nowrap; }
.slide-a .sub { margin-top: calc(40 * var(--u)); }
.actions { display: flex; gap: calc(10 * var(--u)); }
.btn-white {
  background: #fff; color: #111; font-weight: 600; font-size: max(calc(13 * var(--u)), 13px);
  height: max(calc(39 * var(--u)), 40px); padding: 0 calc(31 * var(--u)); border-radius: calc(9 * var(--u));
  display: inline-flex; align-items: center; transition: background .2s;
}
.btn-white:hover { background: #eee; }
.store {
  display: inline-flex; align-items: center; gap: calc(9 * var(--u));
  height: max(calc(43 * var(--u)), 42px); padding: 0 calc(14 * var(--u)) 0 calc(12 * var(--u));
  border-radius: calc(8 * var(--u)); background: rgba(40, 40, 40, .78); backdrop-filter: blur(6px);
  font-size: max(calc(13 * var(--u)), 12.5px); letter-spacing: -.01em; font-weight: 500; line-height: 1.05; transition: background .2s;
}
.store:hover { background: rgba(60, 60, 60, .85); }
.store svg { width: max(calc(17 * var(--u)), 16px); height: max(calc(17 * var(--u)), 16px); flex: none; }
.store small { display: block; font-size: max(calc(7 * var(--u)), 8px); opacity: .8; margin-bottom: 1px; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 12px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* ── content sections ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section.block { padding: 120px 0; scroll-margin-top: 40px; }
section.block + section.block { border-top: 1px solid var(--line); }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.block h2 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.015em; margin: 14px 0 18px; text-wrap: balance; }
.lead { color: var(--dim); font-size: 18px; line-height: 1.6; max-width: 62ch; }
.lead strong, .card strong { color: var(--fg); font-weight: 600; }
.lead em { color: var(--fg); }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; margin-top: 56px; }
.node { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.node.key { border-color: rgba(246,179,92,.55); background: linear-gradient(160deg, rgba(246,179,92,.12), var(--card) 60%); }
.node small { color: var(--dim); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.node h3 { font-family: Montserrat, sans-serif; font-size: 21px; margin: 8px 0 6px; }
.node p { color: var(--dim); font-size: 15px; line-height: 1.55; }
.arrow { align-self: center; color: var(--gold); font-size: 22px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.principles h4 { font-size: 16px; margin-bottom: 6px; }
.principles p { color: var(--dim); font-size: 15px; line-height: 1.6; }

.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.card .val { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 40px; color: var(--gold); line-height: 1; }
.card .val span { font-size: 16px; font-weight: 700; color: var(--dim); margin-left: 4px; }
.card code { display: inline-block; margin: 16px 0 8px; font: 13px "JetBrains Mono", ui-monospace, monospace; color: var(--fg); }
.card p { color: var(--dim); font-size: 15px; line-height: 1.55; }
.card.always { border-style: dashed; }
.card.always .val { color: var(--green); font-size: 30px; }

.term { margin-top: 56px; background: rgba(8, 13, 26, .85); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.term-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b3654; }
.term pre { padding: 22px 22px 26px; overflow-x: auto; font: 14px/1.85 "JetBrains Mono", ui-monospace, monospace; color: var(--dim); }
.term .l { display: block; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.term.in .l { opacity: 1; transform: none; }
.term .you { color: var(--fg); } .ok { color: var(--green); } .no { color: var(--red); } .gold { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .term .l { opacity: 1; transform: none; transition: none; } }

.install { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.code { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; }
.code h3 { font-size: 15px; margin-bottom: 12px; }
.code pre { font: 13px/1.7 "JetBrains Mono", ui-monospace, monospace; color: var(--fg); overflow-x: auto; white-space: pre; }
.code .c { color: var(--dim); }
.tools { margin-top: 24px; color: var(--dim); font-size: 15px; line-height: 2.1; }
.tools code { font: 13px "JetBrains Mono", ui-monospace, monospace; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin-right: 4px; white-space: nowrap; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.mode .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(127,207,138,.14); color: var(--green); }
.mode .tag.exp { background: rgba(246,179,92,.14); color: var(--gold); }
.mode h3 { font-family: Montserrat, sans-serif; font-size: 24px; margin: 14px 0 10px; }
.mode p { color: var(--dim); font-size: 15px; line-height: 1.6; }
.mode p + p { margin-top: 10px; }

.cta-end { text-align: center; }
.cta-end h2 { margin-left: auto; margin-right: auto; }
.cta-end .lead { margin: 0 auto 32px; }
.cta-end .btn-white { height: 48px; padding: 0 32px; border-radius: 10px; font-size: 15px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); justify-self: center; }
  .principles, .install, .modes { grid-template-columns: 1fr; }
  section.block { padding: 88px 0; }
}
@media (max-width: 600px) {
  .links { display: none; }
  .row { flex-direction: column; align-items: flex-start; }
  .sub { white-space: normal; }
  .slide-a .row, .slide-b .row { margin-top: 12px; }
  .slide-a .sub { margin-top: 10px; }
  .slide { bottom: 64px; }
  .wrap { padding: 0 16px; }
  .term pre { font-size: 12px; padding: 18px 16px; }
}
.term .c { color: #66728f; }
@media (max-width: 600px) { .term pre { white-space: pre-wrap; } .term .l { padding-left: 2ch; text-indent: -2ch; } }
@media (max-width: 900px) { .links a.ext span { display: none; } .links a.ext svg { width: 15px; height: 15px; } }

.token-bar { position: relative; z-index: 3; background: #0f1729; border-top: 1px solid rgba(246,179,92,.25); border-bottom: 1px solid rgba(255,255,255,.06); padding: 18px 0; }
.token-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.token-bar .tk { font-family: Montserrat, sans-serif; font-weight: 800; color: var(--gold); }
.token-bar .ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(246,179,92,.55); background: rgba(246,179,92,.07); color: var(--fg); font: inherit; cursor: pointer; }
.token-bar .ca code { font-family: "JetBrains Mono", Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; text-align: left; }
.token-bar .copy { font-size: 12px; color: var(--gold); white-space: nowrap; }
.token-bar .tlinks { display: flex; gap: 14px; }
.token-bar .tlinks a { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.token-bar .note { flex-basis: 100%; font-size: 12.5px; color: var(--dim); }

/* ── Longplay-style hero: 3D meadow (hero.js), viewfinder frame, frosted pills, counting curtain ── */
.lp-curtain { position: fixed; inset: 0; z-index: 50; background: #070b16; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: transform 1.1s cubic-bezier(.77,0,.18,1); }
.lp-curtain.lift { transform: translateY(-100%); }
.lp-curtain.gone { display: none; }
.lp-count { font: 300 clamp(64px, 12vw, 148px)/1 Inter, system-ui, sans-serif; color: #eef3ff; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lp-count-label { font: 500 11px Inter, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: rgba(238,243,255,.45); }

.lp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; transition: background .35s, backdrop-filter .35s; }
.lp-nav.solid { background: rgba(9, 12, 24, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lp-logo { font: 500 17px Inter, sans-serif; color: #fff; letter-spacing: -.01em; }
.lp-logo span { color: rgba(255,255,255,.6); }
.lp-pills { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.lp-pill, .lp-pills a { display: inline-flex; align-items: center; gap: 6px; height: 29px; padding: 0 14px; border-radius: 7px; font: 500 12px Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #fff; white-space: nowrap;
  background: rgba(120, 150, 255, .22); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); transition: background .2s, border-color .2s; }
.lp-pill:hover, .lp-pills a:hover { background: rgba(140, 170, 255, .34); border-color: rgba(255,255,255,.3); }
.lp-pills a svg { width: 13px; height: 13px; }
.lp-cta-top { background: rgba(20, 28, 60, .35); }

.lp-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: linear-gradient(#2c4fd8, #7f97ee 55%, #f3bfae); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.lp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

.lp-frame { position: absolute; inset: 58px 22px 54px; pointer-events: none; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); z-index: 2; }
.lp-frame i { position: absolute; width: 14px; height: 14px; border-color: rgba(255,255,255,.85); border-style: solid; border-width: 0; }
.lp-frame .tl { left: 0; top: -1px; border-left-width: 1.5px; border-top-width: 1.5px; }
.lp-frame .tr { right: 0; top: -1px; border-right-width: 1.5px; border-top-width: 1.5px; }
.lp-frame .bl { left: 0; bottom: -1px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.lp-frame .br { right: 0; bottom: -1px; border-right-width: 1.5px; border-bottom-width: 1.5px; }

.lp-copy { position: absolute; left: 0; right: 0; top: clamp(90px, 11vh, 130px); z-index: 3; text-align: center; pointer-events: none; padding: 0 20px; }
.lp-copy h1 { font-weight: 400; }
.lp-script { display: block; font: 700 clamp(48px, 7.4vw, 104px)/1.05 "Dancing Script", cursive; color: #fff; text-shadow: 0 2px 30px rgba(20,30,90,.35); }
.lp-second { display: block; font: 300 clamp(26px, 4vw, 56px)/1.15 Inter, system-ui, sans-serif; color: rgba(255,255,255,.62); letter-spacing: -.01em; margin-top: 2px; }

.lp-bottom { position: absolute; left: 0; right: 0; bottom: clamp(72px, 10vh, 100px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 20px; text-align: center; }
.lp-sub { max-width: 560px; font: 500 15px/1.5 Inter, sans-serif; color: rgba(255,255,255,.88); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.lp-start { display: inline-flex; align-items: center; height: 46px; padding: 4px 4px 4px 26px; gap: 18px; border-radius: 12px; font: 500 14px Inter, sans-serif; color: #fff;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); transition: background .2s, transform .2s; }
.lp-start:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }
.lp-start i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: rgba(15,20,45,.55); font-style: normal; font-size: 18px; }

/* reveal: copy blurs in once the curtain lifts */
.lp-script, .lp-second, .lp-sub, .lp-start, .lp-frame, .lp-nav { transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
body:not(.revealed) .lp-script, body:not(.revealed) .lp-second, body:not(.revealed) .lp-sub, body:not(.revealed) .lp-start { opacity: 0; filter: blur(18px); transform: translateY(14px); }
body:not(.revealed) .lp-frame { opacity: 0; transform: scale(1.04); }
body:not(.revealed) .lp-nav { opacity: 0; }
.lp-second { transition-delay: .25s; } .lp-sub { transition-delay: .5s; } .lp-start { transition-delay: .65s; }
@media (prefers-reduced-motion: reduce) { .lp-curtain { display: none; } .lp-script, .lp-second, .lp-sub, .lp-start, .lp-frame, .lp-nav { transition: none; } }

@media (max-width: 760px) {
  .lp-pills { display: none; }
  .lp-frame { inset: 56px 12px 40px; }
  .lp-sub { font-size: 14px; }
  .lp-bottom { bottom: 64px; }
}
#scene-fg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; filter: blur(6px); z-index: 1; }
/* ?scene: the meadow on its own, no interface */
body.pure { overflow: hidden; }
body.pure .lp-nav, body.pure .lp-frame, body.pure .lp-copy, body.pure .lp-bottom, body.pure .lp-curtain, body.pure main, body.pure footer { display: none !important; }
body.pure .lp-hero::after { display: none; }
body.pure #scene { cursor: default; }
/* hero photo layer (fx.js draws the fireflies + screen glow on the canvas above it) */
.lp-bg { position: absolute; inset: -2%; z-index: 0; transform-origin: 46% 60%; will-change: transform; }
.lp-bg img, .lp-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lp-bg img { object-fit: cover; object-position: 46% 60%; }
.lp-hero { background: #0d1426; }
.lp-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(6,10,24,.35), transparent 30%, transparent 70%, rgba(6,10,24,.25)); }
body.pure .lp-hero::before { display: none; }

/* sections below the hero: the same night as the photo, a faint star field and the TV's warm glow far off */
html { background: var(--bg); } body { background: transparent; }
/* the meadow keeps going behind every section: a fixed, softly blurred and darkened copy of the hero photo */
body::before { content: ""; position: fixed; inset: -40px; z-index: -2; pointer-events: none;
  background: var(--meadow-bg, url("media/meadow.jpg")) 50% 62% / cover no-repeat, #0d1426; filter: blur(2.5px) brightness(.6) saturate(1.1); }
main { position: relative; isolation: isolate;
  background: linear-gradient(rgba(8,12,24,.15), rgba(8,12,24,.22) 600px, rgba(8,12,24,.3) 70%, rgba(8,12,24,.6)); }
main::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .25;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 260px 40px, rgba(255,236,190,.65), transparent 60%),
    radial-gradient(1px 1px at 330px 170px, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 90px 220px, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 200px 260px, rgba(190,220,255,.55), transparent 60%);
  background-size: 380px 300px; }
footer { background: rgba(8,12,24,.75); }
.card, .node, .code { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lp-hero::after { height: 26%; background: linear-gradient(transparent, rgba(8,12,24,.62)); }
body.pure::before { display: none; }

/* scroll stage: the hero stays pinned while the camera flies into the TV screen */
.lp-stage { position: relative; height: 260vh; }
.lp-hero { position: sticky; top: 0; background: transparent; }
.lp-hero::after { display: none; }
.lp-bg { inset: 0; transform: none; }
.lp-bg img { transform-origin: 0 0; }
.lp-bg.gl-on img { visibility: hidden; }
.lp-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fffaf0 0%, #ffe3a6 35%, #ffb04a 75%, #f08a2e 100%); }
.lp-scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; font: 500 11px Inter, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.6); pointer-events: none; white-space: nowrap; }
.lp-scroll-hint::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 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; } }
body.pure .lp-stage { height: 100vh; }
body.pure .lp-scroll-hint, body.pure .lp-ca { display: none; }
#gl { cursor: default; }
/* nav: plain text straight on the scene, no bars or pill backgrounds */
.lp-nav, .lp-nav.solid { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lp-pill, .lp-pills a { background: transparent !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0 10px; text-shadow: 0 1px 10px rgba(0,0,0,.55); opacity: .82; position: relative; }
.lp-pill:hover, .lp-pills a:hover { opacity: 1; }
.lp-pills a::after, .lp-pill::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.lp-pills a:hover::after, .lp-pill:hover::after { transform: scaleX(1); }
.lp-logo { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.lp-cta-top { opacity: 1; font-weight: 600; }
.lp-scroll-hint { display: none; }

/* contract address pill */
.lp-ca { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 6px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: border-color .3s, box-shadow .3s; }
.lp-ca:hover { border-color: rgba(246,179,92,.55); box-shadow: 0 10px 40px rgba(0,0,0,.35), 0 0 30px rgba(246,179,92,.25), inset 0 1px 0 rgba(255,255,255,.2); }
.lp-ca-coin { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 10px rgba(246,179,92,.55)); animation: coin 6s ease-in-out infinite; }
.lp-ca-coin svg { width: 100%; height: 100%; display: block; }
@keyframes coin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.lp-ca-tick { font: 800 14px Montserrat, sans-serif; color: #ffd28a; letter-spacing: .02em; }
.lp-ca-sep { width: 1px; height: 20px; background: rgba(255,255,255,.2); }
.lp-ca-label { font: 600 10px Inter, sans-serif; letter-spacing: .22em; color: rgba(255,255,255,.55); }
.lp-ca-addr { font: 500 13px "JetBrains Mono", ui-monospace, monospace; color: #fff; }
.lp-ca-copy { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 11px; border-radius: 999px; border: 0; cursor: pointer; font: 600 12px Inter, sans-serif; color: #2a1606;
  background: linear-gradient(135deg, #ffe2a0, #f6b35c 60%, #e2913c); transition: transform .15s, filter .2s; }
.lp-ca-copy svg { width: 14px; height: 14px; }
.lp-ca-copy:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.lp-ca.copied .lp-ca-copy { background: linear-gradient(135deg, #b8f5c4, #7fcf8a); }
.lp-ca-buy { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font: 600 12px Inter, sans-serif; color: #fff; border: 1px solid rgba(255,255,255,.25); }
.lp-ca-buy[hidden] { display: none; }
.lp-ca.soon .lp-ca-addr { color: rgba(255,255,255,.75); font-family: Inter, sans-serif; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.lp-ca.soon .lp-ca-addr::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f6b35c; box-shadow: 0 0 0 0 rgba(246,179,92,.7); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(246,179,92,.7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(246,179,92,0); } }
.lp-ca.soon .lp-ca-copy { opacity: .45; cursor: default; }
@media (max-width: 760px) { .lp-ca { bottom: 14px; gap: 8px; } .lp-ca-label, .lp-ca-sep { display: none; } .lp-bottom { bottom: 76px; } }

/* page 2 rises out of the flash instead of after an empty screen */
main { z-index: 5; margin-top: -64vh; background: linear-gradient(transparent, rgba(8,12,24,.2) 64vh, rgba(8,12,24,.25) 70%, rgba(8,12,24,.6)) !important; }
#how { padding-top: 40px; border-top: 0; }
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
/* no navy rules: section dividers and footer line vanish, card edges become a faint glass edge */
section.block + section.block { border-top-color: transparent; }
footer { border-top-color: transparent; }
.card, .node, .code, .term, .term-bar, .tools code { border-color: rgba(255,255,255,.07) !important; }
td { border-top-color: rgba(255,255,255,.06); }
/* ── type: Instrument Serif headlines, Geist text, Geist Mono for code ── */
body, .lp-nav, .lp-pills a, .lp-pill, .lp-logo, .lp-sub, .lp-start, .lp-count-label, .lp-ca-copy, .lp-ca-buy, .lp-ca-label { font-family: Geist, Inter, system-ui, sans-serif; }
.lp-second { font-family: Geist, Inter, sans-serif; font-weight: 300; letter-spacing: -.02em; }
.lp-count { font-family: Geist, Inter, sans-serif; font-weight: 200; }
.lp-ca-tick { font-family: Geist, sans-serif; font-weight: 700; letter-spacing: 0; }
.lp-ca-addr, code, pre, .term pre, .code pre, .card code, .tools code { font-family: "Geist Mono", "JetBrains Mono", ui-monospace, monospace !important; }
.eyebrow { font-family: "Geist Mono", monospace; font-weight: 500; font-size: 12px; letter-spacing: .24em; }
.block h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(46px, 6.4vw, 84px); line-height: .95; letter-spacing: -.015em; margin: 16px 0 22px; }
.block h2::first-line { font-style: normal; }
.lead { font-size: 18px; line-height: 1.65; color: rgba(238,242,251,.72); font-weight: 400; }
.node h3, .mode h3, .code h3, .principles h4 { font-family: Geist, sans-serif; font-weight: 600; letter-spacing: -.01em; }
.node h3 { font-size: 20px; } .mode h3 { font-size: 26px; font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: 0; }
.card .val { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 58px; letter-spacing: -.01em; }
.card .val span { font-family: Geist, sans-serif; font-weight: 500; font-size: 15px; }
.card.always .val { font-size: 46px; }
.node small, .mode .tag { font-family: "Geist Mono", monospace; letter-spacing: .14em; }
.cta-end h2 { font-size: clamp(52px, 7vw, 96px); }

/* ── liquid glass: clear, blurred, saturated panes with a lit rim ── */
.card, .node, .code, .term, .mode {
  position: relative; border-radius: 24px !important; border: 1px solid rgba(255,255,255,.16) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.06) 38%, rgba(255,255,255,.03) 100%) !important;
  backdrop-filter: blur(24px) saturate(185%) brightness(1.05); -webkit-backdrop-filter: blur(24px) saturate(185%) brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 0 30px rgba(255,255,255,.04), 0 24px 60px -20px rgba(0,0,0,.55);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.card::before, .node::before, .code::before, .term::before, .mode::before { /* specular sheen across the top */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,.22), transparent 55%);
  mix-blend-mode: screen; opacity: .7;
}
.card:hover, .node:hover, .code:hover, .mode:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 30px rgba(255,255,255,.06), 0 30px 70px -20px rgba(0,0,0,.6), 0 0 40px -10px rgba(246,179,92,.25); }
.node.key { border-color: rgba(246,179,92,.55) !important; background: linear-gradient(145deg, rgba(255,200,120,.22), rgba(255,255,255,.05) 45%, rgba(255,255,255,.03)) !important; }
.card.always { border-style: solid; border-color: rgba(127,207,138,.4) !important; }
.term { background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(10,14,28,.35) 40%, rgba(10,14,28,.45)) !important; }
.term-bar { border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.term-bar i { background: rgba(255,255,255,.22); }
.tools code { border-radius: 999px !important; padding: 3px 11px !important; background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.05)) !important; border: 1px solid rgba(255,255,255,.16) !important; backdrop-filter: blur(12px) saturate(170%); -webkit-backdrop-filter: blur(12px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.card > *, .node > *, .code > *, .mode > *, .term > * { position: relative; }

/* one even tint over the meadow from page 2 to the footer: no darkening bands or fades between sections */
main { background: rgba(8,12,24,.22) !important; }
footer { background: rgba(8,12,24,.22) !important; border-top: 0; }
.cta-end, section.block { background: transparent !important; }
/* every page as bright as page 1: the same sharp photo, same crop, no blur, no tint, no extra stars */
body::before { inset: 0 !important; background: var(--meadow-bg, url("media/meadow.jpg")) 46% 60% / cover no-repeat, #0d1426 !important; filter: none !important; }
main, footer { background: transparent !important; }
main::before { display: none; }
.block h2, .eyebrow, .lead, .principles h4, .principles p, .tools, .cta-end .lead, footer { text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); }
.lead, .principles p, footer { color: rgba(255,255,255,.86); }
.card p, .node p, .mode p { color: rgba(255,255,255,.8); }body::before { opacity: 0; transition: opacity .6s ease; }
html.bg-ready body::before, body.pure::before { opacity: 1; }
/* the hero's top/bottom tint lives inside the photo layer so it fades out with it (no leftover edge line on page 2) */
.lp-hero::before { display: none !important; }
.lp-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(6,10,24,.35), transparent 30%, transparent 70%, rgba(6,10,24,.25)); }
body.pure .lp-bg::after { display: none; }
.node small { color: rgba(255,255,255,.78) !important; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
/* ── pages: each section fills exactly one screen, content compacted to fit ── */
body.paged main section.block { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 78px 0 40px; scroll-margin-top: 0; }
body.paged main section.block > .wrap { width: 100%; }
body.paged section.cta-end { min-height: calc(100vh - 92px); }
body.paged .block h2 { font-size: clamp(38px, 4.4vw, 64px); margin: 10px 0 14px; }
body.paged .lead { font-size: 16px; line-height: 1.6; max-width: 72ch; }
body.paged .flow { margin-top: 30px; } body.paged .node { padding: 20px 22px; }
body.paged .principles { margin-top: 30px; gap: 24px; }
body.paged .rules { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
body.paged .rules .card { padding: 18px 20px; }
body.paged .card .val { font-size: 44px; } body.paged .card.always .val { font-size: 36px; }
body.paged .card code { margin: 10px 0 6px; } body.paged .card p { font-size: 14px; line-height: 1.5; }
body.paged .term { margin-top: 26px; } body.paged .term pre { font-size: 13px; line-height: 1.7; padding: 18px 22px 22px; }
body.paged .install { margin-top: 26px; gap: 12px; } body.paged .code { padding: 18px 20px; } body.paged .tools { margin-top: 16px; }
body.paged .modes { margin-top: 26px; } body.paged .mode { padding: 22px 24px; }
@media (max-height: 780px) {
  body.paged .block h2 { font-size: clamp(34px, 3.8vw, 52px); }
  body.paged .lead { font-size: 15px; }
  body.paged .card p, body.paged .node p, body.paged .mode p, body.paged .principles p { font-size: 13.5px; }
  body.paged .term pre { font-size: 12px; line-height: 1.6; }
  body.paged main section.block { padding-top: 70px; padding-bottom: 28px; }
}

/* page indicator on the right */
.pager { position: fixed; right: 22px; top: 50%; transform: translate(12px, -50%); z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; }
.pager.on { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.pager-count { font: 500 12px "Geist Mono", monospace; letter-spacing: .12em; color: rgba(255,255,255,.6); margin-bottom: 6px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.pager-count b { color: #fff; font-weight: 600; font-size: 15px; }
.pager button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 18px; padding: 0; background: none; border: 0; cursor: pointer; color: #fff; }
.pager button i { display: block; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.45); box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 1px 6px rgba(0,0,0,.35); transition: height .35s cubic-bezier(.2,.7,.2,1), background .3s; }
.pager button.now i { height: 22px; background: #f6b35c; box-shadow: 0 0 14px rgba(246,179,92,.7); }
.pager button span { order: -1; font: 500 12px Geist, sans-serif; white-space: nowrap; padding: 4px 10px; border-radius: 999px; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px) saturate(170%); -webkit-backdrop-filter: blur(12px) saturate(170%); }
.pager button:hover span, .pager button.now span { opacity: 1; transform: none; }
.pager button.now span { color: #ffd28a; }body.paged main section.block.cta-end { min-height: calc(100vh - 92px); min-height: calc(100svh - 92px); }
.card .val { color: #ffd596; text-shadow: 0 2px 16px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35); }
.card .val span { color: rgba(255,255,255,.75); }
.code .c, .code pre .c { color: rgba(255,255,255,.62) !important; }
/* CA pill + "only trust" note under it */
.lp-ca { bottom: 46px; }
.lp-bottom { bottom: 112px; }
.lp-ca-note { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 7px; margin: 0; max-width: calc(100% - 32px);
  font: 500 12px/1.35 Geist, Inter, sans-serif; color: rgba(255,255,255,.78); text-shadow: 0 1px 10px rgba(0,0,0,.6); white-space: nowrap; }
.lp-ca-note svg { width: 14px; height: 14px; flex: none; color: #f6b35c; }
.lp-ca-note a { color: #ffd28a; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.pure .lp-ca-note { display: none; }
@media (max-width: 760px) { .lp-ca { bottom: 50px; } .lp-bottom { bottom: 112px; } .lp-ca-note { white-space: normal; text-align: center; font-size: 11px; bottom: 10px; } }

/* X icon next to Dashboard */
.lp-pills a.icon-only { padding: 0 8px; }
.lp-pills a.icon-only svg { width: 15px; height: 15px; }
.lp-pills a.icon-only::after { display: none; }
.lp-pills a.soon { cursor: default; opacity: .6; }
/* veil for the slow return from page 2 to the hero */
.lp-veil { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; background: radial-gradient(120% 90% at 50% 60%, #0c1428 0%, #060912 100%); transition: opacity 1.1s cubic-bezier(.4,0,.2,1); }
.lp-veil.on { opacity: 1; transition-duration: .65s; }
/* CA field sized for a full address (up to 44 chars) so the pill never changes width when the real CA goes in */
.lp-ca-addr { display: inline-block; width: 44ch; font-size: 13px; letter-spacing: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-ca-addr .short { display: none; }
.lp-ca { gap: 12px; padding: 0 6px 0 7px; }
@media (max-width: 900px) {
  .lp-ca-addr { width: auto; }
  .lp-ca-addr .full { display: none; } .lp-ca-addr .short { display: inline; }
}
/* hero: photo sits a little higher (TV up), the copy stack sits lower and tighter (clear of the TV) */
.lp-bg img { object-position: 46% 72%; }
body::before { background-position: 46% 72% !important; }
.lp-bottom { bottom: 98px; gap: 14px; }
.lp-ca { bottom: 40px; }
.lp-ca-note { bottom: 13px; }
@media (max-width: 760px) { .lp-bottom { bottom: 108px; } .lp-ca { bottom: 46px; } .lp-ca-note { bottom: 8px; } }@media (min-width: 761px) and (max-height: 760px) {
  .lp-bottom { bottom: 84px; gap: 10px; }
  .lp-sub { font-size: 13.5px; line-height: 1.45; max-width: 620px; }
  .lp-start { height: 40px; font-size: 13px; } .lp-start i { width: 32px; height: 32px; }
  .lp-ca { bottom: 34px; height: 40px; } .lp-ca-coin { width: 28px; height: 28px; } .lp-ca-copy { height: 30px; }
  .lp-ca-note { bottom: 10px; font-size: 11.5px; }
}
/* logo: the glowing TV from the hero photo */
.lp-logo { display: inline-flex; align-items: center; gap: 9px; }
.lp-logo img { width: 28px; height: 28px; border-radius: 8px; display: block; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 4px 14px rgba(0,0,0,.4), 0 0 18px rgba(246,179,92,.25); }
.lp-ca-coin { animation: none !important; filter: none !important; }
.lp-ca-coin img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(246,179,92,.75), 0 0 14px rgba(246,179,92,.45); }
/* logo: the white L on transparent */
.lp-logo img { width: 24px; height: 24px; border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 1px 8px rgba(0,0,0,.5)); }
.lp-ca-coin img { object-fit: contain; padding: 6px; background: radial-gradient(circle at 35% 30%, #1b2744, #070b16 75%); }
/* CA coin: the L on its own, no dark disc */
.lp-ca-coin img { background: none !important; padding: 3px; border-radius: 0; box-shadow: none !important; filter: drop-shadow(0 0 8px rgba(246,179,92,.55)); }

/* hero headline: Instrument Serif italic (same family as the page headings) instead of the script face */
.lp-script { font-family: "Instrument Serif", Georgia, serif !important; font-style: italic; font-weight: 400 !important; font-size: clamp(56px, 8.4vw, 124px) !important; line-height: .95 !important; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(10,15,40,.45); }
.lp-second { margin-top: 6px; }
/* folded dive (menu jump from the hero): hero is one plain screen and page 2 sits right below it */
body.fold-dive .lp-stage { height: 100vh; height: 100svh; }
body.fold-dive main { margin-top: 0 !important; }
/* we place the scroll ourselves when the dive folds/unfolds; the browser's scroll anchoring must not 'correct' it */
html, body { overflow-anchor: none; }

/* phones: room for the 2–3 line CA warning under the pill, and code lines wrap instead of being cut off */
@media (max-width: 760px) {
  .lp-bottom { bottom: 150px !important; }
  .lp-ca { bottom: 74px !important; }
  .lp-ca-note { bottom: 14px !important; max-width: 320px; align-items: flex-start; font-size: 11.5px; }
  .lp-ca-note svg { margin-top: 1px; }
  .code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
/* 'Coming soon': let the pulsing dot's ring show in full (the address field normally clips long text) */
.lp-ca.soon .lp-ca-addr { overflow: visible; padding-left: 6px; }
