/* SmartSudio. One sheet, no framework.
   Order: tokens, base, shell (header / footer), blocks, phone drawings,
   forms, documents, small screens. */

:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --surface: #10131a;
  --surface-2: #151923;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f4f5f7;
  --muted: #a3a9b6;
  --dim: #6d7482;
  --accent: #7c8cff;
  --accent-2: #a78bfa;
  --ok: #3ddc97;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3 {
  letter-spacing: -0.012em;
  line-height: 1.2;
  /* Break at punctuation, not in the middle of a phrase. */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

:lang(zh-Hans) .btn,
:lang(zh-Hans) .more {
  font-weight: 500;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-s);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 16px;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #f0abfc 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.top.is-stuck {
  background: rgba(7, 8, 11, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.top-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.lang:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 580;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn.primary {
  background: var(--text);
  color: #0a0b0f;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.35);
}

.btn.ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.btn.is-static {
  cursor: default;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--line-2);
}

.btn.is-static:hover {
  transform: none;
  box-shadow: none;
}

.btn .ico {
  flex: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(72px, 11vw, 148px) 0 clamp(56px, 8vw, 104px);
  margin-top: -68px;
  padding-top: calc(clamp(72px, 11vw, 148px) + 68px);
  isolation: isolate;
  /* The glow is wider than a phone's screen; below, it fades by itself. */
  overflow-x: clip;
}

.hero::before {
  /* A faint grid that fades towards the edges. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}

.glow {
  position: absolute;
  z-index: -1;
  top: -22%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1.6;
  translate: -50% 0;
  background:
    radial-gradient(closest-side at 35% 45%, color-mix(in srgb, var(--accent) 42%, transparent), transparent),
    radial-gradient(closest-side at 68% 40%, color-mix(in srgb, var(--accent-2) 34%, transparent), transparent);
  filter: blur(70px);
  opacity: 0.8;
  pointer-events: none;
}

.hero-in {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 16px 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 520;
  letter-spacing: 0.01em;
}

.eyebrow img {
  border-radius: 7px;
  margin-left: -6px;
}

.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

:lang(zh-Hans) .hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.9rem);
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.lead {
  text-wrap: balance;
  max-width: 40em;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.hero-small {
  padding-bottom: clamp(32px, 5vw, 56px);
}

.hero-home {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.hero-small h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
}

:lang(zh-Hans) .hero-small h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.hero-alone {
  min-height: 78vh;
  display: grid;
  align-items: center;
}

.stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(380px, 46vw, 560px);
  margin-top: clamp(56px, 8vw, 96px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
  mask-image: linear-gradient(#000 72%, transparent 100%);
}

/* ── Bands and headings ───────────────────────────────────────────────── */

.band {
  padding: clamp(56px, 7.5vw, 104px) 0;
}

.band.tight {
  padding-top: clamp(16px, 3vw, 40px);
}

.band-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.band-head h2,
.cta h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.band-head p:not(.kicker) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

:lang(zh-Hans) .kicker {
  letter-spacing: 0.14em;
  font-size: 13.5px;
}

/* ── The large product card on the home page ──────────────────────────── */

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(70% 90% at 80% 100%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%),
    var(--surface);
  transition:
    border-color 0.3s var(--ease),
    transform 0.4s var(--ease);
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
}

.feature-copy {
  padding: clamp(28px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.app-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.app-id img {
  border-radius: 14px;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}

.app-id strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.app-id span {
  color: var(--muted);
  font-size: 13.5px;
}

.feature-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.14;
}

.feature-copy > p {
  margin-top: 18px;
  color: var(--muted);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-weight: 580;
  font-size: 15.5px;
}

.more .ico,
.links .ico {
  transition: transform 0.25s var(--ease);
}

.feature-card:hover .more .ico,
.links a:hover .ico {
  transform: translateX(4px);
}

.feature-art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 480px;
  padding-top: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 66%, transparent 100%);
  mask-image: linear-gradient(#000 66%, transparent 100%);
}

.feature-art .phone {
  --w: 210px;
}

/* ── Games ────────────────────────────────────────────────────────────── */

.games {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.games-art {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 30% 30%, rgba(251, 146, 60, 0.28), transparent 70%),
    radial-gradient(60% 80% at 75% 75%, rgba(244, 63, 94, 0.24), transparent 70%), var(--bg-2);
  color: rgba(255, 255, 255, 0.9);
}

.games-art span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  aspect-ratio: 1;
}

.games-art span:nth-child(1) {
  width: 34%;
}

.games-art span:nth-child(2) {
  width: 58%;
}

.games-art span:nth-child(3) {
  width: 84%;
}

.games-copy {
  padding: clamp(28px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.games-copy h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.16;
}

.games-copy p {
  margin: 16px 0 28px;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Tiles ────────────────────────────────────────────────────────────── */

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

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

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

.tile {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.tile:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.tile-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, white);
}

.tile h3 {
  font-size: 1.14rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.tile p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

.aside {
  max-width: 820px;
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-m) var(--r-m) 0;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--muted);
  font-size: 15.5px;
}

/* ── Numbers under the product hero ───────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
}

.facts div {
  padding: 32px 28px;
  border-left: 1px solid var(--line);
}

.facts div:first-child {
  border-left: 0;
}

.facts strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.facts span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ── Text beside a phone ──────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(20px, 3vw, 40px) 0;
}

.hero-product {
  padding-bottom: 0;
}

#how {
  padding-top: clamp(24px, 4vw, 56px);
}

.split.flip .split-copy {
  order: 2;
}

.split-copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.split-copy > p:not(.kicker) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.06rem;
}

.split-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    var(--surface);
  overflow: hidden;
}

.ticks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4'/%3E%3C/svg%3E")
      center / 20px no-repeat,
    color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── Specification list ───────────────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.two-col .band-head {
  margin: 0;
  position: sticky;
  top: 108px;
}

.specs {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
}

.specs div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.specs div:first-child {
  border-top: 0;
}

.specs dt {
  color: var(--muted);
  font-size: 14.5px;
}

.specs dd {
  margin: 0;
  font-size: 15.5px;
}

/* ── Stores and links ─────────────────────────────────────────────────── */

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

.store {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.store strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.store span {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
}

.store em {
  display: inline-block;
  margin-top: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 560;
}

.links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  font-weight: 540;
  transition: background 0.2s var(--ease);
}

.links a:first-child {
  border-left: 0;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ── Closing call ─────────────────────────────────────────────────────── */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 140% at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--surface);
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.cta p {
  max-width: 34em;
  margin-top: 12px;
  color: var(--muted);
}

.cta .actions {
  margin: 0;
  justify-content: flex-start;
}

/* ── Questions ────────────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq h2 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 540;
  font-size: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  translate: 0 -70%;
  rotate: 45deg;
  transition: rotate 0.25s var(--ease), translate 0.25s var(--ease);
}

.faq details[open] summary::after {
  rotate: -135deg;
  translate: 0 -20%;
}

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
  font-size: 15.5px;
}

code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.88em;
}

/* ── Roadmap ──────────────────────────────────────────────────────────── */

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

.lane {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.lane header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.lane h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.lane h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}

.lane[data-state="now"] h2::before {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}

.lane[data-state="next"] h2::before {
  background: var(--accent);
}

.lane header span {
  color: var(--dim);
  font-size: 13px;
}

.lane article {
  padding: 20px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface-2);
}

.lane em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lane h3 {
  margin-top: 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lane p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ── Phone drawings ───────────────────────────────────────────────────── */

.phone {
  --w: 264px;
  position: relative;
  flex: none;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(145deg, #2a2e39, #12141a 40%, #1d2029);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -30px color-mix(in srgb, var(--accent) 60%, transparent);
  font-size: calc(var(--w) * 0.042);
  line-height: 1.2;
}

.ph-screen {
  position: relative;
  aspect-ratio: 9 / 19.3;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.14);
  background: linear-gradient(180deg, #171b24 0%, #0e0f12 55%);
  display: flex;
  flex-direction: column;
}

.ph-island {
  position: absolute;
  z-index: 3;
  top: 3.2%;
  left: 50%;
  width: 30%;
  height: 3.6%;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}

.ph-head {
  display: flex;
  align-items: center;
  gap: 8%;
  padding: 19% 7% 0;
}

.ph-head strong {
  margin-right: auto;
  font-size: 1.5em;
  letter-spacing: -0.02em;
}

.ph-head span {
  width: 1.2em;
  height: 1.2em;
  border-radius: 35%;
  background: rgba(255, 255, 255, 0.16);
}

.ph-chips {
  display: flex;
  gap: 3%;
  padding: 6% 7% 5%;
  white-space: nowrap;
  overflow: hidden;
}

.ph-chips b,
.ph-chips i {
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
  font-size: 0.92em;
}

.ph-chips b {
  border-color: var(--accent);
  color: color-mix(in srgb, var(--accent) 75%, white);
}

.ph-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 2%;
  padding: 0 7%;
  overflow: hidden;
}

.ph-grid span {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12%;
  overflow: hidden;
}

.ph-grid em {
  position: absolute;
  right: 8%;
  bottom: 6%;
  font-style: normal;
  font-size: 0.78em;
  font-weight: 560;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.t0 {
  background: linear-gradient(160deg, #f6d365, #fda085);
}
.t1 {
  background: linear-gradient(160deg, #5ee7df, #4f7cff);
}
.t2 {
  background: linear-gradient(160deg, #30cfd0, #330867);
}
.t3 {
  background: linear-gradient(160deg, #ff9a9e, #a18cd1);
}
.t4 {
  background: linear-gradient(160deg, #84fab0, #2b8a9e);
}
.t5 {
  background: linear-gradient(160deg, #fbc2eb, #6a5af9);
}

.ph-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 5% 4% 8%;
  color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(transparent, rgba(8, 9, 12, 0.9) 45%);
  margin-top: auto;
}

.ph-bar span {
  display: grid;
  justify-items: center;
  gap: 0.3em;
}

.ph-bar .on {
  color: color-mix(in srgb, var(--accent) 75%, white);
}

.ph-bar b {
  font-size: 0.78em;
  font-weight: 560;
}

.ph-bar .ico {
  width: 1.5em;
  height: 1.5em;
}

/* Watch */

.ph-feed .ph-screen {
  background: #000;
}

.ph-film {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 30% 30%, rgba(255, 221, 148, 0.85), transparent 70%),
    radial-gradient(70% 50% at 75% 70%, rgba(250, 112, 154, 0.8), transparent 70%),
    linear-gradient(170deg, #3a1c71, #d76d77 60%, #ffaf7b);
}

.ph-film::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.6));
}

.ph-heart {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: 22%;
  display: grid;
  place-items: center;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.ph-heart .ico {
  width: 46%;
  height: 46%;
  fill: #fff;
}

.ph-progress {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.ph-progress i {
  display: block;
  width: 38%;
  height: 100%;
  background: #fff;
}

.ph-feed .ph-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Browse */

.ph-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 19% 7% 0;
  padding: 0.75em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.95em;
}

.ph-url .ico {
  width: 1em;
  height: 1em;
}

.ph-page {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 0.9em;
  padding: 6% 7% 0;
  overflow: hidden;
}

.ph-page .hero {
  display: block;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 0;
  border-radius: 8%/13%;
  background: linear-gradient(140deg, #4f7cff, #a78bfa 55%, #f0abfc);
}

.ph-page .hero::before {
  display: none;
}

.ph-page .l {
  height: 0.7em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.w80 {
  width: 80%;
}
.w70 {
  width: 70%;
}
.w60 {
  width: 60%;
}
.w40 {
  width: 40%;
}

.ph-page .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
}

.ph-page .pair span {
  aspect-ratio: 1;
  border-radius: 12%;
  background: linear-gradient(160deg, #5ee7df, #4f7cff);
}

.ph-page .pair span:last-child {
  background: linear-gradient(160deg, #f6d365, #fda085);
}

.ph-save {
  position: absolute;
  z-index: 3;
  left: 5%;
  right: 5%;
  bottom: 17%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 0.9em 0.9em 1.1em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.3em;
  background: rgba(30, 33, 40, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
  font-size: 0.95em;
}

.ph-save .ico {
  width: 1.3em;
  height: 1.3em;
  color: var(--ok);
}

.ph-save span {
  margin-right: auto;
}

.ph-save b {
  padding: 0.5em 1em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* Three phones together */

.phone.side {
  --w: 224px;
  opacity: 0.9;
  z-index: 1;
}

.phone.center {
  z-index: 2;
}

.phone.left {
  margin-right: calc(var(--w) * -0.2);
  transform: translateY(9%) rotate(-6deg);
  transform-origin: top right;
}

.phone.right {
  margin-left: calc(var(--w) * -0.2);
  transform: translateY(9%) rotate(6deg);
  transform-origin: top left;
}

.stage .phone.center {
  --w: 300px;
}

.stage .phone.side {
  --w: 252px;
}

.feature-art .phone.side {
  --w: 176px;
}

.phone.solo {
  --w: 272px;
}

/* ── Forms ────────────────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.form {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.field {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 560;
}

.field label i {
  color: var(--dim);
  font-style: normal;
  font-weight: 450;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 16px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.55;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a9b6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.field ::placeholder {
  color: var(--dim);
}

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

.choices label {
  margin: 0;
  cursor: pointer;
}

.choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choices span {
  display: block;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 520;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.choices input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
}

.choices input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-end {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-status {
  min-height: 1.6em;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-side {
  display: grid;
  gap: 16px;
}

.note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.note h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.note .ico {
  color: var(--accent);
}

.note p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

/* ── Documents (policy, terms) ────────────────────────────────────────── */

.doc {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 128px);
}

.doc-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: clamp(32px, 6vw, 96px);
  justify-content: center;
  align-items: start;
}

.doc-side {
  position: sticky;
  top: 108px;
}

.doc-toc-title {
  margin-bottom: 14px;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.doc-side nav {
  display: grid;
  border-left: 1px solid var(--line);
}

.doc-side a {
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.doc-side a:hover,
.doc-side a.is-here {
  color: var(--text);
  border-left-color: var(--accent);
}

.prose header {
  padding-bottom: 40px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.prose h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.prose .lead {
  margin: 18px 0 0;
}

.stamp {
  display: inline-block;
  margin-top: 24px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.prose section {
  padding-top: 48px;
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose h2 span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0;
}

.prose p,
.prose li {
  color: #c6cad3;
  font-size: 16.5px;
  line-height: 1.75;
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: 16px;
}

.prose ul {
  margin: 0;
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 10px;
}

.prose li::marker {
  color: var(--dim);
}

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

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(48px, 6vw, 80px);
}

.foot-brand p {
  max-width: 26em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.foot h2 {
  margin-bottom: 16px;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.foot-grid > div:not(.foot-brand) a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14.5px;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}

.foot-grid > div:not(.foot-brand) a:hover {
  color: var(--text);
}

.foot-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

/* ── Arriving on scroll ───────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* ── Smaller screens ──────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .tiles.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card,
  .games,
  .two-col,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col .band-head {
    position: static;
  }

  .feature-art {
    height: 400px;
    padding-top: 8px;
  }

  .games-art {
    min-height: 220px;
  }

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

  .links a:nth-child(odd) {
    border-left: 0;
  }

  .links a:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .foot-brand {
    grid-column: 1 / -1;
  }

  .doc-grid {
    grid-template-columns: minmax(0, 720px);
  }

  .doc-side {
    display: none;
  }
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 8, 11, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    color: var(--text);
  }

  .top-end {
    margin-left: auto;
  }

  .split,
  .faq-grid,
  .board,
  .stores,
  .tiles.three {
    grid-template-columns: minmax(0, 1fr);
  }

  .split.flip .split-copy {
    order: 0;
  }

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

  .facts div:nth-child(odd) {
    border-left: 0;
  }

  .facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .specs div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .stage .phone.center {
    --w: 236px;
  }

  .stage .phone.side {
    --w: 196px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .tiles.four,
  .field-row,
  .links {
    grid-template-columns: minmax(0, 1fr);
  }

  .links a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .links a:first-child {
    border-top: 0;
  }

  .actions .btn,
  .form-end .btn {
    flex: 1 1 100%;
  }

  .stage .phone.center {
    --w: 200px;
  }

  .stage .phone.side {
    --w: 164px;
  }

  .feature-art .phone.center {
    --w: 168px;
  }

  .feature-art .phone.side {
    --w: 140px;
  }

  .foot-grid {
    gap: 32px 24px;
  }
}
