/* ==========================================================================
   OneFilm - official site
   Concept: white gallery. The page is paper-white, the product screenshots
   sit in it like prints behind glass, and the seven-colour wordmark plus the
   spectrum rule are the only saturated colour on the page.
   Single stylesheet, no build step, no external assets.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paper. --ink is the page, --stage is the tinted band, --surface is a card. */
  --ink: #ffffff;
  --stage: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e6eaf0;
  --line-strong: #cfd7e1;
  --text: #0e1116;
  --muted: #5b6472;
  --muted-dim: #6e7784;
  --faint: #c3cad4;

  /* Ink used for the selected/filled state, matching the app's black pill. */
  --solid: #14181d;
  --solid-ink: #ffffff;

  /* Elevation. On white, depth comes from these, not from borders alone. */
  --sh-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-2: 0 1px 3px rgba(16, 24, 40, 0.07), 0 10px 26px -14px rgba(16, 24, 40, 0.18);
  --sh-3: 0 2px 8px rgba(16, 24, 40, 0.06), 0 26px 60px -28px rgba(16, 24, 40, 0.24);

  --c-o: #1e88e5;
  --c-n: #00bcd4;
  --c-e: #fdd835;
  --c-f: #ff7043;
  --c-i: #ec407a;
  --c-l: #ab47bc;
  --c-m: #3f51b5;

  --spectrum: linear-gradient(
    90deg,
    var(--c-o) 0%,
    var(--c-n) 16.6%,
    var(--c-e) 33.3%,
    var(--c-f) 50%,
    var(--c-i) 66.6%,
    var(--c-l) 83.3%,
    var(--c-m) 100%
  );

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-card: 20px;
  --r-inner: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 180ms;

  --nav-h: 68px;
  --wrap: 1200px;
  --gutter: 24px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--solid);
  color: var(--solid-ink);
}

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

/* ---------- 3. Atmosphere ---------- */
/* Barely-there colour wash so the white reads as paper, not as a blank div.
   Kept under 6% alpha: anything stronger looks like a stain. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(720px 480px at 6% -8%, rgba(30, 136, 229, 0.06), transparent 62%),
    radial-gradient(680px 440px at 98% 2%, rgba(171, 71, 188, 0.05), transparent 60%),
    radial-gradient(820px 560px at 50% 106%, rgba(0, 188, 212, 0.045), transparent 66%);
  pointer-events: none;
}

/* ---------- 4. Layout primitives ---------- */
.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(44px, 6vw, 72px) 0;
}

/* The tinted band. Fades in and out so it never reads as a hard slab. */
.section--stage {
  background: linear-gradient(180deg, transparent, var(--stage) 14%, var(--stage) 86%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--spectrum);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 62ch;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* ---------- 5. Wordmark ---------- */
.mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mark i {
  font-style: normal;
}

.mark i:nth-child(1) { color: var(--c-o); }
.mark i:nth-child(2) { color: var(--c-n); }
.mark i:nth-child(3) { color: var(--c-e); }
.mark i:nth-child(4) { color: var(--c-f); }
.mark i:nth-child(5) { color: var(--c-i); }
.mark i:nth-child(6) { color: var(--c-l); }
.mark i:nth-child(7) { color: var(--c-m); }

.mark__cn {
  margin-left: 10px;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 240ms var(--ease), border-color 240ms var(--ease),
    box-shadow 240ms var(--ease), backdrop-filter 240ms var(--ease);
}

.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.nav__inner {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__brand {
  font-size: 21px;
  display: inline-flex;
  align-items: baseline;
  flex: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  color: var(--muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--stage);
}

/* Selected state mirrors the app: solid ink pill, reversed text. */
.nav__links a[aria-current="page"] {
  color: var(--solid-ink);
  background: var(--solid);
  font-weight: 600;
}

.nav__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--solid);
  color: var(--solid-ink);
  font-size: 14.5px;
  font-weight: 650;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -12px rgba(16, 24, 40, 0.5);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  box-shadow: 0 -5px 0 var(--text), 0 5px 0 var(--text);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 90ms var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  background: var(--solid);
  color: var(--solid-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.16);
}

.btn--primary:hover {
  box-shadow: 0 14px 32px -16px rgba(16, 24, 40, 0.6);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.btn--ghost:hover {
  background: var(--stage);
  border-color: #b9c3d0;
}

.btn--sm {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn__arrow {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------- 8. Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.chip--live {
  color: var(--text);
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__copy h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Gradient text loses its yellow stop on white, so the emphasis carries the
   spectrum as an underline instead of as fill. */
.hero__copy h1 em {
  font-style: normal;
  background-image: var(--spectrum);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 5px;
  padding-bottom: 6px;
}

.hero__sub {
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 34em;
}

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

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted-dim);
}

.hero__meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* screen */
.screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--stage);
  box-shadow: var(--sh-3);
  isolation: isolate;
}

.screen img {
  width: 100%;
  height: auto;
}

/* A hairline inner highlight sells the "print under glass" reading. */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.hero__screen {
  position: relative;
}

/* The spectrum glow reads as light spill on white, so it stays very faint. */
.hero__screen::before {
  content: "";
  position: absolute;
  inset: -10% -6% -14% -6%;
  z-index: -1;
  border-radius: 50%;
  background: var(--spectrum);
  filter: blur(90px);
  opacity: 0.11;
}

/* ---------- 10. Spectrum strip ---------- */
.spectrum {
  display: flex;
  height: 4px;
  width: 100%;
  overflow: hidden;
}

.spectrum span {
  flex: 1;
}

.spectrum span:nth-child(1) { background: var(--c-o); }
.spectrum span:nth-child(2) { background: var(--c-n); }
.spectrum span:nth-child(3) { background: var(--c-e); }
.spectrum span:nth-child(4) { background: var(--c-f); }
.spectrum span:nth-child(5) { background: var(--c-i); }
.spectrum span:nth-child(6) { background: var(--c-l); }
.spectrum span:nth-child(7) { background: var(--c-m); }

/* ---------- 11. Feature grid ---------- */
.grid {
  display: grid;
  gap: 16px;
}

/* Grid items default to min-width:auto, which lets long code lines blow the
   column past the container on narrow screens. */
.grid > * {
  min-width: 0;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--spectrum);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: opacity 260ms var(--ease), transform 320ms var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}

.card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--stage);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  color: var(--text);
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

/* ---------- 12. Dual device ---------- */
/* 左列两张 16:9 横图决定整行高度，右列手机竖图拉伸到同高，
   两列顶底对齐；手机截图用 cover 吸收那 2–3% 的宽高比误差。 */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.device {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}

.device__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.device__label h3 {
  font-size: 15.5px;
  font-weight: 700;
}

.device__label span {
  font-size: 12px;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
}

.device__stack {
  display: grid;
  gap: 16px;
}

.device__frame {
  position: relative;
  border-radius: var(--r-inner);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--stage);
}

.device__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device--tv .device__frame {
  aspect-ratio: 16 / 9;
}

.device--phone .device__frame {
  flex: 1;
  min-height: 0;
}

.device--phone .device__frame img {
  position: absolute;
  inset: 0;
}

@media (max-width: 980px) {
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .device--phone .device__frame {
    flex: none;
    aspect-ratio: 9 / 20;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }
}

/* ---------- 13. Metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 26px 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

.metric__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.metric__value {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.metric__value small {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}

/* #3ddc84 fails contrast on white; this is the same hue at a readable depth. */
.metric__delta {
  margin-top: 10px;
  font-size: 13px;
  color: #15803d;
  font-variant-numeric: tabular-nums;
}

.metric--before .metric__value {
  color: var(--muted-dim);
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: var(--r-inner);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

th,
td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--stage);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  font-weight: 700;
  color: var(--text);
}

.footnote {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted-dim);
  line-height: 1.7;
}

/* ---------- 14. Gallery ---------- */
.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--stage);
  margin-bottom: 28px;
}

.tabs button {
  height: 38px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.tabs button[aria-selected="true"] {
  background: var(--solid);
  color: var(--solid-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18);
}

/* [hidden] alone loses to display:grid, so state it explicitly. */
.gallery[hidden] {
  display: none;
}

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

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r-inner);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--stage);
  position: relative;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.shot:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--sh-2);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot--tv img {
  aspect-ratio: 16 / 9;
}

.shot--phone {
  aspect-ratio: 9 / 20;
}

/* The caption sits on the screenshot, so it keeps a dark scrim on white too. */
.shot__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 11px;
  font-size: 12.5px;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 14, 0.78));
  letter-spacing: 0.02em;
}

dialog.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(1180px, 94vw);
  max-height: 92vh;
  overflow: visible;
}

dialog.lightbox::backdrop {
  background: rgba(236, 240, 245, 0.9);
  backdrop-filter: blur(14px) saturate(120%);
}

.lightbox__frame {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

dialog.lightbox img {
  display: block;
  max-height: 84vh;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 2px 10px rgba(16, 24, 40, 0.1),
    0 44px 90px -30px rgba(16, 24, 40, 0.42);
}

.lightbox__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  justify-content: center;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.lightbox__hint {
  font-size: 12.5px;
  color: var(--muted);
}

.lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-2);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lightbox__close:hover {
  background: var(--solid);
  border-color: var(--solid);
  color: var(--solid-ink);
}

.lightbox__close:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .lightbox__close {
    top: 6px;
    right: 6px;
    transform: none;
    width: 36px;
    height: 36px;
  }
}

/* ---------- 15. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  padding: 30px 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
}

.step p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.72;
}

/* ---------- 16. Notice ---------- */
.notice {
  padding: 26px 28px 26px 30px;
  border-radius: var(--r-inner);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}

.notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--spectrum);
}

.notice h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.notice p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
}

.notice p + p {
  margin-top: 8px;
}

.notice strong {
  color: var(--text);
  font-weight: 650;
}

/* ---------- 17. Download page ---------- */
.page-head {
  padding: clamp(52px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
}

.page-head h1 {
  margin-top: 20px;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.page-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
}

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

.dl {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dl__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dl__title {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.dl__desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.dl__list {
  display: grid;
  gap: 8px;
}

.dl__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--stage);
  border: 1px solid var(--line);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.dl__row:hover {
  background: #eef2f7;
  border-color: var(--line-strong);
  box-shadow: var(--sh-1);
}

.dl__row-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.dl__abi {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.dl__hint {
  font-size: 12px;
  color: var(--muted-dim);
  white-space: nowrap;
}

.dl__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: none;
}

.dl__go svg {
  transition: transform var(--dur) var(--ease);
}

.dl__row:hover .dl__go svg {
  transform: translateY(2px);
}

.dl__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 18. Code / inline command ---------- */
.code {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--stage);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #2b3440;
  overflow-x: auto;
}

.code code {
  white-space: nowrap;
}

.copy {
  margin-left: auto;
  flex: none;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.copy:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ---------- 19. Prose (guide / changelog / about) ---------- */
.prose {
  max-width: 74ch;
}

.prose h2 {
  margin-top: 56px;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.015em;
  scroll-margin-top: 96px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 32px;
  font-size: 16.5px;
  font-weight: 700;
  scroll-margin-top: 96px;
}

.prose p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.prose ul,
.prose ol {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.prose li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}

.prose ol {
  counter-reset: n;
}

.prose ol li {
  counter-increment: n;
  padding-left: 30px;
}

.prose ol li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose a:not(.btn) {
  color: var(--text);
  border-bottom: 1px solid rgba(14, 17, 22, 0.28);
  transition: border-color var(--dur) var(--ease);
}

.prose a:not(.btn):hover {
  border-bottom-color: var(--text);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef1f5;
  color: #2b3440;
}

.prose hr {
  margin: 40px 0;
  border: 0;
  height: 1px;
  background: var(--line);
}

.toc {
  padding: 22px 24px;
  border-radius: var(--r-inner);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-1);
  margin-bottom: 40px;
}

.toc h3 {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 650;
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 28px;
  counter-reset: none;
}

@media (max-width: 900px) {
  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .toc ol {
    grid-template-columns: 1fr;
  }
}

.toc a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.toc a:hover {
  color: var(--text);
}

/* ---------- 20. Release log ---------- */
.release {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.release:first-of-type {
  border-top: 0;
}

.release__ver {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.release__date {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}

.release__body h3 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 10px;
}

.release__body h3:not(:first-child) {
  margin-top: 22px;
}

.release__body ul {
  display: grid;
  gap: 8px;
}

.release__body li {
  position: relative;
  padding-left: 20px;
  font-size: 14.8px;
  color: var(--muted);
  line-height: 1.78;
}

.release__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

.release__body strong {
  color: var(--text);
  font-weight: 650;
}

/* ---------- 21. Footer ---------- */
.footer {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--stage));
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 56px 0 40px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted-dim);
  line-height: 1.8;
  max-width: 30ch;
}

.footer h4 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 14px;
}

.footer ul {
  display: grid;
  gap: 9px;
}

.footer li a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.footer li a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted-dim);
}

.footer__bottom p {
  max-width: 68ch;
  line-height: 1.7;
}

/* ---------- 22. Reveal animation ---------- */
/* Content is visible by default: the reveal is an entrance animation, not a
   hidden initial state, so the page still reads with JS disabled or blocked. */
[data-reveal] {
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-in {
  animation: reveal-up 480ms var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 23. Skip link ---------- */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--solid);
  color: var(--solid-ink);
  font-size: 14px;
  font-weight: 600;
  transition: top 160ms var(--ease);
}

.skip:focus-visible {
  top: 12px;
}

/* ---------- 24. 404 ---------- */
.error {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 18px;
  padding: 80px 0;
}

/* Same reasoning as the hero: a gradient fill would drop its yellow stop on
   white, so the number stays ink and the spectrum becomes the rule under it. */
.error__code {
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text);
  background-image: var(--spectrum);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% 6px;
  padding-bottom: 10px;
}

.error p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 25. Responsive ---------- */
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__sub {
    max-width: 46em;
  }

  .grid--3,
  .gallery,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duo {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }

  .nav__cta {
    display: none;
  }

  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
  }

  .nav.is-open .nav__links a {
    padding: 12px 14px;
    font-size: 15.5px;
  }

  .dl-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .release {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
    --nav-h: 62px;
  }

  .grid--3,
  .grid--2,
  .gallery,
  .steps {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__meta {
    font-size: 12.5px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15.5px;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ---------- 26. Motion / contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #39424f;
    --muted-dim: #4c5663;
    --line: #b8c2ce;
    --line-strong: #8e9aa8;
  }
}

/* ---------- 27. Print ---------- */
@media print {
  body::before,
  .nav,
  .hero__screen::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .metric,
  .step,
  .device,
  .dl,
  .toc,
  .table-wrap,
  .notice {
    box-shadow: none;
    border-color: #ccc;
  }
}
