/* ============================================================
   ELITE BASKETBALL — styles.css
   Light mode · White background · Cinematic scroll experience
   ============================================================ */

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

html {
  scroll-behavior: auto;
}

body {
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Loader ──────────────────────────────────────────────── */

#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.35em;
  color: #0a0a0a;
}

.loader-track {
  width: 180px;
  height: 1.5px;
  background: #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: #0a0a0a;
  transition: width 0.08s linear;
}

#loader-percent {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #aaa;
}

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 5vw;
  height: 60px;
  display: flex;
  align-items: center;
}

.site-header nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.28em;
  color: #0a0a0a;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a0a0a;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

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

/* ── Hero Standalone ─────────────────────────────────────── */

.hero-standalone {
  position: relative;
  height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  z-index: 10;
}

.hero-content {
  max-width: 65vw;
}

.hero-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #E05A1A;
  margin-bottom: 1.8rem;
}

.hero-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5.5rem, 14vw, 13rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: #0a0a0a;
  overflow: hidden;
}

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

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #777;
  margin-top: 2.2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 8vw;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
}

.scroll-indicator svg {
  width: 18px;
  height: 18px;
  color: #bbb;
  animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── Canvas ──────────────────────────────────────────────── */

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

#canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* White radial vignette — basketball floats on white */
.canvas-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 78% 78% at 50% 50%,
    transparent 28%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.6) 62%,
    rgba(255, 255, 255, 0.88) 76%,
    rgba(255, 255, 255, 0.97) 88%,
    #ffffff 100%
  );
  pointer-events: none;
}

/* ── Marquee ─────────────────────────────────────────────── */

.marquee-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding-bottom: 1.5rem;
}

.marquee-text {
  white-space: nowrap;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 11vw, 11vw);
  letter-spacing: 0.03em;
  color: rgba(10, 10, 10, 0.05);
  will-change: transform;
  display: inline-block;
  line-height: 1;
}

/* ── Scroll Container ────────────────────────────────────── */

#scroll-container {
  position: relative;
  height: 900vh;
  z-index: 5;
}

/* ── Scroll Sections ─────────────────────────────────────── */

.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 20;
  will-change: opacity;
}

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

/* Side zones — product occupies center canvas */
.align-left {
  padding-left: 5vw;
  padding-right: 56vw;
}

.align-right {
  padding-left: 56vw;
  padding-right: 5vw;
}

.align-left .section-inner,
.align-right .section-inner {
  max-width: 38vw;
}

/* ── Section Typography ──────────────────────────────────── */

.section-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E05A1A;
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.93;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  margin-bottom: 1.6rem;
}

.section-body {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.75;
  color: #505050;
  max-width: 340px;
  margin-bottom: 1.2rem;
}

.section-note {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbb;
  border-top: 1px solid #e8e8e8;
  padding-top: 0.75rem;
}

/* ── Stats Section ───────────────────────────────────────── */

.stats-title {
  margin-bottom: 2.5rem;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 4.5vw, 4.8rem);
  color: #0a0a0a;
  line-height: 1;
}

.stat-suffix {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  color: #E05A1A;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin-top: 0.35rem;
}

/* ── CTA Section ─────────────────────────────────────────── */

.section-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw !important;
  text-align: center;
}

.section-cta .section-inner {
  max-width: 640px !important;
  text-align: center;
}

.section-cta .section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-bottom: 1.2rem;
}

.cta-heading {
  font-size: clamp(5rem, 10vw, 10rem) !important;
  line-height: 0.88 !important;
  margin-bottom: 3rem !important;
}

.cta-button {
  display: inline-block;
  padding: 0.9rem 3.2rem;
  background: #0a0a0a;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background 0.3s ease, transform 0.25s ease, letter-spacing 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #E05A1A;
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}

.cta-button:hover {
  background: #E05A1A;
  letter-spacing: 0.28em;
}

/* ── Mobile (≤768px) ─────────────────────────────────────── */

@media (max-width: 768px) {

  /* Nav — hide links, keep logo */
  .nav-links {
    display: none;
  }

  /* Hero — clear fixed header, full-width content */
  .hero-standalone {
    padding-top: 80px;
    padding-left: 6vw;
    padding-right: 6vw;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-heading {
    font-size: clamp(3.8rem, 18vw, 7rem);
  }

  .hero-tagline {
    font-size: 0.85rem;
    margin-top: 1.4rem;
  }

  .scroll-indicator {
    left: 6vw;
    bottom: 2rem;
  }

  /* Scroll container */
  #scroll-container {
    height: 620vh;
  }

  /* Sections — full-width frosted cards */
  .align-left,
  .align-right {
    padding: 0 5vw;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.6rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
  }

  .section-cta .section-inner {
    background: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    padding: 2rem 1.5rem !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07) !important;
  }

  /* Section typography */
  .section-heading {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

  .section-body {
    font-size: 0.84rem;
    max-width: 100%;
  }

  /* CTA button — min 48px tap target */
  .cta-button {
    min-height: 48px;
    padding: 0.9rem 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cta-heading {
    font-size: clamp(3.8rem, 14vw, 6rem) !important;
  }

  /* Stats grid */
  .stats-grid {
    gap: 1.4rem;
  }

  /* Marquee */
  .marquee-text {
    font-size: 20vw;
  }

  /* Vignette — tighter fade so basketball is more visible */
  .canvas-vignette {
    background: radial-gradient(
      ellipse 90% 90% at 50% 50%,
      transparent 20%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0.85) 72%,
      #ffffff 92%
    );
  }
}

/* ── Small phones (≤480px) ───────────────────────────────── */

@media (max-width: 480px) {

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

  .hero-tagline {
    font-size: 0.8rem;
  }

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

  .section-body {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .section-label {
    font-size: 0.62rem;
  }

  .stat-number {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .stat-suffix {
    font-size: clamp(1.3rem, 5.5vw, 2rem);
  }

  .cta-heading {
    font-size: clamp(3.2rem, 16vw, 5rem) !important;
  }

  .cta-button {
    padding: 0.9rem 2.2rem;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .section-cta .section-inner {
    padding: 1.8rem 1.2rem !important;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    padding: 1.4rem 1.2rem;
  }

  /* Marquee smaller on tiny screens */
  .marquee-text {
    font-size: 18vw;
  }
}
