:root {
  --bg: #050d10;
  --bg-2: #08161a;
  --teal: #043947;
  --teal-glow: rgba(10, 79, 92, 0.45);
  --gold: #d4af6a;
  --gold-bright: #e8c47a;
  --gold-deep: #b8924e;
  --text: #f2efe8;
  --muted: #9aa7ab;
  --line: rgba(212, 175, 106, 0.2);
  --phone-bezel: #0b0f11;
  --phone-w: 260px;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0d9a0; }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(5, 13, 16, 0.82);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.nav { display: flex; gap: 1.15rem; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--gold-bright); }

/* Hero */
.hero {
  position: relative;
  padding: 3.25rem 0 2.5rem;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 70%;
  background:
    radial-gradient(closest-side, var(--teal-glow), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(212, 175, 106, 0.12), transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 7vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 .gold { color: var(--gold-bright); }
.subline {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.badges-block { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.soon-pill { display: inline-block; padding: .28rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); background: rgba(212,175,106,.1); border: 1px solid rgba(212,175,106,.45); }
.badges { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: nowrap; }
.store-badge { display: block; line-height: 0; border-radius: 10px; transition: transform .18s ease, box-shadow .18s ease; }
.store-badge img { display: block; height: 56px; width: auto; }
.store-badge:hover, .store-badge:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold-bright), 0 8px 22px rgba(212,175,106,.28); outline: none; }
@media (max-width: 600px) { .store-badge img { height: 48px; } }
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } .store-badge:hover { transform: none; } }

.stats {
  display: flex;
  justify-content: center;
  gap: 1rem 3rem;
  flex-wrap: wrap;
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stats[hidden] { display: none; }
.stats div { display: flex; flex-direction: column-reverse; align-items: center; min-width: 7rem; }
.stats dd { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-bright); line-height: 1.1; }
.stats dt { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; }

/* Phone frames */
.phone-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.phone {
  position: relative;
  width: var(--phone-w);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1a2226, var(--phone-bezel));
  box-shadow:
    0 0 0 1px rgba(212, 175, 106, 0.18),
    0 28px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 8px;
  border-radius: 999px;
  background: #05070a;
  z-index: 2;
}
.phone .screen {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 20;
}
.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-float {
  animation: floaty 6.5s ease-in-out infinite;
  will-change: transform;
}
.phone-float.delay { animation-delay: -2.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-stack {
  position: relative;
  width: min(100%, 420px);
  height: 480px;
  overflow: visible;
}
.phone-stack .phone {
  position: absolute;
}
.phone-stack .back {
  left: 0;
  top: 36px;
  width: 220px;
  opacity: 0.92;
  transform: rotate(-8deg);
  z-index: 1;
}
.phone-stack .front {
  right: 0;
  top: 0;
  width: 250px;
  z-index: 2;
  transform: rotate(4deg);
}
@media (prefers-reduced-motion: reduce) {
  .phone-float { animation: none; }
}

/* Creator Mode */
.creator { padding: 0.5rem 0 3.5rem; }
.creator-card {
  max-width: 580px;
  margin-inline: auto;
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-radius: 22px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, #0b1d22, #070f12) padding-box,
    linear-gradient(135deg, var(--gold-bright), var(--gold-deep) 55%, rgba(212,175,106,.35)) border-box;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.creator-kicker { margin: 0 0 .6rem; color: var(--gold); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.creator-card h2 { margin: 0 0 .25rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.15; }
.creator-card h2 .gold { color: var(--gold-bright); }
.creator-tagline { margin: 0 0 .8rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.2; color: var(--gold-bright); }
.creator-sub { margin: 0 auto; max-width: 30rem; color: var(--muted); font-size: 1.05rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }

/* Legal pages (shared) */
.legal { padding: 2.5rem 0 4rem; }
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.35rem;
}
.legal .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }
.legal h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
  color: var(--gold-bright);
}
.legal h3 { font-size: 1.02rem; margin: 1.3rem 0 0.4rem; }
.legal p, .legal li { color: #d7dde0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.35rem 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.8rem 0 1.2rem;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--teal); color: var(--gold-bright); }

@media (min-width: 860px) {
  .hero { padding: 4rem 0 3.5rem; }
  .phone-stack { height: 600px; width: 460px; }
  .phone-stack .back { width: 240px; top: 48px; }
  .phone-stack .front { width: 270px; }
}

@media (max-width: 859px) {
  .hero { padding: 2.2rem 0 2rem; }
  .phone-stage { min-height: 470px; }
  .stats { gap: 1rem 1.5rem; }
  .stats div { min-width: 0; flex: 1; }
  .stats dt { font-size: .72rem; white-space: nowrap; }
  .stats dd { font-size: 1.6rem; }
  .phone-stack { height: 465px; width: min(100%, 320px); }
  .phone-stack .back { width: 170px; top: 40px; left: 14px; }
  .phone-stack .front { width: 205px; right: 6px; }
}
.stats > div[hidden] { display: none; }
