:root {
  color-scheme: dark;
  --background: #0b111d;
  --panel: #111d2e;
  --line: #283a52;
  --text: #f2f7ff;
  --muted: #b6c5d9;
  --mint: #8df3ea;
  --violet: #c3a9ff;
  --radius: 16px;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse 55rem 28rem at 75% 8rem, #1c2343, transparent), var(--background);
}
a { color: var(--mint); text-underline-offset: .2em; }
a:hover { color: #e6fffc; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure, dl, dd, pre { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 5.7vw, 4.55rem); letter-spacing: -.07em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.045em; }
h3 { font-size: 1.23rem; letter-spacing: -.015em; }
p, ol { margin-top: .8rem; }
ol { padding-left: 1.35rem; margin-bottom: 0; }
li + li { margin-top: .7rem; }
code { font: .9em/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
pre { padding: .85rem 1rem; margin-top: .75rem; border-radius: 9px; background: #0a1321; white-space: pre-wrap; }
[hidden] { display: none !important; }

.shell { width: min(1180px, calc(100% - 4rem)); margin-inline: auto; }
.site-header, .site-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-header { min-height: 74px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.08rem; font-weight: 750; color: var(--text); text-decoration: none; }
nav, .links { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.15rem; }
nav a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.site-footer { margin-top: 4rem; margin-bottom: 2rem; padding-top: 1.35rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 2rem; padding: clamp(2.4rem, 7vw, 5rem) 0 2rem; }
.hero p { max-width: 36ch; color: var(--muted); font-size: 1.08rem; }
.hero .eyebrow { margin: 0 0 .75rem; color: var(--mint); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero-image { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 50px #03071280; }
.button { display: inline-flex; align-items: center; padding: .7rem 1rem; border-radius: 8px; font-weight: 750; text-decoration: none; }
.primary { margin-top: 1.25rem; background: var(--mint); color: #0b2227; }
.primary:hover { background: #d3fbf7; color: #0b2227; }
.android-links { margin-top: .65rem; }
.android-links a { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; color: var(--mint); }
.android-links span { color: var(--muted); font-size: .78rem; }

main > section:not(.hero) { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.25rem; margin-bottom: 1rem; }
.section-heading a, .links { font-size: .88rem; }
.links { margin-top: .85rem; }
.panel { min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: clamp(1rem, 2vw, 1.4rem); overflow-wrap: anywhere; }
.status-panel { border-left: 3px solid var(--violet); }
.status-panel h2 { font-size: 1.32rem; letter-spacing: -.02em; }
.status-panel p, .panel p, .panel li, .data-facts dd { color: var(--muted); }
.status-panel p { max-width: 90ch; }
.muted { color: var(--muted); }

.screenshots, .asset-grid, .columns { display: grid; gap: 1rem; }
.screenshots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.screenshots figure { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.screenshots img { width: 100%; aspect-ratio: 9 / 16; }
figcaption { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.screenshots figcaption { padding: .75rem .85rem; }
figcaption strong, figcaption span { display: block; }
figcaption span { color: var(--muted); }
.asset-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin-top: 1rem; }
.asset-preview { display: grid; min-height: 176px; place-items: center; margin-bottom: .8rem; }
.asset-preview img { max-height: 230px; object-fit: contain; border-radius: 8px; }
.asset-preview .store-icon { width: min(176px, 100%); }

.columns { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.columns.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts > div + div, .data-facts > div + div { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .75rem; }
dt { font-weight: 720; }
.facts dd { color: var(--muted); }
.data-panel, .checklist, .data-facts { margin-top: 1rem; }
.build-downloads { margin-bottom: 1rem; }
.build-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.build-download h4, .build-download p { margin: 0; }
.build-download .button { border: 1px solid var(--line); }
.build-download .button + .download-status { margin-top: .25rem; }
.download-status { font-size: .88rem; }

.field-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .4rem; margin: .8rem 0 .35rem; }
.copy-fields .field-heading:first-child { margin-top: 0; }
label { font-weight: 700; }
small { color: var(--muted); margin-left: .3em; font-weight: 400; }
input, textarea, button { font: inherit; }
input, textarea {
  display: block;
  width: 100%;
  color: var(--text);
  background: #0a1321;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .65rem .75rem;
}
textarea { resize: vertical; }
.copy { cursor: pointer; color: var(--mint); background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: .25rem .65rem; font-size: .82rem; }
.copy:hover { border-color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: 1fr; max-width: 650px; gap: 1.5rem; }
  .screenshots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 1.75rem); }
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; padding: .85rem 0; gap: .6rem; }
  nav { gap: .25rem .65rem; }
  nav a { font-size: .85rem; }
  .hero { padding-top: 2rem; }
  .columns, .columns.equal, .asset-grid { grid-template-columns: 1fr; }
  .screenshots, .asset-grid, .columns { gap: .65rem; }
  .screenshots figcaption { padding: .65rem; }
}
