/* BlockBlitz website — "Midnight Neon", matching the app's theme. */
:root {
  --bg-top: #1f0d4d;
  --bg-mid: #0f0828;
  --bg-bottom: #050212;
  --surface: rgba(28, 18, 61, 0.88);
  --surface-high: #26174f;
  --edge: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.45);
  --hot-pink: #ff2e94;
  --ember: #ff7833;
  --cyan: #3de6ff;
  --violet: #9c6bff;
  --gold: #ffd140;
  --lime: #7dff6b;
  --primary: linear-gradient(90deg, var(--hot-pink), var(--ember));
  --gold-grad: linear-gradient(180deg, #ffeb8c, var(--gold) 50%, var(--ember));
  --radius: 24px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-bottom);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Aurora background, same as the app */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(600px 500px at 95% 5%, rgba(255, 46, 148, 0.28), transparent 70%),
    radial-gradient(600px 500px at 0% 75%, rgba(61, 230, 255, 0.14), transparent 70%),
    radial-gradient(700px 600px at 50% 40%, rgba(156, 107, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 45%, var(--bg-bottom));
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 5, 28, 0.72);
  border-bottom: 1px solid var(--edge);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 22px; letter-spacing: 0.5px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand .blitz { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 16px; color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); box-shadow: 0 10px 30px rgba(255, 46, 148, 0.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); }
.btn-small { height: 42px; padding: 0 18px; font-size: 14px; }
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255,255,255,0.35); color: #fff;
}
.appstore-badge:hover { text-decoration: none; }
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge small { display: block; font-size: 11px; opacity: .8; line-height: 1; }
.appstore-badge strong { display: block; font-size: 20px; line-height: 1.1; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 46, 148, 0.14); border: 1px solid rgba(255, 46, 148, 0.4);
  color: #ffc2de; font-weight: 700; font-size: 13px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot-pink); box-shadow: 0 0 10px var(--hot-pink); }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; font-weight: 900; margin: 18px 0; letter-spacing: -1px; }
.grad { background: var(--primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

.phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 270px; border-radius: 44px; padding: 10px;
  background: #0b0716; border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255, 46, 148, 0.25);
}
.phone img { border-radius: 34px; }
.phone-a { left: 6%; top: 10px; transform: rotate(-6deg); z-index: 2; }
.phone-b { right: 4%; top: 60px; transform: rotate(5deg); }
@media (prefers-reduced-motion: no-preference) {
  .phone-a { animation: float 6s ease-in-out infinite; }
  .phone-b { animation: float 6s ease-in-out infinite reverse; }
}
@keyframes float { 50% { translate: 0 -12px; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 30px; margin-bottom: 10px; }
.stat {
  text-align: center; padding: 18px 10px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--edge);
}
.stat b { display: block; font-size: 30px; font-weight: 900; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.eyebrow { color: var(--hot-pink); font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; font-weight: 900; margin: 10px 0 14px; letter-spacing: -0.5px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

.card {
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
}
.card::before {  /* lit top edge */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.card h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.t-pink { background: linear-gradient(135deg, var(--hot-pink), #b31e6a); }
.t-cyan { background: linear-gradient(135deg, var(--cyan), #1a8fa3); }
.t-violet { background: linear-gradient(135deg, var(--violet), #5b3aa8); }
.t-gold { background: linear-gradient(135deg, var(--gold), #c98a16); }
.t-lime { background: linear-gradient(135deg, var(--lime), #2f9e48); }
.t-ember { background: linear-gradient(135deg, var(--ember), #b8471a); }

.shot { border-radius: 30px; border: 1px solid var(--edge); box-shadow: 0 30px 70px rgba(0,0,0,0.55); }
.shot-wrap { display: flex; gap: 18px; justify-content: center; }
.shot-wrap .shot { width: 48%; max-width: 300px; }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--muted); }
.checks li::before { content: "✦"; color: var(--gold); font-weight: 900; }
.checks b { color: var(--text); }

/* ---------- Endless Secret ---------- */
.secret {
  background: radial-gradient(800px 400px at 50% 0%, rgba(156,107,255,0.25), transparent 70%);
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
}
.claim { font-size: clamp(30px, 4vw, 44px); font-weight: 900; margin: 6px 0 12px; }
.seals { display: grid; gap: 12px; margin-top: 28px; }
.seal { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); }
.rune {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: Georgia, "Times New Roman", serif; font-weight: 900; font-size: 18px;
}
.rune.open { background: var(--gold-grad); color: #4d2600; box-shadow: 0 0 18px rgba(255, 209, 64, 0.5); }
.rune.next { background: rgba(156,107,255,0.3); border: 2px solid var(--violet); color: #fff; }
.rune.locked { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: var(--faint); }
.seal b { display: block; font-size: 16px; }
.seal i { color: var(--muted); font-family: Georgia, serif; font-size: 15px; }
.depths { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.depth { padding: 8px 14px; border-radius: 999px; background: rgba(255,120,51,0.14); border: 1px solid rgba(255,120,51,0.4); color: #ffc19e; font-weight: 700; font-size: 13px; }

/* ---------- Skins ---------- */
.skins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.skin { padding: 14px; text-align: left; }
.skin img { border-radius: 16px; aspect-ratio: 880 / 720; object-fit: cover; }
.skin-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.skin h3 { font-size: 18px; margin: 0; }
.rarity { font-size: 11px; font-weight: 900; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; color: #1a0b33; }
.r-common { background: #b3b3b3; } .r-rare { background: #3dc7ff; } .r-epic { background: var(--violet); color: #fff; } .r-legendary { background: var(--gold-grad); }
.skin p { font-size: 13px; margin-top: 6px; }
.skin.legendary { border-color: rgba(255, 209, 64, 0.6); box-shadow: 0 0 40px rgba(255, 209, 64, 0.15); }

/* ---------- Calendar ---------- */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 24px; }
.day { text-align: center; padding: 12px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--edge); }
.day small { display: block; font-size: 10px; font-weight: 900; color: var(--faint); letter-spacing: 1px; }
.day b { font-size: 13px; }
.day.big { background: var(--gold-grad); color: #4d2600; border: none; }
.day.big small { color: #6b3a00; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: s; }
.step { counter-increment: s; }
.step::after {
  content: counter(s); position: absolute; top: 18px; right: 22px;
  font-size: 54px; font-weight: 900; color: rgba(255,255,255,0.06);
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--edge); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--hot-pink); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details li { color: var(--muted); margin-top: 10px; }
details ul { padding-left: 20px; }

/* ---------- What's new ---------- */
.changelog { max-width: 820px; margin: 40px auto 0; }
.release-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.release-head b { font-size: 24px; }
.release-head span { color: var(--faint); font-size: 14px; }
.changelog ul { list-style: none; display: grid; gap: 10px; }
.changelog li { display: flex; gap: 12px; color: var(--muted); }
.tag { flex: none; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 8px; height: fit-content; margin-top: 3px; }
.tag.new { background: rgba(125,255,107,0.18); color: var(--lime); }
.tag.better { background: rgba(61,230,255,0.15); color: var(--cyan); }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 56px 28px; border-radius: 32px;
  background: radial-gradient(500px 260px at 50% 0%, rgba(255,46,148,0.35), transparent 70%), var(--surface);
  border: 1px solid rgba(255, 46, 148, 0.35);
}
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; box-shadow: 0 16px 40px rgba(255,46,148,0.4); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--edge); padding: 40px 0 50px; margin-top: 40px; color: var(--faint); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }

/* ---------- Legal / text pages ---------- */
.page { max-width: 820px; margin: 50px auto 30px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page h2 { font-size: 24px; margin-top: 36px; }
.page p, .page li { color: var(--muted); margin-top: 12px; }
.page ul { padding-left: 22px; }
.page strong { color: var(--text); }
.page .card { margin-top: 26px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 520px; margin-inline: auto; width: 100%; }
  .phone { width: 220px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .skins { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .order-first-mobile { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 40px; }
  .phones { height: 420px; }
  .phone { width: 170px; border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 26px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .calendar { grid-template-columns: repeat(4, 1fr); }
  section { padding: 60px 0; }
}
