  :root {
    --court: #883CF0;
    --neon: #7b5cff;
    --neon2: #dbecee;
    --neon3: #39ff14;
    --white: #f5f0e8;
    --muted: #d6d6d6;
    --dark: #180f26;
    --card-bg: #23133a;
    --card-border: #3a1c63;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  .basketballiq-ai {
    background: #191127;
    color: var(--white);
    position: relative;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
    height: 100vh;
  }

  /* CUSTOM CURSOR */
  .cursor {
    width: 12px; height: 12px;
    background: var(--neon);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: transform 0.08s, background 0.2s, width 0.2s, height 0.2s;
    mix-blend-mode: screen;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--neon);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: all 0.18s ease;
    opacity: 0.5;
  }
  a:hover ~ .cursor, button:hover ~ .cursor { background: var(--neon2); transform: translate(-50%, -50%) scale(2); }

  /* NOISE TEXTURE OVERLAY */
  .basketballiq-ai::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
  }

  /* ─── NAV ─── */
  .basketballiq-ai nav {
    position: sticky; top: 0; left: 0; right: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 4rem;
    background: linear-gradient(180deg, #180f26 0%, transparent 100%);
    backdrop-filter: blur(4px);
  }
  .nav-logo {
    
    font-weight: 900;
    font-size: 1.1rem;
    
    color: var(--court);
    text-decoration: none;
  }
  .nav-logo span { color: var(--neon); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    font-size: 0.75rem;
    
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--neon); }
  .nav-cta {
    font-size: 0.72rem;
    
    text-transform: uppercase;
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--neon);
    color: var(--neon);
    background: transparent;
    cursor: none;
    transition: all 0.25s;
    
    font-weight: 500;
  }
  .nav-cta:hover { background: var(--neon); color: var(--dark); }

  /* ─── HERO ─── */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 4rem;
    gap: 4rem;
    position: relative;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 60% at 70% 50%, rgba(179, 110, 200, 0.17) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 20% 80%, rgba(149, 0, 255, 0.209) 0%, transparent 60%),
      linear-gradient(180deg, #0b050d 0%, #110413 100%);
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 0.8rem;
  }
  .hero-eyebrow::before { content: ''; width: 2rem; height: 1px; background: var(--neon); }
  .hero-title {
    
    font-size: clamp(4.5rem, 8vw, 8rem);
    line-height: 0.92;
    color: var(--white);
    margin-bottom: 1.5rem;
  }
  .hero-title .accent { color: var(--neon); }
  .hero-title .court-accent { color: var(--court); }
  .hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 440px;
    margin-bottom: 2.5rem;
    font-weight: 300;
  }
  .hero-actions { display: flex; gap: 1rem; align-items: center; }
  .btn-primary {
    padding: 0.9rem 2.2rem;
    background: var(--neon);
    color: var(--dark);
    
    font-weight: 500;
    font-size: 0.82rem;
    
    text-transform: uppercase;
    border: none;
    cursor: none;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }
  .btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  .btn-primary:hover::after { transform: translateX(0); }
  .btn-secondary {
    font-size: 0.82rem;
    
    text-transform: uppercase;
    color: var(--court);
    border: none;
    background: none;
    cursor: none;
    display: flex; align-items: center; gap: 0.5rem;
    transition: gap 0.2s;
    
    font-weight: 500;
  }
  .btn-secondary:hover { gap: 1rem; }
  .hero-stats {
    display: flex; gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
  }

  .stat-num {
    
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--court);
    line-height: 1;
  }
  .stat-label {
    font-size: 0.68rem;
    
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.3rem;
  }

  /* ─── COURT SVG ─── */
  .hero-court {
    position: relative;
    animation: float 6s ease-in-out infinite;
  }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

  .court-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .court-glow {
    position: absolute;
    width: 60%; height: 40%;
    background: radial-gradient(ellipse, rgba(179, 110, 200, 0.25) 0%, transparent 70%);
    bottom: -5%; left: 20%;
    filter: blur(30px);
    pointer-events: none;
  }

  /* ─── TICKER ─── */
  .ticker-wrap {
    overflow: hidden;
    background: rgba(168, 110, 200, 0.06);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 0.7rem 0;
  }
  .ticker-track {
    display: flex;
    gap: 0;
    animation: ticker 25s linear infinite;
    white-space: nowrap;
  }
  .ticker-item {
    font-size: 0.68rem;
    
    text-transform: uppercase;
    color: var(--court);
    padding: 0 2.5rem;
    flex-shrink: 0;
  }
  .ticker-item::before { content: '● '; color: var(--neon); margin-right: 0.5rem; }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ─── SECTION SHARED ─── */
  .basketballiq-ai section { position: relative; }
  .section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 0.8rem;
  }
  .section-title {
    
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 1rem;
  }
  .section-sub {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
  }

  /* ─── PLAYBOOK / DRILL EXPLORER ─── */
  #playbook {
    padding: 7rem 4rem;
    background: linear-gradient(180deg, #191127, #180f26);
  }
  .playbook-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .filter-tab {
    padding: 0.45rem 1.1rem;
    font-size: 0.72rem;
    
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--muted);
    cursor: none;
    transition: all 0.2s;
    
  }
  .filter-tab.active, .filter-tab:hover {
    border-color: var(--neon);
    color: var(--neon);
    background: #1f1232;
  }

  .drills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
  }

  .drill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.6rem;
    cursor: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: none;
  }
  .drill-card.visible { display: block; }
  .drill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .drill-card:hover {
    border-color: #3a1c63;
    background: #1f1232;
    transform: translateY(-4px);
  }
  .drill-card:hover::before { transform: scaleX(1); }

  .drill-icon {
    width: 40px; height: 40px;
    background: rgba(182, 110, 200, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transition: background 0.2s;
  }
  .drill-card:hover .drill-icon { background: rgba(187, 0, 255, 0.15); }
  .drill-tag {
    font-size: 0.62rem;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 0.5rem;
  }
  .drill-name {
    
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.6rem;
    line-height: 1.1;
  }
  .drill-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
  }
  .drill-arrow {
    position: absolute;
    bottom: 1.4rem; right: 1.4rem;
    color: var(--muted);
    font-size: 0.9rem;
    transition: all 0.2s;
  }
  .drill-card:hover .drill-arrow { color: var(--neon); transform: translate(3px, -3px); }

  /* ─── COURT BREAKDOWN ─── */
  #court-break {
    padding: 7rem 4rem;
    background: #191127;
  }
  .court-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
  }

  /* ─── ANIMATED COURT DIAGRAM ─── */
  .court-diagram { position: relative; }
  #court-svg {
    width: 100%;
    max-width: 460px;
    filter: drop-shadow(0 0 40px rgba(179, 110, 200, 0.15));
  }
  .zone-label {
    position: absolute;
    font-size: 0.65rem;
    
    text-transform: uppercase;
    color: var(--court);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    background: rgba(13,10,5,0.85);
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
  }
  .zone-label.show { opacity: 1; }

  .court-zones { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
  .zone-item {
    padding: 1rem 1.4rem;
    border: 1px solid var(--card-border);
    cursor: none;
    transition: all 0.25s;
    display: flex; align-items: center; gap: 1rem;
  }
  .zone-item:hover, .zone-item.active {
    border-color: var(--court);
    background: #1f1232;
  }
  .zone-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--court);
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .zone-item:hover .zone-dot, .zone-item.active .zone-dot { background: var(--neon); }
  .zone-text { flex: 1; }
  .zone-name {
    
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.2rem;
  }
  .zone-detail {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
  }
  .zone-pct {
    
    font-size: 0.9rem;
    color: var(--court);
    font-weight: 700;
  }

  /* ─── STATS BAR ─── */
  #stats-bar {
    padding: 5rem 4rem;
    background: linear-gradient(135deg, rgba(174, 110, 200, 0.06) 0%, transparent 60%);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
  }
  .stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .stat-block {
    padding: 1.5rem 2.5rem;
    border-right: 1px solid var(--card-border);
    text-align: center;
  }
  .stat-block:last-child { border-right: none; }
  .stat-big {
    
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
  }
  .stat-big .neon { color: var(--neon); }
  .stat-big .court { color: var(--court); }
  .stat-l {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ─── TRAINING MODES ─── */
  #training {
    padding: 7rem 4rem;
    background: #191127;
  }
  .training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
  }
  .training-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.4rem 2rem;
    transition: all 0.3s;
    cursor: none;
  }
  .training-card:hover {
    border-color: #5e309d;
    background: #1f1232;
  }
  .training-card::after {
    content: '';
    position: absolute;
    bottom: -40%; right: -20%;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 0, 255, 0.06), transparent);
    pointer-events: none;
    transition: all 0.4s;
  }
  .training-card:hover::after { bottom: -10%; right: -10%; opacity: 1.5; }
  .training-num {
    
    font-size: 0.7rem;
    color: var(--neon2);
    margin-bottom: 1.5rem;
  }
  .training-icon { font-size: 2rem; margin-bottom: 1rem; }
  .training-title {
    
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--white);
  }
  .training-body { font-size: 0.83rem; color: var(--muted); line-height: 1.7; }
  .training-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem;
    
    text-transform: uppercase;
    color: var(--neon2);
    margin-top: 1.5rem;
    text-decoration: none;
    transition: gap 0.2s;
  }
  .training-link:hover { gap: 1rem; }

  /* ─── WEEKLY PLAN ─── */
  #weekly {
    padding: 7rem 4rem;
    background: linear-gradient(180deg, #191127, #180f26);
  }
  .week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.8rem;
    margin-top: 3.5rem;
  }
  .day-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.4rem 0.9rem;
    text-align: center;
    cursor: none;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
  }
  .day-card.active {
    border-color: var(--neon);
    background: #2a1647;
  }
  .day-card.active::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--neon);
  }
  .day-card:hover {
    border-color: #5e309d;
    transform: translateY(-3px);
  }
  .day-name {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.8rem;
  }
  .day-intensity {
    display: flex; flex-direction: column; gap: 0.3rem;
    margin-bottom: 0.8rem;
    align-items: center;
  }
  .intensity-bar {
    width: 100%; height: 3px;
    background: var(--card-border);
    border-radius: 2px;
    overflow: hidden;
  }
  .intensity-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--neon);
    transition: width 1.5s ease;
    width: 0;
  }
  .day-focus {
    
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.2;
  }
  .day-tag {
    display: inline-block;
    font-size: 0.58rem;
    
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    background: #1f1232;
    color: var(--court);
    margin-top: 0.6rem;
    border-radius: 1px;
  }

  /* ─── QUOTE BANNER ─── */
  .quote-banner {
    padding: 5rem 4rem;
    background: rgba(162, 110, 200, 0.04);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .quote-banner::before {
    content: '"';
    position: absolute;
    
    font-size: 20rem;
    color: rgba(168, 110, 200, 0.04);
    top: -4rem; left: 1rem;
    line-height: 1;
    pointer-events: none;
  }
  .quote-text {
    
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.05;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 1.5rem;
    position: relative;
  }
  .quote-text .hl { color: var(--neon); }
  .quote-attr {
    font-size: 0.75rem;
    
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ─── CTA ─── */
  #cta {
    padding: 8rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, #191127, #180f26);
    position: relative;
    overflow: hidden;
  }
  #cta::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 0, 255, 0.07), transparent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .cta-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 1.5rem;
  }
  .cta-title {
    
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 0.93;
    color: var(--white);
    margin-bottom: 1.5rem;
  }
  .cta-title .big-accent { color: var(--neon); }
  .cta-sub { font-size: 1rem; color: var(--muted); margin-bottom: 3rem; line-height: 1.7; }
  .cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

  /* ─── FOOTER ─── */
  .basketballiq-ai footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: #180f26;
  }

  .footer-logo {
    
    font-size: 1rem;
    font-weight: 900;
    color: var(--court);
    
  }

  .footer-logo span { color: var(--neon); }
  .footer-links { display: flex; gap: 2rem; }
  .footer-links a {
    font-size: 0.72rem;
    
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--white); }
  .footer-copy {
    font-size: 0.7rem;
    color: var(--muted);
    
  }

  /* ─── SCROLL REVEALS ─── */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in { 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; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    .basketballiq-ai nav { padding: 1rem 1.5rem; }
    .basketballiq-ai nav .nav-links { display: none; }
    #hero { grid-template-columns: 1fr; padding: 20px; gap: 2rem; }
    .hero-court { order: -1; }
    .hero-bg{
      position: unset;
    }
    #playbook, #court-break, #stats-bar, #training, #weekly, #cta, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
    .court-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-block { border-right: none; border-bottom: 1px solid var(--card-border); }
    .training-grid { grid-template-columns: 1fr; }
    .week-grid { grid-template-columns: repeat(4, 1fr); }
  }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }