/* ============================================================
   Heartbeat Stacker — Website Styles
   Dark theme, neon accents matching the app
   ============================================================ */

:root {
  --bg: #0A0A0F;
  --surface: #141420;
  --surface-light: #1E1E2E;
  --text: #E8E8F0;
  --text-secondary: #9898AA;
  --text-muted: #5A5A6E;
  --neon-green: #00FF88;
  --neon-pink: #FF00AA;
  --neon-blue: #00AAFF;
  --gold: #FFD700;
  --radius: 12px;
  --max-width: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Navigation
   ============================================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-light);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-brand span {
  color: var(--neon-green);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  text-align: center;
  padding: 5rem 0 4rem;
  position: relative;
  min-height: 480px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--neon-green);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero h1 .accent-green { color: var(--neon-green); }
.hero h1 .accent-pink { color: var(--neon-pink); }
.hero h1 .accent-blue { color: var(--neon-blue); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Full-page floating particles layer
   ============================================================ */

.page-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* All page content sits above particles */
nav, .hero, .features, .how-it-works, footer {
  position: relative;
  z-index: 1;
}

/* Floating blocks — slow drift + gentle rotation */
.floating-block,
.floating-prize {
  position: absolute;
  will-change: transform;
}

/* Blocks scattered across full viewport height — varied speeds */
.fb-1 {
  top: 6%;
  left: 6%;
  animation: drift-a 3.5s ease-in-out infinite, spin-slow 9s linear infinite;
}
.fb-2 {
  top: 28%;
  right: 5%;
  animation: drift-b 4.2s ease-in-out infinite, spin-slow 12s linear infinite reverse;
}
.fb-3 {
  top: 52%;
  left: 10%;
  animation: drift-c 3.8s ease-in-out infinite, spin-slow 10s linear infinite;
}
.fb-4 {
  top: 72%;
  right: 12%;
  animation: drift-a 5s ease-in-out infinite, spin-slow 8s linear infinite;
}
.fb-5 {
  top: 88%;
  left: 18%;
  animation: drift-b 4.5s ease-in-out infinite, spin-slow 11s linear infinite reverse;
}

/* Cash/prize symbols across full page — varied speeds */
.fp-1 {
  top: 12%;
  right: 8%;
  animation: drift-b 4s ease-in-out infinite, float-y 2.8s ease-in-out infinite;
}
.fp-2 {
  top: 34%;
  left: 4%;
  animation: drift-a 5.5s ease-in-out infinite, float-y 3.2s ease-in-out infinite 0.5s;
}
.fp-3 {
  top: 48%;
  right: 6%;
  animation: drift-c 3.6s ease-in-out infinite, float-y 2.5s ease-in-out infinite 0.3s;
}
.fp-4 {
  top: 62%;
  left: 8%;
  animation: drift-b 4.8s ease-in-out infinite, float-y 3.5s ease-in-out infinite 1s;
}
.fp-5 {
  top: 78%;
  right: 15%;
  animation: drift-a 5.2s ease-in-out infinite, float-y 2.6s ease-in-out infinite 0.8s;
}
.fp-6 {
  top: 92%;
  left: 22%;
  animation: drift-c 4.3s ease-in-out infinite, float-y 3s ease-in-out infinite 0.4s;
}

/* Expanding pulse rings — offset away from centre */
.floating-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--neon-green);
  pointer-events: none;
}

/* Top-right pulse pair */
.ring-1 {
  width: 80px;
  height: 80px;
  top: 15%;
  right: 12%;
  animation: pulse-ring 4s ease-out infinite;
}
.ring-2 {
  width: 80px;
  height: 80px;
  top: 15%;
  right: 12%;
  animation: pulse-ring 4s ease-out infinite 2s;
}

/* Bottom-left pulse pair */
.ring-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 10%;
  animation: pulse-ring 5s ease-out infinite 1s;
}
.ring-4 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 10%;
  animation: pulse-ring 5s ease-out infinite 3.5s;
}

/* ── Keyframes ── */

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(12px, -8px); }
  50%      { transform: translate(-6px, 14px); }
  75%      { transform: translate(8px, 6px); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-10px, 12px); }
  50%      { transform: translate(14px, -6px); }
  75%      { transform: translate(-8px, -10px); }
}

@keyframes drift-c {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(10px, 10px); }
  66%      { transform: translate(-14px, -4px); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  70% {
    opacity: 0.06;
  }
  100% {
    transform: scale(7);
    opacity: 0;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--neon-green);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-light);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
}

/* ============================================================
   Features Grid
   ============================================================ */

.features {
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: var(--text-muted);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.08);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid var(--surface-light);
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   How It Works
   ============================================================ */

.how-it-works {
  padding: 3rem 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neon-blue);
  color: var(--bg);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 16px rgba(0, 170, 255, 0.25);
}

.step h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: 1px solid var(--surface-light);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-light);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   Legal Pages (Privacy, Terms, Support, Delete)
   ============================================================ */

.legal-page {
  padding: 3rem 0 5rem;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neon-blue);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.legal-page p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.75rem;
}

.legal-page li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 1rem;
  margin-bottom: 0.3rem;
}

.legal-page li::before {
  content: "\2022";
  color: var(--neon-blue);
  display: inline-block;
  width: 1rem;
  margin-left: -1rem;
}

/* Support page specific */

.support-card {
  background: var(--surface);
  border: 1px solid var(--surface-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.support-card h2 {
  color: var(--text);
  margin-top: 0;
}

.support-email {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-green);
}

.warning-box {
  background: rgba(255, 0, 170, 0.08);
  border: 1px solid rgba(255, 0, 170, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.warning-box h3 {
  color: var(--neon-pink);
  margin-top: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.75rem;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Hide some floating elements on small screens */
  .fb-3, .fb-4, .fb-5, .fp-3, .fp-4, .fp-5, .fp-6, .ring-2, .ring-3, .ring-4 {
    display: none;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .floating-block,
  .floating-prize,
  .floating-ring {
    animation: none !important;
  }
}
