@font-face {
  font-family: "Noto Sans SC";
  src: url("../fonts/leaf-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour — one accent, three surfaces, hairlines */
  --blue: #0066cc;
  --blue-focus: #0071e3;
  --blue-dark: #2997ff;
  --ink: #1d1d1f;
  --ink-80: #333333;
  --ink-48: #6e6e73;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --hairline: #e0e0e0;
  --on-dark-muted: #cccccc;

  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", "PingFang SC",
          "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --section: 80px;
  --wrap: 1440px;
  --content: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 60px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.374px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
button { font: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -.28px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: 0; }
h3 { font-size: 17px; line-height: 1.24; letter-spacing: -.374px; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 980px; }
.wrap--content { max-width: calc(var(--content) + 2 * var(--pad)); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 3px; border-radius: 4px; }

/* ── global nav ─────────────────────────────────────── */
.gnav {
  position: sticky; top: 0; z-index: 60;
  background: #000; color: #fff;
}
.gnav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 44px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
}
.gnav__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: -.12px; }
.gnav__mark { width: 20px; height: 18px; color: #fff; }
.gnav__links { display: flex; gap: 28px; margin-left: auto; font-size: 12px; letter-spacing: -.12px; }
.gnav__links a { opacity: .82; transition: opacity .2s ease; }
.gnav__links a:hover { opacity: 1; }
.gnav__menu {
  display: none; position: relative; margin-left: auto;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
}
.gnav__menu span {
  position: absolute; left: 14px; width: 16px; height: 1px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.gnav__menu span:first-child { top: 19px; }
.gnav__menu span:last-child { top: 24px; }
.gnav__menu[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.gnav__menu[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.gnav__panel {
  position: absolute; left: 0; right: 0; top: 44px;
  background: #000; border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  padding: 4px var(--pad) 16px;
}
.gnav__panel nav { display: grid; }
.gnav__panel a {
  padding: 14px 0; font-size: 17px; letter-spacing: -.374px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* ── buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 1px solid transparent; border-radius: 9999px;
  font-family: var(--sans); font-size: 17px; font-weight: 400; line-height: 1.2;
  letter-spacing: -.374px; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.95); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-focus); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: rgba(0, 102, 204, .06); }

.textlink { color: var(--blue); font-size: 17px; letter-spacing: -.374px; }
.textlink:hover { text-decoration: underline; }

/* ── tiles ──────────────────────────────────────────── */
.tile { padding-block: var(--section); }
.tile--light { background: var(--canvas); color: var(--ink); }
.tile--parchment { background: var(--parchment); color: var(--ink); }
.tile--dark { background: var(--tile-1); color: #fff; }
.tile--dark .lead,
.tile--dark .body,
.tile--dark .ticks li { color: var(--on-dark-muted); }

.lead {
  max-width: 34em; margin: 20px auto 0;
  font-size: clamp(21px, 2.2vw, 28px); font-weight: 400; line-height: 1.14; letter-spacing: .196px;
  text-wrap: pretty;
}
.lead--sm { font-size: clamp(21px, 1.9vw, 24px); line-height: 1.5; letter-spacing: 0; }
.body { max-width: 34em; margin: 17px 0 0; font-size: 17px; line-height: 1.47; color: var(--ink-80); }
.tile--light .body { color: var(--ink-80); }

.hero { padding-block: var(--section) 56px; text-align: center; }
.hero h1 { max-width: 16em; margin-inline: auto; }
.hero .lead { max-width: 33em; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

.hero__stage {
  display: flex; align-items: flex-end; justify-content: center;
  margin-top: 56px;
}
.hero__phone {
  height: auto; border-radius: 9.7% / 4.5%;
  box-shadow: 3px 5px 30px rgba(0, 0, 0, .22);
}
.hero__phone--front { position: relative; z-index: 2; width: clamp(236px, 23vw, 318px); }
.hero__phone--side { position: relative; z-index: 1; width: clamp(170px, 17vw, 232px); margin-bottom: 38px; }
.hero__phone--side:first-child { margin-right: -72px; }
.hero__phone--side:last-child { margin-left: -72px; }

/* ── split sections ─────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(32px, 6vw, 88px); max-width: var(--content); margin-inline: auto;
}
.split__copy { max-width: 480px; margin-inline: auto; width: 100%; }
.split__art { display: flex; justify-content: center; }
.split--flip .split__copy { order: 2; }
.split--flip .split__art { order: 1; }
.split .lead { margin-inline: 0; }

.render {
  width: clamp(240px, 24vw, 320px); height: auto;
  border-radius: 9.7% / 4.5%; box-shadow: 3px 5px 30px rgba(0, 0, 0, .22);
}

.ticks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 18px; font-size: 17px; line-height: 1.47; color: var(--ink-80); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45;
}

/* ── spec lists ─────────────────────────────────────── */
.formats,
.platforms {
  list-style: none; margin: 80px 0 0; padding: 0;
  display: grid; gap: 0 24px;
}
.formats { grid-template-columns: repeat(4, 1fr); }
.platforms { grid-template-columns: repeat(7, 1fr); gap: 0 16px; }
.formats li,
.platforms li {
  padding: 20px 0; font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .231px;
}
.formats li { border-top: 1px solid rgba(255, 255, 255, .18); }
.platforms li { border-top: 1px solid var(--hairline); }

.keys {
  list-style: none; margin: 80px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px;
}
.keys li { border-top: 1px solid var(--hairline); padding-top: 20px; }
.keys b { display: block; font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .231px; }
.keys span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.43; letter-spacing: -.224px; color: var(--ink-48); }
.tile--dark .keys li { border-top-color: rgba(255, 255, 255, .18); }
.tile--dark .keys span { color: var(--on-dark-muted); }

/* ── listen together ────────────────────────────────── */
.listen__head { max-width: 640px; }
.lan {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 24px); margin-top: 56px;
}
.lan__bus { position: absolute; left: 4%; right: 4%; top: 50%; height: 1px; background: rgba(255, 255, 255, .18); }
.lan__pulse {
  position: absolute; top: calc(50% - 3.5px); left: 4%; z-index: 0;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-dark);
  animation: slide 4.4s linear infinite;
}
.lan__node {
  position: relative; z-index: 1;
  padding: 14px 10px; text-align: center;
  background: var(--tile-1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px;
}
.lan__node b { display: block; font-size: 17px; font-weight: 600; }
.lan__node span { display: block; margin-top: 4px; font-size: 14px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.lan__node--host { border-color: rgba(41, 151, 255, .55); }
.tile--dark 
@keyframes slide {
  0% { left: 4%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(96% - 7px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lan__pulse { animation: none; left: 50%; opacity: .7; }
}

/* ── download ───────────────────────────────────────── */
.dl__head { max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 24px;
}
.card p { margin: 0; font-size: 17px; line-height: 1.47; color: var(--ink-80); }
.card .textlink { margin-top: auto; padding-top: 8px; }
.card__foot { font-size: 14px !important; letter-spacing: -.224px; color: var(--ink-48) !important; margin-top: auto !important; }

/* ── closing tile ───────────────────────────────────── */
.cta { text-align: center; padding-block: 96px; background: var(--tile-2); }
.cta__mark { width: 54px; height: 48px; color: #fff; margin: 0 auto 24px; }
.cta h2 { color: #fff; }
.cta .lead { margin: 20px auto 0; max-width: 30em; color: var(--on-dark-muted); }
.cta .btn { margin-top: 32px; }
.cta__hash {
  margin: 24px 0 0; font-size: 12px; line-height: 1.3; letter-spacing: -.12px;
  color: #a1a1a6; word-break: break-all;
}
.cta__hash code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ── faq ────────────────────────────────────────────── */
.faq h2 { margin-bottom: 40px; }
.faq__list { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .231px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 11px; height: 11px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .45; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { margin: 0; padding: 0 24px 28px 0; max-width: 46em; font-size: 17px; line-height: 1.47; color: var(--ink-80); }

/* ── footer ─────────────────────────────────────────── */
.foot {
  background: var(--parchment); color: var(--ink-80);
  padding-block: 64px 32px; border-top: 1px solid var(--hairline);
}
.foot__top { padding-bottom: 40px; border-bottom: 1px solid var(--hairline); }
.foot__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__nav h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -.224px; color: var(--ink); }
.foot__nav a { display: block; font-size: 17px; line-height: 2.41; letter-spacing: -.374px; }
.foot__nav a:hover { color: var(--blue); }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; font-size: 12px; line-height: 1.3; letter-spacing: -.12px; color: var(--ink-48);
}

/* ── standalone pages ───────────────────────────────── */
.solo {
  min-height: 100svh; display: grid; place-content: center;
  padding-block: 64px; text-align: center;
}
.solo__mark { width: 44px; height: 40px; margin: 0 auto 28px; color: var(--ink); }
.solo__mark--lg { width: 60px; height: 54px; margin-bottom: 24px; }
.solo__code { margin: 0 0 12px; font-size: 12px; line-height: 1.3; letter-spacing: .16em; color: var(--ink-48); }
.solo h1 { max-width: 14em; margin-inline: auto; }
.solo .lead { margin-inline: auto; }
.solo .actions { justify-content: center; }
.solo__meta { margin: 32px 0 0; font-size: 12px; line-height: 1.3; letter-spacing: -.12px; color: var(--ink-48); }

/* ── reveal ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .65, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 1068px) {
  .hero__phone--front { width: 280px; }
  .hero__phone--side { width: 190px; margin-bottom: 30px; }
  .hero__phone--side:first-child { margin-right: -56px; }
  .hero__phone--side:last-child { margin-left: -56px; }
  .split { gap: 48px; }
  .render { width: 280px; }
}

@media (max-width: 833px) {
  :root { --section: 64px; }
  .gnav__links { display: none; }
  .gnav__menu { display: block; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .render { width: min(80vw, 300px); }
  .split__copy { max-width: 560px; }
  .split--flip .split__copy { order: 0; }
  .split--flip .split__art { order: 0; }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .keys { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .foot__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --section: 48px; }
  .hero { padding-block: 56px 40px; }
  .hero__stage { margin-top: 40px; }
  .hero__phone--side { display: none; }
  .hero__phone--front { width: min(76vw, 320px); }
  .hero .lead { font-size: 21px; line-height: 1.5; }
  .actions { margin-top: 28px; }
  .lead--sm { font-size: 21px; line-height: 1.5; }
  .render { width: min(72vw, 280px); }
  .formats, .platforms { margin-top: 48px; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .formats li, .platforms li { font-size: 17px; padding: 16px 0; }
  .keys { margin-top: 48px; }
  .keys b { font-size: 17px; }
  .lan { grid-template-columns: repeat(2, 1fr); margin-top: 40px; row-gap: 12px; }
  .lan__bus, .lan__pulse { display: none; }
  .lan__node { background: var(--tile-1); }
  .cta { padding-block: 72px; }
  .faq summary { font-size: 17px; padding: 20px 0; }
  .faq h2 { margin-bottom: 28px; }
  .foot { padding-top: 48px; }
  .foot__nav { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .foot__nav a { font-size: 15px; line-height: 2.2; }
}
