/* ═══════════════════════════════════════════════════════════════
   PlaySmart Basketball Analytics — Commercial Website
   Brand: Dark navy + cyan/blue + orange/amber
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy:        #0a1628;
  --navy-light:  #0f2035;
  --navy-mid:    #142d48;
  --cyan:        #00b4d8;
  --cyan-light:  #48d1e8;
  --cyan-glow:   rgba(0,180,216,0.3);
  --orange:      #f08c2e;
  --orange-light:#f5a623;
  --white:       #ffffff;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-600:    #475569;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ NAVBAR ═══ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,180,216,0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  background: var(--cyan);
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--cyan-light);
  transform: translateY(-1px);
}

.lang-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s;
  margin-left: 8px;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,180,216,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(240,140,46,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0,180,216,0.04) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-logo {
  height: 120px;
  width: auto;
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 0 60px var(--cyan-glow);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--cyan);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--cyan-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cyan-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--gray-500);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cyan);
}

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

.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--gray-600);
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--navy-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
  padding: 4px 14px;
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: 20px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ═══ VALUE GRID ═══ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.3s, border-color 0.3s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,180,216,0.2);
}

.value-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

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

/* ═══ REPORT SHOWCASE ═══ */
.report-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.report-showcase:last-child {
  margin-bottom: 0;
}

.report-showcase-reverse {
  direction: rtl;
}

.report-showcase-reverse > * {
  direction: ltr;
}

.report-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: rgba(0,180,216,0.1);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.badge-orange {
  color: var(--orange);
  background: rgba(240,140,46,0.1);
}

.badge-green {
  color: #4ade80;
  background: rgba(74,222,128,0.1);
}

.report-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.report-info > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.report-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-features li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.5;
}

.report-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ═══ REPORT GALLERY ═══ */
.report-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.gallery-item {
  position: relative;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0,180,216,0.3);
}

.gallery-item-large {
  grid-column: 1 / -1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 8px;
  border-radius: 12px 12px 0 0;
}

.gallery-item-large img {
  max-height: 320px;
}

.gallery-caption {
  display: block;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  background: var(--navy-mid);
}

.c-blue { color: var(--cyan); }
.c-orange { color: var(--orange); }

/* ═══ AI SHOWCASE ═══ */
.ai-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ai-visual .gallery-item {
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.ai-info .section-tag {
  margin-bottom: 16px;
}

.ai-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ai-info > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .ai-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ═══ CAPABILITIES GRID ═══ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.cap-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.3s;
}

.cap-card:hover {
  border-color: rgba(0,180,216,0.2);
  background: rgba(0,180,216,0.04);
}

.cap-icon-wrap {
  width: 36px;
  height: 36px;
  color: var(--cyan);
  margin-bottom: 14px;
}

.cap-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

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

/* ═══ LEAGUES ═══ */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.league-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  transition: border-color 0.3s;
}

.league-card:hover {
  border-color: rgba(0,180,216,0.3);
}

.league-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* ═══ METHODOLOGY ═══ */
.method-timeline {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.method-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-left: 2px solid rgba(0,180,216,0.15);
  padding-left: 32px;
  position: relative;
}

.method-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--navy-light);
}

.method-num {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(0,180,216,0.15);
  line-height: 1;
  flex-shrink: 0;
}

.method-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.method-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ═══ CTA ═══ */
.section-cta {
  background: linear-gradient(135deg, rgba(0,180,216,0.08), rgba(240,140,46,0.05));
  border-top: 1px solid rgba(0,180,216,0.1);
  border-bottom: 1px solid rgba(0,180,216,0.1);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-email {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-brand img {
  border-radius: 6px;
  height: 28px;
  width: auto;
}

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

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

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

/* Stagger animation for grid items */
.value-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.value-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.cap-card.reveal:nth-child(2) { transition-delay: 0.05s; }
.cap-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.cap-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.cap-card.reveal:nth-child(5) { transition-delay: 0.2s; }
.cap-card.reveal:nth-child(6) { transition-delay: 0.25s; }
.cap-card.reveal:nth-child(7) { transition-delay: 0.3s; }
.cap-card.reveal:nth-child(8) { transition-delay: 0.35s; }

.league-card.reveal:nth-child(2) { transition-delay: 0.05s; }
.league-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.league-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.league-card.reveal:nth-child(5) { transition-delay: 0.2s; }
.league-card.reveal:nth-child(6) { transition-delay: 0.25s; }
.league-card.reveal:nth-child(7) { transition-delay: 0.3s; }

.method-step.reveal:nth-child(2) { transition-delay: 0.1s; }
.method-step.reveal:nth-child(3) { transition-delay: 0.2s; }
.method-step.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s;
    border-left: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat-sep {
    width: 40px;
    height: 1px;
  }

  .report-showcase,
  .report-showcase-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .report-showcase-reverse > * {
    direction: ltr;
  }

  .report-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item-large img {
    max-height: 260px;
  }

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

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

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

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .report-showcase {
    margin-bottom: 48px;
  }

  .report-info h3 {
    font-size: 1.3rem;
  }

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

@media (max-width: 480px) {
  .leagues-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .gallery-item-large img {
    max-height: 200px;
  }
}
