/* ===================== */
/* 1. RESET & BASE       */
/* ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

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

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 16px;
}

/* ===================== */
/* 2. DESIGN TOKENS      */
/* ===================== */
:root {
  --color-primary: #6200FF;
  --color-primary-glow: rgba(98, 0, 255, 0.3);
  --color-bg: #0a0a0a;
  --color-surface: #111111;
  --color-surface-2: #1a1a1a;
  --color-text: #ffffff;
  --color-text-muted: #aaaaaa;
  --color-text-dim: #666666;
  --color-green: #00C853;
  --color-red: #FF3D00;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================== */
/* 3. TYPOGRAPHY          */
/* ===================== */
h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 500px;
}

.description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ===================== */
/* 4. LAYOUT              */
/* ===================== */
section {
  position: relative;
  padding: clamp(60px, 10vh, 120px) clamp(24px, 5vw, 80px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.split.reverse .feature-img-wrap {
  order: 2;
}

.split.reverse .feature-text {
  order: 1;
}

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

/* ===================== */
/* 5. NAVBAR              */
/* ===================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(24px, 5vw, 80px);
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px);
  transition: background 0.3s, backdrop-filter 0.3s;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
}

.nav-logo-link {
  display: flex;
  cursor: pointer;
}

.nav-logo {
  height: 32px;
  width: auto;
  opacity: 0;
  transition: opacity 0.3s;
}

#navbar.scrolled .nav-logo {
  opacity: 1;
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--color-primary);
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
}

#navbar.scrolled .nav-cta {
  opacity: 1;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--color-primary-glow);
}

.nav-cta:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ===================== */
/* 6. HERO                */
/* ===================== */
#hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 30px;
}

#hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 100vw);
  height: min(800px, 100vw);
  background: radial-gradient(circle, rgba(98, 0, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: clamp(60px, 10vw, 100px);
  height: auto;
  margin-bottom: 1.5rem;
}

.hero-logo rect {
  opacity: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 clamp(24px, 5vw, 80px);
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-tagline {
  margin-bottom: 2.5rem;
}

/* Hero phones */
.hero-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.hero-phone {
  border-radius: 20px;
  box-shadow: none;
  position: absolute;
}

.hero-phone-center {
  width: clamp(200px, 22vw, 280px);
  z-index: 3;
  position: relative;
}

.hero-phone-left {
  width: clamp(170px, 18vw, 230px);
  z-index: 1;
  transform: rotate(-8deg) translateX(-75%) translateY(20px);
}

.hero-phone-right {
  width: clamp(170px, 18vw, 230px);
  z-index: 1;
  transform: rotate(8deg) translateX(75%) translateY(20px);
}

.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badges {
  justify-content: flex-start;
}

#cta .store-badges {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  min-width: 200px;
  border-radius: 14px;
  background: var(--color-surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 30px var(--color-primary-glow);
}

.store-badge:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-badge .badge-small {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.store-badge .badge-main {
  font-size: 1rem;
  font-weight: 600;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator .chevron {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--color-text-dim);
  border-bottom: 2px solid var(--color-text-dim);
  transform: rotate(45deg);
}

/* ===================== */
/* 7. HOW IT WORKS        */
/* ===================== */
#how-it-works {
  padding-top: clamp(60px, 8vh, 100px);
  padding-bottom: clamp(60px, 8vh, 100px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Swipe Demo */
.swipe-demo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swipe-phone {
  position: relative;
  width: clamp(220px, 28vw, 300px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
}

.swipe-phone-bg {
  width: 100%;
  height: auto;
  display: block;
}

.swipe-card {
  position: absolute;
  top: 19%;
  left: 5%;
  width: 90%;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.swipe-card img {
  width: 100%;
  height: auto;
  display: block;
}

.swipe-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.swipe-overlay span {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.swipe-overlay-keep {
  background: rgba(0, 200, 83, 0.45);
}

.swipe-overlay-wipe {
  background: rgba(255, 61, 0, 0.45);
}

/* ===================== */
/* 8. FEATURES            */
/* ===================== */
#features {
  padding-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-block {
  padding: clamp(40px, 8vh, 80px) 0;
}

.feature-block + .feature-block {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 20px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-text h2 {
  margin-bottom: 0.5rem;
}

/* ===================== */
/* 9. SAFETY              */
/* ===================== */
#safety {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#safety h2 {
  margin-bottom: 3rem;
}

.safety-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.safety-card:hover {
  border-color: rgba(98, 0, 255, 0.3);
  box-shadow: 0 0 40px rgba(98, 0, 255, 0.1);
}

.safety-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 0, 255, 0.1);
  border-radius: 16px;
}

.safety-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.safety-card h3 {
  margin-bottom: 0.75rem;
}

.safety-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================== */
/* 10. NUMBERS            */
/* ===================== */
#numbers {
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===================== */
/* 11. CTA                */
/* ===================== */
#cta {
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 20px;
}

#cta h2 {
  margin-bottom: 1rem;
}

#cta .tagline {
  margin: 0 auto 2.5rem;
}

/* ===================== */
/* 12. FOOTER             */
/* ===================== */
#footer {
  padding: 40px clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===================== */
/* 13. GSAP INITIAL STATES */
/* Set via JS to avoid hiding content when JS fails */
/* ===================== */

/* ===================== */
/* 14. ANIMATIONS (CSS)   */
/* ===================== */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--color-primary-glow); }
  50% { box-shadow: 0 0 40px var(--color-primary-glow), 0 0 60px rgba(98, 0, 255, 0.15); }
}

/* ===================== */
/* 15. RESPONSIVE         */
/* ===================== */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-left {
    align-items: center;
    text-align: center;
    order: 1;
  }

  .hero-phones {
    order: 2;
    min-height: 320px;
  }

  .hero-phone-center {
    width: clamp(160px, 35vw, 220px);
  }

  .hero-phone-left,
  .hero-phone-right {
    width: clamp(130px, 28vw, 180px);
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse .feature-img-wrap,
  .split.reverse .feature-text {
    order: unset;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phones-container {
    min-height: 350px;
  }

  .phone-mock {
    width: clamp(160px, 40vw, 240px);
  }

  .feature-img {
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-logo {
    width: 80px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .scroll-indicator {
    bottom: 24px;
  }
}

/* ===================== */
/* 16. REDUCED MOTION     */
/* ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* CTA tagline spacing (replaces <br>) */
#cta .tagline {
  margin-bottom: 2rem;
}
