/* DeployNest website. Fonts are self-hosted (SIL OFL 1.1): Bricolage Grotesque and Inter. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */
:root {
  --bg: #f6f5f1;
  --bg-alt: #eeece5;
  --surface: #ffffff;
  --surface-2: #f4f3ee;
  --surface-3: #e9e7df;
  --line: #e2dfd6;
  --line-strong: #cbc6b8;
  --text: #0e1320;
  --text-2: #4a505c;
  --text-3: #6f7480;
  --brand: #2f54eb;
  --brand-hover: #2443c9;
  --brand-text: #ffffff;
  --brand-soft: rgba(47, 84, 235, 0.1);
  --cyan: #0ea5c0;
  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.1);
  --bad: #b42318;
  --bad-soft: rgba(180, 35, 24, 0.08);
  --marker: #d6f65f;
  --grid: rgba(14, 19, 32, 0.06);
  --shadow-sm: 0 1px 2px rgba(14, 19, 32, 0.06);
  --shadow: 0 1px 2px rgba(14, 19, 32, 0.05), 0 12px 32px -12px rgba(14, 19, 32, 0.14);
  --shadow-lg: 0 2px 4px rgba(14, 19, 32, 0.04), 0 40px 80px -24px rgba(23, 37, 84, 0.28);

  /* Ink surfaces (Linux section, download panel, code) stay dark in both themes. */
  --ink: #0b0f1a;
  --ink-2: #121828;
  --ink-3: #192034;
  --ink-line: #252d42;
  --ink-text: #eef1f7;
  --ink-text-2: #a2abbe;
  --ink-text-3: #737d92;
  --code-bg: #0a0d16;

  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090b11;
    --bg-alt: #0d1017;
    --surface: #12151d;
    --surface-2: #181c26;
    --surface-3: #212633;
    --line: #232836;
    --line-strong: #353c4f;
    --text: #eceff5;
    --text-2: #a7aebc;
    --text-3: #7d8596;
    --brand: #6d8bff;
    --brand-hover: #8ca3ff;
    --brand-text: #071033;
    --brand-soft: rgba(109, 139, 255, 0.14);
    --cyan: #38d0e6;
    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.12);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.1);
    --marker: rgba(196, 245, 66, 0.3);
    --grid: rgba(255, 255, 255, 0.045);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 40px 80px -24px rgba(0, 0, 0, 0.75);
    --ink: #0e121c;
    --ink-2: #141a28;
    --ink-3: #1b2234;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #090b11;
  --bg-alt: #0d1017;
  --surface: #12151d;
  --surface-2: #181c26;
  --surface-3: #212633;
  --line: #232836;
  --line-strong: #353c4f;
  --text: #eceff5;
  --text-2: #a7aebc;
  --text-3: #7d8596;
  --brand: #6d8bff;
  --brand-hover: #8ca3ff;
  --brand-text: #071033;
  --brand-soft: rgba(109, 139, 255, 0.14);
  --cyan: #38d0e6;
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.1);
  --marker: rgba(196, 245, 66, 0.3);
  --grid: rgba(255, 255, 255, 0.045);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 40px 80px -24px rgba(0, 0, 0, 0.75);
  --ink: #0e121c;
  --ink-2: #141a28;
  --ink-3: #1b2234;
  color-scheme: dark;
}

/* ---------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.9em; }
p code, dd code, li code {
  padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
}
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.icon-fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 2px; }
.site-nav a { color: var(--text-2); padding: 7px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-button {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-button:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.header-download { margin-left: 6px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; font-size: 16px; }
}
@media (max-width: 420px) { .header-download { display: none; } }

/* ---------------------------------------------------------------------------
   Buttons, segmented controls, chips
   ------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; padding: 11px 18px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary {
  background: var(--brand); color: var(--brand-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(14, 19, 32, 0.12), 0 10px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent);
}
.button-primary:hover { background: var(--brand-hover); }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.button-secondary:hover { border-color: var(--line-strong); }
.button-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.button-large { padding: 14px 22px; font-size: 16px; }
.button[aria-disabled="true"] { opacity: .7; cursor: default; transform: none; }

.segmented {
  display: inline-flex; gap: 2px; padding: 4px; flex: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px;
}
.segmented button {
  border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 9px; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"],
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.segmented-small { padding: 3px; border-radius: 10px; }
.segmented-small button { font-size: 12px; padding: 4px 10px; border-radius: 7px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 500;
  padding: 6px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { position: relative; padding: 76px 0 0; overflow: hidden; isolation: isolate; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 65% 25%, #000 25%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }

.release-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px 6px 12px; margin-bottom: 28px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
}
.release-badge:hover { text-decoration: none; border-color: var(--line-strong); color: var(--text); }
.release-badge svg { width: 14px; height: 14px; color: var(--text-3); }
.release-badge [data-latest-tag] { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); font-weight: 600; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 {
  font-size: clamp(46px, 7.2vw, 92px); font-weight: 700; line-height: 0.96; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.marker {
  padding: 0 0.06em; margin: 0 -0.06em;
  background: linear-gradient(transparent 60%, var(--marker) 60%, var(--marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { margin-top: 26px; font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts {
  list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

/* Queue demo */
.queue-demo { position: relative; }
.queue-demo::before {
  content: ""; position: absolute; inset: 8% -6% -8% 6%; z-index: -1; border-radius: 40px; filter: blur(60px); opacity: .55;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent),
              radial-gradient(closest-side at 80% 80%, color-mix(in srgb, var(--cyan) 45%, transparent), transparent);
}
.queue-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.queue-titlebar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.queue-title { font-size: 13.5px; font-weight: 600; margin-right: auto; }
.queue-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.q-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 10px; border-radius: 14px; transition: background-color .3s;
}
.q-row img { width: 40px; height: 40px; padding: 6px; border-radius: 11px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.q-main { display: grid; min-width: 0; }
.q-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.q-src { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-bar { display: block; height: 4px; margin-top: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.q-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand); transform-origin: left center; transform: scaleX(0); transition: transform .25s linear, background-color .3s; }
.q-state {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  color: var(--text-3); background: var(--surface-2); min-width: 92px; text-align: center;
}
.q-row[data-state="downloading"], .q-row[data-state="verifying"], .q-row[data-state="installing"] { background: var(--brand-soft); }
.q-row[data-state="downloading"] .q-fill { transform: scaleX(.64); }
.q-row[data-state="verifying"] .q-fill, .q-row[data-state="installing"] .q-fill { transform: scaleX(1); background: var(--cyan); }
.q-row[data-state="downloading"] .q-state, .q-row[data-state="verifying"] .q-state, .q-row[data-state="installing"] .q-state { color: var(--brand); background: var(--surface); }
.q-row[data-state="done"] .q-fill { transform: scaleX(1); background: var(--ok); }
.q-row[data-state="done"] .q-state { color: var(--ok); background: var(--ok-soft); }
.q-row[data-state="done"] .q-state::before { content: "✓ "; }
.queue-console {
  display: flex; gap: 10px; align-items: center; margin: 0 8px; padding: 11px 14px; border-radius: 12px;
  background: var(--code-bg); color: #d3dbea; font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; overflow: hidden;
}
.queue-console .prompt { color: #a3e635; }
.queue-console code { overflow: hidden; text-overflow: ellipsis; font-size: inherit; }
.queue-console code::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 3px; vertical-align: -2px; background: #a3e635; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.queue-footer { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; font-size: 12.5px; color: var(--text-3); }
#queue-summary { font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Logo wall */
.logo-wall { margin-top: 88px; display: grid; gap: 14px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 90s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 110s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-tile {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center; padding: 12px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; padding: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 28px 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 4.2vw, 52px); font-weight: 650; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dt { color: var(--text-3); font-size: 14px; }

@media (max-width: 1000px) {
  .hero { padding-top: 48px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .queue-demo { max-width: 600px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 650; line-height: 1.04; letter-spacing: -0.026em; margin-top: 16px; }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--text-2); font-size: 18px; max-width: 640px; }
.section-head-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head-split > div:first-child { max-width: 760px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0.02em;
}
.kicker span {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.section-lead { margin-top: 18px; color: var(--text-2); font-size: 18px; }
.text-link { display: inline-block; margin-top: 22px; font-weight: 600; }
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--brand);
}
.step-number {
  display: block; font-family: var(--font-display); font-size: 88px; font-weight: 600; line-height: .9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); margin-bottom: 22px;
}
.step:hover .step-number { -webkit-text-stroke-color: var(--brand); }
.step h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--text-2); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; } .step-number { font-size: 64px; } }

@media (max-width: 480px) {
  .queue-list { padding: 6px; }
  .q-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 9px 8px; }
  .q-row img { width: 36px; height: 36px; padding: 5px; }
  .q-state { min-width: 0; padding: 4px 8px; font-size: 11.5px; }
  .queue-footer-note { display: none; }
}

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tile h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.tile p { color: var(--text-2); font-size: 15px; }
.tile > :last-child:not(p) { margin-top: auto; }
.tile-wide { grid-column: span 4; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 28px; align-items: center; }
.tile-wide > :last-child { margin-top: 0; }
.tile-full { grid-column: span 6; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.tile-full > :last-child { margin-top: 0; }
.tile-copy { display: grid; gap: 12px; }

.log {
  margin: 0; padding: 18px 20px; border-radius: var(--radius-md); background: var(--code-bg); color: #d3dbea;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.85; overflow-x: auto; border: 1px solid #1c2233;
}
.log code { font-size: inherit; }
.log-cmd { color: #8592ad; }
.log-cmd::before { content: "$ "; color: #a3e635; }
.log .ok { color: #4ade80; }

.mini-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--surface-2);
  font-size: 14px; font-weight: 500;
}
.mini-list img { width: 26px; height: 26px; padding: 3px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.chip-status { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip-status.is-muted { color: var(--text-3); background: var(--surface-3); }
.chip-status.is-accent { color: var(--brand); background: var(--brand-soft); }

.mini-alert {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
  background: var(--bad-soft); font-size: 14px;
}
.mini-alert strong { color: var(--bad); }
.mini-alert span { color: var(--text-2); }

.mini-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-buttons span {
  font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
}
.mini-buttons span + span { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: transparent; }

.mini-report { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-report span { font-size: 13.5px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.mini-report b { font-family: var(--font-display); font-size: 17px; color: var(--text); margin-right: 2px; }
.mini-report .is-ok { background: var(--ok-soft); }
.mini-report .is-ok b { color: var(--ok); }
.mini-report .is-bad { background: var(--bad-soft); }
.mini-report .is-bad b { color: var(--bad); }

.preset-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.preset-cloud li {
  font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
}
.preset-cloud li:nth-child(3n + 1) { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); background: var(--brand-soft); color: var(--brand); }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile { grid-column: span 1; }
  .tile-wide, .tile-full { grid-column: span 2; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-wide, .tile-full { grid-column: span 1; padding: 22px; }
}

/* ---------------------------------------------------------------------------
   Catalog
   ------------------------------------------------------------------------- */
.catalog-toolbar { display: grid; gap: 16px; margin-bottom: 36px; }
.search {
  display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 54px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text-3); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--text-3); }

.category-block + .category-block { margin-top: 44px; }
.category-title { display: flex; align-items: baseline; gap: 12px; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 16px; }
.category-title span { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.program {
  display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.program:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.program-logo {
  width: 50px; height: 50px; flex: none; border-radius: 13px; background: #ffffff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 8px;
}
.program-logo img { width: 100%; height: 100%; object-fit: contain; }
.program-body { min-width: 0; }
.program-name { font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.program-publisher { font-size: 13px; color: var(--text-3); }
.program-summary { font-size: 14px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.program-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 6px; line-height: 1.6;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.tag-accent { font-family: var(--font-mono); font-size: 11px; color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.catalog-empty { text-align: center; color: var(--text-2); padding: 40px 0; }
.fine-print { margin-top: 32px; font-size: 13px; color: var(--text-3); }

@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
}

/* ---------------------------------------------------------------------------
   Ink section (Linux)
   ------------------------------------------------------------------------- */
.section-ink {
  --text: var(--ink-text); --text-2: var(--ink-text-2); --text-3: var(--ink-text-3);
  --line: var(--ink-line); --line-strong: #39425b; --surface: var(--ink-2); --surface-2: var(--ink-3);
  --brand: #8aa2ff; --brand-soft: rgba(138, 162, 255, 0.14);
  background: var(--ink); color: var(--text); position: relative; overflow: hidden; isolation: isolate;
}
.section-ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(109, 139, 255, 0.16), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(56, 208, 230, 0.1), transparent 70%);
}
.section-ink h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 650; line-height: 1.04; letter-spacing: -0.026em; margin-top: 16px; }
.linux-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.feature-rows { margin: 36px 0 0; display: grid; }
.feature-rows > div { padding: 18px 0; border-top: 1px solid var(--line); }
.feature-rows dt { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feature-rows dd { margin: 6px 0 0; color: var(--text-2); }
.distro-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.distro-list li { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; }
.linux-shots { position: relative; padding-bottom: 56px; }
.linux-shots .shot-main { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); border-color: var(--line); }
.terminal {
  position: absolute; left: -32px; bottom: 0; width: min(440px, 80%);
  background: #05070c; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); overflow: hidden;
}
.terminal-bar { padding: 8px 14px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--line); font-family: var(--font-mono); }
.terminal pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.8; color: #dbe2ee; }
.terminal code { font-size: inherit; }
.t-dim { color: #6b7488; }
.t-ok { color: #86efac; }
@media (max-width: 1000px) {
  .linux-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .terminal { left: 16px; }
}
@media (max-width: 640px) {
  .linux-shots { padding-bottom: 0; }
  .terminal { position: relative; left: auto; width: auto; margin: -28px 12px 0; }
}

/* ---------------------------------------------------------------------------
   Screenshots
   ------------------------------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shots .shot-hero { grid-column: 1 / -1; }
.gallery-item {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 8, 15, 0.82); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: -48px; right: 0; color: #fff; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------------------------------------------------------------------------
   Security
   ------------------------------------------------------------------------- */
.security { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.security-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: principle; }
.principles li {
  counter-increment: principle; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before {
  content: counter(principle, decimal-leading-zero); grid-row: span 2;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--brand); padding-top: 4px;
}
.principles h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.principles p { margin-top: 6px; color: var(--text-2); }
@media (max-width: 900px) { .security { grid-template-columns: minmax(0, 1fr); gap: 24px; } .security-head { position: static; } }

/* ---------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-size: 17px; font-weight: 600; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; margin-top: -1px;
  background: var(--text-3); border-radius: 2px; transition: transform .25s, background-color .2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--brand); }
.faq details p { padding: 0 44px 22px 0; color: var(--text-2); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .faq-layout .section-head { position: static; } }

/* ---------------------------------------------------------------------------
   Download
   ------------------------------------------------------------------------- */
.download-section { padding: 40px 0 0; }
.download-panel {
  --text: var(--ink-text); --text-2: var(--ink-text-2); --text-3: var(--ink-text-3);
  --line: var(--ink-line); --line-strong: #39425b; --surface: var(--ink-2); --surface-2: var(--ink-3);
  --brand: #8aa2ff; --brand-hover: #a5b8ff; --brand-text: #071033; --brand-soft: rgba(138, 162, 255, 0.14);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--text); border-radius: 32px; padding: 64px;
  border: 1px solid var(--line);
}
.download-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 360px at 15% 0%, rgba(109, 139, 255, 0.22), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(56, 208, 230, 0.12), transparent 70%);
}
.download-head { max-width: 640px; margin-bottom: 40px; }
.download-head h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 650; line-height: 1.04; letter-spacing: -0.026em; margin-top: 16px; }
.download-head p:not(.kicker) { margin-top: 14px; color: var(--text-2); font-size: 18px; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download-card {
  display: flex; flex-direction: column; min-width: 0; padding: 28px; border-radius: 22px;
  background: color-mix(in srgb, var(--ink-2) 85%, transparent); border: 1px solid var(--line);
}
.download-card-head { display: flex; align-items: center; gap: 14px; }
.download-card-head h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.download-card-head p { color: var(--text-3); font-size: 13.5px; }
.platform-icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: #fff;
}
.platform-icon svg { width: 26px; height: 26px; }
.download-desc { margin-top: 18px; color: var(--text-2); }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.download-panel .button-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.download-panel .button-secondary:hover { border-color: var(--text-3); }
.release-meta { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
pre.code {
  margin: 18px 0 0; padding: 14px 16px; overflow-x: auto; border-radius: 12px;
  background: var(--code-bg); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: #d3dbea;
}
pre.code code { font-size: inherit; }
.download-card .fine-print { margin-top: auto; padding-top: 18px; }
.download-card p code { background: rgba(255, 255, 255, 0.06); border-color: var(--line); }
.download-foot { margin-top: 28px; font-size: 14px; }
.download-foot a { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .download-grid { grid-template-columns: minmax(0, 1fr); } .download-panel { padding: 40px 28px; } }
@media (max-width: 560px) {
  .download-panel { padding: 32px 18px; border-radius: 24px; }
  .download-card { padding: 22px; }
  .hero-actions .button, .download-actions .button { width: 100%; white-space: normal; }
}

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; color: var(--text-2); font-size: 14.5px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.footer-links a { color: var(--text-2); font-size: 14.5px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-bottom: 40px; }
.footer-bottom p { padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 13px; color: var(--text-3); }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------------------
   404
   ------------------------------------------------------------------------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 16px; }
.notfound h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.025em; margin-top: 24px; }
.notfound p { margin: 14px 0 28px; color: var(--text-2); font-size: 18px; }
.notfound img { margin: 0 auto; }

/* ---------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .06s; }
.bento .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .12s; }
.bento .reveal:nth-child(4) { transition-delay: .18s; }
.bento .reveal:nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}
