/* EmuHall website. The app's and PlayerHall's type (Saira Extra Condensed, DM Mono, Inter) in mixed case; motion
   throughout, all of it optional under prefers-reduced-motion. JavaScript only adds motion: pages read complete without it. */
:root {
  color-scheme: dark;
  --bg: #050608;
  --surface: #0a0d12;
  --panel: #10141b;
  --line: #1f2731;
  --line-strong: #323d4b;
  --text: #f3f5f8;
  --muted: #9aa5b4;
  --dim: #6c7889;
  --blue: #2268f4;
  --cyan: #66bcff;
  --violet: #8b6cff;
  --paper: #f4f3ef;
  --ink: #090b0f;
  --display: 'Saira Extra Condensed', Impact, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --body: Inter, system-ui, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 100; top: -80px; left: 18px; padding: 11px 15px; background: white; color: var(--ink); }
.skip-link:focus { top: 12px; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.section-pad { padding: 130px 0; }
.section-alt { background: var(--surface); }
.icon { width: 16px; height: 16px; flex: none; }
h1 em, h2 em { font-style: normal; color: var(--cyan); }

/* Header: transparent over the hero, frosted once the page scrolls. */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: #050608cc; border-color: #ffffff14; backdrop-filter: blur(16px) saturate(1.4); }
.header-inner { height: 100%; display: flex; align-items: stretch; }
.site-logo { display: flex; align-items: center; padding: 0 28px; border-right: 1px solid #ffffff14; }
.site-logo img { width: 150px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 6px; padding: 0 20px; }
.primary-nav a { padding: 8px 12px; color: #c9d1db; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: background .2s, color .2s; }
.primary-nav a:hover, .primary-nav a[aria-current] { background: #fff; color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 0 28px; background: #fff; color: var(--ink); font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: background .2s; }
.header-cta:hover, .header-cta[aria-current] { background: var(--cyan); }

/* Buttons and links */
.button { position: relative; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 26px; border: 1px solid transparent; text-decoration: none; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #fff; color: var(--ink); }
.button-primary:hover { background: var(--cyan); box-shadow: 0 12px 40px #66bcff55; }
.button-ghost { border-color: #ffffff4d; background: #05060855; color: #fff; backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: #fff; background: #ffffff12; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--cyan); color: #d8ecff; text-decoration: none; font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: gap .25s var(--ease), color .2s; }
.text-link:hover { gap: 18px; color: #fff; }
p a, li a, dd a, td a, th a { color: #cfe6ff; text-decoration: underline; text-decoration-color: #66bcff88; text-underline-offset: 3px; }
p a:hover, li a:hover, th a:hover { color: #fff; }

/* Section headings */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 52px; }
.section-head > p { max-width: 360px; margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.section-head h2, .open-copy h2, .download-grid h2, .source-note h2, .source-grid h2, .closing h2 { margin: 0; font: 700 clamp(58px, 7.4vw, 108px)/.88 var(--display); letter-spacing: -.005em; }
.download-grid h2, .source-note h2 { font-size: clamp(40px, 4vw, 56px); margin-bottom: 26px; }
.source-grid h2 { font-size: clamp(30px, 2.8vw, 38px); line-height: 1; margin-bottom: 16px; }

/* Hero */
.hero { position: relative; min-height: max(100svh, 780px); display: grid; place-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 70% 55% at 50% 48%, #0d1a33 0%, #050608 70%); }
.hero-glow { position: absolute; z-index: 0; left: 50%; top: 48%; width: 900px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, #2268f455, transparent); filter: blur(40px); transform: translate(-50%, -50%); animation: breathe 8s ease-in-out infinite alternate; }
.hero-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-card { position: absolute; left: var(--x); top: var(--y); width: var(--w); opacity: calc(.5 + var(--depth) * .5); }
.hero-card-float { animation: float var(--float) ease-in-out calc(var(--delay) * -6) infinite alternate; }
.hero-card-face { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #ffffff2e; border-radius: 14px; background: linear-gradient(0deg, #050608e6 0%, #05060840 55%, transparent 80%), var(--art) center / cover; box-shadow: 0 30px 70px #000c, 0 0 0 1px #ffffff0a inset; transform: rotate(var(--tilt)); animation: card-in 1.1s var(--ease) calc(300ms + var(--delay)) both; }
.hero-card-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, #ffffff1f 45%, transparent 60%); background-size: 250% 100%; animation: sheen 7s ease-in-out calc(var(--delay) * 3) infinite; }
.hero-card .glyph { position: absolute; right: 9%; top: 14%; width: 40%; height: auto; color: #ffffffd9; stroke-width: 1.6; filter: drop-shadow(0 0 12px #66bcff88); }
.hero-card em { position: absolute; top: 10px; left: 10px; padding: 4px 6px; background: #050608b3; color: #d8ecff; font: normal 600 9px/1 var(--mono); letter-spacing: .12em; backdrop-filter: blur(6px); }
.hero-card b { position: absolute; left: 12px; right: 12px; bottom: 10px; font: 700 clamp(15px, 1.4vw, 20px)/1 var(--display); }
.hero-content { position: relative; z-index: 3; width: min(940px, calc(100% - 40px)); padding: calc(var(--header) + 60px) 0 110px; text-align: center; }
.hero-content > * { animation: rise 1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .35s; } .hero-content > :nth-child(3) { animation-delay: .5s; } .hero-content > :nth-child(4) { animation-delay: .65s; }
.hero-wordmark { position: relative; width: min(860px, 86vw); margin: 0 auto 34px; filter: drop-shadow(0 10px 40px #050608); animation: wordmark-in 1.4s var(--ease) both !important; }
.hero-wordmark img { width: 100%; height: auto; }
.hero-wordmark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, #ffffffcc 50%, transparent 58%) 0 0 / 300% 100% no-repeat; -webkit-mask: url('/emuhall-logo.png') center / 100% 100% no-repeat; mask: url('/emuhall-logo.png') center / 100% 100% no-repeat; animation: shine 6s ease-in-out 1.6s infinite; }
.hero-tagline { margin: 0 0 16px; font: 700 clamp(44px, 5.4vw, 76px)/.95 var(--display); text-shadow: 0 4px 30px #050608; }
.hero-tagline em { font-style: normal; color: var(--cyan); }
.hero-lede { max-width: 560px; margin: 0 auto; color: #c3ccd7; font-size: 18px; line-height: 1.6; text-shadow: 0 2px 20px #050608; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }

/* White hook: the premise in a few plain sentences, revealed word by word as it scrolls past. */
.hook { position: relative; padding: 170px 0 180px; background: var(--paper); color: var(--ink); }
.hook .wrap { max-width: 1040px; }
.hook-kicker { margin: 0 0 26px; color: var(--blue); font: 600 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.hook-title { margin: 0 0 50px; font: 800 clamp(66px, 10vw, 152px)/.86 var(--display); }
.hook-text { margin: 0; font: 600 clamp(23px, 2.9vw, 40px)/1.35 var(--body); letter-spacing: -.02em; }
.hook-text span { opacity: clamp(.13, calc(var(--p, 1) * var(--n, 40) * 1.35 - var(--i)), 1); transition: opacity .25s linear; }
.hook-close { margin: 56px 0 0; color: var(--blue); font: 700 clamp(48px, 6.4vw, 96px)/.9 var(--display); }

/* App showcase: the real launcher in a window that tilts upright as it scrolls in. */
.showcase { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 40% at 50% 62%, #12305f66, transparent 70%), var(--bg); }
.showcase-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 26px; }
.showcase-tabs button { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 4px 18px; border: 0; background: none; color: var(--dim); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: left; cursor: pointer; transition: color .2s; }
.showcase-tabs button b { color: inherit; font-weight: 600; }
.showcase-tabs button:hover, .showcase-tabs [aria-selected="true"] { color: #fff; }
.showcase-tabs [aria-selected="true"] b { color: var(--cyan); }
.showcase-tabs i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-strong); overflow: hidden; }
.showcase-tabs i::after { content: ''; position: absolute; inset: 0; background: var(--cyan); transform: scaleX(0); transform-origin: left; }
.showcase-tabs [aria-selected="true"] i::after { transform: scaleX(1); }
.showcase-tabs.is-cycling [aria-selected="true"] i::after { animation: progress var(--cycle, 6s) linear both; }
.showcase-stage { perspective: 1800px; }
.showcase-window { --sp: 1; position: relative; overflow: hidden; border: 1px solid #ffffff24; border-radius: 16px; background: var(--surface); box-shadow: 0 60px 120px #000d, 0 0 90px #2268f430; transform: translateY(calc((1 - var(--sp)) * 80px)) rotateX(calc((1 - var(--sp)) * 26deg)) scale(calc(.86 + var(--sp) * .14)); transform-origin: 50% 0; will-change: transform; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-bottom: 1px solid #ffffff12; background: #0c1017; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3442; }
.window-bar span { margin-left: 12px; color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .1em; }
.window-screens { position: relative; aspect-ratio: 1600 / 1000; overflow: hidden; }
.window-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.window-screens img.is-active { opacity: 1; transform: scale(1); }
.showcase-captions { max-width: 680px; min-height: 60px; margin: 34px auto 0; text-align: center; }
.showcase-captions p { margin: 0; color: var(--muted); font-size: 16px; animation: fade-up .6s var(--ease) both; }
.showcase-captions strong { color: #fff; }

/* Numbers and marquee */
.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid > div { padding: 54px 24px 48px; border-left: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.stats-grid strong { display: block; background: linear-gradient(120deg, #fff 30%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; font: 800 clamp(70px, 8vw, 120px)/.9 var(--display); font-variant-numeric: tabular-nums; }
.stats-grid span { display: block; margin-top: 14px; color: var(--muted); font: 500 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); }
.marquee-track { width: max-content; display: flex; animation: marquee 80s linear infinite; animation-play-state: paused; }
.marquee.in-view .marquee-track { animation-play-state: running; }
.marquee-track span { flex: none; color: transparent; -webkit-text-stroke: 1px #ffffff47; font: 800 clamp(56px, 7vw, 100px)/1 var(--display); letter-spacing: .01em; white-space: pre; }
.marquee-track i { color: var(--cyan); -webkit-text-stroke: 0; font-style: normal; font-size: .5em; vertical-align: middle; }

/* How it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.how-grid .section-head { display: block; position: sticky; top: calc(var(--header) + 40px); }
.how-grid .section-head > p { margin-top: 26px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 40px 0 40px 128px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li > span { position: absolute; left: 0; top: 36px; background: linear-gradient(180deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; font: 800 76px/.9 var(--display); }
.steps h3 { margin: 0 0 10px; font: 700 38px/.95 var(--display); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Pointer tilt, used by cards across the site */
.tilt { --rx: 0deg; --ry: 0deg; position: relative; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), border-color .3s; }
.tilt.is-tilting { transition: transform .08s linear, border-color .3s; }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), #ffffff1c, transparent 45%); opacity: 0; pointer-events: none; transition: opacity .3s; }
.tilt:hover .tilt-glare { opacity: 1; }

/* Features */
.features { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(180deg, #121821, #0c1016); }
.feature-card:hover { border-color: #66bcff99; }
.feature-art { position: relative; height: 250px; display: grid; place-items: center; padding: 24px; overflow: hidden; background: radial-gradient(circle at 70% 10%, #2268f455, transparent 55%), radial-gradient(circle at 10% 100%, #8b6cff33, transparent 50%), #0a1220; }
.feature-copy { padding: 28px 26px 32px; }
.feature-copy h3 { margin: 0 0 14px; font: 700 40px/.9 var(--display); }
.feature-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.art-scan { width: 100%; display: grid; gap: 8px; }
.art-scan div { width: calc(100% - 24px); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #66bcff40; border-radius: 8px; background: #0f1d33d9; font: 500 10px/1 var(--mono); transform: translateX(calc(var(--i) * 8px)); transition: transform .4s var(--ease); }
.feature-card:hover .art-scan div { transform: translateX(calc((3 - var(--i)) * 8px)); }
.art-scan span { overflow: hidden; color: #8fa6c6; text-overflow: ellipsis; white-space: nowrap; }
.art-scan b { color: #f1f7ff; font-weight: 500; }
.art-scan i { color: var(--cyan); font-style: normal; }
.art-engines { width: 100%; display: grid; gap: 14px; }
.art-engines div { display: grid; grid-template-columns: 58px 1fr auto auto; align-items: center; gap: 10px; }
.art-engines em { padding: 9px 0; border: 1px solid #66bcff99; border-radius: 6px; background: #12305f; color: #fff; font: normal 700 19px/1 var(--display); text-align: center; }
.art-engines svg { height: 10px; width: 100%; overflow: visible; }
.art-engines path { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 4 4; animation: dash 1.2s linear infinite; }
.art-engines b { color: #f1f7ff; font: 600 11px/1 var(--mono); }
.art-engines small { padding: 4px 5px; border: 1px solid #66bcff7a; border-radius: 2px; color: var(--cyan); font: 500 7px/1 var(--mono); letter-spacing: .1em; }
.art-state { width: 82%; padding: 18px 20px; border: 1px solid #66bcff66; border-radius: 10px; background: #0f1d33; transform: rotate(-4deg); transition: transform .4s var(--ease); }
.feature-card:hover .art-state { transform: rotate(0deg) translateY(-6px) scale(1.03); }
.art-state small { color: #9cc4f0; font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.art-state strong { display: block; margin: 12px 0 14px; color: var(--cyan); font: 800 42px/.9 var(--display); }
.art-state dl { margin: 0; border-top: 1px solid #ffffff1a; }
.art-state dl div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #ffffff10; font: 500 9px/1 var(--mono); }
.art-state dt { color: #8fa6c6; }
.art-state dd { margin: 0; color: #e6f0ff; }
.extras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 64px 0 0; padding: 0; list-style: none; }
.extras-grid li { padding: 26px 0; border-top: 1px solid var(--line); }
.extras-grid h3 { margin: 0 0 8px; font: 700 24px/1 var(--display); }
.extras-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* Systems */
.systems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 44px; padding: 0; list-style: none; }
.system-card { min-height: 180px; display: flex; flex-direction: column; padding: 20px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: linear-gradient(160deg, #111823, #0a0e14); }
.system-card:hover { border-color: #66bcffaa; }
.system-glyph { position: absolute; right: -10px; top: -6px; width: 104px; height: 104px; color: #66bcff2e; stroke-width: 1.4; transition: color .4s, transform .6s var(--ease); }
.system-card:hover .system-glyph { color: #66bcff80; transform: rotate(-8deg) scale(1.08); }
.system-short { order: 1; color: #fff; font: 800 52px/.85 var(--display); }
.system-card em { order: 2; width: fit-content; margin-top: 12px; padding: 4px 7px; border: 1px solid #66bcff88; color: var(--cyan); font: normal 600 8px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.system-card strong { order: 3; display: block; margin-top: auto; padding-top: 26px; font: 700 23px/1 var(--display); }
.system-card small { order: 4; display: block; margin-top: 8px; color: var(--dim); font: 500 10px/1.4 var(--mono); letter-spacing: .04em; }
.system-card.system-more { border-style: dashed; background: transparent; }
.system-more .system-short { color: var(--cyan); }

/* Open source */
.open { background: var(--surface); }
.open-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; }
.open-copy > p { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.open-copy h2 { margin-bottom: 8px; }
.open-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.terminal { overflow: hidden; border: 1px solid #66bcff40; border-radius: 14px; background: #04070c; box-shadow: 0 40px 80px #000b, 0 0 70px #2268f426; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid #ffffff12; background: #0a0f17; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3442; }
.terminal-bar span { margin-left: 10px; color: var(--dim); font: 500 10px/1 var(--mono); }
.terminal pre { margin: 0; padding: 26px 24px 30px; overflow-x: auto; color: #e3edf9; font: 400 13px/2 var(--mono); }
.t-line { display: block; }
.motion-ready .terminal .t-line { clip-path: inset(0 100% 0 0); }
.motion-ready .terminal.is-visible .t-line { animation: type .9s steps(36) calc(.4s + var(--i) * 1s) forwards; }
.t-dim { color: #66758a; }
.t-ok { color: #7fe0b0; }
.t-cursor { display: inline-block; width: 8px; height: 15px; margin-left: 6px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.privacy-grid .section-head { display: block; }
.privacy-grid .section-head > p { margin-top: 26px; }
.privacy-list { margin: 0; border-top: 1px solid var(--line-strong); }
.privacy-list div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 24px 4px; border-bottom: 1px solid var(--line-strong); }
.privacy-list dt { color: var(--cyan); font: 600 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.privacy-list dd { margin: 0; color: #cfd8e2; font-size: 15px; }

/* FAQ */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-grid .section-head { display: block; }
.faq-grid .section-head > p { margin-top: 26px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { position: relative; padding: 24px 44px 24px 4px; cursor: pointer; list-style: none; font: 600 16px/1.4 var(--body); transition: color .2s; }
.faq-list summary:hover { color: var(--cyan); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--cyan); border-bottom: 1.5px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { max-width: 620px; margin: 0 40px 26px 4px; color: var(--muted); font-size: 15px; line-height: 1.75; animation: fade-up .4s var(--ease) both; }

/* Closing */
.closing { position: relative; overflow: hidden; padding: 180px 0 170px; text-align: center; isolation: isolate; }
.closing-glow { position: absolute; z-index: -1; left: 50%; bottom: -420px; width: 1200px; height: 760px; border-radius: 50%; background: radial-gradient(ellipse, #2268f4aa 0, #12305f77 35%, transparent 68%); filter: blur(60px); transform: translateX(-50%); animation: breathe 10s ease-in-out infinite alternate; }
.closing-cards { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.closing-cards span { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; display: grid; place-items: center; border: 1px solid #66bcff40; border-radius: 16px; background: #0a1220cc; color: var(--cyan); animation: orbit-card 36s linear calc(var(--i) * -7.2s) infinite; }
.closing-cards .glyph { width: 40px; height: 40px; stroke-width: 1.8; }
.closing h2 { margin-bottom: 20px; font-size: clamp(100px, 15vw, 220px); }
.closing p { margin: 0 0 34px; color: #c8d3e2; font-size: 17px; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header) + 110px) 0 100px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 80% 30%, #12305f88, transparent 70%), var(--bg); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin: 0 0 26px; font: 800 clamp(80px, 11vw, 168px)/.84 var(--display); animation: rise 1s var(--ease) both; }
.page-intro { max-width: 620px; margin: 0 0 40px; color: #c3ccd7; font-size: 18px; animation: rise 1s var(--ease) .15s both; }
/* Download page: one tile per OS in the hero, then install steps, requirements and links. */
.download-hero { position: relative; overflow: hidden; padding: calc(var(--header) + 80px) 0 70px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 55% at 50% 0%, #12305fa6, transparent 70%), var(--bg); }
.download-head { margin-bottom: 46px; text-align: center; }
.download-head h1 { margin: 0 0 16px; font: 800 clamp(72px, 9vw, 140px)/.86 var(--display); animation: rise 1s var(--ease) both; }
.download-head .page-intro { margin: 0 auto; }
.os-grid { display: grid; grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.os-tile { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 26px 24px 24px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(160deg, #111823, #0a0e14); animation: rise .9s var(--ease) both; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.os-tile:nth-child(2) { animation-delay: .1s; } .os-tile:nth-child(3) { animation-delay: .18s; } .os-tile:nth-child(4) { animation-delay: .26s; }
.os-tile.is-primary { border-color: #66bcffaa; background: radial-gradient(circle at 85% 0%, #2268f466, transparent 60%), linear-gradient(160deg, #122036, #0a0f18); box-shadow: 0 30px 80px #0009, 0 0 70px #2268f426; }
.os-tile.is-primary:hover { transform: translateY(-4px); box-shadow: 0 40px 90px #000a, 0 0 90px #2268f440; }
.os-tile.is-live { border-color: var(--cyan); }
.os-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.os-icon { width: 36px; height: 36px; color: var(--dim); }
.is-primary .os-icon { color: var(--cyan); }
.os-tile h2 { margin: 0; font: 700 clamp(44px, 4vw, 58px)/.88 var(--display); }
.os-detail { margin-top: 10px; color: var(--dim); font: 500 11px/1.4 var(--mono); letter-spacing: .04em; }
.os-note { margin: 18px 0 24px; color: var(--muted); font-size: 14px; }
.os-release { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 26px 0 8px; }
.os-release em { padding: 4px 7px; border: 1px solid var(--cyan); color: var(--cyan); font: normal 600 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.os-release strong { font: 700 28px/1 var(--display); }
.os-meta { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.os-button { width: 100%; margin-top: auto; }
.os-button.is-disabled { min-height: 54px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); color: var(--dim); font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.os-notes { align-self: center; margin-top: 18px; }
.download-trust { margin: 32px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.download-trust .icon { display: inline-block; margin-right: 8px; vertical-align: -3px; color: var(--cyan); }
.install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.install-steps li { padding: 30px 0 8px; border-top: 1px solid var(--line-strong); }
.install-steps span { display: block; margin-bottom: 18px; background: linear-gradient(180deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; font: 800 64px/.85 var(--display); }
.install-steps h3 { margin: 0 0 10px; font: 700 34px/.95 var(--display); }
.install-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.install-note { max-width: 820px; margin: 44px 0 0; padding: 18px 22px; border: 1px solid #ffffff1f; border-left: 3px solid var(--cyan); border-radius: 10px; background: #0a1220; color: var(--muted); font-size: 14px; }
.install-note strong, .install-note em { color: var(--text); font-style: normal; }
.needs-list { margin: 0; border-top: 1px solid var(--line-strong); }
.needs-list div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.needs-list dt { color: var(--cyan); font: 600 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.needs-list dd { margin: 0; color: #cfd8e2; font-size: 15px; }
.more-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.more-links a { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; height: 100%; padding: 26px 24px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.more-links a:hover { border-color: var(--cyan); transform: translateY(-3px); }
.more-links strong { grid-column: 1; color: var(--text); font: 700 28px/1 var(--display); }
.more-links span:not([aria-hidden]) { grid-column: 1; color: var(--muted); font-size: 14px; }
.more-links span[aria-hidden] { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--cyan); font-size: 22px; transition: transform .25s var(--ease); }
.more-links a:hover span[aria-hidden] { transform: translateX(4px); }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.checklist { margin: 0; padding: 0; list-style: none; counter-reset: item; border-top: 1px solid var(--line-strong); }
.checklist li { position: relative; padding: 22px 0 22px 50px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 15px; counter-increment: item; }
.checklist li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 25px; color: var(--cyan); font: 600 11px/1 var(--mono); }
.checklist strong { color: var(--text); }
.source-note > * { max-width: 820px; }
.source-note p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.source-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.credits-table { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); }
.credits-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.credits-table th, .credits-table td { padding: 17px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.credits-table thead th { color: var(--dim); font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.credits-table tbody tr { transition: background .2s; }
.credits-table tbody tr:hover { background: #ffffff06; }
.credits-table tbody tr:last-child > * { border-bottom: 0; }
.credits-table tbody th { font-weight: 600; white-space: nowrap; }
.credits-table td { color: var(--muted); }
.credits-table code { color: #cfe6ff; font: 500 12px/1.4 var(--mono); }

/* Footer */
.site-footer { overflow: hidden; border-top: 1px solid var(--line); background: #030405; }
.footer-mark { padding: 90px 0 10px; opacity: .1; }
.footer-mark img { width: 100%; height: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding: 50px 0 44px; }
.footer-tagline { margin: 0; font: 700 40px/.9 var(--display); }
.footer-tagline em { font-style: normal; color: var(--cyan); }
.footer-grid nav { display: flex; flex-direction: column; gap: 12px; }
.footer-grid h2 { margin: 0 0 8px; color: var(--dim); font: 600 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.footer-grid nav a { width: fit-content; color: #c0cbd8; font-size: 14px; transition: color .2s; }
.footer-grid nav a:hover { color: #fff; }
.footer-legal { max-width: 860px; margin: 0; padding: 26px 0; border-top: 1px solid var(--line); color: #6f7c8e; font-size: 12px; line-height: 1.7; }
.footer-bottom { display: flex; align-items: center; gap: 28px; padding: 22px 0 36px; border-top: 1px solid var(--line); color: #8391a3; font-size: 12px; }
.footer-bottom p { margin: 0 auto 0 0; }
.footer-bottom a:hover { color: #fff; }

/* Scroll reveal: only once JavaScript has confirmed motion is welcome. */
.motion-ready .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .tilt.reveal.is-visible { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { from { opacity: .7; } to { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }
.closing-glow { animation-name: breathe-bottom; }
@keyframes breathe-bottom { to { transform: translateX(-50%) scale(1.18); opacity: .7; } }
@keyframes float { from { transform: translateY(-10px) rotate(-.6deg); } to { transform: translateY(12px) rotate(.6deg); } }
@keyframes card-in { from { opacity: 0; transform: translateY(60px) rotate(calc(var(--tilt) * 2.5)) scale(.8); filter: blur(10px); } }
@keyframes sheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }
@keyframes wordmark-in { from { opacity: 0; transform: translateY(40px) scale(.94); filter: blur(18px) drop-shadow(0 10px 40px #050608); } }
@keyframes shine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -8; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes orbit-card { from { transform: rotate(0deg) translateX(min(470px, 40vw)) rotate(0deg) scaleY(1); } to { transform: rotate(360deg) translateX(min(470px, 40vw)) rotate(-360deg); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }

@media (max-width: 1100px) {
  .hero-card { width: calc(var(--w) * .72); }
  .primary-nav { padding: 0 10px; }
  .primary-nav a { padding: 8px 8px; }
  .how-grid, .open-grid, .privacy-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-grid .section-head { position: static; }
  .os-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .os-tile.is-primary { grid-column: 1 / -1; min-height: 0; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-tagline { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  :root { --header: 58px; }
  .wrap { width: calc(100% - 40px); }
  .section-pad { padding: 90px 0; }
  .site-logo { padding: 0 18px; border-right: 0; }
  .site-logo img { width: 124px; }
  .primary-nav { display: none; }
  .header-cta { padding: 0 18px; }
  /* Phones: the floating cards become a strip that drifts across under the copy. */
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-content { order: 1; padding: calc(var(--header) + 60px) 0 44px; }
  .hero-cards { position: relative; order: 2; display: flex; gap: 14px; width: max-content; padding: 10px 20px 30px; animation: strip 40s ease-in-out infinite alternate; }
  .hero-card { position: static; width: 170px; opacity: 1; transform: none; }
  .hero-card-face { transform: rotate(calc(var(--tilt) * .5)); }
  .hero-lede { font-size: 16px; }
  .section-head { flex-direction: column; align-items: start; gap: 18px; }
  .hook { padding: 110px 0 120px; }
  .hook-title { margin-bottom: 36px; }
  .showcase-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid > div { padding: 36px 18px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stats-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats-grid > div:nth-child(-n+2) { border-top: 0; }
  .feature-grid, .extras-grid, .download-grid, .source-grid, .install-steps, .more-links { grid-template-columns: 1fr; }
  .download-hero { padding: calc(var(--header) + 54px) 0 56px; }
  .download-grid, .source-grid { gap: 52px; }
  .steps li { padding-left: 84px; }
  .steps li > span { font-size: 60px; }
  .privacy-list div { grid-template-columns: 1fr; gap: 6px; }
  .page-hero { padding: calc(var(--header) + 70px) 0 70px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero-actions .button { flex: 1 1 100%; }
  .systems-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .system-card { min-height: 150px; padding: 16px 14px; }
  .system-glyph { width: 76px; height: 76px; }
  .system-short { font-size: 40px; }
  .system-card strong { font-size: 19px; }
  .system-card small { font-size: 9px; }
  .system-card em { font-size: 7px; }
  .os-grid { grid-template-columns: 1fr; }
  .os-tile { min-height: 0; }
  .needs-list div { grid-template-columns: 1fr; gap: 4px; }
  .showcase-tabs button { font-size: 10px; gap: 8px; }
  .window-bar { height: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-wrap: wrap; gap: 12px 24px; }
  .footer-bottom p { flex-basis: 100%; order: -1; }
  .credits-table th, .credits-table td { padding: 14px; }
  .closing { padding: 130px 0; }
  .closing-cards span { width: 54px; height: 54px; margin: -27px; }
  .closing-cards .glyph { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero-card { transform: none; }
  .hero-cards { width: auto; }
  .showcase-window { transform: none; }
  .closing-cards { display: none; }
}

/* Feedback form */
.feedback-section { padding: 56px 0 120px; }
.feedback-form { display: grid; gap: 22px; max-width: 760px; }
.feedback-kinds { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.feedback-kinds legend { font-family: 'DM Mono', monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8fa6c4; margin-bottom: 12px; }
.feedback-kinds label { position: relative; }
.feedback-kinds input { position: absolute; opacity: 0; inset: 0; }
.feedback-kinds span { display: block; padding: 12px 18px; border: 1px solid #22344d; border-radius: 999px; color: #c7d4e5; cursor: pointer; transition: border-color .15s, background .15s; }
.feedback-kinds input:checked + span { border-color: #3f8cff; background: rgba(63, 140, 255, .14); color: #fff; }
.feedback-kinds input:focus-visible + span { outline: 2px solid #5ad1ff; outline-offset: 2px; }
.feedback-form .field { display: grid; gap: 8px; color: #dfe8f3; font-size: 17px; }
.feedback-form .field small { color: #8fa6c4; font-size: 14px; margin-left: 6px; }
.feedback-form textarea, .feedback-form input:not([type=radio]) { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid #22344d; border-radius: 12px; background: #07101c; color: #eef4fb; font: inherit; }
.feedback-form textarea:focus, .feedback-form input:focus { outline: 2px solid #3f8cff; outline-offset: 1px; }
.feedback-hint { color: #8fa6c4; font-size: 15px; margin: 0; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.feedback-status { margin: 0; color: #c7d4e5; }
.feedback-status[data-kind=ok] { color: #7fe0a5; }
.feedback-status[data-kind=error] { color: #ff8a8f; }
