:root {
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --blue: #0066cc;
  --blue-hover: #0077ed;
  --canvas: #f5f5f7;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --max: 1100px;
  --nav: 52px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--text);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav);
  display: flex;
  align-items: center;
  background: rgba(251, 251, 253, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  text-decoration: none;
}

.nav-links .download {
  color: var(--blue);
  opacity: 1;
}

.nav-links .download:hover {
  color: var(--blue-hover);
  text-decoration: none;
}

.hero {
  background: var(--canvas);
  text-align: center;
  padding: 54px 22px 0;
}

.eyebrow {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 {
  margin: 4px auto 0;
  max-width: 14ch;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.lede {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.016em;
  line-height: 1.25;
  color: var(--text);
}

.store {
  display: inline-block;
  margin: 22px 0 8px;
}

.store img {
  width: 148px;
  height: auto;
  margin: 0 auto;
}

.store:hover {
  text-decoration: none;
  opacity: 0.88;
}

.meta {
  margin: 0 0 36px;
  color: var(--secondary);
  font-size: 14px;
}

.stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 8px 22px 28px;
  background:
    radial-gradient(ellipse at center 40%, rgba(0, 113, 227, 0.08), transparent 58%),
    var(--canvas);
}

.stage img {
  width: min(250px, 24vw);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.14));
}

.stage .primary {
  width: min(320px, 30vw);
}

.highlights {
  scroll-margin-top: 68px;
}

.highlights,
.chapter,
.specs,
.legal {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.section-title {
  margin: 64px 0 22px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.tile {
  grid-column: span 2;
  min-height: 280px;
  padding: 36px 32px 32px;
  background: var(--canvas);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tile.half {
  grid-column: span 3;
}

.tile h2,
.chapter h2,
.tile h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.tile p,
.chapter p {
  margin: 0;
  max-width: 36ch;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.35;
}

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 8px;
  scroll-margin-top: 68px;
}

.chapter.reverse {
  direction: rtl;
}

.chapter.reverse > * {
  direction: ltr;
}

.chapter img {
  width: auto;
  height: min(620px, 68vh);
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.12));
}

.chapter .copy h2 {
  font-size: clamp(36px, 4vw, 52px);
}

.chapter .copy p + p {
  margin-top: 12px;
}

.pro {
  margin-top: 80px;
  scroll-margin-top: 68px;
  background: #000;
  color: #f5f5f7;
}

.pro-inner {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 92px 0;
  text-align: center;
}

.pro h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.pro p {
  margin: 16px auto 0;
  max-width: 540px;
  color: #a1a1a6;
  font-size: 19px;
  line-height: 1.4;
}

.specs {
  padding-bottom: 40px;
}

.specs h2 {
  margin: 88px 0 8px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spec-list {
  margin: 20px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  font-weight: 600;
  font-size: 14px;
}

.spec-list dd {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

.site-footer {
  background: var(--canvas);
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.4;
  padding: 18px 0 28px;
  margin-top: 48px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.footer-note {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.site-footer a {
  color: var(--secondary);
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  text-decoration: underline;
  color: var(--text);
}

.legal {
  padding: 48px 0 24px;
}

.legal h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(40px, 5vw, 56px);
  text-align: left;
}

.updated {
  margin: 10px 0 28px;
  color: var(--secondary);
  font-size: 14px;
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  font-size: 17px;
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 6px;
}

.missing {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 22px;
}

.missing h1 {
  max-width: none;
}

.missing p {
  color: var(--secondary);
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .nav-links a:not(.download) {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .tile,
  .tile.half {
    grid-column: auto;
    min-height: 0;
  }

  .chapter,
  .chapter.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 20px;
    padding-top: 72px;
  }

  .stage .side {
    display: none;
  }

  .stage .primary {
    width: min(320px, 78vw);
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

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