/* UESP public site — allcyber.org
   Pure CSS, no build step. Tokens on :root; dark mode follows prefers-color-scheme.
   The dark band (.band-dark) stays dark in both schemes. */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F7F5;
  --bg-card: #FFFFFF;
  --text: #101010;
  --text-2: #686868;
  --text-3: #8A8A8A;
  --line: #E8E8E6;
  --line-strong: #D9D9D6;
  --accent: #298DFE;
  --accent-hover: #1B7AE8;
  --accent-soft: rgba(41, 141, 254, 0.10);
  --ok: #1E9E5A;
  --ok-soft: rgba(30, 158, 90, 0.12);
  --navy: #0B1220;
  --navy-line: rgba(255, 255, 255, 0.10);
  --navy-text: #FFFFFF;
  --navy-text-2: #A9B4C6;
  --shadow: 0 1px 2px rgba(16, 16, 16, 0.04), 0 8px 24px rgba(16, 16, 16, 0.05);
  --shadow-lg: 0 2px 4px rgba(16, 16, 16, 0.05), 0 24px 60px rgba(16, 16, 16, 0.10);
  --radius: 12px;
  --radius-lg: 14px;
  --radius-btn: 8px;
  --code-bg: #F2F2F0;
  --header-bg: rgba(255, 255, 255, 0.86);
  --max: 1200px;
  --gutter: 24px;
  --section-y: 112px;
  --font: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1115;
    --bg-soft: #14171C;
    --bg-card: #171A20;
    --text: #F2F2F0;
    --text-2: #A3A6AB;
    --text-3: #7E8288;
    --line: #262A31;
    --line-strong: #323740;
    --accent: #4A9FFF;
    --accent-hover: #6CB1FF;
    --accent-soft: rgba(74, 159, 255, 0.14);
    --ok: #3FBF79;
    --ok-soft: rgba(63, 191, 121, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
    --code-bg: #0B0D11;
    --header-bg: rgba(15, 17, 21, 0.86);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0F1115;
  --bg-soft: #14171C;
  --bg-card: #171A20;
  --text: #F2F2F0;
  --text-2: #A3A6AB;
  --text-3: #7E8288;
  --line: #262A31;
  --line-strong: #323740;
  --accent: #4A9FFF;
  --accent-hover: #6CB1FF;
  --accent-soft: rgba(74, 159, 255, 0.14);
  --ok: #3FBF79;
  --ok-soft: rgba(63, 191, 121, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
  --code-bg: #0B0D11;
  --header-bg: rgba(15, 17, 21, 0.86);
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 600;
  z-index: 100;
  transition: top 120ms ease;
}
.skip:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-2);
}
.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 { font-size: 18px; line-height: 1.35; }
.accent { color: var(--accent); }

.lede {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 58ch;
}
.muted { color: var(--text-2); }

.fineprint {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.fineprint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.fineprint a:hover { color: var(--accent-hover); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { font-weight: 500; transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(2px); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text-3); color: var(--text); background: var(--bg-soft); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand .mark { flex: none; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}
.nav a:hover { color: var(--text); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu { position: relative; display: none; }
.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--bg-soft); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.menu-panel a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}
.menu-panel a:hover { background: var(--bg-soft); color: var(--text); }

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }

.band-soft { background: var(--bg-soft); }

.band-dark {
  position: relative;
  background: var(--navy);
  color: var(--navy-text);
  isolation: isolate;
}
.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.band-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 85% 0%, rgba(41, 141, 254, 0.22), transparent 70%);
}
.band-dark .kicker { color: var(--navy-text-2); }
.band-dark .kicker .dot { background: #298DFE; }
.band-dark .accent { color: #5EA8FF; }
.band-dark .lede { color: var(--navy-text-2); }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 var(--section-y);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.hero-copy .lede { max-width: 52ch; }

.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(ellipse at 60% 40%, var(--accent-soft), transparent 65%);
  z-index: -1;
}

/* Console mock (decorative) */
.mock {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}
.mock-body { padding: 8px; }
.mock-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 10px;
}
.mock-row + .mock-row { border-top: 1px solid var(--line); border-radius: 0; }
.mock-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  position: relative;
}
.mock-ic::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
.ic-request::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23298DFE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 2.5v6c0 4.5-3 7.8-7 9.5-4-1.7-7-5-7-9.5v-6L12 3z'/%3E%3Cpath d='M12 9v4M12 16h.01'/%3E%3C/svg%3E"); }
.ic-update { background: var(--ok-soft); }
.ic-update::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E9E5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E"); }
.ic-usb::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23298DFE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13M12 16l-4 2v2h8v-2l-4-2zM8.5 6.5L12 3l3.5 3.5'/%3E%3C/svg%3E"); }
.ic-pair::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23298DFE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 10h.01M11 10h.01M15 10h.01M7 14h10'/%3E%3C/svg%3E"); }

.mock-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mock-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-text span { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-actions { display: flex; gap: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.pill-blue { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }

.mock-pair { background: var(--bg-soft); }
.mock-code {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.mock-code small {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
}

/* ---------- Cards ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 0;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 48px; height: 48px; margin-bottom: 0; }
.icon-lg svg { width: 26px; height: 26px; stroke-width: 1.6; }

/* ---------- Steps (dark band) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #298DFE;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}
.step h3 { color: var(--navy-text); margin-bottom: 8px; }
.step p { color: var(--navy-text-2); font-size: 15px; }

/* ---------- Split (people) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.split-copy .lede { max-width: 54ch; }

.checks {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: var(--text-2);
  max-width: 56ch;
}
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks strong { color: var(--text); font-weight: 600; }
.tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
}
.tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 6px;
  height: 9px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

/* Desktop app mock (decorative) */
.app {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 380px;
}
.app-side {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 8px 16px;
}
.app-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent);
}
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav span {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.app-nav .active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.app-nav .sep { height: 1px; padding: 0; margin: 8px 6px; background: var(--line); }
.app-main { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.app-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.app-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.app-item strong { display: block; font-size: 13.5px; font-weight: 600; }
.app-item small { display: block; font-size: 12px; color: var(--text-2); }
.app-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); }
.app-banner {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
}
.app-banner b { color: var(--accent); font-weight: 600; }

/* ---------- Download ---------- */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.card-download, .card-admin { padding: 32px; }
.dl-head { display: flex; gap: 18px; align-items: flex-start; }
.dl-head h3 { font-size: 22px; margin-bottom: 6px; }
.card-download .btn-row { margin-top: 28px; }
.checks-compact { margin-top: 24px; gap: 10px; font-size: 14.5px; max-width: none; }
.checks-compact .tick { width: 18px; height: 18px; margin-top: 2px; }
.checks-compact .tick::after { left: 4.5px; top: 3px; width: 5px; height: 8px; }

.build-line {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  min-width: 0;
}
.build-line .sha {
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  margin-top: 2px;
}
.build-line .sha-label { white-space: nowrap; line-height: 22px; }
.build-line code {
  font-size: 12px;
  line-height: 16px;
  color: var(--text);
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
  word-break: break-all;
  min-width: 0;
}
.build-line[hidden] { display: none; }

.card-admin h3 { font-size: 20px; }
.cmd { margin-top: 20px; }
.cmd-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}
.cmd-box {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 84px 12px 14px;
}
.cmd-box pre {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.copy:hover { border-color: var(--text-3); }
.copy.is-copied { background: var(--ok-soft); border-color: transparent; color: var(--ok); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.footer-col a { font-size: 14px; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.footer-rule { height: 1px; background: var(--line); margin: 48px 0 20px; }
.copyright { font-size: 13px; color: var(--text-2); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .mock-text strong, .mock-text span { white-space: normal; }
}

@media (max-width: 900px) {
  :root { --section-y: 80px; }

  .nav { display: none; }
  .header-actions .btn-sm { display: inline-flex; }
  .menu { display: block; }

  .hero { padding-top: 64px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .split-visual { max-width: 560px; }
  .section-head { margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section-y: 64px; }

  .header-inner { height: 60px; gap: 16px; }
  .btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .btn-sm .arrow { display: none; }

  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  /* Let the headline flow on narrow screens instead of forcing the two-line break. */
  h1 br, h2 br { display: none; }
  .lede { font-size: 16px; }

  .btn-row .btn { width: 100%; }
  .grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .card-download, .card-admin { padding: 24px; }
  .dl-head { flex-direction: column; gap: 14px; }
  .cmd-box { padding: 12px 14px 44px; }
  .copy { top: auto; bottom: 8px; right: 8px; }

  .mock-row { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 10px; }
  .mock-ic { width: 32px; height: 32px; }
  .mock-actions, .mock-code { grid-column: 2; }
  .mock-text strong, .mock-text span { white-space: normal; }

  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .app-brand { padding-bottom: 8px; }
  .app-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .app-nav .sep { display: none; }
  .app-nav span { font-size: 12px; padding: 6px 8px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

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