/* =========================================================
   Estrelar — marketing site
   Design tokens mirror the app's theme exactly.
   ========================================================= */

@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/Unbounded.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg0: #070D1A;
  --bg1: #0A1324;
  --surface: #101C33;
  --surface2: #16243F;
  --line: rgba(214, 179, 106, .16);
  --line-soft: #1E2C49;
  --gold: #D6B36A;
  --gold-light: #F1DDA6;
  --gold-deep: #9C7A3C;
  --gold-grad: linear-gradient(135deg, #F1DDA6, #D6B36A 45%, #9C7A3C);
  --text: #F4EFE6;
  --text-muted: #9AA3B5;
  --text-faint: #626D82;
  --success: #5BC8A4;
  --warning: #E8B34B;
  --danger: #E5666E;
  --info: #7FA7E8;

  --r-chip: 10px;
  --r-card: 16px;
  --r-panel: 24px;
  --r-pill: 999px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  --fast: 140ms;
  --base: 240ms;
  --slow: 420ms;
  --stagger: 60ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg0);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 17px; } }

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-light); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--gold); }
p { margin: 0 0 var(--s4); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--s4);
  color: var(--text);
}
h1 { font-size: clamp(2rem, 1rem + 3.6vw, 4rem); letter-spacing: -0.035em; font-weight: 650; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); letter-spacing: -0.01em; font-weight: 600; }
strong { font-weight: 700; color: var(--text); }
ul { padding-left: 1.2em; }

::selection { background: rgba(214, 179, 106, .35); color: var(--text); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold-grad); color: var(--bg0);
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 700;
  transition: top var(--base) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--bg0); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4);
}
@media (min-width: 640px) { .container { padding: 0 var(--s5); } }
@media (min-width: 1024px) { .container { padding: 0 var(--s6); } }

/* ---------- atmosphere ---------- */
.atmos {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(214, 179, 106, .08), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(127, 167, 232, .05), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 60%, var(--bg0));
}
.atmos::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/bg_constellation.webp") center top / cover no-repeat;
  opacity: .22;
  mix-blend-mode: screen;
}
.atmos::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(214, 179, 106, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 179, 106, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift { to { background-position: 72px 72px, 72px 72px; } }
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--gold-grad);
}
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

.section { padding: var(--s8) 0; position: relative; }
@media (min-width: 900px) { .section { padding: var(--s9) 0; } }
.section-head { max-width: 760px; margin-bottom: var(--s7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--gold-grad); }

/* ---------- buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease),
              background-color var(--base) var(--ease), color var(--fast) var(--ease), border-color var(--base) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--base) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--gold-grad);
  color: var(--bg0);
  box-shadow: 0 8px 24px -10px rgba(214, 179, 106, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover {
  color: var(--bg0);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(214, 179, 106, .75), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: rgba(214, 179, 106, .04);
  color: var(--gold-light);
  border-color: rgba(214, 179, 106, .55);
}
.btn-secondary:hover {
  color: var(--gold-light);
  background: rgba(214, 179, 106, .1);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -14px rgba(214, 179, 106, .6);
}
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(7, 13, 26, .62);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
          backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--base) var(--ease), background-color var(--base) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 13, 26, .82); }
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(214, 179, 106, .35)); transition: transform var(--slow) var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }

.nav { display: flex; align-items: center; gap: var(--s5); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: var(--r-pill);
  color: var(--text-muted); font-weight: 600; font-size: 14.5px;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform var(--base) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(16, 28, 51, .7); color: var(--gold-light);
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform var(--base) var(--ease), opacity var(--fast) var(--ease), top var(--base) var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .burger { display: inline-block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--s5);
    padding: var(--s5) var(--s4) var(--s7);
    background: rgba(7, 13, 26, .97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility 0s linear var(--base);
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--base) var(--ease), transform var(--base) var(--ease); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--text);
    padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a::after { display: none; }
  .nav .btn { align-self: stretch; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: var(--s7) 0 var(--s8);
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding: var(--s8) 0 var(--s9); } }
.hero-grid {
  display: grid; gap: var(--s7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: var(--s7); } }
.hero h1 { margin-bottom: var(--s5); }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: var(--s6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  list-style: none; margin: 0; padding: 0;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-chip);
  background: rgba(16, 28, 51, .6); border: 1px solid var(--line-soft);
  color: var(--text-muted); font-size: 13px; font-weight: 600;
}
.hero-badges li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--r-panel);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 80px -20px rgba(214, 179, 106, .25);
  background: var(--surface);
}
@media (max-width: 1023px) { .hero-frame { aspect-ratio: 16 / 11; } }
.hero-frame img {
  width: 100%; height: 115%; object-fit: cover;
  position: absolute; top: -7.5%; left: 0;
  will-change: transform;
  animation: kenburns 28s var(--ease) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, var(--py, 0px), 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, calc(var(--py, 0px) - 1%), 0); }
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 26, 0) 40%, rgba(7, 13, 26, .75) 100%),
              radial-gradient(circle at 70% 20%, rgba(241, 221, 166, .12), transparent 50%);
  pointer-events: none;
}
.hero-caption {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light);
  display: flex; align-items: center; gap: 8px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 0 rgba(229, 102, 110, .6);
  animation: pulseDot 2.2s var(--ease) infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(229, 102, 110, .55); }
  70% { box-shadow: 0 0 0 10px rgba(229, 102, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 102, 110, 0); }
}

.stat-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-card);
  background: rgba(16, 28, 51, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: floatY 7s ease-in-out infinite;
}
.stat-chip .num {
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1;
}
.stat-chip .lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); line-height: 1.3; }
.stat-chip .ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(214, 179, 106, .1); color: var(--gold); flex: none;
}
.stat-chip .ico svg { width: 18px; height: 18px; }
.chip-a { top: 7%; left: -6%; }
.chip-b { top: 44%; right: -6%; animation-delay: -2.4s; }
.chip-c { bottom: 9%; left: 8%; animation-delay: -4.6s; }
@media (max-width: 1100px) { .chip-a { left: 12px; } .chip-b { right: 12px; } }
@media (max-width: 560px) {
  .stat-chip { padding: 8px 12px; gap: 8px; }
  .stat-chip .num { font-size: 17px; }
  .stat-chip .ico { display: none; }
  .stat-chip .lbl { font-size: 10px; letter-spacing: .1em; }
  .chip-a { top: 12px; left: 12px; }
  .chip-b { top: 12px; right: 12px; left: auto; }
  .chip-c { display: none; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 36, 63, .55), rgba(16, 28, 51, .9)) , var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s5);
  box-shadow: inset 0 1px 0 rgba(241, 221, 166, .07), 0 20px 40px -30px rgba(0, 0, 0, .8);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 179, 106, .38);
  box-shadow: inset 0 1px 0 rgba(241, 221, 166, .1), 0 24px 50px -28px rgba(0, 0, 0, .9), 0 0 40px -12px rgba(214, 179, 106, .28);
}
.icon-tile {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(214, 179, 106, .18), rgba(214, 179, 106, .04));
  border: 1px solid var(--line);
  color: var(--gold-light);
  margin-bottom: var(--s4);
}
.icon-tile svg { width: 24px; height: 24px; }

/* ---------- concept ---------- */
.concept-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 760px) { .concept-grid { grid-template-columns: repeat(3, 1fr); } }
.concept-grid .card p { color: var(--text-muted); margin: 0; }
.not-list {
  display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: var(--s6) 0 0;
  justify-content: center;
}
.not-list li {
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-soft); color: var(--text-muted); font-size: 14px; font-weight: 600;
  background: rgba(10, 19, 36, .6);
}
.not-list li s { text-decoration-color: var(--danger); text-decoration-thickness: 1.5px; }

/* ---------- loop ---------- */
.loop {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
  counter-reset: step;
  position: relative;
}
@media (min-width: 700px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .loop { grid-template-columns: repeat(4, 1fr); } }
.loop li { counter-increment: step; position: relative; }
.loop .card { height: 100%; }
.loop .step-no {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .08em;
  color: var(--gold); display: flex; align-items: center; gap: 10px; margin-bottom: var(--s4);
}
.loop .step-no::before {
  content: "0" counter(step);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(214, 179, 106, .45);
  background: radial-gradient(circle, rgba(214, 179, 106, .16), transparent 70%);
  color: var(--gold-light); font-size: 13px;
}
.loop h3 { font-size: 1.35rem; }
.loop p { color: var(--text-muted); margin-bottom: var(--s3); }
.loop .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-chip);
  background: rgba(214, 179, 106, .08); border: 1px solid var(--line);
  color: var(--gold-light); font-size: 12px; font-weight: 600;
}
@media (min-width: 1080px) {
  .loop li:not(:last-child)::after {
    content: ""; position: absolute; top: 43px; right: -14px; width: 12px; height: 12px;
    border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold);
    transform: rotate(45deg); opacity: .7; z-index: 2;
  }
}
.ranks {
  margin-top: var(--s6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s2);
  font-size: 14px; color: var(--text-muted);
}
.ranks .rank {
  padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); background: rgba(16, 28, 51, .7);
  font-weight: 700; color: var(--text);
}
.ranks .rank.top { background: var(--gold-grad); color: var(--bg0); border-color: transparent; }
.ranks .arrow { color: var(--gold-deep); }

/* ---------- features ---------- */
.features {
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface2);
  border-bottom: 1px solid var(--line);
}
.feature-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter var(--slow) var(--ease);
  filter: saturate(.95) brightness(.92);
}
.feature:hover .feature-media img { transform: scale(1.09); filter: saturate(1.05) brightness(1); }
.feature-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(16, 28, 51, .85));
}
.feature-media .badge {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-chip);
  background: rgba(7, 13, 26, .72); border: 1px solid var(--line); color: var(--gold-light);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.feature-body { padding: var(--s5); flex: 1; }
.feature-body p { color: var(--text-muted); margin-bottom: var(--s3); }
.feature-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--text-muted); }
.feature-body li { display: flex; gap: 10px; align-items: baseline; }
.feature-body li::before { content: "✦"; color: var(--gold); font-size: 10px; transform: translateY(-1px); }

/* Pulse "generated" media */
.pulse-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 55%, rgba(214, 179, 106, .16), transparent 55%),
    linear-gradient(160deg, #13213C, #0A1324);
}
.pulse-art svg { width: 58%; max-width: 220px; height: auto; overflow: visible; }

/* ---------- demo / phones ---------- */
.demo { overflow: hidden; }
.demo-tabs {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 6px; border-radius: var(--r-pill);
  background: rgba(16, 28, 51, .8); border: 1px solid var(--line);
  margin: 0 auto var(--s7);
}
.demo-tabs-wrap { text-align: center; }
.demo-tab {
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: var(--r-pill);
  border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  transition: color var(--fast) var(--ease), background-color var(--base) var(--ease);
}
.demo-tab:hover { color: var(--text); }
.demo-tab[aria-selected="true"] { background: var(--gold-grad); color: var(--bg0); }

.demo-stage {
  display: grid; grid-template-columns: 1fr; gap: var(--s7); align-items: center;
}
@media (min-width: 960px) { .demo-stage { grid-template-columns: 1fr 1fr; } }
.demo-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.02em; }
.demo-copy p { color: var(--text-muted); }
.demo-copy ul { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.demo-copy li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-chip);
  background: rgba(16, 28, 51, .55); border: 1px solid var(--line-soft);
  color: var(--text-muted); font-size: 15px;
}
.demo-copy li b { color: var(--text); font-weight: 700; }
.demo-copy li .dot { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.demo-panel[hidden] { display: none; }
.demo-panel { animation: panelIn var(--slow) var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.demo-progress {
  height: 2px; width: 160px; margin: calc(var(--s7) * -1 + 14px) auto var(--s7);
  background: var(--line-soft); border-radius: 2px; overflow: hidden;
}
.demo-progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); }
.demo-progress.run span { animation: prog 7s linear forwards; }
@keyframes prog { to { width: 100%; } }

.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before {
  content: ""; position: absolute; width: 80%; height: 70%; top: 15%; left: 10%;
  background: radial-gradient(circle, rgba(214, 179, 106, .22), transparent 65%);
  filter: blur(30px);
}
.phone {
  position: relative;
  width: 300px; max-width: 100%;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3550, #0b1222 40%, #1b2640);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(214, 179, 106, .2), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.screen {
  position: relative;
  border-radius: 35px;
  overflow: hidden;
  background: var(--bg0);
  aspect-ratio: 9 / 19.2;
  display: flex; flex-direction: column;
  font-family: var(--font-body);
  font-size: 12px; line-height: 1.4;
}
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 20px; background: #000; z-index: 5;
}
.sb {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 4px; font-size: 11px; font-weight: 700; color: var(--text);
}
.sb .sig { display: flex; gap: 4px; align-items: center; }
.sb .sig i { display: block; width: 3px; background: var(--text); border-radius: 1px; }
.app-body { flex: 1; padding: 12px 14px 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.app-top .t { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.app-top .sub { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.app-top .av {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface2); border: 1px solid var(--line); color: var(--gold-light);
}
.app-top .av svg { width: 15px; height: 15px; }
.m-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 12px; box-shadow: inset 0 1px 0 rgba(241, 221, 166, .06);
}
.m-label { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ring-wrap { display: flex; align-items: center; gap: 12px; }
.ring { width: 76px; height: 76px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .val {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1;
}
.ring .val small { display: block; font-family: var(--font-body); font-size: 7.5px; color: var(--text-muted); font-weight: 700; letter-spacing: .1em; margin-top: 3px; }
.ring-arc { stroke-dasharray: 201; stroke-dashoffset: 201; transition: stroke-dashoffset 1.6s var(--ease); }
.in-view .ring-arc, .demo-panel:not([hidden]) .ring-arc { stroke-dashoffset: var(--off, 40); }
.kv { display: grid; gap: 4px; font-size: 10.5px; color: var(--text-muted); }
.kv b { color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 12px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.stats3 .m-card { padding: 9px 8px; text-align: left; }
.stats3 .v { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; margin-top: 2px; }
.stats3 .v.ok { color: var(--success); }
.xp-bar { height: 6px; background: var(--surface2); border-radius: 6px; overflow: hidden; margin-top: 7px; }
.xp-bar span { display: block; height: 100%; width: 68%; background: var(--gold-grad); border-radius: 6px; }
.spark { width: 100%; height: 44px; display: block; margin-top: 6px; }
.tip {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 10.5px; color: var(--text-muted);
  border-left: 2px solid var(--warning); padding: 7px 9px; border-radius: 8px;
  background: rgba(232, 179, 75, .07);
}
.tip b { color: var(--warning); }

.tabbar {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 8px 8px 16px;
  background: rgba(10, 19, 36, .96); border-top: 1px solid var(--line-soft);
}
.tabbar .ti { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8.5px; font-weight: 700; color: var(--text-faint); }
.tabbar .ti svg { width: 16px; height: 16px; }
.tabbar .ti.on { color: var(--gold-light); }
.tabbar .fab {
  width: 42px; height: 42px; margin: -18px auto 0; border-radius: 50%;
  background: var(--gold-grad); color: var(--bg0); display: grid; place-items: center;
  box-shadow: 0 8px 20px -6px rgba(214, 179, 106, .6);
  font-size: 18px;
}

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 8px 10px; color: var(--text-faint); font-size: 11px;
}
.search svg { width: 13px; height: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.chips span {
  flex: none; padding: 4px 10px; border-radius: var(--r-pill); font-size: 10px; font-weight: 700;
  border: 1px solid var(--line-soft); color: var(--text-muted); background: var(--surface);
}
.chips span.on { background: rgba(214, 179, 106, .14); border-color: rgba(214, 179, 106, .5); color: var(--gold-light); }
.read .teams { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: -0.01em; margin: 3px 0 2px; }
.read .meta { font-size: 9.5px; color: var(--text-faint); }
.pill {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); font-size: 9px; font-weight: 800; letter-spacing: .06em;
}
.pill.hit { background: rgba(91, 200, 164, .14); color: var(--success); }
.pill.miss { background: rgba(229, 102, 110, .14); color: var(--danger); }
.pill.open { background: rgba(127, 167, 232, .14); color: var(--info); }
.pill.live { background: rgba(229, 102, 110, .16); color: #ff8f96; }
.outlook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.outlook span {
  text-align: center; padding: 5px 0; border-radius: 8px; font-size: 9.5px; font-weight: 700;
  background: var(--surface2); color: var(--text-muted); border: 1px solid transparent;
}
.outlook span.sel { border-color: rgba(214, 179, 106, .6); color: var(--gold-light); background: rgba(214, 179, 106, .1); }
.conf { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 9.5px; color: var(--text-muted); }
.conf .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.conf .bar i { display: block; height: 100%; background: var(--gold-grad); }
.conf b { font-family: var(--font-display); color: var(--text); font-size: 10.5px; }

.matrix-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; color: var(--text-muted); }
.xg-in { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xg-in div {
  background: var(--surface2); border-radius: 10px; padding: 7px 9px; border: 1px solid var(--line-soft);
}
.xg-in small { display: block; font-size: 8.5px; color: var(--text-faint); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.xg-in b { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.matrix {
  display: grid; grid-template-columns: 18px repeat(5, 1fr); gap: 3px; margin-top: 8px;
}
.matrix .h { font-size: 8.5px; color: var(--text-faint); font-weight: 700; display: grid; place-items: center; }
.matrix .c {
  aspect-ratio: 1; border-radius: 5px; display: grid; place-items: center;
  font-size: 8.5px; font-weight: 700; color: var(--text);
  background: rgba(214, 179, 106, var(--a, .1));
}
.matrix .c.best { outline: 1.5px solid var(--gold-light); outline-offset: -1.5px; color: var(--bg0); }
.probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.probs div { text-align: center; background: var(--surface2); border-radius: 10px; padding: 7px 4px; }
.probs small { display: block; font-size: 8.5px; color: var(--text-faint); font-weight: 700; letter-spacing: .1em; }
.probs b { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.probs .w b { color: var(--success); }

/* ---------- stats band ---------- */
.band {
  position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(16, 28, 51, .4), rgba(22, 36, 63, .7), rgba(16, 28, 51, .4));
  padding: var(--s7) 0;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/img/bg_constellation.webp") center / cover no-repeat;
  opacity: .18; mix-blend-mode: screen; pointer-events: none;
}
.band-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s4);
  text-align: center;
}
@media (min-width: 860px) { .band-grid { grid-template-columns: repeat(4, 1fr); } }
.band .big {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.8rem);
  letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.band .cap { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.band-grid > div { position: relative; }
@media (min-width: 860px) {
  .band-grid > div:not(:last-child)::after {
    content: ""; position: absolute; right: calc(var(--s4) * -.5); top: 10%; bottom: 10%; width: 1px; background: var(--line);
  }
}

/* ---------- split / privacy ---------- */
.split {
  display: grid; grid-template-columns: 1fr; gap: var(--s7); align-items: center;
}
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.05fr; gap: var(--s8); } }
.media-panel {
  position: relative; border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 5 / 4; background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.media-panel img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.03);
  will-change: transform;
}
.media-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(7, 13, 26, .7));
}
.media-panel .overlay-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-card);
  background: rgba(10, 19, 36, .82); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px; color: var(--text-muted);
}
.media-panel .overlay-card code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--gold-light); font-size: 13px;
}
.check-list { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); display: grid; gap: var(--s3); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.check-list li svg { width: 20px; height: 20px; flex: none; color: var(--success); margin-top: 3px; }
.check-list li b { color: var(--text); }

/* ---------- APIs ---------- */
.api-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 860px) { .api-grid { grid-template-columns: 1fr 1fr; } }
.api-card h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.api-card .host { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; color: var(--text-faint); }
.dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: var(--s4) 0 0; }
.dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
@media (min-width: 520px) { .dl > div { grid-template-columns: 130px 1fr; gap: var(--s4); } }
.dl dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.dl dd { margin: 0; color: var(--text-muted); font-size: 15px; }
.dl dd b { color: var(--text); }
.api-note {
  margin-top: var(--s5);
  display: flex; gap: 14px; align-items: flex-start;
  padding: var(--s4) var(--s5); border-radius: var(--r-card);
  border: 1px dashed rgba(214, 179, 106, .3); color: var(--text-muted); font-size: 15px;
  background: rgba(16, 28, 51, .4);
}
.api-note svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: var(--s3); }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: rgba(16, 28, 51, .7);
  transition: border-color var(--base) var(--ease), background-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.faq-item:hover { border-color: rgba(214, 179, 106, .32); }
.faq-item.open { border-color: rgba(214, 179, 106, .42); background: var(--surface); box-shadow: 0 0 40px -18px rgba(214, 179, 106, .3); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 18px 20px;
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(.98rem, .94rem + .2vw, 1.08rem); letter-spacing: -0.01em; line-height: 1.4;
  border-radius: var(--r-card);
}
.faq-q .pm {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); position: relative; color: var(--gold);
  transition: transform var(--base) var(--ease), background-color var(--base) var(--ease);
}
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); border-radius: 2px;
}
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--base) var(--ease); }
.faq-item.open .pm { background: rgba(214, 179, 106, .12); }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--slow) var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px; color: var(--text-muted); margin: 0 0 var(--s3); }
.faq-a p:last-child { padding-bottom: 18px; margin-bottom: 0; }
.no-js .faq-a { grid-template-rows: 1fr; }

/* ---------- support / contact ---------- */
.contact-panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(214, 179, 106, .16), transparent 60%),
    linear-gradient(160deg, var(--surface2), var(--surface) 60%, var(--bg1));
  padding: var(--s6) var(--s5);
  display: grid; grid-template-columns: 1fr; gap: var(--s6); align-items: center;
  box-shadow: inset 0 1px 0 rgba(241, 221, 166, .08), 0 40px 80px -50px rgba(0, 0, 0, .9);
}
@media (min-width: 900px) { .contact-panel { grid-template-columns: auto 1fr auto; padding: var(--s7); } }
.contact-panel .app-icon {
  width: 112px; height: 112px; border-radius: 26px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .9), 0 0 40px -6px rgba(214, 179, 106, .35);
  animation: floatY 8s ease-in-out infinite;
}
.contact-panel h2 { margin-bottom: var(--s3); }
.contact-panel p { color: var(--text-muted); margin: 0; }
.contact-actions { display: flex; flex-direction: column; gap: var(--s3); align-items: stretch; }
.mail-link {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, .9rem + .5vw, 1.3rem);
  color: var(--gold-light); word-break: break-all;
}
.support-mini { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-top: var(--s5); }
@media (min-width: 760px) { .support-mini { grid-template-columns: repeat(3, 1fr); } }
.support-mini .card h3 { font-size: 1.05rem; }
.support-mini .card p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---------- final CTA ---------- */
.cta-final { text-align: center; }
.cta-final .logo-big {
  width: 84px; height: 84px; margin: 0 auto var(--s5);
  filter: drop-shadow(0 0 24px rgba(214, 179, 106, .5));
  animation: spinSlow 40s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s7) 0 var(--s6);
  background: rgba(7, 13, 26, .7);
  font-size: 15px;
}
.footer-grid {
  display: grid; gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--s3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .about p { color: var(--text-muted); max-width: 38ch; margin-top: var(--s3); }
.footer-bottom {
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between;
  color: var(--text-faint); font-size: 13.5px;
}

/* ---------- legal / doc pages ---------- */
.doc-hero { padding: var(--s8) 0 var(--s6); position: relative; }
.doc-hero .lead { margin-bottom: 0; }
.doc-hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .doc-hero-grid { grid-template-columns: 1fr auto; } }
.doc-hero-art {
  width: 180px; height: 180px; border-radius: 40px; justify-self: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(214, 179, 106, .35);
  animation: floatY 8s ease-in-out infinite;
}
.doc-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.doc-layout {
  display: grid; grid-template-columns: 1fr; gap: var(--s7);
  padding-bottom: var(--s9);
}
@media (min-width: 1024px) { .doc-layout { grid-template-columns: 250px 1fr; } }
.toc {
  align-self: start;
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-card); background: rgba(16, 28, 51, .6);
  padding: var(--s4) var(--s4);
}
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc h2 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-muted); font-size: 14.5px; font-weight: 600; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.toc a:hover, .toc a[aria-current="true"] { background: rgba(214, 179, 106, .09); color: var(--gold-light); }
.prose { max-width: 760px; min-width: 0; }
.prose section { padding-bottom: var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--line-soft); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); margin-bottom: var(--s4); }
.prose h3 { margin-top: var(--s5); font-size: 1.08rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }
.prose code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em;
  background: var(--surface2); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 6px; color: var(--gold-light);
  word-break: break-word;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); margin: var(--s4) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; background: rgba(16, 28, 51, .7); }
.prose td { color: var(--text-muted); }
.prose tr:last-child td { border-bottom: 0; }
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: var(--s4) var(--s5); border-radius: var(--r-card);
  background: rgba(91, 200, 164, .07); border: 1px solid rgba(91, 200, 164, .25);
  color: var(--text-muted); margin: var(--s4) 0;
}
.callout svg { width: 22px; height: 22px; flex: none; color: var(--success); margin-top: 2px; }
.callout.gold { background: rgba(214, 179, 106, .07); border-color: var(--line); }
.callout.gold svg { color: var(--gold); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  border: 1px solid rgba(214, 179, 106, .45); color: var(--gold-light);
}
.kbd {
  font-family: ui-monospace, Consolas, monospace; font-size: .85em; padding: 1px 7px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface2); color: var(--text);
}
.doc-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin: var(--s5) 0;
}
.doc-strip img { border-radius: var(--r-chip); aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-frame img, .media-panel img { animation: none !important; transform: none !important; }
  .stat-chip, .contact-panel .app-icon, .doc-hero-art, .cta-final .logo-big { animation: none !important; }
  .atmos::after { animation: none !important; }
  #starfield { display: none; }
  .card:hover, .btn:hover { transform: none; }
}
html.reduce-motion .reveal { opacity: 1; transform: none; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.support-mini a.card { color: inherit; display: block; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.prose a.btn-primary { color: var(--bg0); }

/* "Coming soon" badge replaces app links until the App Store release. */
.btn-soon { cursor: default; gap: .55em; }
.btn-soon:hover, .btn-soon:focus { transform: none; filter: none; box-shadow: 0 8px 24px -10px rgba(214, 179, 106, .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-soon:hover svg { transform: none; }
.btn-soon svg { width: 1.05em; height: 1.05em; }
.soon-note { color: var(--text-muted, #9AA3B5); }
