/* Bubble Pop: Cosmic Shooter — marketing site theme */
:root {
  --bg: #0a0518;
  --bg-2: #160b2e;
  --bg-3: #1a2142;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.10);
  --text: #eef0ff;
  --muted: #a6a8c8;
  --rose: #ff3b6b;
  --tangerine: #ff8a2b;
  --yellow: #ffd23e;
  --mint: #24e0a6;
  --azure: #3ba0ff;
  --violet: #b45bff;
  --radius: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(180, 91, 255, 0.22), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(59, 160, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%, #05030f 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* twinkle starfield layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 15%, #fff, transparent),
    radial-gradient(1px 1px at 40% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 70%, #fff, transparent),
    radial-gradient(1px 1px at 55% 85%, #fff, transparent),
    radial-gradient(1px 1px at 25% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 40%, #fff, transparent),
    radial-gradient(1px 1px at 8% 55%, #fff, transparent);
  opacity: 0.5;
}

a { color: var(--azure); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 5, 24, 0.6);
  border-bottom: 1px solid var(--panel-border);
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--violet) 70%, #6a2ea0);
  box-shadow: 0 0 18px rgba(180, 91, 255, 0.6);
  flex: none;
}
nav.top a { color: var(--muted); margin-left: 22px; font-weight: 600; font-size: 15px; }
nav.top a:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  color: #17102b;
  background: linear-gradient(135deg, #fff, var(--yellow));
  box-shadow: 0 10px 30px rgba(255, 210, 62, 0.35);
}
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--panel-border); background: var(--panel); }
.btn-ghost:hover { text-decoration: none; border-color: rgba(255,255,255,0.25); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.badge-pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--panel-border); background: var(--panel);
  color: var(--mint); font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 68px); line-height: 1.05; margin: 0 0 18px;
  font-weight: 900; letter-spacing: -1px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--rose), var(--tangerine) 30%, var(--yellow) 50%, var(--mint) 68%, var(--azure) 84%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* floating bubbles decoration */
.bubbles { display: flex; justify-content: center; gap: 14px; margin-top: 56px; flex-wrap: wrap; }
.bubble {
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: inset -6px -8px 14px rgba(0,0,0,0.35), 0 8px 22px rgba(0,0,0,0.3);
  position: relative;
}
.bubble::after {
  content: ""; position: absolute; top: 22%; left: 24%;
  width: 28%; height: 28%; border-radius: 50%; background: rgba(255,255,255,0.75);
  filter: blur(1px);
}
.b1 { background: radial-gradient(circle at 35% 30%, #fff, var(--rose) 75%); }
.b2 { background: radial-gradient(circle at 35% 30%, #fff, var(--tangerine) 75%); }
.b3 { background: radial-gradient(circle at 35% 30%, #fff, var(--yellow) 75%); }
.b4 { background: radial-gradient(circle at 35% 30%, #fff, var(--mint) 75%); }
.b5 { background: radial-gradient(circle at 35% 30%, #fff, var(--azure) 75%); }
.b6 { background: radial-gradient(circle at 35% 30%, #fff, var(--violet) 75%); }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-title { text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 44px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 26px;
}
.card .ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* premium band */
.premium {
  text-align: center;
  border-radius: 28px; padding: 56px 28px;
  background: linear-gradient(135deg, rgba(180,91,255,0.18), rgba(59,160,255,0.12));
  border: 1px solid rgba(180, 91, 255, 0.30);
}
.premium .price { font-size: 44px; font-weight: 900; margin: 8px 0 4px; }
.premium .price span { font-size: 18px; color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--panel-border); padding: 40px 0; margin-top: 40px; color: var(--muted); }
footer.site .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site nav a { color: var(--muted); margin-right: 20px; font-size: 14px; }
footer.site nav a:hover { color: var(--text); text-decoration: none; }
.small { font-size: 13px; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
.legal .meta { color: var(--muted); margin-bottom: 8px; }
.legal .note {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-left: 3px solid var(--violet); border-radius: 10px;
  padding: 14px 18px; color: var(--muted); font-size: 14px; margin: 22px 0;
}
.legal h2 { margin-top: 38px; font-size: 22px; border-bottom: 1px solid var(--panel-border); padding-bottom: 8px; }
.legal h3 { margin-top: 24px; font-size: 17px; }
.legal p, .legal li { color: #d5d7ee; }
.legal a { word-break: break-word; }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-weight: 600; }

/* ---------- iOS install prompt (bottom sheet) ---------- */
.ios-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(120%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.ios-sheet.open { transform: translateY(0); pointer-events: auto; }
.ios-sheet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(22, 11, 46, 0.92);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.ios-sheet-close {
  position: absolute;
  top: 2px; left: 50%;
  transform: translateX(-260px);
  width: 28px; height: 28px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.10); color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
@media (max-width: 560px) { .ios-sheet-close { left: 22px; transform: none; } }
.ios-icon {
  width: 52px; height: 52px; border-radius: 13px; flex: none;
  background: radial-gradient(circle at 35% 28%, #fff, var(--violet) 62%, #6a2ea0);
  box-shadow: inset -4px -6px 12px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(180, 91, 255, 0.5);
  position: relative;
}
.ios-icon::after {
  content: ""; position: absolute; top: 22%; left: 24%;
  width: 26%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, 0.8);
}
.ios-copy { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; flex: 1; }
.ios-copy strong { font-size: 15px; font-weight: 800; }
.ios-copy span { font-size: 12px; color: var(--muted); }
.ios-stars { color: var(--yellow); letter-spacing: 2px; font-size: 11px; }
.ios-get { padding: 9px 22px; font-size: 15px; flex: none; }
