:root {
  color-scheme: light dark;
  --bg: #f6f6fb;
  --surface: #ffffff;
  --text: #15151f;
  --muted: #55556a;
  --line: #e1e1ec;
  --tint: #ecebfd;
  --accent-text: #4a4fd8;
  --logo-a: #5c6bfa;
  --logo-b: #9e4ded;
  --button-a: #4954e6;
  --button-b: #8338d4;
  --on-accent: #ffffff;
  --bar: #dcdce8;
  --bar-strong: #c9c9da;
  --shadow: 0 24px 60px -24px rgb(40 36 110 / 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wide: 1120px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e16;
    --surface: #181824;
    --text: #ededf5;
    --muted: #a9a9c0;
    --line: #2a2a3b;
    --tint: #1d1b33;
    --accent-text: #aab0ff;
    --bar: #2c2c3e;
    --bar-strong: #3a3a50;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.shell { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--surface); border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

.top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.languages { display: flex; gap: 4px; font: 500 13px/1 var(--mono); }
.languages a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.languages a[aria-current] { color: var(--text); background: var(--tint); }

.hero { display: grid; gap: 48px; padding-block: 32px 72px; }
h1 { font-size: clamp(36px, 9.4vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
h1 span { color: var(--muted); }
.lead { margin-top: 20px; font-size: 19px; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; margin-top: 28px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--button-a), var(--button-b));
  color: var(--on-accent); font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { color: var(--on-accent); filter: brightness(1.08); }
.button:active { transform: scale(0.98); }
.hero .specs { margin-top: 12px; color: var(--muted); font-size: 15px; }
.hero .first-open { margin-top: 16px; max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hero .release { margin-top: 8px; font-size: 14px; }
.hero .release a { color: var(--accent-text); }

.popup-scene { position: relative; max-width: 420px; width: 100%; justify-self: center; padding-top: 34px; }
.menubar {
  position: absolute; inset: 0 0 auto; height: 28px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
}
.menubar-dots { width: 72px; height: 8px; border-radius: 4px; background: var(--bar); }
.menubar img { border-radius: 4px; box-shadow: 0 0 0 3px var(--tint); }
.popup {
  margin-left: auto; width: min(100%, 340px); padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.popup-search { padding: 10px 12px; border-radius: 10px; background: var(--tint); color: var(--muted); font-size: 14px; }
.popup-rows { display: grid; gap: 4px; margin-top: 10px; }
.row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: 10px; }
.row.is-selected { background: var(--tint); }
.kind { font: 500 12px/1 var(--mono); color: var(--muted); }
.kind-link { color: var(--accent-text); }
.bars { display: grid; gap: 6px; }
.bars i { display: block; height: 8px; border-radius: 4px; background: var(--bar-strong); }
.bars i.short { width: 55%; background: var(--bar); }
.thumb { width: 64px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, var(--logo-a), var(--logo-b)); opacity: 0.85; }

section + section { border-top: 1px solid var(--line); }
.things, .band, .faq { padding-block: 64px; }
h2 { font-size: clamp(26px, 6vw, 36px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
section > p { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: 18px; }

.rows { display: grid; margin-top: 28px; }
.rows li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding-block: 20px; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.num { grid-row: span 2; font: 500 13px/1.9 var(--mono); color: var(--accent-text); }
.rows h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.rows p { color: var(--muted); }
section.things > p { margin-top: 28px; }

.band h2::before {
  content: ""; display: block; width: 36px; height: 4px; margin-bottom: 20px; border-radius: 2px;
  background: linear-gradient(90deg, var(--logo-a), var(--logo-b));
}

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 24px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; max-width: 64ch; color: var(--muted); }

.foot { display: grid; gap: 16px; padding-block: 40px 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.family { position: relative; justify-self: start; }
.family summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; color: var(--text); }
.family summary::-webkit-details-marker { display: none; }
.family-links {
  position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 5;
  display: grid; min-width: 260px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.family-links a, .family-links span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.family-links small { font-size: 13px; font-weight: 400; color: var(--muted); }
.family-links a:hover, .family-links a:focus-visible { background: var(--tint); color: var(--text); }
.family-links [aria-current] { background: var(--tint); }
.made a { color: var(--text); font-weight: 600; }

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 64px; padding-block: 72px 112px; }
  .things, .band, .faq { padding-block: 96px; }
  .rows { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .rows li, .rows li:last-child { border-bottom: 0; }
  .foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
