:root {
  --navy: #0b1b33;
  --navy-2: #13294b;
  --accent: #f5b942;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0b1b33;
  --muted: #4a5a73;
  --line: #d9dfeb;
  --link: #0b1b33;
  --btn-bg: #0b1b33;
  --btn-fg: #ffffff;
  --btn-hover: #13294b;
  --focus: #b7791f;
  --warn-bg: #fff4d6;
  --warn-fg: #5a3d00;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111f;
    --surface: #0f213a;
    --text: #eef2f8;
    --muted: #a7b4c9;
    --line: #23395b;
    --link: #f5b942;
    --btn-bg: #f5b942;
    --btn-fg: #0b1b33;
    --btn-hover: #ffd070;
    --focus: #f5b942;
    --warn-bg: #3a2c08;
    --warn-fg: #ffe3a1;
  }
}
:root[data-theme="dark"] {
  --bg: #07111f; --surface: #0f213a; --text: #eef2f8; --muted: #a7b4c9; --line: #23395b;
  --link: #f5b942; --btn-bg: #f5b942; --btn-fg: #0b1b33; --btn-hover: #ffd070; --focus: #f5b942;
  --warn-bg: #3a2c08; --warn-fg: #ffe3a1;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--btn-bg); color: var(--btn-fg); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* header */
.site-header { background: var(--navy); color: #fff; }
.site-header .bar { max-width: 64rem; margin: 0 auto; padding: .25rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: #fff; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand .wordmark { height: 14px; width: auto; color: #fff; }
.site-header nav { display: flex; gap: .25rem; }
.site-header nav a { color: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .75rem; border-radius: 8px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: var(--navy-2); box-shadow: inset 0 -2px 0 var(--accent); }
.site-header a:focus-visible { outline-color: var(--accent); }
.site-footer { background: var(--navy); color: #c9d3e4; padding: 1.5rem 1rem; font-size: .9rem; }
.site-footer .inner { max-width: 64rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--accent); display: inline-block; padding: .6rem 0; }

/* buttons & badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .6rem 1.25rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); }
.btn.big { width: 100%; font-size: 1.1rem; min-height: 56px; }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--line); font-weight: 600; }
.btn.ghost:hover { background: var(--surface); }
.btn.small { min-height: 44px; padding: .4rem .9rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); white-space: nowrap; }
.badge.accent { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.muted { color: var(--muted); }

/* home */
.hero { padding: 1.25rem 0 .5rem; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }
.filters { display: flex; gap: .5rem; margin: 1rem 0; }
.filters[hidden] { display: none; }
.filters button { min-height: 44px; min-width: 64px; padding: 0 1rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; font: inherit; font-weight: 600; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: 1fr; }
.grid > li[hidden] { display: none; }
.card { display: flex; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; height: 100%; position: relative; }
.card:hover { border-color: var(--accent); }
.card img { width: 72px; height: 72px; border-radius: 16px; flex: none; background: var(--line); }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; color: var(--text); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.card p { margin: .2rem 0 0; color: var(--muted); }
.updates { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.updates li { padding: .75rem 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.updates li:first-child { border-top: 0; }
.updates .when { margin-left: auto; color: var(--muted); font-size: .9rem; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; color: var(--muted); }

/* app page */
.app-head { display: flex; gap: 1rem; align-items: center; padding-top: .5rem; }
.app-head img { width: 80px; height: 80px; border-radius: 18px; flex: none; background: var(--line); }
.app-head h1 { margin: 0; }
.app-head .tagline { margin: .1rem 0 .4rem; color: var(--muted); }
.dl { margin: 1rem 0 0; }
.dl .sub { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); text-align: center; }
.soon { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: .9rem 1rem; font-weight: 600; text-align: center; }
.gallery { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; margin: 0 -1rem; padding-inline: 1rem; }
.gallery figure { margin: 0; flex: 0 0 min(70vw, 240px); scroll-snap-align: start; }
.gallery img { border: 1px solid var(--line); border-radius: 12px; display: block; width: 100%; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .9rem; scroll-margin-top: 1rem; }
.release:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.release header { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; margin-bottom: .5rem; }
.release h3 { margin: 0; }
.release h3 a { text-decoration: none; color: var(--text); }
.release .phase { color: var(--muted); }
.sha { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .5rem 0 1rem; }
code.hash { font: .8rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; flex: 1 1 14rem; background: var(--bg); padding: .4rem .5rem; border-radius: 8px; border: 1px solid var(--line); }
.warn { background: var(--warn-bg); color: var(--warn-fg); border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; font-size: .95rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose code { background: var(--bg); padding: .1rem .3rem; border-radius: 4px; }
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: .75rem; }
.crumbs { font-size: .9rem; margin: .5rem 0 0; }
.crumbs a { display: inline-block; padding: .6rem 0; }
.note { font-size: .9rem; color: var(--muted); }

@media (min-width: 40rem) {
  main { padding-top: 1.5rem; }
  h1 { font-size: 2.2rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .btn.big { width: auto; min-width: 20rem; }
  .dl .sub { text-align: left; }
  .app-head img { width: 112px; height: 112px; border-radius: 24px; }
  .gallery { margin: 0; padding-inline: 0; }
}
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .btn, .card { transition: background .15s, border-color .15s; } }

/* ---------- premium layer ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { overflow-x: clip; letter-spacing: -.005em; }
:root { --ease: cubic-bezier(.2, .7, .2, 1); --glow: rgba(245, 185, 66, .35); }
.bleed { margin-inline: calc(50% - 50vw); padding-inline: max(1rem, calc(50vw - 32rem)); }
main { padding-top: 0; }
::selection { background: var(--accent); color: var(--navy); }

/* header: sticky, glassy, thin scroll progress */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 27, 51, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(7, 17, 31, .9); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), #ffe3a1); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.site-header nav a { border-radius: 99px; transition: background .2s; }

/* home hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 46rem); display: flex; align-items: center; padding-block: 5rem 6rem; color: #fff; background: radial-gradient(120% 90% at 50% 0%, #17335f 0%, #0b1b33 55%, #060e1b 100%); }
.hero-inner { position: relative; max-width: 44rem; will-change: transform; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 700; color: var(--accent); margin: 0 0 1.25rem; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 1.25rem; background: linear-gradient(180deg, #fff 30%, #b9c8e4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #c9d3e4; max-width: 36rem; margin-bottom: 2rem; }
.btn.cta { background: var(--accent); color: var(--navy); border-radius: 99px; padding-inline: 1.75rem; box-shadow: 0 10px 40px -8px var(--glow); transition: transform .25s var(--ease), box-shadow .25s; }
.btn.cta:hover { background: #ffd070; transform: translateY(-2px); box-shadow: 0 16px 50px -8px var(--glow); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; translate: 0 calc(var(--sy, 0) * var(--d, 0) * 1px); animation: drift 18s ease-in-out infinite alternate; }
.o1 { width: 38rem; height: 38rem; right: -10rem; top: -8rem; background: #2a5bd7; }
.o2 { width: 28rem; height: 28rem; left: -8rem; bottom: -10rem; background: #7b3fe4; opacity: .4; animation-duration: 24s; }
.o3 { width: 18rem; height: 18rem; right: 25%; bottom: 5%; background: var(--accent); opacity: .22; animation-duration: 30s; }
@keyframes drift { to { transform: translate(-3rem, 2rem); } }
.stars { position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 85% 70%, #fff 50%, transparent), radial-gradient(1px 1px at 40% 80%, #fff 50%, transparent), radial-gradient(1px 1px at 10% 65%, #fff 50%, transparent), radial-gradient(1px 1px at 55% 45%, #fff 50%, transparent); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* section headings and cards */
main > section > h2, main > h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.025em; margin-top: 3.5rem; }
.grid { gap: 1.25rem; }
.card { padding: 1.4rem; gap: 1.1rem; border-radius: 22px; overflow: hidden; align-items: flex-start; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 0% 0%, var(--glow), transparent 55%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(11, 27, 51, .45); border-color: var(--accent); }
.card:hover::before { opacity: .5; }
.card img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); transition: transform .5s var(--ease); }
.card:hover img { transform: scale(1.06) rotate(-2deg); }
.card h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.updates { border-radius: 22px; overflow: hidden; }
.updates li { transition: background .2s; }
.updates li:hover { background: var(--bg); }
.filters button { transition: background .2s, color .2s, transform .2s; }
.filters button:active { transform: scale(.96); }

/* app page hero */
.app-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: .5rem 3rem; background: linear-gradient(180deg, #0b1b33, #0d2244); }
.app-hero .backdrop { position: absolute; z-index: -1; left: 50%; top: 50%; width: 140%; max-width: none; height: auto; aspect-ratio: 1; translate: -50% calc(-50% + var(--sy, 0) * var(--d, 0) * 1px); filter: blur(80px) saturate(1.6); opacity: .45; border-radius: 0; }
.app-hero .crumbs a, .app-hero .sub, .app-hero .sub a, .app-hero .app-head .tagline { color: #c9d3e4; }
.app-hero .app-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.03em; }
.app-hero .app-head > img { box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .6); }
.app-hero .badge { background: rgba(255, 255, 255, .08); color: #e6ecf7; border-color: rgba(255, 255, 255, .18); }
.app-hero .badge.accent { background: var(--accent); color: var(--navy); }
.app-hero .btn.big { background: var(--accent); color: var(--navy); border-radius: 99px; box-shadow: 0 10px 40px -8px var(--glow); transition: transform .25s var(--ease); }
.app-hero .btn.big:hover { transform: translateY(-2px); }
.app-hero .soon { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #fff; }
.showcase { display: grid; place-items: center; margin: 1.5rem 0; padding: 3rem 1rem; border-radius: 28px; background: radial-gradient(70% 90% at 50% 40%, rgba(42, 91, 215, .35), transparent 70%), linear-gradient(180deg, #0f213a, #0b1b33); border: 1px solid var(--line); overflow: hidden; }
.showcase img { width: 160px; height: 160px; border-radius: 38px; box-shadow: 0 30px 80px -10px var(--glow), 0 0 0 1px rgba(255, 255, 255, .1); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* screenshots in a phone frame */
.gallery { gap: 1.25rem; padding-block: 1rem 1.5rem; }
.gallery figure { flex-basis: min(62vw, 250px); transition: transform .4s var(--ease); }
.gallery figure:hover { transform: translateY(-6px); }
.gallery img { border: 7px solid #0b1b33; border-radius: 30px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
dl.facts, .release { border-radius: 20px; }

/* scroll reveal (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (min-width: 40rem) { .hero { padding-block: 7rem 8rem; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .showcase img, .scroll-cue span { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .card img, .gallery figure { transition: none; }
}
