:root {
  color-scheme: dark;
  --background: #07080b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --yellow: #ffd429;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body {
  margin: 0;
  min-width: 0;
  background: radial-gradient(ellipse at 50% 35%, #10172080, transparent 65%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--background); }
.page-shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { width: 168px; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: #b1bdce; font-size: 15px; padding-block: 12px; transition: color 160ms ease; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); }
.hero { padding: 62px 0 52px; text-align: center; }
h1 { margin: 0; font-size: clamp(54px, 6.6vw, 88px); line-height: 1.04; font-weight: 750; letter-spacing: -0.057em; }
.hero-description { margin: 28px auto 30px; max-width: 760px; font-size: 20px; line-height: 1.65; letter-spacing: -0.02em; color: #a4b2c6; }
.primary-action {
  display: inline-flex; justify-content: center; align-items: center; gap: 16px;
  min-height: 54px; padding: 14px 29px; border-radius: 8px;
  background: var(--yellow); color: #090a0f; font-size: 16px; font-weight: 700;
  box-shadow: 0 1px 0 #ffffff35 inset;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.primary-action span { font-size: 21px; font-weight: 500; line-height: 1; }
.primary-action:hover { transform: translateY(-1px); background: #ffe169; box-shadow: 0 7px 28px #ffd42912; }
.primary-action:active { transform: translateY(0); }
.availability { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.availability-dot { color: #526071; }
.product-preview { margin: 0; }
.preview-frame { position: relative; aspect-ratio: 1426 / 902; overflow: hidden; border: 1px solid #94a3b836; border-radius: 12px; background: #0b0e13; box-shadow: 0 28px 80px #0004; }
/* Frame the app illustration without its surrounding canvas. */
.preview-image { position: absolute; max-width: none; width: 107.72%; left: -3.86%; top: -6.65%; }
.product-preview figcaption { margin-top: 14px; color: #7f8c9f; font-size: 12px; text-align: center; }
.product-preview figcaption span { padding-inline: 6px; }
.how-it-works { padding: 66px 8px 76px; scroll-margin-top: 32px; }
.how-it-works:focus { outline: none; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 0; padding: 0; }
.step-number { display: block; margin-bottom: 14px; color: #9eb7d8; font-size: 13px; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.035em; font-weight: 650; line-height: 1.25; }
.steps p { margin: 0; color: #a4b2c6; font-size: 15px; line-height: 1.7; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 123px; border-top: 1px solid #94a3b824; color: #8494aa; font-size: 12px; }
.maker-credit { width: 140px; }
.footer-divider { width: 1px; height: 22px; background: #94a3b833; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 10; padding: 12px 18px; border-radius: 6px; color: #090a0f; background: var(--yellow); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.download-hero { padding: 56px 0 50px; text-align: center; }
.eyebrow { margin: 0 0 24px; color: #a4b2c6; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.download-hero h1 { font-size: clamp(44px, 5.7vw, 72px); }
.download-hero .hero-description { margin-bottom: 22px; }
.release-meta { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 13px; }
.version-label { color: #cbd5e1; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.download-card { min-width: 0; padding: 34px; border: 1px solid #94a3b82b; border-radius: 12px; background: linear-gradient(145deg, #10151d, #0b0e13); }
.platform-heading { display: flex; align-items: center; gap: 17px; }
.platform-icon { width: 32px; height: 32px; flex-shrink: 0; color: #cbd5e1; }
.platform-heading h2 { font-size: 26px; font-weight: 650; letter-spacing: -0.04em; margin: 0 0 6px; }
.platform-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.package-description { color: #a4b2c6; font-size: 15px; line-height: 1.7; margin: 26px 0 24px; min-height: 52px; }
.download-action { width: 100%; min-width: 0; }
.package-meta { margin: 12px 0 24px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.package-meta > span { padding: 0 6px; }
.secondary-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 48px; padding: 12px 16px; border: 1px solid #94a3b833; border-radius: 8px; background: #94a3b80a; font-size: 14px; transition: background 160ms ease, border-color 160ms ease; }
.secondary-action > span { color: var(--muted); font-size: 12px; }
.secondary-action > span > span { padding-left: 12px; color: #e2e8f0; }
.secondary-action:hover { background: #94a3b817; border-color: #94a3b855; }
.install-guide { margin-top: 28px; border-top: 1px solid #94a3b824; padding-top: 22px; }
.install-guide h3 { font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.install-guide ol { margin: 0; padding-left: 19px; font-size: 14px; line-height: 1.7; color: #a4b2c6; }
.install-guide li { padding-left: 5px; margin-bottom: 12px; }
.install-guide li::marker { color: #708198; font-variant-numeric: tabular-nums; }
details + details { border-top: 1px solid #94a3b824; }
summary { padding: 15px 0; cursor: pointer; font-size: 14px; line-height: 1.5; font-weight: 500; color: #e2e8f0; }
summary::marker { color: #8090a6; }
summary:hover, details[open] > summary { color: var(--yellow); }
summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 3px; }
details p { color: #a4b2c6; font-size: 14px; line-height: 1.8; margin: 4px 0 16px; }
details p strong { color: #e2e8f0; font-weight: 600; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 15px; margin: 14px 0 18px; border-radius: 6px; background: #05070a; color: #cbd5e1; font-size: 12px; line-height: 1.8; }
code { font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace; }
.download-help { max-width: 760px; margin: 70px auto 80px; }
.download-help h2 { margin: 0 0 22px; font-size: 22px; letter-spacing: -0.025em; font-weight: 650; }
.download-help summary { padding-block: 20px; font-size: 15px; }

@media (max-width: 760px) {
  .page-shell { width: calc(100% - 48px); }
  .site-header { min-height: 88px; }
  .brand img { width: 144px; }
  .site-header nav a { font-size: 13px; }
  .site-header nav { gap: 18px; }
  .hero { padding: 54px 0 38px; }
  h1 { font-size: clamp(40px, 7.7vw, 60px); letter-spacing: -0.055em; }
  .hero-description { font-size: 17px; line-height: 1.7; margin-top: 25px; max-width: 440px; }
  .desktop-break { display: none; }
  .preview-frame { border-radius: 9px; aspect-ratio: 1.06; }
  .preview-image { width: 160%; left: -5.73%; }
  .how-it-works { padding: 48px 12px 56px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step-number { margin-bottom: 9px; }
  .steps h3 { font-size: 21px; }
  .steps p { font-size: 16px; }
  .download-hero { padding: 38px 0; }
  .download-hero h1 { font-size: clamp(38px, 7vw, 54px); }
  .download-grid { grid-template-columns: 1fr; max-width: 500px; gap: 20px; }
  .download-card { padding: 28px; }
  .package-description { min-height: 0; }
  .download-help { margin: 48px auto 56px; max-width: 500px; }
}

@media (max-width: 440px) {
  .page-shell { width: calc(100% - 36px); }
  .brand img { width: 132px; }
  .site-header { gap: 12px; }
  .site-header nav { gap: 14px; }
  .site-header { min-height: 80px; }
  .hero { padding-top: 38px; }
  .hero-description { font-size: 16px; max-width: 340px; }
  .availability { flex-direction: column; gap: 0; }
  .availability-dot { display: none; }
  .primary-action { min-width: 220px; }
  .site-footer { flex-direction: column; gap: 15px; padding-block: 32px; }
  .footer-divider { display: none; }
  .download-card { padding: 24px 20px; }
  .download-action { min-width: 0; font-size: 14px; padding-inline: 16px; gap: 10px; }
  .download-help h2 { font-size: 20px; }
}

@media (max-width: 360px) {
  .brand img { width: 104px; }
  .site-header { gap: 8px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 12px; }
}

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