/* ============================================================
   Gear Wire — native apps download page
   Same lacquer/amber publication as the wire, staged for a launch.
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0b0b0e;
  --bg-2: #101015;
  --panel: #14141a;
  --panel-2: #1b1b23;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #edeae2;
  --dim: #a7a39a;
  --faint: #6f6c64;
  --amber: #ffb454;
  --amber-2: #e8913a;
  --accent-rgb: 255, 180, 84;
  --green: #7ad2a5;
  --blue: #7fb4e0;
  --red: #e5715f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(.22, .9, .28, 1);
  --r: 20px;
  --shadow: 0 40px 80px -48px rgba(0, 0, 0, .95);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(var(--accent-rgb), .28); }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.02em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--amber); }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--amber); color: #1a1208;
  font-size: 13px; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 14px; }

/* ---------- ambient background ---------- */

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.blob.b1 {
  width: 760px; height: 760px; top: -300px; right: -180px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .20), transparent 64%);
  animation: drift1 24s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 620px; height: 620px; top: 38vh; left: -260px;
  background: radial-gradient(circle, rgba(127, 180, 224, .13), transparent 66%);
  animation: drift2 30s ease-in-out infinite alternate;
}
.blob.b3 {
  width: 560px; height: 560px; bottom: -220px; left: 42vw;
  background: radial-gradient(circle, rgba(122, 210, 165, .10), transparent 66%);
  animation: drift3 34s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-100px, 70px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(120px, -60px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-70px, -90px) scale(1.14); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pointer-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(280px 280px at var(--mx, 50%) var(--my, 30%), rgba(var(--accent-rgb), .065), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
@media (hover: hover) and (pointer: fine) { .pointer-glow { opacity: 1; } }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 26px;
  padding: 18px clamp(18px, 4vw, 54px);
  transition: padding .3s var(--ease), background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding: 10px clamp(18px, 4vw, 54px);
  background: rgba(11, 11, 14, .82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark .ring { fill: none; stroke: rgba(var(--accent-rgb), .55); stroke-width: 1.4; }
.brand-mark .needle line { stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.brand-mark .needle circle { fill: var(--amber); }
.brand-mark .ticks line { stroke: rgba(237, 234, 226, .4); stroke-width: 1.4; stroke-linecap: round; }
.brand-type { display: flex; flex-direction: column; line-height: 1.05; }
.brand-type b { font-family: var(--serif); font-size: 17px; letter-spacing: -.01em; }
.brand-type i {
  font-style: normal; font-family: var(--mono); font-size: 9px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--amber);
}

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 13px; color: var(--dim); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--amber); transition: width .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ---------- buttons ---------- */

.btn {
  --mx: 50%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink); background: transparent; cursor: pointer; overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s, color .22s, box-shadow .3s, background .22s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ar { font-family: var(--mono); font-size: 15px; transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translateY(2px); }
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(160px 60px at var(--mx) -30%, rgba(255, 255, 255, .35), transparent 70%);
  transition: opacity .25s;
}
.btn:hover::after { opacity: .55; }
.btn:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .6); color: var(--amber); }

.btn.solid {
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  border-color: rgba(255, 210, 150, .5); color: #1a1208;
  box-shadow: 0 10px 34px -12px rgba(var(--accent-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn.solid:hover { color: #120c04; box-shadow: 0 18px 46px -14px rgba(var(--accent-rgb), .8); }

.btn.ghost { background: rgba(255, 255, 255, .035); }
.btn.ghost:hover { background: rgba(var(--accent-rgb), .08); }

.btn-sm { padding: 9px 15px; font-size: 12.5px; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; color: var(--faint); border-style: dashed; }
.btn.is-disabled:hover { transform: none; color: var(--faint); border-color: var(--line-2); }

.btn.magnetic { will-change: transform; }

/* ---------- hero ---------- */

main { position: relative; z-index: 1; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(34px, 5vw, 74px) clamp(18px, 4vw, 54px) clamp(24px, 4vw, 40px);
  max-width: 1400px; margin: 0 auto;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim); padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025);
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(122, 210, 165, .7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 210, 165, .55); }
  70% { box-shadow: 0 0 0 9px rgba(122, 210, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 210, 165, 0); }
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(3.1rem, 7.2vw, 6.2rem);
  line-height: .9; letter-spacing: -.045em; font-weight: 600;
}
.hero h1 em {
  background: linear-gradient(100deg, var(--amber) 10%, #ffd9a3 45%, var(--amber-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 400;
}

.lede {
  margin-top: 22px; max-width: 44ch;
  font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.65; color: var(--dim);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cta-row.center { justify-content: center; }

.detect {
  margin-top: 16px; font-family: var(--mono); font-size: 11.5px; line-height: 1.5;
  color: var(--green); max-width: 54ch;
}
/* inline marker, so a wrapped note never parks the caret between two lines */
.detect::before { content: "▸ "; color: var(--green); }

.facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px);
  padding: 26px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts b {
  font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.facts span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------- hero art: radar + devices ---------- */

.hero-art {
  position: relative; aspect-ratio: 1 / 1; min-height: 440px;
  perspective: 1200px;
}
.radar {
  position: absolute; inset: 6% 6% 6% 6%; border-radius: 50%;
  display: grid; place-items: center;
}
.radar-ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .12);
}
.radar-ring.r1 { inset: 0; border-style: dashed; animation: spin 90s linear infinite; }
.radar-ring.r2 { inset: 13%; border-color: rgba(255, 255, 255, .06); }
.radar-ring.r3 { inset: 30%; border-color: rgba(var(--accent-rgb), .18); }
@keyframes spin { to { transform: rotate(360deg); } }

.radar-cross::before, .radar-cross::after {
  content: ""; position: absolute; background: rgba(255, 255, 255, .05);
}
.radar-cross::before { left: 50%; top: 6%; bottom: 6%; width: 1px; }
.radar-cross::after { top: 50%; left: 6%; right: 6%; height: 1px; }

.radar-sweep {
  position: absolute; inset: 3%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 300deg, rgba(var(--accent-rgb), .32) 358deg, transparent 360deg);
  mask: radial-gradient(circle, transparent 12%, #000 62%, transparent 72%);
  -webkit-mask: radial-gradient(circle, transparent 12%, #000 62%, transparent 72%);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 14px 2px rgba(var(--accent-rgb), .8);
  animation: blip 3.6s ease-in-out infinite;
}
.b-phone { top: 26%; left: 30%; }
.b-tablet { top: 62%; left: 68%; animation-delay: 1.1s; background: var(--blue); box-shadow: 0 0 14px 2px rgba(127, 180, 224, .7); }
.b-tv { top: 74%; left: 28%; animation-delay: 2.2s; background: var(--green); box-shadow: 0 0 14px 2px rgba(122, 210, 165, .7); }
@keyframes blip {
  0%, 100% { opacity: .25; transform: scale(.7); }
  40% { opacity: 1; transform: scale(1); }
}

.device {
  position: absolute; border-radius: 22px; padding: 8px;
  background: linear-gradient(160deg, rgba(38, 38, 48, .92), rgba(15, 15, 20, .96));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}
.device-screen {
  border-radius: 16px; padding: 12px; height: 100%;
  background: linear-gradient(170deg, #17171f, #0d0d12 70%);
  border: 1px solid rgba(255, 255, 255, .05); overflow: hidden;
  display: flex; flex-direction: column; gap: 7px;
}
.d-phone { width: 27%; aspect-ratio: 9 / 18.5; top: 12%; right: 12%; transform: rotate(4deg); z-index: 3; }
.d-tablet { width: 40%; aspect-ratio: 4 / 3.1; bottom: 6%; left: 2%; transform: rotate(-5deg); z-index: 2; }
.d-tv { width: 44%; aspect-ratio: 16 / 10; top: 4%; left: 4%; transform: rotate(-2deg); z-index: 1; }
.tv-stand {
  position: absolute; left: 50%; bottom: -13px; width: 34%; height: 13px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #22222c, transparent); border-radius: 0 0 6px 6px;
}

.float-a { animation: floatA 9s ease-in-out infinite alternate; }
.float-b { animation: floatB 11s ease-in-out infinite alternate; }
.float-c { animation: floatC 13s ease-in-out infinite alternate; }
@keyframes floatA { to { transform: translateY(-14px) rotate(3deg); } }
@keyframes floatB { to { transform: translateY(12px) rotate(-4deg); } }
@keyframes floatC { to { transform: translateY(-9px) rotate(-1deg); } }

.sk {
  display: block; border-radius: 5px; height: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  background-size: 220% 100%; animation: shimmer 2.8s linear infinite;
}
.sk-kicker { width: 46%; height: 5px; background-color: rgba(var(--accent-rgb), .3); }
.sk-title { width: 92%; height: 11px; }
.sk-title.w70 { width: 68%; }
.sk-line { width: 100%; height: 6px; opacity: .6; }
.sk-line.w80 { width: 78%; }
.sk-line.w60 { width: 56%; }
.sk-card { height: 34px; border-radius: 8px; }
.tablet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 4px; }
.tv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; }
.mini-dial {
  width: 42px; height: 42px; border-radius: 50%; margin: 4px 0;
  border: 4px solid rgba(255, 255, 255, .07);
  border-top-color: var(--amber); border-right-color: var(--amber);
  transform: rotate(-45deg);
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------- release strip ---------- */

.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent);
  overflow: hidden;
}
.strip-inner {
  display: flex; align-items: center; gap: 22px;
  padding: 13px clamp(18px, 4vw, 54px);
  max-width: 1400px; margin: 0 auto;
}
.strip-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--amber); white-space: nowrap;
}
.changelog {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
  font-size: 12.5px; color: var(--faint); overflow: hidden;
}
.changelog li { white-space: nowrap; position: relative; }
.changelog li::before {
  content: "◆"; position: absolute; left: -16px; top: 0;
  font-size: 6px; color: rgba(var(--accent-rgb), .5);
}

/* ---------- section scaffolding ---------- */

section { position: relative; }

.section-head {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 54px) 0;
  max-width: 1400px; margin: 0 auto;
}
.kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.7rem); line-height: .98;
  letter-spacing: -.04em; max-width: 22ch;
}
.section-lede {
  margin-top: 18px; max-width: 58ch;
  font-size: 15.5px; line-height: 1.65; color: var(--dim);
}

/* ---------- platform cards ---------- */

.platform-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  padding: 34px clamp(18px, 4vw, 54px) 0;
  max-width: 1400px; margin: 0 auto;
}

.plat {
  position: relative; display: flex; flex-direction: column;
  padding: 22px; border-radius: var(--r); overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--accent-rgb), .06), transparent 60%),
    linear-gradient(180deg, rgba(26, 26, 34, .92), rgba(15, 15, 20, .96));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  will-change: transform;
}
.plat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(var(--accent-rgb), .35), transparent 32%, transparent 72%, rgba(127, 180, 224, .2));
  opacity: 0; transition: opacity .35s;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.plat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.plat:hover::after { opacity: 1; }

.plat.is-yours {
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .25), 0 24px 60px -34px rgba(var(--accent-rgb), .4);
}
.plat.is-yours::before {
  content: "your device"; position: absolute; top: 0; right: 0;
  padding: 5px 11px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em;
  text-transform: uppercase; color: #1a1208; background: var(--amber);
  border-radius: 0 0 0 12px; z-index: 2;
}
.plat.is-yours .plat-head { padding-right: 76px; }

.plat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plat-glyph svg {
  width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round; opacity: .9;
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim);
  white-space: nowrap;
}
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-available { color: var(--green); border-color: rgba(122, 210, 165, .35); background: rgba(122, 210, 165, .08); }
.status-testflight { color: var(--blue); border-color: rgba(127, 180, 224, .35); background: rgba(127, 180, 224, .08); }
.status-apk { color: var(--amber); border-color: rgba(var(--accent-rgb), .35); background: rgba(var(--accent-rgb), .08); }
.status-coming-soon { color: var(--faint); }

.plat h3 { margin-top: 16px; font-size: 25px; letter-spacing: -.025em; }
.plat-req {
  margin-top: 3px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.plat-desc { margin-top: 11px; font-size: 13px; line-height: 1.55; color: var(--dim); }
.plat-foot { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.plat-note { font-size: 10.5px; line-height: 1.45; color: var(--faint); }

/* ---------- screenshots ---------- */

.screen-shelf {
  display: grid; align-items: end; gap: clamp(12px, 1.6vw, 22px);
  grid-template-columns: .95fr 1.25fr 1.45fr .95fr 1.45fr;
  padding: 34px clamp(18px, 4vw, 54px) 0;
  max-width: 1400px; margin: 0 auto;
  position: relative;
}
/* atmosphere under the shelf, so the shorter TV frames don't float in a void */
.screen-shelf::before {
  content: ""; position: absolute; inset: 30% -6% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 60% at 50% 78%, rgba(var(--accent-rgb), .09), transparent 70%);
}

.shot { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.shot-frame {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #1b1b23, #0d0d12);
  box-shadow: 0 44px 80px -46px rgba(0, 0, 0, .98), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.shot-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(190deg, rgba(255, 255, 255, .10), transparent 26%, transparent 78%, rgba(0, 0, 0, .35));
  mix-blend-mode: overlay;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-phone .shot-frame { border-radius: 26px; padding: 5px; background: linear-gradient(160deg, #26262f, #0c0c10); }
.shot-phone .shot-frame img { border-radius: 21px; }
.shot-tablet .shot-frame { border-radius: 20px; padding: 6px; background: linear-gradient(160deg, #26262f, #0c0c10); }
.shot-tablet .shot-frame img { border-radius: 15px; }
.shot-tv .shot-frame { border-radius: 12px; }
.shot:hover .shot-frame { transform: translateY(-7px); box-shadow: 0 56px 90px -44px rgba(0, 0, 0, 1); }

.shot figcaption {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.shot figcaption b { font-weight: 500; letter-spacing: .08em; color: var(--ink); }
.shot figcaption span { text-transform: none; letter-spacing: .02em; line-height: 1.35; }

/* ---------- APK ---------- */

.apk { padding: clamp(60px, 8vw, 110px) clamp(18px, 4vw, 54px); }
.apk-grid, .apk-empty {
  max-width: 1240px; margin: 0 auto;
  border-radius: 26px; border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(var(--accent-rgb), .10), transparent 55%),
    linear-gradient(160deg, rgba(24, 24, 31, .92), rgba(12, 12, 16, .96));
  box-shadow: var(--shadow);
}
.apk-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 0;
  overflow: hidden;
}
.apk-copy { padding: clamp(26px, 4vw, 46px); }
.apk-copy h2, .apk-empty h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: .98; letter-spacing: -.035em;
  margin-bottom: 14px;
}
.apk-copy .muted, .apk-empty .muted { font-size: 14px; line-height: 1.6; color: var(--dim); max-width: 44ch; }

.apk-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin: 24px 0 22px; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.apk-meta .k {
  display: block; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 4px;
}
.apk-meta b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); }

.apk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { margin-top: 14px; font-size: 11px; line-height: 1.55; color: var(--faint); }

.apk-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border-left: 1px solid var(--line);
  background: linear-gradient(200deg, rgba(255, 255, 255, .035), transparent 60%);
  font-family: var(--mono);
}
.apk-card-top { display: flex; align-items: center; gap: 8px; }
.apk-card-top .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.apk-card-top .mono { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.mini-copy {
  margin-left: auto; background: rgba(255, 255, 255, .05); color: var(--dim);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.mini-copy:hover { color: var(--amber); border-color: rgba(var(--accent-rgb), .5); }
.hash {
  display: block; font-size: 11.5px; line-height: 1.85; color: var(--ink);
  word-break: break-all; letter-spacing: .01em;
  padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
}
.verify { display: flex; flex-direction: column; gap: 5px; }
.verify .mono { font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.verify code {
  font-size: 10.5px; color: var(--dim); background: rgba(255, 255, 255, .04);
  padding: 7px 9px; border-radius: 8px; overflow-x: auto; white-space: nowrap;
}
.apk-card-foot {
  margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.apk-empty { padding: clamp(26px, 4vw, 46px); }
.apk-empty code { color: var(--amber); font-size: .9em; }

/* ---------- feature matrix ---------- */

.features { padding-bottom: 20px; }
.matrix-wrap {
  margin: 34px clamp(18px, 4vw, 54px) 0; max-width: 1240px;
  border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 24, 31, .8), rgba(14, 14, 18, .9));
}
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix thead th {
  padding: 14px 16px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  text-align: center; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.matrix thead th:first-child { text-align: left; }
.matrix tbody th {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.matrix tbody th b { display: block; font-family: var(--sans); font-size: 13.5px; color: var(--ink); font-weight: 600; }
.matrix tbody th span {
  display: block; font-family: var(--mono); font-size: 9px;
  letter-spacing: .06em; color: var(--faint); margin-top: 2px;
}
.matrix tbody td { text-align: center; border-bottom: 1px solid var(--line); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr { transition: background .2s; }
.matrix tbody tr:hover { background: rgba(var(--accent-rgb), .045); }
.cell {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px;
  border-radius: 8px; font-family: var(--mono); font-size: 11px;
}
.cell.yes { color: var(--green); background: rgba(122, 210, 165, .10); }
.cell.no { color: var(--faint); }
.cell.soon {
  font-size: 8px; letter-spacing: .1em; text-transform: uppercase;
  padding: 0 7px; color: var(--blue); background: rgba(127, 180, 224, .10);
}
.matrix-note {
  max-width: 72ch; margin: 16px auto 0; padding: 0 clamp(18px, 4vw, 54px);
  font-size: 11.5px; line-height: 1.6; color: var(--faint);
}

/* ---------- engineering ---------- */

.engineering { padding-bottom: 30px; }
.pipe {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 38px clamp(18px, 4vw, 54px) 0; max-width: 1240px;
  padding: 22px; border-radius: var(--r);
  border: 1px dashed rgba(var(--accent-rgb), .28);
  background: radial-gradient(90% 140% at 0% 0%, rgba(var(--accent-rgb), .07), transparent 60%);
}
.pipe-node {
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(20, 20, 26, .9); min-width: 148px;
}
.pipe-node .mono {
  display: block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 5px;
}
.pipe-node b { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.45; display: block; }
.pipe-node.source { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 0 30px -12px rgba(var(--accent-rgb), .5); }
.pipe-node.swift .mono { color: var(--blue); }
.pipe-node.kotlin .mono { color: var(--green); }
.pipe-arrow { font-family: var(--mono); color: var(--faint); font-size: 16px; }
.pipe-split { display: flex; gap: 12px; flex-wrap: wrap; }

.eng-grid {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 18px clamp(18px, 4vw, 54px) 0; max-width: 1240px;
}
.eng-card {
  padding: 22px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 24, 31, .8), rgba(14, 14, 18, .9));
  transition: border-color .3s, transform .3s var(--ease);
}
.eng-card:hover { border-color: rgba(var(--accent-rgb), .35); transform: translateY(-3px); }
.eng-tag {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .3);
}
.eng-card h3 { margin: 14px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.eng-card p { font-size: 12.5px; line-height: 1.65; color: var(--dim); }
.eng-card code {
  font-family: var(--mono); font-size: 11px; color: var(--amber);
  background: rgba(var(--accent-rgb), .08); padding: 1px 5px; border-radius: 4px;
}

/* ---------- install ---------- */

.install { padding-bottom: 20px; }
.tabs {
  margin: 34px clamp(18px, 4vw, 54px) 0; max-width: 900px;
  border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 24, 31, .82), rgba(13, 13, 17, .92));
}
.tablist {
  display: flex; gap: 4px; padding: 8px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.tab {
  flex: 1; padding: 10px 12px; border-radius: 12px; border: 0; cursor: pointer;
  background: transparent; color: var(--dim);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .22s, color .22s;
}
.tab:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.tab.is-active { background: rgba(var(--accent-rgb), .16); color: var(--amber); }
.tabpanel { padding: 26px clamp(18px, 3vw, 30px); }
.no-js .tabpanel[hidden] { display: block; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.no-js .tabpanel + .tabpanel { border-top: 1px solid var(--line); }
.steps li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 14px; align-items: start;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  grid-column: 1; grid-row: 1 / span 2;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), .45); color: var(--amber);
  font-family: var(--mono); font-size: 11px;
}
/* both the label and its copy live in the text column, never under the number */
.steps li b, .steps li span { grid-column: 2; }
.steps li b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.steps li span { display: block; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.steps code {
  font-family: var(--mono); font-size: 11px; color: var(--amber);
  background: rgba(var(--accent-rgb), .08); padding: 1px 5px; border-radius: 4px;
}

/* ---------- faq ---------- */

.faq-list {
  display: grid; gap: 10px;
  margin: 30px clamp(18px, 4vw, 54px) 0; max-width: 900px;
}
.faq-list details {
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 24, 31, .72), rgba(13, 13, 17, .86));
  transition: border-color .25s;
}
.faq-list details[open] { border-color: rgba(var(--accent-rgb), .3); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--mono); color: var(--amber); font-size: 15px;
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p {
  padding: 0 18px 18px; font-size: 12.5px; line-height: 1.65; color: var(--dim);
  max-width: 68ch;
}

/* ---------- endcap + footer ---------- */

.endcap {
  text-align: center; padding: clamp(60px, 10vw, 120px) clamp(18px, 4vw, 54px);
}
.endcap h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -.04em; }
.endcap .kicker { color: var(--faint); }

.foot { border-top: 1px solid var(--line); }
.foot-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1400px; margin: 0 auto; padding: 22px clamp(18px, 4vw, 54px);
  font-size: 11.5px; color: var(--faint);
}
.foot-links { display: flex; gap: 16px; }
.foot-links a:hover { color: var(--amber); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  padding: 11px 18px; border-radius: 999px; z-index: 120;
  background: rgba(24, 24, 31, .96); border: 1px solid rgba(var(--accent-rgb), .35);
  color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
  opacity: 0; transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .screen-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 340px; max-width: 560px; margin: 0 auto; width: 100%; }
  .facts { gap: 26px; }
  .apk-grid { grid-template-columns: 1fr; }
  .apk-card { border-left: 0; border-top: 1px solid var(--line); }
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  /* On a phone the illustration fills the first screen and buries the CTA;
     the copy leads and the radar glow stays as the backdrop. */
  .hero-art { display: none; }
  .hero { padding-top: clamp(18px, 6vw, 32px); }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .lede { font-size: 14.5px; }
  .nav { gap: 12px; padding: 14px 16px; }
  .nav-cta .btn.ghost { display: none; }
  .brand-type i { display: none; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .changelog { flex-direction: column; gap: 6px; white-space: normal; }
  .changelog li { white-space: normal; }
  .changelog li::before { display: none; }
  .apk-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts b { font-size: 21px; }
  .facts span { font-size: 8.5px; }
  .matrix { font-size: 12px; }
  .matrix thead th { font-size: 8px; padding: 10px 6px; }
  .matrix tbody th { padding: 11px 10px; }
  .matrix tbody th span { display: none; }
  .cell { min-width: 20px; height: 20px; font-size: 10px; }
  .cell.soon { padding: 0 5px; font-size: 7px; }
  .pipe { flex-direction: column; align-items: stretch; }
  .pipe-arrow { transform: rotate(90deg); align-self: center; }
  .tab { font-size: 9px; padding: 9px 6px; }
  .foot-inner { flex-direction: column; }
  .screen-shelf {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .screen-shelf::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 74%; scroll-snap-align: center; }
  .shot-tv { flex-basis: 88%; }
  .shot figcaption span { display: none; }
}

/* Full-page capture and print never scroll, so revealed-by-scroll blocks
   must not stay invisible there. */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
