/* OpenType landing page.
   Committed dark look: the product is a HUD that sits over whatever you are
   already doing, and the page borrows that register. */

:root {
  --bg: #0b0d10;
  --bg-alt: #0e1116;
  --surface: #14181f;
  --line: #232a34;
  --line-soft: #1a2029;

  --ink: #e9edf3;
  --ink-dim: #a3adbb;
  --ink-faint: #6b7686;

  --accent: #6ee7c0;
  --accent-deep: #2fbf95;

  --shell: 1080px;
  --radius: 14px;

  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
  --step-1: clamp(1.12rem, 1.02rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.5rem, 1.28rem + 1vw, 2rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* One horizontal rhythm for every band on the page. */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  color: var(--ink);
  background: #1b212a;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.1em 0.38em;
  word-break: break-all;
}

strong {
  color: var(--ink);
  font-weight: 620;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* ── ambient wave field ────────────────────────────────────────────── */

/* Fixed rather than scrolling with the page: the waves should feel like they
   are behind the whole product, not attached to one section. z-index -1 keeps
   them above the body's flat background and below every bit of content. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__band {
  position: absolute;
  left: 0;
  /* Twice the viewport so a -50% shift lands on an identical crest: the loop
     has to be seamless or it reads as a jump every cycle. */
  width: 200%;
  height: 46vh;
  min-height: 320px;
  fill: var(--accent);
  will-change: transform;
}

.ambient__band--a {
  bottom: 6%;
  opacity: 0.055;
  animation: drift 34s linear infinite;
}

.ambient__band--b {
  bottom: 22%;
  opacity: 0.035;
  /* Reversed, and not a neat multiple of A's duration, so the two never lock
     into a visible repeating pattern. */
  animation: drift 53s linear infinite reverse;
}

.ambient__band--c {
  bottom: -8%;
  opacity: 0.045;
  animation: drift 79s linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ── top bar ───────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 58px;
}

/* Below ~360px (an older/narrow phone) the wordmark, "Releases" link, GitHub
   pill and language toggle no longer fit on one line. Wrap the actions onto
   a second row rather than truncating or hiding any of them. */
@media (max-width: 360px) {
  .topbar__inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding-block: 0.7rem;
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.wordmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wordmark__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ghlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-dim);
  font-size: 0.84rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.ghlink:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.ghlink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ghlink__mark {
  flex: none;
}

/* Understated text link for in-site navigation (Releases), sitting next to
   the GitHub pill without competing with it for weight. */
.navlink {
  color: var(--ink-dim);
  font-size: 0.84rem;
  line-height: 1;
  padding: 0.42rem 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.16s ease;
}

.navlink:hover {
  color: var(--ink);
}

.navlink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Below the narrowest breakpoint the wordmark, GitHub link and language
   toggle stop fitting on one line; the mark alone still reads as GitHub. */
@media (max-width: 420px) {
  .ghlink__label {
    display: none;
  }

  .ghlink {
    padding: 0.42rem 0.55rem;
  }
}

.lang {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang__btn:hover {
  color: var(--ink);
}

.lang__btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.lang__btn:focus-visible,
.pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

/* A single soft bloom behind the headline, not a gradient wash over
   everything: it should read as one light source. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 620px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 40%,
    color-mix(in srgb, var(--accent) 12%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

/* Two columns once there is room: the HUD becomes the hero's visual anchor
   instead of floating under a half-empty band. */
@media (min-width: 940px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }

  .hero__inner > :not(.hud) {
    grid-column: 1;
  }

  .hero .hud {
    grid-column: 2;
    grid-row: 1 / -1;
    margin-top: 0;
    max-width: none;
  }
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero__title {
  margin: 0;
  font-size: var(--step-3);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 680;
  max-width: 18ch;
}

.hero__lede {
  margin: 1.35rem 0 0;
  font-size: var(--step-1);
  color: var(--ink-dim);
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}

/* The one action on the page, so it is the only solid-accent surface here —
   everything else stays a tint of it. */
.pill--primary {
  background: var(--accent);
  color: #06251c;
  border: 1px solid var(--accent);
  font-weight: 620;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.pill--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, #fff);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .pill--primary:hover {
    transform: none;
  }
}

.pill--soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 2.6s ease-in-out infinite;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* One line pointing at the release notes, sitting under the hero's CTA row
   rather than inside its flex-wrap so it can't reshuffle that row's spacing. */
.hero__updates {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

.hero__updates a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.hero__updates a:hover {
  border-bottom-color: currentColor;
}

.hero__updates a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── the HUD echo ──────────────────────────────────────────────────── */

.hud {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding: 0.95rem 1.15rem;
  max-width: 520px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -28px rgba(0, 0, 0, 0.9);
}

.hud__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  flex: none;
}

.hud__wave i {
  display: block;
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
  animation: wave 1.15s ease-in-out infinite;
}

/* Irregular delays and heights: an evenly-stepped bar chart reads as a
   loading spinner, not as someone speaking. */
.hud__wave i:nth-child(1)  { animation-delay: 0.00s; --peak: 55%; }
.hud__wave i:nth-child(2)  { animation-delay: 0.32s; --peak: 90%; }
.hud__wave i:nth-child(3)  { animation-delay: 0.12s; --peak: 40%; }
.hud__wave i:nth-child(4)  { animation-delay: 0.48s; --peak: 100%; }
.hud__wave i:nth-child(5)  { animation-delay: 0.20s; --peak: 62%; }
.hud__wave i:nth-child(6)  { animation-delay: 0.60s; --peak: 78%; }
.hud__wave i:nth-child(7)  { animation-delay: 0.06s; --peak: 45%; }
.hud__wave i:nth-child(8)  { animation-delay: 0.40s; --peak: 95%; }
.hud__wave i:nth-child(9)  { animation-delay: 0.26s; --peak: 52%; }
.hud__wave i:nth-child(10) { animation-delay: 0.54s; --peak: 84%; }
.hud__wave i:nth-child(11) { animation-delay: 0.16s; --peak: 38%; }
.hud__wave i:nth-child(12) { animation-delay: 0.44s; --peak: 68%; }

.hud__caption {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud__mode {
  flex: none;
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
}

@keyframes wave {
  0%,
  100% {
    height: 22%;
  }
  50% {
    height: var(--peak, 80%);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ── main demo ─────────────────────────────────────────────────────── */

.demo-section {
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}

.demo {
  width: 100%;
}

/* The whole 16:9 stage is the click target — same pattern as a video
   thumbnail — so the play affordance doesn't compete with a separate hit
   area. `all: unset` strips the browser's button chrome; everything after
   it re-declares only what the stage actually needs. */
.demo__stage {
  all: unset;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(155deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
}

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

.demo__waves {
  position: absolute;
  left: 1.5rem;
  bottom: 1.4rem;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
  opacity: 0.3;
}

.demo__waves i {
  display: block;
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: var(--accent);
  animation: wave 1.35s ease-in-out infinite;
}

.demo__waves i:nth-child(1) { animation-delay: 0.00s; --peak: 55%; }
.demo__waves i:nth-child(2) { animation-delay: 0.30s; --peak: 95%; }
.demo__waves i:nth-child(3) { animation-delay: 0.12s; --peak: 45%; }
.demo__waves i:nth-child(4) { animation-delay: 0.46s; --peak: 80%; }
.demo__waves i:nth-child(5) { animation-delay: 0.22s; --peak: 60%; }
.demo__waves i:nth-child(6) { animation-delay: 0.55s; --peak: 70%; }

.demo__play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--accent);
  color: #06251c;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.75);
  transition: transform 0.16s ease, background 0.16s ease;
}

.demo__play svg {
  margin-left: 3px; /* optically centre the triangle in the circle */
}

.demo__stage:hover .demo__play {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--accent) 88%, #fff);
}

.demo__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: #000;
}

.demo__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
}

.demo__label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.demo__sound {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ── mode clips ────────────────────────────────────────────────────── */

.clip {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.15rem;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line-soft);
}

.clip__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.7rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.clip__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
}

.clip__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.clip__wave i {
  display: block;
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
  animation: wave 1.3s ease-in-out infinite;
}

.clip__wave i:nth-child(1) { animation-delay: 0.00s; --peak: 50%; }
.clip__wave i:nth-child(2) { animation-delay: 0.28s; --peak: 90%; }
.clip__wave i:nth-child(3) { animation-delay: 0.10s; --peak: 40%; }
.clip__wave i:nth-child(4) { animation-delay: 0.42s; --peak: 100%; }
.clip__wave i:nth-child(5) { animation-delay: 0.18s; --peak: 58%; }
.clip__wave i:nth-child(6) { animation-delay: 0.50s; --peak: 75%; }
.clip__wave i:nth-child(7) { animation-delay: 0.06s; --peak: 42%; }
.clip__wave i:nth-child(8) { animation-delay: 0.36s; --peak: 85%; }

.clip__icon {
  opacity: 0.7;
}

.clip__tag {
  position: absolute;
  bottom: 0.55rem;
  right: 0.65rem;
  font-size: 0.68rem;
  color: var(--ink-faint);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* ── agent safety notice ───────────────────────────────────────────── */

.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.notice__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.notice__body {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.93rem;
}

.notice__body strong {
  color: var(--ink);
}

/* ── sections ──────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
  border-top: 1px solid var(--line-soft);
}

.section--alt {
  /* Translucent, so the wave field stays continuous across the page instead
     of vanishing under alternating bands. */
  background: color-mix(in srgb, var(--bg-alt) 82%, transparent);
}

.section__title {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 660;
}

.section__lede {
  margin: 0.85rem 0 0;
  color: var(--ink-dim);
  max-width: 52ch;
}

/* ── modes ─────────────────────────────────────────────────────────── */

.modes {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.mode {
  position: relative;
  padding: 1.6rem 1.5rem 1.75rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* The "01/02/03" numeral moved onto the clip badge (see .clip__badge above);
   .mode itself no longer carries a separate number element. */
.mode__name {
  margin: 0 0 0.7rem;
  font-size: var(--step-1);
  font-weight: 640;
  letter-spacing: -0.012em;
}

.mode__body {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.96rem;
}

/* ── feature grid ──────────────────────────────────────────────────── */

/* Discrete bordered cards rather than one hairline-separated slab: the card
   count will never divide evenly into every column count, and a slab leaves
   the leftover cells showing as visible empty holes. */
.grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
}

.card {
  padding: 1.45rem 1.4rem 1.6rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card__title {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 620;
  letter-spacing: -0.008em;
}

.card__body {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-dim);
}

/* ── privacy ───────────────────────────────────────────────────────── */

/* Was a two-column title + five-fact list; compressed to one line, so it's
   just a title and a paragraph now — no grid needed. */
.privacy__line {
  margin: 0.85rem 0 0;
  color: var(--ink-dim);
  max-width: 68ch;
}

/* ── closing ───────────────────────────────────────────────────────── */

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

/* Two ways in, stacked: the shell command, and the sentence you hand to an
   agent. Same visual weight — neither is the fallback. */
.install {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.install__label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.install__label--alt {
  margin-top: 0.9rem;
}

/* The install command. It is long and must never widen the page, so it scrolls
   inside its own box rather than wrapping mid-URL. The agent sentence is prose
   and wraps normally — see .cmd code below. */
.cmd {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  /* The command doesn't always fit its column (the hero's two-column layout
     can leave it narrower than the line is long), so this box needs to be
     able to scroll — but the platform's default scrollbar renders as a
     solid, full-width bar under the command, which reads as a rendering
     glitch on the page's single most important element. A thin, tinted
     scrollbar keeps the affordance without the artifact; Firefox and
     WebKit need it stated twice. */
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.cmd::-webkit-scrollbar {
  height: 6px;
}

.cmd::-webkit-scrollbar-track {
  background: transparent;
}

.cmd::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.cmd::-webkit-scrollbar-thumb:hover {
  background: var(--ink-faint);
}

/* Sized so the install command fits the hero's column without scrolling —
   a command that appears cut in half reads as broken. */
.cmd code {
  white-space: pre;
  font-size: 0.8rem;
  color: var(--ink);
}

/* The agent instruction is a sentence, not a command line: wrapping it is
   correct, and a sentence that scrolled sideways would be unreadable.
   `normal` rather than `pre-wrap` so the source's own indentation collapses
   instead of showing up as gaps mid-sentence. */
.cmd--wrap {
  overflow-x: visible;
}

.cmd--wrap code {
  white-space: normal;
  word-break: break-word;
}

.closing__alt {
  color: var(--ink-faint);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.closing__alt:hover {
  color: var(--ink-dim);
  border-bottom-color: var(--line);
}

.closing__title {
  margin: 0;
  font-size: var(--step-2);
  letter-spacing: -0.018em;
  font-weight: 660;
}

.closing__body {
  margin: 0;
  color: var(--ink-dim);
  max-width: 44ch;
}

/* ── releases page ─────────────────────────────────────────────────── */

.releases-head {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.release__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--ink-faint);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.release__back:hover {
  color: var(--ink-dim);
  border-bottom-color: var(--line);
}

.release__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.releases {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.release {
  padding: 1.75rem 1.75rem 2rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
}

.release__version {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 660;
  letter-spacing: -0.012em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.release__badge {
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #06251c;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.release__date {
  font-size: 0.86rem;
  color: var(--ink-faint);
}

.release__summary {
  margin: 0.9rem 0 0;
  color: var(--ink-dim);
  max-width: 62ch;
}

.release__section {
  margin-top: 1.5rem;
}

.release__section h3 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.release__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.release__list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.release__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.release__note {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.release__link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.release__link:hover {
  border-bottom-color: currentColor;
}

.release__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── footer ────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

.footer__sep {
  opacity: 0.5;
}

/* ── motion ────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hud__wave i,
  .pill--soon::before,
  .ambient__band,
  .demo__waves i,
  .clip__wave i {
    animation: none;
  }
  /* Without motion the bars must still read as a waveform rather than
     collapsing into one flat line. */
  .hud__wave i,
  .demo__waves i,
  .clip__wave i {
    height: var(--peak, 60%);
  }
  .demo__stage:hover .demo__play {
    transform: none;
  }
}
