:root {
  --ink: #0b2d42;
  --muted: #61798a;
  --cyan: #21c3e2;
  --cyan-dark: #0ba8c5;
  --pink: #f06bb7;
  --pink-dark: #e74499;
  --line: rgba(31, 170, 201, .18);
  --surface: rgba(255, 255, 255, .82);
  --shadow: 0 14px 34px rgba(73, 147, 176, .12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(255, 214, 235, .9), transparent 36%),
    radial-gradient(circle at 100% 0, rgba(198, 244, 255, .9), transparent 38%),
    linear-gradient(180deg, #f7fcff 0%, #eefaff 56%, #fff5fb 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: 10px 10px calc(92px + var(--safe-bottom));
}
.shell { width: min(100%, 520px); margin: 0 auto; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(25, 164, 197, .18);
}
.brand-main {
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.045em;
  background: linear-gradient(90deg, #092f45 0 30%, var(--cyan-dark) 52%, var(--pink-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 850; }
.age {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(240,107,183,.22);
  font-size: 12px;
  font-weight: 950;
}

.hero-card, .previews, .info-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero-card {
  padding: 16px 15px 15px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(240,107,183,.2), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(230,250,255,.84));
}
.kicker, .section-kicker {
  text-transform: uppercase;
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .035em;
}
.kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(240,107,183,.13);
}
h1 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 950;
}
.hero-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}
.download-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 17px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 950;
  background: linear-gradient(110deg, var(--cyan) 0%, #45cbe9 38%, #c29be4 68%, var(--pink) 100%);
  box-shadow: 0 13px 26px rgba(45, 184, 213, .18), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.hero-cta { margin-top: 13px; }
.download-cta:hover { filter: saturate(1.08) brightness(1.02); }
.download-cta:active { transform: scale(.987); }
.download-cta:focus-visible, button:focus-visible { outline: 3px solid rgba(33,195,226,.3); outline-offset: 3px; }
.pill-row, .feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pill-row { margin-top: 11px; }
.pill-row span, .feature-row div {
  min-height: 31px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(33,195,226,.13);
  color: #526f80;
  text-align: center;
  font-size: 9.5px;
  font-weight: 900;
}

.previews { margin-top: 12px; padding: 13px 11px 12px; border-radius: 23px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.section-kicker { margin-bottom: 3px; }
.section-head h2 { margin: 0; font-size: 20px; line-height: 1.05; letter-spacing: -.025em; font-weight: 950; }
#refresh {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--pink-dark);
  background: #fff;
  border: 1px solid rgba(240,107,183,.25);
  box-shadow: 0 6px 14px rgba(240,107,183,.08);
  font-size: 12px;
  font-weight: 900;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preview-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 17px;
  border: 1px solid rgba(240,107,183,.2);
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 18px rgba(52,137,165,.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.preview-card:active { transform: scale(.985); }
.preview-card:hover { border-color: rgba(33,195,226,.45); box-shadow: 0 10px 22px rgba(52,137,165,.13); }
.preview-media { position: relative; aspect-ratio: 1 / 1.28; overflow: hidden; background: #def8ff; }
.preview-media img { width: 100%; height: 100%; object-fit: cover; }
.preview-media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(6,35,51,.4)); pointer-events: none; }
.media-badge, .media-state {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(0,0,0,.15);
}
.media-badge { left: 7px; top: 7px; padding: 4px 7px; background: linear-gradient(110deg, var(--pink), var(--cyan)); }
.media-state { right: 6px; bottom: 6px; padding: 3px 6px; background: rgba(11,45,66,.78); }
.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-radius: 50%;
  color: #fff;
  background: rgba(8,37,53,.36);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(5px);
  font-size: 20px;
  font-weight: 950;
}
.preview-content { padding: 8px 8px 9px; }
.preview-content strong { display: block; min-height: 30px; font-size: 11px; line-height: 1.25; font-weight: 950; }
.preview-stats { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 7px; font-size: 9.5px; font-weight: 900; }
.preview-stats span:first-child { color: var(--cyan-dark); }
.preview-stats span:last-child { color: var(--pink-dark); }

.feature-row { margin-top: 11px; }
.feature-row div { min-height: 36px; background: rgba(255,255,255,.82); }
.info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 17px;
}
.info-card strong { flex: 0 0 auto; font-size: 12px; font-weight: 950; }
.info-card span { color: var(--muted); text-align: right; font-size: 10.5px; line-height: 1.35; font-weight: 700; }
.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: 54px; box-shadow: 0 15px 30px rgba(45,184,213,.28), 0 8px 20px rgba(240,107,183,.2); }
.toast {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(76px + var(--safe-bottom));
  width: min(calc(100% - 24px), 496px);
  margin: 0 auto;
  padding: 11px 13px;
  border-radius: 14px;
  color: #fff;
  background: rgba(11,45,66,.95);
  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: 18px; }
  .hero-card { padding: 20px; }
  .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; }
}
