/* ============================================
   SlapMe — Landing Page Styles
   Dark zinc aesthetic, lime-400 accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg: #09090b;
  --card: #18181b;
  --card-hover: #1f1f23;
  --border: #27272a;
  --border-subtle: #1a1a1d;
  --lime: #a3e635;
  --lime-dim: rgba(163, 230, 53, 0.12);
  --lime-glow: rgba(163, 230, 53, 0.25);
  --lime-glow-strong: rgba(163, 230, 53, 0.45);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --font: 'Inter', -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.lime { color: var(--lime); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-lime {
  background: var(--lime);
  color: #000;
}

.btn-lime:hover {
  background: #b5f042;
  box-shadow: 0 0 24px var(--lime-glow-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--lime-dim);
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 28px;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Dot grid background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Lime glow blob */
#hero::after {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(163, 230, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime-dim);
  border: 1px solid rgba(163, 230, 53, 0.3);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero-badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

h1 span {
  color: var(--lime);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Hand animation */
.hero-hand-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.hero-hand {
  font-size: clamp(5rem, 14vw, 9rem);
  display: block;
  animation: float-hand 3s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 0 32px var(--lime-glow));
  transition: filter 0.2s;
}

.hero-hand:hover {
  animation: slap-hand 0.4s ease-out;
  filter: drop-shadow(0 0 60px var(--lime-glow-strong));
}

@keyframes float-hand {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

@keyframes slap-hand {
  0% { transform: translateX(0) rotate(0deg) scale(1); }
  20% { transform: translateX(-40px) rotate(-20deg) scale(1.1); }
  60% { transform: translateX(20px) rotate(10deg) scale(0.95); }
  80% { transform: translateX(-8px) rotate(-5deg) scale(1.02); }
  100% { transform: translateX(0) rotate(0deg) scale(1); }
}

.glow-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px solid rgba(163, 230, 53, 0.2);
  animation: ring-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

.glow-ring:nth-child(2) { animation-delay: 0.8s; inset: -28px; border-color: rgba(163,230,53,0.1); }
.glow-ring:nth-child(3) { animation-delay: 1.6s; inset: -42px; border-color: rgba(163,230,53,0.05); }

@keyframes ring-pulse {
  0% { opacity: 1; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */
#social-proof {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
  background: rgba(24, 24, 27, 0.4);
}

.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.proof-item strong {
  color: var(--text-primary);
  font-weight: 700;
}

.proof-divider {
  width: 1px; height: 28px;
  background: var(--border);
}

.stars {
  color: var(--lime);
  font-size: 1rem;
  letter-spacing: 1px;
}

.counter-num {
  color: var(--lime);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   SECTION BASE
   ============================================ */
section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   HOW IT WORKS
   ============================================ */
#how-it-works {
  background: linear-gradient(180deg, transparent, rgba(163,230,53,0.02) 50%, transparent);
}

.how-header {
  text-align: center;
  margin-bottom: 64px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

/* Connector line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px; left: calc(16.6% + 12px); right: calc(16.6% + 12px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime) 20%, var(--lime) 80%, transparent);
  opacity: 0.3;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: rgba(163,230,53,0.35);
  transform: translateY(-4px);
  background: var(--card-hover);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-bottom: 16px;
  display: block;
}

.step-emoji {
  font-size: 3.2rem;
  margin-bottom: 20px;
  display: block;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   FEATURES GRID
   ============================================ */
#features .grid-header {
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(163,230,53,0.3);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

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

.feature-card.premium {
  border-color: rgba(163,230,53,0.2);
  background: linear-gradient(135deg, rgba(163,230,53,0.05), var(--card));
}

/* ============================================
   SOUND CATEGORIES
   ============================================ */
#categories {
  padding: 72px 0;
  overflow: hidden;
}

.cats-header {
  text-align: center;
  margin-bottom: 40px;
}

.cats-scroll-wrap {
  position: relative;
}

.cats-scroll-wrap::before,
.cats-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.cats-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.cats-scroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.cats-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 80px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cats-track::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid rgba(163,230,53,0.25);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--lime-dim);
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: 0 0 16px var(--lime-glow);
}

.cat-pill .cat-icon {
  font-size: 1.1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
#cta {
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(163,230,53,0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: cta-glow 4s ease-in-out infinite alternate;
}

@keyframes cta-glow {
  from { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cta-badge-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* App Store Button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1.5px solid #333;
  border-radius: 14px;
  padding: 12px 24px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.appstore-btn:hover {
  border-color: var(--lime);
  box-shadow: 0 0 32px var(--lime-glow), 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.appstore-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 3px;
}

.appstore-btn-text span:first-child {
  font-size: 0.68rem;
  color: #aaa;
  font-weight: 400;
}

.appstore-btn-text span:last-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-logo img {
  width: 28px; height: 28px;
  border-radius: 7px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before { display: none; }
}

@media (max-width: 640px) {
  nav { padding: 14px 0; }

  .nav-right .btn-ghost { display: none; }

  h1 { font-size: 2.6rem; }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .proof-inner {
    gap: 20px;
  }

  .proof-divider { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  section { padding: 72px 0; }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scroll-fade 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--lime), transparent);
  animation: scroll-line-grow 2.5s ease-in-out infinite;
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes scroll-line-grow {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 560px;
  width: 90%;
  text-align: center;
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-emoji {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.modal-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.modal-close {
  background: var(--lime);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}

.modal-close:hover { background: #b5f042; }
