/* ==========================================================================
   Roast Mania — landing page styles
   Design system mirrors the app (core/app_theme.dart):
   bg #080F14 · surface #141F2B · accent #FF6B00 · blue #3B82F6 · red #EF4444
   gold #FFD700 · Nunito
   ==========================================================================
   TABLE OF CONTENTS
   1. Reset & tokens
   2. Background glow
   3. Nav
   4. Buttons & store badges
   5. Hero
   6. Phone frame + drawn screen placeholders (.ph)
   7. Marquee strip
   8. Sections & headings
   9. Features grid
  10. How it works
  11. Screenshots rail
  12. Download CTA
  13. Footer
  14. Reveal animations
  15. Responsive
  16. Reduced motion
  17. Delete account page
   ========================================================================== */

/* ---------- 1. Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080F14;
  --bg2: #0B141C;
  --surface: #141F2B;
  --surface2: #1A2735;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #FF6B00;
  --accent2: #FF8C3B;
  --blue: #3B82F6;
  --red: #EF4444;
  --gold: #FFD700;
  --text: #F1F5F9;
  --text2: #9FB0C3;
  --text3: #64748B;
  --radius: 16px;
  --font: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: rgba(255, 107, 0, 0.35); color: #fff; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

section[id], footer[id] { scroll-margin-top: 92px; }

/* Nunito — same weights the app ships */
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/Nunito-Regular.ttf') format('truetype');   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/Nunito-Semibold.ttf') format('truetype');  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/Nunito-Bold.ttf') format('truetype');      font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/Nunito-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/Nunito-Black.ttf') format('truetype');     font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- 2. Background glow ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 85% -5%, rgba(255, 107, 0, 0.16), transparent 65%),
    radial-gradient(540px 400px at -10% 32%, rgba(59, 130, 246, 0.10), transparent 65%),
    radial-gradient(640px 440px at 50% 112%, rgba(239, 68, 68, 0.08), transparent 65%);
}

/* ---------- 3. Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 15, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: 0.01em; }
.brand-accent { color: var(--accent); }
.nav-links { margin-left: auto; display: flex; gap: 26px; }
.nav-links a {
  color: var(--text2);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* ---------- 4. Buttons & store badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 800;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #FF6B00, #FF8C3B);
  color: #fff;
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 107, 0, 0.5);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; border-radius: 11px; }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  padding: 10px 20px 10px 16px;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.store-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.7);
  box-shadow: 0 14px 36px rgba(255, 107, 0, 0.28);
}
.store-badge svg { width: 27px; height: 27px; flex: none; }
.badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.badge-text small { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.75); text-transform: uppercase; }
.badge-text strong { font-size: 1.06rem; font-weight: 800; }

/* ---------- 5. Hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 158px 24px 88px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--accent2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
  box-shadow: 0 0 24px rgba(255, 107, 0, 0.12);
}
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.w-orange { background: linear-gradient(120deg, #FF8C3B, #FF6B00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-blue   { background: linear-gradient(120deg, #60A5FA, #3B82F6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-gold   { background: linear-gradient(120deg, #FFE066, #FFD700); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text2); font-size: 1.13rem; max-width: 34rem; margin-bottom: 32px; }
.hero-note { margin-top: 16px; color: var(--text3); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 55% 40%, rgba(255, 107, 0, 0.28), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.12), transparent 50%);
  filter: blur(28px);
  z-index: -1;
  animation: glow-pulse 8s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.hero-phone {
  transform: rotateY(-8deg) rotateX(4deg) rotate(3deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-phone:hover {
  transform: rotateY(-2deg) rotateX(2deg) rotate(1deg) scale(1.02);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(20, 31, 43, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
  z-index: 6;
}
.chip-battle { top: 8%; right: -6%; }
.chip-rank   { bottom: 18%; right: 0%; animation-delay: -2s; }
.chip-fire   { top: 42%; left: -12%; animation-delay: -4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 6. Phone frame (iPhone 18 Pro-style) + drawn placeholder screens ---------- */
.phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5; /* iPhone 18 Pro is 19.5:9 (1206×2622) — unchanged from 17 Pro */
  border-radius: 52px;
  padding: 8px; /* 18 Pro edge-to-edge display: slimmer bezels than 17 Pro */
  position: relative;
  /* Multi-layer metallic frame */
  background:
    /* Side buttons — left: Action + Volume */
    linear-gradient(180deg, #8a9bb0, #3a4a5c 40%, #1a2533) left -3px top 132px / 3.5px 22px no-repeat,
    linear-gradient(180deg, #8a9bb0, #3a4a5c 40%, #1a2533) left -3px top 168px / 3.5px 52px no-repeat,
    /* Right: Power + Camera Control */
    linear-gradient(180deg, #8a9bb0, #3a4a5c 40%, #1a2533) right -3px top 152px / 3.5px 40px no-repeat,
    linear-gradient(180deg, #8a9bb0, #3a4a5c 40%, #1a2533) right -3px top 208px / 3.5px 24px no-repeat,
    /* Outer titanium-style rim */
    linear-gradient(
      145deg,
      #9aa8b8 0%,
      #4a5a6c 12%,
      #1e2a38 28%,
      #2a3848 50%,
      #121c28 72%,
      #5a6a7c 88%,
      #8a98a8 100%
    );
  border: none;
  box-shadow:
    /* Soft outer ambient */
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(255, 107, 0, 0.14),
    /* Inner machined edge highlight */
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}
/* Thin secondary ring for depth */
.phone::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 49px;
  background: linear-gradient(160deg, #1a2535, #0c141e);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
}
/* Dynamic Island — 18 Pro shrank it 35% (20.7mm → 13.5mm on a 71.9mm body ⇒ 56px at this scale) */
.phone::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  box-shadow:
    inset 0 0 4px rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.9);
  z-index: 8;
  /* subtle camera / sensor dots inside island */
  background-image:
    radial-gradient(circle at 72% 50%, rgba(40, 40, 45, 0.9) 0 3px, transparent 3.5px),
    radial-gradient(circle at 78% 50%, rgba(30, 30, 35, 0.7) 0 1.5px, transparent 2px);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: var(--bg);
  z-index: 1;
  /* subtle inner screen bevel */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 20px rgba(0, 0, 0, 0.25);
}
/* Soft glare / glass reflection on screen */
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 28%,
    transparent 48%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 6;
}
/* Home indicator bar */
.phone-screen::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  z-index: 7;
  pointer-events: none;
}

/* real screenshot (auto-inserted by js/main.js when the PNG exists) */
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 4; border-radius: inherit; }
.shot-real .ph { display: none; }

/* the drawn mini-UI */
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 12px 22px; /* extra top for Dynamic Island, bottom for home indicator */
  gap: 9px;
  z-index: 2;
}
.ph-status { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 800; color: var(--text2); padding: 0 4px; }
.ph-appbar { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.ph-brand { font-weight: 900; font-size: 13px; }
.ph-pill {
  background: rgba(255, 107, 0, 0.16);
  color: var(--accent2);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 10px;
  font-weight: 800;
}
.ph-scroll { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }

.ph-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ph-row { display: flex; align-items: center; gap: 8px; }
.ph-ava {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #64748B, #334155);
  flex: none;
}
.ph-ava.lg { width: 38px; height: 38px; font-size: 12px; }
.ph-ava.xl { width: 58px; height: 58px; font-size: 16px; }
.ph-ava-blue { background: linear-gradient(135deg, #60A5FA, #3B82F6); }
.ph-ava-red  { background: linear-gradient(135deg, #F87171, #EF4444); }
.ph-ava.gold-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.ph-who { display: flex; flex-direction: column; line-height: 1.25; }
.ph-who b { font-size: 12px; font-weight: 800; }
.ph-who small { font-size: 9.5px; color: var(--text3); font-weight: 700; }
.ph-follow {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  color: var(--text3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}
.ph-text { font-size: 12px; color: var(--text); font-weight: 600; line-height: 1.45; }
.ph-media {
  height: 104px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 26px;
}
.ph-media-1 { background: linear-gradient(135deg, #1E3A5F, #3B82F6 65%, #8B5CF6); }
.ph-media-2 { background: linear-gradient(135deg, #7C2D12, #FF6B00 70%, #FBBF24); }
.ph-actions { display: flex; gap: 14px; color: var(--text2); font-size: 10.5px; font-weight: 800; }

/* Roast screen */
.ph-chiprow { display: flex; gap: 7px; padding: 0 2px; }
.ph-chip {
  font-size: 10px; font-weight: 800;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.ph-chip.on { background: rgba(255, 107, 0, 0.16); border-color: rgba(255, 107, 0, 0.45); color: var(--accent2); }
.ph-chip.gold { color: var(--gold); border-color: rgba(255, 215, 0, 0.35); }
.ph-entry { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; background: var(--bg2); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.05); }
.ph-entry.best { border-color: rgba(255, 215, 0, 0.4); }
.ph-votes { font-size: 10.5px; font-weight: 900; color: var(--accent2); }
.ph-cta {
  margin-top: auto;
  text-align: center;
  background: linear-gradient(135deg, #FF6B00, #FF8C3B);
  color: #fff;
  border-radius: 12px;
  padding: 11px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.3);
}

/* Battles screen */
.ph-live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-size: 9.5px; font-weight: 900;
  letter-spacing: 0.08em;
}
.ph-live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.ph-viewers { text-align: center; font-size: 10px; font-weight: 800; color: var(--text3); }
.ph-battle-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ph-fighter { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.ph-fighter b { font-size: 10.5px; font-weight: 800; }
.ph-fighter.blue b { color: #93C5FD; }
.ph-fighter.red b { color: #FCA5A5; }
.ph-vs {
  font-style: italic; font-weight: 900; font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
}
.ph-votebar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; }
.ph-votebar .b { background: linear-gradient(90deg, #3B82F6, #60A5FA); border-radius: 999px 0 0 999px; }
.ph-votebar .r { background: linear-gradient(90deg, #F87171, #EF4444); flex: 1; }
.ph-votelabels { display: flex; justify-content: space-between; font-size: 10px; font-weight: 900; color: var(--text2); }
.ph-votebtns { display: flex; gap: 8px; }
.vbtn {
  flex: 1; text-align: center;
  font-size: 11px; font-weight: 800;
  border-radius: 10px;
  padding: 8px 0;
}
.vb-blue { color: #93C5FD; border: 1.5px solid rgba(59, 130, 246, 0.55); }
.vb-red  { color: #FCA5A5; border: 1.5px solid rgba(239, 68, 68, 0.55); }

/* Ranks screen */
.ph-podium { display: flex; align-items: flex-end; gap: 8px; padding: 4px 6px 0; }
.pcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pcol i {
  width: 100%;
  border-radius: 8px 8px 0 0;
  font-style: normal;
  display: grid; place-items: center;
  font-weight: 900; font-size: 12px;
  color: #0B141C;
}
.pcol.p1 i { height: 72px; background: linear-gradient(180deg, #FFE066, var(--gold)); }
.pcol.p2 i { height: 50px; background: linear-gradient(180deg, #CBD5E1, #94A3B8); }
.pcol.p3 i { height: 38px; background: linear-gradient(180deg, #E8A66B, #CD7F32); }
.rrow {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 11px;
}
.rrow .rnum { color: var(--text3); font-weight: 800; width: 16px; }
.rrow b { font-weight: 800; }
.rrow .rscore { margin-left: auto; color: var(--text2); font-weight: 800; }
.rrow.you { border-color: rgba(255, 107, 0, 0.55); background: rgba(255, 107, 0, 0.09); }
.rrow.you .rnum { color: var(--accent2); }

/* Profile screen */
.ph-profile { align-items: center; text-align: center; }
.ph-pname { font-size: 14px; font-weight: 900; margin-top: 2px; }
.ph-title-chip {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 10.5px;
  font-weight: 800;
}
.ph-level { width: 100%; display: flex; flex-direction: column; gap: 5px; }
.ph-lvlbar { height: 8px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.ph-lvlbar i { display: block; height: 100%; width: 72%; border-radius: 999px; background: linear-gradient(90deg, #FF6B00, #FF8C3B); }
.ph-level small { font-size: 9.5px; font-weight: 800; color: var(--text3); }
.ph-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ph-stats > div { background: var(--surface); border-radius: 10px; padding: 8px 4px; }
.ph-stats b { display: block; font-size: 13px; font-weight: 900; }
.ph-stats small { font-size: 9px; font-weight: 800; color: var(--text3); }
.ph-tiles { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-tiles span { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.t1 { background: linear-gradient(135deg, #1E3A5F, #3B82F6); }
.t2 { background: linear-gradient(135deg, #4C1D95, #8B5CF6); }
.t3 { background: linear-gradient(135deg, #134E4A, #14B8A6); }
.t4 { background: linear-gradient(135deg, #7C2D12, #FF6B00); }
.t5 { background: linear-gradient(135deg, #7F1D1D, #EF4444); }
.t6 { background: linear-gradient(135deg, #713F12, #FFD700); }

/* ---------- 7. Marquee strip ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 31, 43, 0.45), rgba(20, 31, 43, 0.25));
  padding: 16px 0;
}
.marquee-track { display: flex; gap: 38px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 38px; }
.marquee-group span {
  color: var(--text2);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(calc(-100% / 2)); } }

/* ---------- 8. Sections & headings ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 35px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 900; line-height: 1.15; }
.section-head .sub { color: var(--text2); margin-top: 14px; font-size: 1.02rem; }

/* ---------- 9. Features grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: linear-gradient(165deg, var(--surface) 0%, #101A25 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow:
    0 18px 48px rgba(255, 107, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.18), rgba(255, 140, 59, 0.08));
  border: 1px solid rgba(255, 107, 0, 0.3);
  margin-bottom: 18px;
}
.feature-icon svg { width: 25px; height: 25px; color: var(--accent2); }
.feature-card:hover .feature-icon svg { color: #FFB380; }
.feature-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--text2); font-size: 0.94rem; }

/* ---------- 10. How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 22px; left: 12%; right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 107, 0, 0.35) 0 8px, transparent 8px 16px);
}
.step { text-align: center; padding: 0 8px; }
.step-num {
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #FF6B00, #FF8C3B);
  box-shadow:
    0 8px 22px rgba(255, 107, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
}
.step h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text2); font-size: 0.93rem; }

/* ---------- 11. Screenshots rail ---------- */
.section-screens { max-width: none; padding-left: 0; padding-right: 0; }
.section-screens .section-head { max-width: 1120px; padding: 0 24px; }
.shots {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px max(24px, calc((100vw - 1120px) / 2)) 30px;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 0, 0.5) transparent;
}
.shots.dragging { cursor: grabbing; scroll-snap-type: none; }
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: rgba(255, 107, 0, 0.45); border-radius: 99px; }
.shot { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; }
.shot .phone {
  width: 276px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot:hover .phone {
  transform: translateY(-8px) scale(1.02);
}
.shot-label {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  font-weight: 800;
  font-size: 0.92rem;
}
.shot-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.shots-hint { text-align: center; color: var(--text3); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; }

/* ---------- 12. Download CTA ---------- */
.cta { padding-top: 40px; }
.cta-card {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(175deg, var(--surface) 0%, #0D1620 100%);
  border: 1px solid rgba(255, 107, 0, 0.32);
  border-radius: 28px;
  padding: 72px 28px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(255, 107, 0, 0.12) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 320px;
  background: radial-gradient(closest-side, rgba(255, 107, 0, 0.26), transparent);
  pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 900; line-height: 1.12; }
.cta-card p { color: var(--text2); max-width: 30rem; margin: 16px auto 34px; font-size: 1.05rem; }
.cta-card .store-row { justify-content: center; }

/* ---------- 13. Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 20, 28, 0.6);
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--text2); font-size: 0.93rem; margin: 14px 0 20px; max-width: 22rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row a {
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { color: var(--accent2); border-color: rgba(255, 107, 0, 0.5); }
.footer-col h4 { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text2); font-weight: 700; font-size: 0.94rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--text3);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- 14. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.features-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.35s; }
.steps .reveal:nth-child(2) { transition-delay: 0.12s; }
.steps .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 132px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .hero-visual { margin-top: 26px; }
  .hero-phone { transform: none; }
  .hero-phone:hover { transform: scale(1.02); }
  .chip-fire { left: -2%; }
  .chip-battle { right: -2%; }
  .chip-rank { right: -2%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

@media (max-width: 620px) {
  .section { padding: 35px 20px; }
  .br-desk { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .float-chip { font-size: 0.72rem; padding: 7px 12px; }
  .store-badge { flex: 1 1 200px; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-phone, .hero-phone:hover { transform: none; }
  .shot:hover .phone { transform: none; }
}

/* ---------- 17. Delete account page (delete-account.html) ---------- */
/* Current page marker in the shared nav */
.nav-links a[aria-current="page"] { color: var(--accent2); }

/* Compact hero for doc pages (no phone visual) */
.page-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 90px 24px 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero .lead {
  color: var(--text2);
  font-size: 1.12rem;
  max-width: 40rem;
  margin: 0 auto;
}

/* Warning card — mirrors the in-app "This action cannot be undone" card */
.da-warning {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: left;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.da-warning-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.da-warning p { color: var(--text2); font-size: 0.95rem; }

/* Vertical numbered steps (doc style, vs. the 3-col marketing steps) */
.da-steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.da-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  background: linear-gradient(165deg, var(--surface) 0%, #101A25 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.da-step:hover { transform: translateY(-2px); border-color: rgba(255, 107, 0, 0.5); }
.da-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, #FF6B00, #FF8C3B);
  box-shadow:
    0 8px 22px rgba(255, 107, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.da-step h3 { font-size: 1.06rem; font-weight: 800; margin-bottom: 4px; }
.da-step p { color: var(--text2); font-size: 0.95rem; }

/* "What happens" cards — feature-card layout, no marketing glow */
.da-effects {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.da-card {
  background: linear-gradient(165deg, var(--surface) 0%, #101A25 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}
.da-card:hover { transform: translateY(-4px); border-color: rgba(255, 107, 0, 0.5); }
.da-card.danger:hover { border-color: rgba(239, 68, 68, 0.6); }
.feature-icon.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
  border-color: rgba(239, 68, 68, 0.35);
}
.feature-icon.danger svg { color: #F87171; }
.da-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.da-card p { color: var(--text2); font-size: 0.94rem; }

/* Support mail link inside the reused .cta-card */
.cta-card p a { color: var(--accent2); font-weight: 800; }

/* Staggered reveals */
.da-steps .reveal:nth-child(2) { transition-delay: 0.06s; }
.da-steps .reveal:nth-child(3) { transition-delay: 0.12s; }
.da-steps .reveal:nth-child(4) { transition-delay: 0.18s; }
.da-steps .reveal:nth-child(5) { transition-delay: 0.24s; }
.da-effects .reveal:nth-child(2) { transition-delay: 0.07s; }
.da-effects .reveal:nth-child(3) { transition-delay: 0.14s; }
.da-effects .reveal:nth-child(4) { transition-delay: 0.21s; }

@media (max-width: 960px) {
  .page-hero { padding-top: 90px; }
}
@media (max-width: 620px) {
  .da-effects { grid-template-columns: 1fr; }
  .da-step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
}