/* ===================================================================
   AirPods 3 — Premium Scroll-Driven Website
   Design: Dark, minimal, luxurious editorial aesthetic
   =================================================================== */

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

/* --- Design Tokens --- */
:root {
  --bg: #0a0a0a;
  --bg-light: #f5f3f0;
  --text: #0a0a0a;
  --text-muted: #3a3a3a;
  --text-on-light: #1a1a1a;
  --accent: #2997ff;
  --accent-hover: #0071e3;
  --stats-overlay: rgba(0, 0, 0, 0.9);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --hero-size: clamp(5rem, 13vw, 14rem);
  --heading-size: clamp(2.8rem, 5.5vw, 5.5rem);
  --body-size: clamp(1.05rem, 1.2vw, 1.3rem);
  --label-size: 0.8rem;
  --marquee-size: clamp(5rem, 12vw, 14vw);
  --stat-size: clamp(3.5rem, 8vw, 7rem);
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Preloader --- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f5f5f7;
}

#loader-bar {
  width: min(320px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

#loader-bar-fill {
  height: 100%;
  width: 0%;
  background: #f5f5f7;
  border-radius: 1px;
  transition: width 0.15s ease;
}

#loader-percent {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.header-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.header-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.header-nav a:hover {
  opacity: 1;
}

/* --- Hero (standalone 100vh) --- */
.hero-standalone {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--hero-size);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-align: center;
  color: #f5f5f7;
}

.hero-heading .word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-tagline {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #86868b;
  text-align: center;
}

.section-label-hero {
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.5;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-indicator-arrow {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* --- Canvas --- */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Dark Overlay --- */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--stats-overlay);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* --- Marquee --- */
.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 3;
  transform: translateY(-50%);
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--marquee-size);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.1);
  will-change: transform;
}

/* --- Scroll Container --- */
#scroll-container {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 900vh;
}

/* --- Content Sections --- */
.scroll-section {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.scroll-section.visible {
  pointer-events: auto;
}

.section-inner {
  max-width: 42vw;
  padding: 2rem 0;
}

/* Side alignment */
.align-left {
  justify-content: flex-start;
  padding-left: 7vw;
}

.align-right {
  justify-content: flex-end;
  padding-right: 7vw;
}

.align-right .section-inner {
  text-align: right;
}

/* Section typography */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--label-size);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--heading-size);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-heading .word {
  display: inline-block;
  will-change: transform, opacity;
}

.section-body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.7);
  max-width: 34ch;
}

.align-right .section-body {
  margin-left: auto;
}

/* --- Stats Section --- */
.section-stats {
  justify-content: center;
  padding: 0 5vw;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 1000px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--stat-size);
  font-weight: 800;
  line-height: 1;
  color: #f5f5f7;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--accent);
  margin-left: 0.15em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- CTA Section --- */
.section-cta {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 5vw;
}

.section-cta .section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--accent);
  padding: 1rem 3rem;
  border-radius: 50px;
  transition: background 0.3s ease, transform 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.cta-price {
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .site-header {
    padding: 1.2rem 5vw;
  }

  .header-nav {
    display: none;
  }

  .hero-heading {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .hero-tagline {
    font-size: 1rem;
    padding: 0 2rem;
  }

  #scroll-container {
    height: 600vh;
  }

  .align-left,
  .align-right {
    justify-content: center;
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .align-right .section-inner {
    text-align: left;
  }

  .align-right .section-body {
    margin-left: 0;
  }

  .section-inner {
    max-width: 90vw;
  }

  .section-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section-body {
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 400px;
  }

  .marquee-text {
    font-size: clamp(3rem, 10vw, 8rem);
  }
}

@media (max-width: 480px) {
  :root {
    --hero-size: clamp(2.8rem, 14vw, 4rem);
    --heading-size: clamp(2rem, 9vw, 2.8rem);
  }
}
