:root {
  --bg: #080706;
  --surface: #12100c;
  --surface-raised: #17130d;
  --gold: #d8ad5b;
  --gold-bright: #f1d58c;
  --ink: #fff8e8;
  --muted: #b9ad92;
  --line: rgba(216, 173, 91, .28);
  --line-strong: rgba(241, 213, 140, .48);
  --shadow: 0 18px 46px rgba(0, 0, 0, .34);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: dark; }
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(216, 173, 91, .16), transparent 34rem),
    linear-gradient(180deg, #090806 0%, #050504 100%);
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.pixel-image { display: none; }

.page { min-height: 100vh; padding: 12px 10px calc(94px + var(--safe-bottom)); }
.shell { width: min(100%, 520px); margin: 0 auto; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(216, 173, 91, .14);
}
.brand-main {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}
.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.age {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(216, 173, 91, .08);
  font-size: 11px;
  font-weight: 900;
}

.hero-card, .previews, .info-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(216, 173, 91, .1), transparent 42%), var(--surface);
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: .75;
}
.kicker, .section-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(216, 173, 91, .12), 0 0 16px rgba(241, 213, 140, .36);
}
h1 {
  max-width: 440px;
  margin: 0;
  color: #fff9eb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 8.5vw, 42px);
  line-height: 1.01;
  letter-spacing: -.04em;
  font-weight: 800;
}
.hero-card p {
  max-width: 450px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.download-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid #f5d98e;
  border-radius: 14px;
  color: #160f04;
  background: linear-gradient(105deg, #a87a2c 0%, #e0b65f 38%, #f3dc99 64%, #c4933d 100%);
  box-shadow: 0 13px 30px rgba(187, 138, 51, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
  text-align: center;
  text-decoration: none;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: .01em;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.hero-cta { margin-top: 16px; }
.download-cta:hover { filter: brightness(1.07); box-shadow: 0 15px 34px rgba(187, 138, 51, .3); }
.download-cta:active { transform: translateY(1px) scale(.99); }
.download-cta:focus-visible, button:focus-visible {
  outline: 3px solid rgba(241, 213, 140, .42);
  outline-offset: 3px;
}

.pill-row, .feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.pill-row { margin-top: 12px; }
.pill-row span, .feature-row div {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(216, 173, 91, .18);
  border-radius: 999px;
  color: #c9bb9c;
  background: rgba(216, 173, 91, .055);
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
}

.previews { margin-top: 12px; padding: 14px 11px 12px; border-radius: 18px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.section-kicker { margin-bottom: 4px; }
.section-head h2 {
  margin: 0;
  color: #fff7e6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 800;
}
#refresh {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--gold-bright);
  background: rgba(216, 173, 91, .08);
  font-size: 11px;
  font-weight: 850;
}
#refresh:hover { background: rgba(216, 173, 91, .13); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preview-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(216, 173, 91, .22);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface-raised);
  text-align: left;
  box-shadow: 0 9px 20px rgba(0, 0, 0, .22);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.preview-card:active { transform: scale(.985); }
.preview-card:hover { border-color: rgba(241, 213, 140, .55); box-shadow: 0 12px 24px rgba(0, 0, 0, .32); }
.preview-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1.28; background: #17130d; }
.preview-media img { width: 100%; height: 100%; object-fit: cover; }
.preview-media::after {
  content: "";
  position: absolute;
  inset: 46% 0 0;
  background: linear-gradient(transparent, rgba(5, 4, 3, .78));
  pointer-events: none;
}
.media-badge, .media-state {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(241, 213, 140, .32);
  border-radius: 999px;
  color: #1c1305;
  background: rgba(238, 204, 126, .94);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .28);
  font-size: 8.5px;
  font-weight: 950;
  letter-spacing: .04em;
}
.media-badge { left: 7px; top: 7px; padding: 4px 7px; }
.media-state { right: 6px; bottom: 6px; padding: 3px 6px; color: var(--gold-bright); background: rgba(10, 8, 5, .86); }
.download-arrow {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 213, 140, .72);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(8, 7, 5, .62);
  backdrop-filter: blur(5px);
  font-size: 20px;
  font-weight: 950;
}
.preview-content { padding: 9px 9px 10px; }
.preview-content strong {
  display: block;
  min-height: 31px;
  color: #f7ecd4;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 850;
}
.preview-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 7px;
  font-size: 9.5px;
  font-weight: 800;
}
.preview-stats span:first-child { color: var(--muted); }
.preview-stats span:last-child { color: var(--gold-bright); }

.feature-row { margin-top: 11px; }
.feature-row div {
  min-height: 37px;
  border-radius: 11px;
  color: var(--gold-bright);
  background: rgba(216, 173, 91, .075);
}
.info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 13px;
  border-radius: 14px;
}
.info-card strong { flex: 0 0 auto; color: var(--gold-bright); font-size: 12px; font-weight: 900; }
.info-card span {
  color: var(--muted);
  text-align: right;
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 600;
}
.install-note { margin-bottom: 8px; }

.sticky-cta {
  position: fixed;
  z-index: 20;
  left: 10px;
  right: 10px;
  bottom: calc(9px + var(--safe-bottom));
  width: min(calc(100% - 20px), 520px);
  margin: 0 auto;
}
.sticky-cta .download-cta {
  min-height: 56px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .52), 0 8px 24px rgba(187, 138, 51, .24);
}
.toast {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(78px + var(--safe-bottom));
  width: min(calc(100% - 24px), 496px);
  margin: 0 auto;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #171005;
  background: rgba(239, 207, 133, .97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  .page { padding-top: 20px; }
  .hero-card { padding: 22px 20px 18px; }
  .previews { padding: 16px; }
  .preview-content strong { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
