/* ─────────────────────────────────────────────────────────────
   NIRO — Web Design Tokens
   Visual direction: cinematic / dark / restrained / editorial,
   built on the house art direction used across this studio's
   launch sites. Re-anchored on Niro's own brand signal:
   #FF74C9 → #D89BF0 → #8A63F5. Large surfaces stay black /
   charcoal / neutral. Purple is a signal, never a wash.
   ───────────────────────────────────────────────────────────── */
:root {
  /* surfaces */
  --void: #0b0e12;
  --surface-1: #14191f;
  --surface-2: #1b222a;
  --surface-3: #202832;
  --hairline: #29313b;
  --hairline-strong: #3a4451;

  /* ink */
  --ink: #e8ecf1;
  --ink-dim: #a1abb7;
  --ink-faint: #6e7885;

  /* Niro brand signal — Black Titanium / Silver.
     Matte-black plate, satin-silver ribbon. No hue anywhere in the chrome. */
  --brand-a: #f4f6f9;
  --brand-b: #c9d1da;
  --brand-c: #98a3b0;
  --brand-grad: linear-gradient(100deg, var(--brand-a) 0%, var(--brand-b) 55%, var(--brand-c) 100%);

  /* type */
  /* precise tool, not an editorial voice: no serif in this system */
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* motion */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-atmos: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 220ms;
  --dur-mid: 620ms;
  --dur-slow: 1400ms;
}

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

html {
  background-color: var(--void);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

::selection {
  background: color-mix(in oklab, var(--brand-a) 42%, transparent);
  color: #fff;
}

:focus-visible {
  outline: 1px solid var(--brand-b);
  outline-offset: 3px;
}

/* ── layout primitives ────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

/* anchor targets must clear the fixed nav */
section[id] {
  scroll-margin-top: 84px;
}

/* the section directly under the hero keeps a shorter lead-in so its
   eyebrow is already visible at the bottom of a 900px-tall viewport */
#providers {
  padding-top: clamp(1.5rem, 2.2vw, 2rem);
}

.rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

.rule--signal {
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in oklab, var(--brand-a) 55%, transparent) 18%,
    color-mix(in oklab, var(--brand-c) 55%, transparent) 55%,
    transparent 100%
  );
}

/* ── typography ───────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.eyebrow--signal {
  background-image: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.04;
  margin: 0;
}

.display em {
  font-style: italic;
  background-image: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
}

.h2 .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background-image: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(0.975rem, 1.15vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0;
  max-width: 46ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-atmos),
    background-color var(--dur-fast) var(--ease-atmos),
    transform var(--dur-fast) var(--ease-atmos),
    opacity var(--dur-fast) var(--ease-atmos);
}

.btn .arrow {
  transition: transform var(--dur-fast) var(--ease-cinematic);
}

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

.btn--primary {
  /* No border on gradient pills: the 1px transparent border interacted with the
     rounded gradient and painted colour rims on both caps in Safari. Compensate
     the border box with 1px of padding instead. */
  border: 0;
  padding: calc(0.85rem + 1px) calc(1.4rem + 1px);
  background-color: transparent;
  background-image: linear-gradient(90deg, var(--brand-a) 0%, var(--brand-b) 55%, var(--brand-c) 100%);
  color: #140a16;
  font-weight: 600;
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  background: color-mix(in oklab, var(--surface-2) 70%, transparent);
  border-color: var(--hairline-strong);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  border-color: color-mix(in oklab, var(--brand-b) 55%, transparent);
}

.btn--quiet {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink-dim);
}

.btn--quiet:hover {
  color: var(--ink);
  border-color: var(--hairline-strong);
}

/* preserved structure, no fabricated destination yet */
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
}

.btn-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-mid) var(--ease-atmos),
    border-color var(--dur-mid) var(--ease-atmos),
    backdrop-filter var(--dur-mid) var(--ease-atmos);
}

.nav.is-scrolled {
  background: color-mix(in oklab, var(--void) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: color-mix(in oklab, var(--hairline) 75%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

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

.nav__brand img {
  height: 20px;
  width: auto;
}

.nav__links {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 1.75rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.nav__links a {
  transition: color var(--dur-fast) var(--ease-atmos);
}

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

.nav__cta {
  margin-left: auto;
  padding: 0.5rem 1rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav__links + .nav__cta {
  margin-left: 0;
}

/* language switch — same typographic register as the nav links, placed just
   ahead of the CTA so it reads as part of the navigation, not a new control */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav__lang-btn {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-atmos);
}

.nav__lang-btn:hover {
  color: var(--ink-dim);
}

.nav__lang-btn.is-active {
  color: var(--ink);
}

.nav__lang-btn[data-set-lang="zh"] {
  text-transform: none;
}

.nav__lang-sep {
  color: var(--hairline-strong);
  user-select: none;
}

.nav__lang + .nav__cta {
  margin-left: 1.35rem;
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    margin-left: 1.75rem;
  }
}

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* Vertical rhythm tightened so the next section's head peeks into a
     normal desktop viewport. Composition, type and the device are unchanged. */
  padding-top: clamp(4.5rem, 5vw, 5rem);
  padding-bottom: clamp(1.25rem, 1.5vw, 1.5rem);
  overflow: hidden;
}

.hero__atmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 72% at 78% 6%, rgba(232, 236, 241, 0.055) 0%, transparent 58%),
    radial-gradient(80% 60% at 12% 0%, rgba(232, 236, 241, 0.03) 0%, transparent 62%),
    linear-gradient(180deg, #0d1116 0%, var(--void) 62%);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
  }
}

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  margin-top: 1.6rem;
  max-width: 15ch;
}

.hero__lede {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 44ch;
  color: var(--ink-dim);
  line-height: 1.62;
}

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

.hero__actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero__origin {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

/* the plate is drawn here; the letterform is the standalone N mark
   (transparent, no dot) optically centred inside it */
.hero__origin-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(160deg, #1b222a 0%, #10151b 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 236, 241, 0.08);
}

.hero__origin-icon img {
  width: auto;
  height: 19px;
  display: block;
}

.hero__origin-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.hero__origin-meta strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.hero__origin-meta span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* signal bridge — Mac → iPhone */
.hero__bridge {
  position: relative;
}

.hero__bridge-line {
  position: absolute;
  left: -150px;
  right: calc(50% + min(150px, 38vw) + 14px);
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
  pointer-events: none;
  background-image: var(--brand-grad);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 16%,
    #000 90%,
    rgba(0, 0, 0, 0.55) 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 16%,
    #000 90%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0.34;
  z-index: 0;
}

@media (max-width: 979px) {
  .hero__bridge-line {
    display: none;
  }
}

/* device */
.device {
  position: relative;
  z-index: 1;
  width: min(300px, 76vw);
  margin-inline: auto;
  border-radius: 42px;
  padding: 9px;
  background:
    linear-gradient(160deg, rgba(232, 236, 241, 0.18) 0%, rgba(58, 68, 81, 0.55) 34%, rgba(16, 21, 27, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(244, 246, 249, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -46px rgba(232, 236, 241, 0.35);
}

.device__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface-1);
  aspect-ratio: 640 / 1391;
}

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

.device__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #05060a;
  z-index: 2;
}

.device__caption {
  margin-top: 1.1rem;
  text-align: center;
}

/* ── section header ───────────────────────────────────────── */
.sec-head {
  max-width: 62ch;
}

.sec-head .h2 {
  margin-top: 1rem;
}

.sec-head .lede {
  margin-top: 1.2rem;
}

/* ── providers roster ─────────────────────────────────────── */
.roster {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline);
}

.roster__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-bottom: 1px solid var(--hairline);
  transition: background-color var(--dur-mid) var(--ease-atmos);
}

@media (min-width: 820px) {
  .roster__row {
    grid-template-columns: 3.5rem minmax(0, 14rem) minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
  }
}

.roster__row:hover {
  background: linear-gradient(
    90deg,
    rgba(232, 236, 241, 0.05) 0%,
    transparent 72%
  );
}

.roster__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.roster__name {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.roster__desc {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 52ch;
}

.roster__tag {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

@media (min-width: 820px) {
  .roster__tag {
    grid-column: auto;
    justify-self: end;
  }
}

.roster__note {
  margin-top: 1.75rem;
  font-size: 13px;
  color: var(--ink-faint);
  max-width: 62ch;
}

/* ── release notes ────────────────────────────────────────── */
.release {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline);
}

.release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1.5rem;
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.release__ver {
  font-size: 11px;
  color: transparent;
  background-image: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.release__item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  padding: clamp(1.2rem, 2.4vw, 1.7rem) 0;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 820px) {
  .release__item {
    grid-template-columns: 3rem minmax(0, 1fr) 5rem;
    align-items: baseline;
    gap: 2rem;
  }
}

.release__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.release__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.release__body {
  margin: 0.35rem 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 62ch;
}

.release__list {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  max-width: 62ch;
}

.release__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}

.release__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.release__tag {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

@media (min-width: 820px) {
  .release__tag {
    grid-column: auto;
    justify-self: end;
  }
}

/* ── steps ────────────────────────────────────────────────── */
.steps {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--void);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.4vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: background-color var(--dur-mid) var(--ease-atmos);
}

.step:hover {
  background: var(--surface-1);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: transparent;
  background-image: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

.step__title {
  margin: 1.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.step__body {
  margin: 0.75rem 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
}

.step__detail {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ── screenshots ──────────────────────────────────────────── */
.shots {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 860px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.shot {
  position: relative;
}

.shot__frame {
  border-radius: 26px;
  padding: 7px;
  background: linear-gradient(160deg, rgba(232, 236, 241, 0.11) 0%, rgba(41, 49, 59, 0.5) 40%, rgba(13, 17, 22, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(244, 246, 249, 0.16),
    0 30px 70px -34px rgba(0, 0, 0, 0.9);
}

.shot__frame > div {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-1);
  aspect-ratio: 640 / 1391;
}

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

.shot__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-inline: 0.25rem;
}

.shot__label strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.shot__label span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.shots__note {
  margin-top: 2rem;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ── getting started / download ───────────────────────────── */
.start {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}

.start__atmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 100% at 50% 118%, rgba(232, 236, 241, 0.05) 0%, transparent 64%),
    radial-gradient(60% 80% at 12% 100%, rgba(232, 236, 241, 0.025) 0%, transparent 62%);
}

.start__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 940px) {
  .start__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.order {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}

.order__row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
}

.order__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brand-b);
}

.order__v strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.order__v p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}

.cta-card {
  border: 1px solid var(--hairline);
  background:
    linear-gradient(165deg, var(--surface-2) 0%, var(--surface-1) 55%, #0d1116 100%);
  padding: clamp(1.75rem, 3.4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in oklab, var(--brand-a) 55%, transparent) 30%,
    color-mix(in oklab, var(--brand-c) 45%, transparent) 70%,
    transparent 100%
  );
}

.cta-card__title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 1rem 0 0;
}

.cta-card__body {
  margin: 0.9rem 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.cta-card__meta {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── footer ───────────────────────────────────────────────── */
.footer {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2.5rem;
  overflow: hidden;
}

.footer__top {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}

.footer__brand img {
  height: 22px;
  width: auto;
}

.footer__tag {
  margin-top: 1.1rem;
  font-size: 13.5px;
  color: var(--ink-dim);
  max-width: 34ch;
  line-height: 1.6;
}

.footer__col h4 {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__col a {
  font-size: 13.5px;
  color: var(--ink-dim);
  transition: color var(--dur-fast) var(--ease-atmos);
}

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

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer__bottom nav {
  display: flex;
  gap: 1.5rem;
}

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

/* ── film grain ───────────────────────────────────────────── */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ── motion ─────────────────────────────────────────────────
   .reveal is VISIBLE by default so a no-JS browser always reads the
   page. The entrance only arms once JS marks <html data-js="true">. */
.reveal {
  opacity: 1;
  transform: none;
}

html[data-js="true"] .reveal {
  opacity: 0;
  animation: rise 0.95s var(--ease-cinematic) forwards;
}

html[data-js="true"] .d-1 { animation-delay: 0.10s; }
html[data-js="true"] .d-2 { animation-delay: 0.24s; }
html[data-js="true"] .d-3 { animation-delay: 0.40s; }
html[data-js="true"] .d-4 { animation-delay: 0.56s; }
html[data-js="true"] .d-5 { animation-delay: 0.74s; }
html[data-js="true"] .d-6 { animation-delay: 0.95s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* scroll reveal: visible by default; IO arms it via html[data-reveal-armed] */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html[data-reveal-armed="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease-cinematic),
    transform var(--dur-slow) var(--ease-cinematic);
}

html[data-reveal-armed="true"] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@keyframes signal-flow {
  to {
    background-position: -260% 0;
  }
}

.signal-sweep {
  background-image: var(--brand-grad);
  background-size: 260% 100%;
  animation: signal-flow 9s linear infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.55;
  }
}

.hero__bridge-line {
  animation: breathe 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html[data-js="true"] .reveal,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html[data-reveal-armed="true"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .signal-sweep,
  .hero__bridge-line {
    animation: none !important;
  }
}

/* ── 中文断行 ───────────────────────────────────────────────
   CJK 默认逐字断行，会把「什么 / 运行 / 机器上」这类词组切开，
   标题还会甩出「么。」「的Mac。」这种孤字尾行。仅在 lang=zh-Hans
   生效，英文页面完全不受影响：
     · keep-all + balance   标题只在空格/标点处断，并把两行拉匀
     · overflow-wrap: anywhere  正文排不下时才兜底逐字断，不会撑破
     · line-break: strict   标点避头尾（行首不出现 ，。、）
     · text-wrap: pretty    段落避免末行只剩两三个字
   ──────────────────────────────────────────────────────── */
html[lang="zh-Hans"] {
  line-break: strict;
}

html[lang="zh-Hans"] body {
  word-break: normal;
  overflow-wrap: normal;
}

html[lang="zh-Hans"] .display,
html[lang="zh-Hans"] .h2,
html[lang="zh-Hans"] .cta-card__title,
html[lang="zh-Hans"] .step__title,
html[lang="zh-Hans"] .order__v strong {
  text-wrap: balance;
}

html[lang="zh-Hans"] .hero__lede,
html[lang="zh-Hans"] .lede,
html[lang="zh-Hans"] .step__body,
html[lang="zh-Hans"] .cta-card__body,
html[lang="zh-Hans"] .order__v p,
html[lang="zh-Hans"] .roster__note,
html[lang="zh-Hans"] .release__body,
html[lang="zh-Hans"] .release__list li,
html[lang="zh-Hans"] .shots__note,
html[lang="zh-Hans"] .footer__tag {
  text-wrap: pretty;
}

/* 中文字面比同磅值的拉丁字母宽，display 收一档，
   否则「你的 coding agent，」首行必然被挤到第二行。 */
html[lang="zh-Hans"] .hero__title {
  font-size: clamp(2.35rem, 5.9vw, 4.4rem);
  max-width: 17ch;
}

/* Brand chrome: subtle GitHub entry in the nav and the Apple mark inside App Store buttons. */
.nav__icon{display:inline-flex;align-items:center;justify-content:center;margin-left:1.25rem;opacity:.6;transition:opacity .2s ease;color:var(--ink,#fff);transform:translateY(1px)}
.nav__icon:hover{opacity:1}
.btn__apple{width:16px;height:16px;margin-right:8px;flex:0 0 auto;fill:currentColor}

/* ══════════════════════════════════════════════════════════════
   BLACK TITANIUM / SILVER — interface layer
   Type, chrome and controls on top of the base sheet. The product
   photography stays untouched: only the shell around it changes.
   ══════════════════════════════════════════════════════════════ */

/* — type: precise sans, tight tracking, no serif voice — */
.display,
.h2 .accent {
  font-family: var(--font-sans);
  font-style: normal;
}

.display {
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.03;
}

.hero__title em {
  font-style: normal;
  background-image: linear-gradient(180deg, #f7f9fb 0%, #b9c3cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 .accent {
  font-weight: 600;
  letter-spacing: -0.02em;
  background-image: linear-gradient(180deg, #f7f9fb 0%, #b9c3cf 100%);
}

/* — chrome: navigation and brand lockup — */
.nav {
  background: rgba(11, 14, 18, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: rgba(232, 236, 241, 0.06);
}

.nav.is-scrolled {
  background: rgba(11, 14, 18, 0.9);
  border-bottom-color: var(--hairline);
}

.nav__brand {
  gap: 0.65rem;
}

.nav__brand .nav__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(232, 236, 241, 0.1);
}

.nav__brand .nav__lockup {
  height: 45px;
  width: auto;
  display: block;
}

.nav__links a {
  color: var(--ink-dim);
}

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

.nav__cta.btn {
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ink);
}

.nav__cta.btn:hover {
  border-color: rgba(232, 236, 241, 0.4);
  background: rgba(232, 236, 241, 0.05);
}

.nav__icon {
  color: var(--ink-dim);
}

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

.nav__lang-btn {
  color: var(--ink-faint);
}

.nav__lang-btn.is-active {
  color: var(--ink);
}

.nav__lang-sep {
  color: var(--hairline-strong);
}

/* — controls: silver first, ghost second — */
.btn {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
}

.btn--primary {
  border: 0;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  background-image: none;
  color: #0b0e12;
}

.btn--primary:hover {
  background: #ffffff;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(232, 236, 241, 0.42);
  background: rgba(232, 236, 241, 0.045);
}

.btn .arrow {
  opacity: 0.65;
}

.btn-note {
  color: var(--ink-faint);
}

/* — surfaces: matte plates, hairline separators — */
.section {
  border-top: 1px solid rgba(232, 236, 241, 0.05);
}

.hero {
  border-bottom: 1px solid rgba(232, 236, 241, 0.06);
}

.start {
  border-top: 1px solid rgba(232, 236, 241, 0.05);
}

.roster__row {
  border-bottom-color: var(--hairline);
}

.roster__row:hover {
  background: rgba(232, 236, 241, 0.035);
}

.release__item,
.shot__frame {
  border-color: var(--hairline);
}

.step__num {
  color: var(--ink-faint);
}

.cta-card {
  border-color: var(--hairline);
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface-1) 60%, #0d1116 100%);
}

.footer {
  border-top: 1px solid var(--hairline);
  background: #090c10;
}

.footer__brand img {
  height: 22px;
  width: auto;
}

.footer__tag,
.footer__col ul a {
  color: var(--ink-dim);
}

.footer__bottom {
  color: var(--ink-faint);
}

/* — imagery: keep the real shots, calm the frames — */
.device__caption,
.shot__label {
  color: var(--ink-faint);
}

.hero__origin-icon {
  border-radius: 9px;
}

.hero__origin-icon img {
  height: 22px;
  width: auto;
}

.hero__bridge-line {
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
}

/* — responsive refine: the nav has four things to carry on a phone — */
@media (max-width: 720px) {
  .nav__inner {
    height: 56px;
  }

  .nav__brand .nav__mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }

  .nav__brand .nav__lockup {
    height: 32.5px;
  }

  .nav__icon {
    display: none;
  }

  .nav__lang {
    gap: 0.3rem;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .nav__lang + .nav__cta {
    margin-left: 0.7rem;
  }

  .nav__cta {
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero__title {
    font-size: clamp(2.35rem, 10.2vw, 3.1rem);
    max-width: 18ch;
  }
}

@media (min-width: 980px) {
  .hero__title {
    font-size: clamp(2.9rem, 4.6vw, 3.9rem);
    max-width: 20ch;
  }
}

/* — hero type: two controlled lines at every width (markup supplies the <br>) — */
.hero__title {
  font-size: clamp(2.05rem, 8.8vw, 2.9rem);
  max-width: none;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

@media (min-width: 720px) {
  .hero__title {
    font-size: clamp(2.5rem, 3.7vw, 3.35rem);
  }
}

/* — CJK headings need air: the Latin tracking/leading is too tight for hanzi — */
html[lang="zh-Hans"] .display {
  line-height: 1.16;
  letter-spacing: -0.012em;
}

html[lang="zh-Hans"] .hero__title {
  line-height: 1.18;
}

/* — hierarchy: section titles read as titles, not as body copy — */
.h2 {
  font-weight: 600;
}

/* — footer colophon sits on the page gutter like everything else — */
.footer > .footer__bottom[style] {
  padding-inline: var(--gutter);
}

/* Review corrections: device follows the captured aspect; download card aligns with the heading. */
.device__screen, .shot__frame > div { aspect-ratio: 1206 / 2622; }
@media (min-width: 940px) {
  .start__inner > .cta-card { margin-top: 3.1rem; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .nav__links { gap: 1rem; letter-spacing: .12em; }
}

/* Selected ASC artwork: exact phone-shaped crop; no surrounding poster artwork. */
.promo-phone { display:block; width:100%; height:auto; overflow:visible; filter:drop-shadow(0 18px 24px rgba(0,0,0,.3)); }
.device--promo { background:none; padding:0; border-radius:0; box-shadow:none; }
.shots--four { grid-template-columns: minmax(0,1fr); }
.shots--four .shot { width:100%; max-width:320px; margin-inline:auto; }
.shots--four .shot__label { justify-content:center; text-align:center; margin-top:1.4rem; }
@media(min-width:640px) { .shots--four { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(min-width:1100px) { .shots--four { grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(1.5rem,3vw,2.5rem); } }

/* Keep product terms intact while allowing normal wrapping on small screens. */
.keep-phrase { white-space: nowrap; }

/* CJK prose respects punctuation boundaries; long addresses may break only where needed. */
html[lang="zh-Hans"] body { line-break: strict; word-break: normal; overflow-wrap: normal; }
html[lang="zh-Hans"] p, html[lang="zh-Hans"] li { word-break: normal; }
.roster__note a, .release__body a { overflow-wrap: break-word; }
