/* Xenite Linux website — brand colors come from xenite-logo.svg (#FF8426 → #F86A22 → #E22D1C). */
:root {
  --brand: #f86a22;
  --brand-hi: #ff8426;
  --brand-lo: #e22d1c;
  --brand-grad: linear-gradient(135deg, #ff8426 0%, #f86a22 50%, #e22d1c 100%);
  --ok: #3ecf8e;
  --warn: #f5b942;

  --bg: #0f0d0c;
  --bg-alt: #151210;
  --surface: #1b1714;
  --surface-2: #231e1a;
  --line: rgba(255, 240, 225, 0.08);
  --line-strong: rgba(255, 240, 225, 0.16);
  --text: #f4efe9;
  --muted: #aa9f95;
  --faint: #7a6f66;
  --code-bg: #120f0d;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --glow: rgba(248, 106, 34, 0.35);

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbf8f5;
  --bg-alt: #f4eee8;
  --surface: #ffffff;
  --surface-2: #f7f2ed;
  --line: rgba(40, 25, 15, 0.09);
  --line-strong: rgba(40, 25, 15, 0.18);
  --text: #1d1813;
  --muted: #6a5d52;
  --faint: #998a7d;
  --code-bg: #1a1512;
  --shadow: 0 20px 50px -24px rgba(80, 40, 10, 0.25);
  --glow: rgba(248, 106, 34, 0.22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.38em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap; color: inherit; background: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 24px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 12px 32px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-hi); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-hi); }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; letter-spacing: .02em; }
.pill-brand { background: var(--brand-grad); color: #fff; }
.pill-warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.pill-soft { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
:root[data-theme="light"] .pill-warn { color: #9a6400; }

/* ---------- announce + nav ---------- */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; font-size: 14px; color: var(--muted); background: var(--bg-alt); border-bottom: 1px solid var(--line); text-align: center;
}
.announce strong { color: var(--text); }
.announce a { color: var(--brand-hi); font-weight: 600; }

.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgba(0,0,0,.5); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-sub { font-weight: 500; color: var(--muted); margin-left: 5px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 56px; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: -30% -10% auto; height: 900px; z-index: -1;
  background: radial-gradient(600px 400px at 72% 35%, var(--glow), transparent 70%), radial-gradient(500px 300px at 15% 10%, rgba(226,45,28,.14), transparent 70%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-hi); padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.hero h1 { font-size: clamp(36px, 4.3vw, 58px); font-weight: 800; margin: 22px 0 20px; letter-spacing: -0.035em; }
.grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.lead code { font-size: .85em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; color: var(--faint); }
.hero-meta strong { color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; }
.orbit { position: absolute; right: -40px; top: -70px; width: 260px; height: 260px; display: grid; place-items: center; z-index: 0; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); animation: spin 40s linear infinite; }
.orbit::after { inset: 30px; border-style: solid; border-color: var(--line); animation-duration: 60s; animation-direction: reverse; }
.orbit-logo { width: 130px; filter: drop-shadow(0 20px 40px var(--glow)); animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.term { position: relative; z-index: 1; margin-top: 90px; border-radius: var(--radius); background: color-mix(in srgb, var(--code-bg) 92%, transparent); border: 1px solid rgba(255,240,225,.1); box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.2); overflow: hidden; backdrop-filter: blur(10px); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,240,225,.08); background: rgba(255,255,255,.03); }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.term-title { margin-left: auto; margin-right: auto; font: 500 12px var(--mono); color: #8d8178; transform: translateX(-20px); }
.term-body { margin: 0; padding: 18px 20px 22px; min-height: 290px; font: 13px/1.75 var(--mono); color: #e9e2da; white-space: pre-wrap; word-break: break-word; }
.term-body .p { color: var(--brand-hi); }
.term-body .ok { color: var(--ok); }
.term-body .m { color: #8d8178; }
.term-body .t { color: #ffb37a; }
.cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--brand-hi); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden; }
.stat { padding: 24px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 14px; color: var(--muted); }
.stat-label code { font-size: .82em; }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip-inner { display: flex; align-items: center; gap: 28px; padding: 20px 0; flex-wrap: wrap; justify-content: center; }
.strip-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.strip-list { display: flex; flex-wrap: wrap; gap: 10px 32px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.strip-list li { font-weight: 700; color: var(--muted); font-size: 16px; letter-spacing: -0.01em; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; text-wrap: balance; }
.section-head.left { text-align: left; margin: 0; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-hi); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.section-head h2, .how-copy h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; background: radial-gradient(circle, var(--glow), transparent 65%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: var(--shadow); }
.feature:hover::after { opacity: .7; }
.f-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 13%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); margin-bottom: 20px; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-hi); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature h3 code { font-size: .8em; }
.feature p { color: var(--muted); font-size: 15px; }

/* how */
.how { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--brand-grad); box-shadow: 0 6px 18px -6px var(--glow); }
.steps h4 { font-size: 17px; margin: 4px 0 6px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps code { font-size: .8em; }

.code-card { border-radius: var(--radius); background: var(--code-bg); border: 1px solid rgba(255,240,225,.1); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.tabs { display: flex; align-items: center; gap: 4px; padding: 10px; border-bottom: 1px solid rgba(255,240,225,.08); background: rgba(255,255,255,.03); overflow-x: auto; }
.tab { font: 500 13px var(--mono); color: #8d8178; background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: #e9e2da; }
.tab.active { color: #fff; background: rgba(248,106,34,.16); box-shadow: inset 0 0 0 1px rgba(248,106,34,.35); }
.code { display: none; margin: 0; padding: 22px 24px; font: 13px/1.8 var(--mono); color: #e9e2da; overflow-x: auto; min-height: 340px; }
.code.active { display: block; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; }
.code .c { color: #7a6f66; font-style: italic; }
.code .k { color: #ff8f5a; font-weight: 600; }
.code .a { color: #f5c97a; }
.code .t { color: #7cc7ff; }
.code .p { color: var(--brand-hi); }
.code .ok { color: var(--ok); }
.code .m { color: #b59cff; }

.copy-btn { margin-left: auto; flex: none; font: 600 12px var(--font); color: #cfc5bb; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 6px 11px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s; }
.copy-btn:hover { background: rgba(248,106,34,.2); color: #fff; }
.copy-btn.done { color: var(--ok); }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.tier { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tier-tag { font: 600 14px var(--mono); color: var(--brand-hi); }
.tier h3 { font-size: 18px; }
.tier p { color: var(--muted); font-size: 14.5px; flex: 1; }
.tier-speed { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; margin-top: 6px; }
.s1 { background: rgba(62,207,142,.13); color: var(--ok); }
.s2 { background: rgba(124,199,255,.13); color: #7cc7ff; }
.s3 { background: rgba(245,185,66,.13); color: var(--warn); }
.s4 { background: rgba(248,106,34,.15); color: var(--brand-hi); }
:root[data-theme="light"] .s2 { color: #1f78c1; }
:root[data-theme="light"] .s1 { color: #13865a; }
:root[data-theme="light"] .s3 { color: #9a6400; }

/* ---------- download ---------- */
.dl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: center; margin-bottom: 32px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg-btn { font: 600 14px var(--mono); color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg-btn.active { background: var(--brand-grad); color: #fff; }
.select { display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); max-width: 100%; }
.select select { font: 600 14px var(--font); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; min-width: 0; max-width: 100%; }

.editions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.edition { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s, box-shadow .25s; }
.edition:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.edition.featured { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 60%); }
.edition .badge { position: absolute; top: -11px; left: 22px; }
.ed-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }
.ed-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--brand-hi); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.edition h3 { font-size: 19px; }
.ed-type { font-size: 13px; color: var(--faint); margin-top: 4px; }
.edition p { color: var(--muted); font-size: 14.5px; margin: 14px 0 18px; flex: 1; }
.ed-meta { display: flex; justify-content: space-between; font: 500 12.5px var(--mono); color: var(--faint); padding: 12px 0; border-top: 1px dashed var(--line-strong); margin-bottom: 14px; }
.ed-meta strong { color: var(--text); font-weight: 600; }
.ed-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.ed-actions .btn { padding: 11px 14px; font-size: 14px; }
.mini { display: inline-grid; place-items: center; height: 40px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); cursor: pointer; font: 600 12px var(--font); gap: 4px; transition: border-color .2s, color .2s; }
.mini:hover { border-color: var(--brand); color: var(--brand-hi); }
.mini svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edition.unavailable, .image.unavailable { opacity: .55; }
.edition.unavailable .btn-primary { background: var(--surface-2); color: var(--muted); box-shadow: none; }

.sub-head { font-size: 22px; margin: 56px 0 20px; }
.images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.image { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.image .ed-icon { margin: 0; flex: none; width: 38px; height: 38px; }
.image-txt { flex: 1; min-width: 0; }
.image-txt strong { display: block; font-size: 15px; }
.image-txt span { display: block; font: 12px/1.5 var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-txt span + span { color: var(--muted); }

.dl-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.extra-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.extra-card h3 { font-size: 18px; margin-bottom: 10px; }
.extra-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 10px; background: var(--code-bg); border: 1px solid rgba(255,240,225,.08); margin-top: 10px; }
.cmd code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: #e9e2da; font-size: 12.5px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd .copy-btn { margin-left: 0; }
.reqs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.reqs li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-strong); font-size: 14.5px; }
.reqs li:last-child { border-bottom: 0; }
.reqs span { color: var(--faint); }
.reqs strong { font-weight: 600; text-align: right; }

/* ---------- roadmap ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--line-strong) 45%); }
.tl-item { position: relative; display: flex; gap: 26px; padding: 0 0 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); margin-top: 2px; position: relative; z-index: 1; }
.tl-item.done .tl-dot { background: var(--brand-grad); border-color: transparent; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); }
.tl-item.now .tl-dot { border-color: var(--brand); }
.tl-item.now .tl-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
.tl-date { font-size: 13px; font-weight: 700; color: var(--brand-hi); text-transform: uppercase; letter-spacing: .08em; }
.tl-item h3 { font-size: 20px; margin: 6px 0 6px; }
.tl-item p { color: var(--muted); font-size: 15px; }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.post:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-3px); }
.post-date { font: 500 12.5px var(--mono); color: var(--faint); }
.post h3 { font-size: 19px; }
.post h3 code { font-size: .8em; }
.post p { color: var(--muted); font-size: 15px; flex: 1; }
.post-link { font-weight: 600; color: var(--brand-hi); font-size: 14.5px; margin-top: 6px; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--brand-hi); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* ---------- cta + footer ---------- */
.cta-band { padding: 0 0 104px; }
.cta-inner { display: flex; align-items: center; gap: 28px; padding: 40px 44px; border-radius: 24px; background: radial-gradient(500px 200px at 15% 0%, rgba(255,255,255,.18), transparent 70%), var(--brand-grad); color: #fff; box-shadow: 0 30px 80px -30px var(--glow); }
.cta-inner img { filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); flex: none; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.cta-inner div { flex: 1; }
.cta-inner h2 { font-size: 30px; font-weight: 800; }
.cta-inner p { opacity: .9; margin-top: 6px; }
.cta-inner .btn-primary { background: #fff; color: #c8361a; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }

.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 14px; }
.footer-grid > div > a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; transition: color .2s; }
.footer-grid > div > a:hover { color: var(--brand-hi); }
.footer-legal { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer-legal p { max-width: 760px; }
.to-top { white-space: nowrap; color: var(--muted); }
.to-top:hover { color: var(--brand-hi); }

/* ---------- modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,6,5,.65); backdrop-filter: blur(6px); animation: fade .2s; }
.modal-card { position: relative; width: min(520px, 100%); padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -30px rgba(0,0,0,.7); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; padding-right: 40px; }
.modal-head h3 { font-size: 20px; }
.modal-file { font: 12.5px var(--mono); color: var(--muted); margin-top: 4px; word-break: break-all; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.progress-bar { height: 100%; width: 0; background: var(--brand-grad); border-radius: inherit; transition: width .3s ease, background .3s; }
.progress-bar.failed { background: linear-gradient(90deg, var(--warn), #e0892f); }
.modal-status { font-size: 14px; color: var(--muted); margin: 12px 0 18px; min-height: 1.6em; }
.modal-status.warn { color: var(--warn); }
:root[data-theme="light"] .modal-status.warn { color: #9a6400; }
.modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.modal-meta .full { grid-column: 1 / -1; }
.modal-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.modal-meta dd { margin: 3px 0 0; font-weight: 600; font-size: 14.5px; }
.modal-meta code { display: block; font-size: 11.5px; word-break: break-all; background: none; border: 0; padding: 0; color: var(--muted); font-weight: 500; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal (only hidden once JS has marked the page) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .editions, .images { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .dl-extra { grid-template-columns: 1fr 1fr; }
  .dl-extra .extra-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .nav-links { position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 2px; padding: 12px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .menu-btn { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 56px; }
  .hero-inner, .how, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner > *, .how > * { min-width: 0; }
  .orbit { right: 0; top: -40px; width: 200px; height: 200px; }
  .orbit-logo { width: 100px; }
  .term { margin-top: 70px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .features, .news { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .nav-actions .btn-sm { display: none; }
  .section { padding: 72px 0; }
  .features, .news, .tiers, .editions, .images, .dl-extra { grid-template-columns: 1fr; }
  .dl-extra .extra-card:last-child { grid-column: auto; }
  .stat { padding: 18px; }
  .stat-num { font-size: 28px; }
  .term-body { font-size: 12px; min-height: 260px; padding: 14px; }
  .code { font-size: 12px; padding: 16px; min-height: 0; }
  .cta-inner { flex-direction: column; text-align: center; padding: 32px 22px; }
  .footer-legal { flex-direction: column; }
  .modal-meta { grid-template-columns: 1fr; }
  .announce { font-size: 13px; }
}
