/* =========================================================
   PML — ProMultiLeague · Intro Site
   Direction: Editorial Sports Magazine · dark, condensed, gold
   Fonts: Barlow Condensed (display) + DM Sans (body)
   ========================================================= */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:           #060a12;
  --bg-lift:      #0c1220;
  --green:        #4ade80;
  --gold:         #fbbf24;
  --white:        #edf0f5;
  --muted:        #4d5a72;
  --border:       rgba(255, 255, 255, 0.07);
  --border-dim:   rgba(255, 255, 255, 0.04);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --max-w:  1100px;
  --pad-h:  clamp(1.25rem, 4vw, 2.5rem);
  --section-v: clamp(4rem, 8vw, 7rem);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }

/* ── Navbar ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-h);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 10, 18, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border);
}

.nav__logo {
  height: 38px;
  width: auto;
}

.nav__cta {
  padding: 0.45rem 1.35rem;
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 5px;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.nav__cta:hover {
  background: var(--green);
  color: #040e07;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(6, 10, 18, 0.52) 0%,
    rgba(6, 10, 18, 0.22) 42%,
    rgba(6, 10, 18, 0.9)  100%
  );
}

/* Ambient color bleeds */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 42% at 10% 16%,  rgba(74, 222, 128, 0.1)  0%, transparent 60%),
    radial-gradient(ellipse 45% 38% at 90% 80%,  rgba(251, 191, 36, 0.08) 0%, transparent 55%);
}

/* ── Parallax emblems ────────────────────────────────────── */
.parallax-layer {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}

.parallax-emblem {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  will-change: transform;
}

.parallax-emblem img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  opacity: 0.88;
}

.parallax-emblem[data-depth="0.2"] { width: 90px;  height: 90px;  opacity: 0.42; }
.parallax-emblem[data-depth="0.5"] { width: 70px;  height: 70px;  opacity: 0.62; }
.parallax-emblem[data-depth="0.9"] { width: 54px;  height: 54px;  opacity: 0.88; }

/* ── Hero content ─────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--pad-h);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  height: 120px;
  width: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.65));
  animation: fade-up 0.7s ease-out 0.1s both;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8.5vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fade-up 0.7s ease-out 0.25s both;
}

.hero__title .accent {
  display: block;
  color: var(--green);
}

.hero__sub {
  max-width: 520px;
  font-size: clamp(1rem, 1.75vw, 1.15rem);
  line-height: 1.65;
  color: rgba(237, 240, 245, 0.62);
  margin-bottom: 2.75rem;
  animation: fade-up 0.7s ease-out 0.4s both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.7s ease-out 0.55s both;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  padding: 0.875rem 2.25rem;
  background: var(--green);
  color: #040e07;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.6);
}

.btn-outline {
  padding: 0.875rem 2.25rem;
  border: 1px solid rgba(237, 240, 245, 0.22);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: rgba(237, 240, 245, 0.4);
  background: rgba(237, 240, 245, 0.06);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(237, 240, 245, 0.3);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(74, 222, 128, 0.5));
  animation: scrollline 2s ease-in-out infinite;
}

@keyframes scrollline {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Hero entrance animations ────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section shared ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-transform: uppercase;
}

/* ── Features — editorial numbered list ─────────────────── */
.features {
  padding: var(--section-v) var(--pad-h);
}

.features__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features__header {
  margin-bottom: 4rem;
}

.features__list {
  display: flex;
  flex-direction: column;
}

.features__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.features__item:first-child {
  border-top: 1px solid var(--border);
}

.features__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
  opacity: 0.65;
  align-self: start;
  padding-top: 0.2rem;
}

.features__item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.05;
}

.features__item-text {
  font-size: 0.97rem;
  line-height: 1.72;
  color: rgba(237, 240, 245, 0.58);
  max-width: 560px;
}

/* ── Stats ticker ────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 1.2rem 0;
  background: rgba(251, 191, 36, 0.025);
}

.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-roll 22s linear infinite;
}

.ticker__track:hover {
  animation-play-state: paused;
}

@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
}

.ticker__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 240, 245, 0.38);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ticker__item .num {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 800;
}

.ticker__dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.35);
  flex-shrink: 0;
}

/* ── Community ───────────────────────────────────────────── */
.community {
  padding: var(--section-v) var(--pad-h);
  border-top: 1px solid var(--border-dim);
}

.community__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.community__header {
  margin-bottom: 4rem;
}

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

.community__item {
  padding: 0 3rem;
  position: relative;
}

.community__item + .community__item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.community__item:first-child { padding-left: 0; }
.community__item:last-child  { padding-right: 0; }

.community__icon {
  display: flex;
  width: 44px; height: 44px;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.community__icon svg {
  width: 100%; height: 100%;
}

.community__item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  line-height: 1.05;
}

.community__item-text {
  font-size: 0.95rem;
  line-height: 1.72;
  color: rgba(237, 240, 245, 0.55);
  max-width: 300px;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  padding: var(--section-v) var(--pad-h);
}

.cta__card {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.038);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 4.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

/* Top glow */
.cta__card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.6), transparent);
}

/* Inner ambient */
.cta__card::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(74, 222, 128, 0.07) 0%, transparent 65%);
}

.cta__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.96;
  margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}

.cta__title .accent {
  color: var(--green);
}

.cta__sub {
  color: rgba(237, 240, 245, 0.52);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 440px;
  margin: 0 auto 2.75rem;
  position: relative; z-index: 1;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 3.25rem;
  background: var(--green);
  color: #040e07;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 0 36px rgba(74, 222, 128, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; z-index: 1;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 58px rgba(74, 222, 128, 0.65);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 2rem var(--pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(237, 240, 245, 0.28);
}

.footer__logo {
  height: 28px;
  width: auto;
  opacity: 0.5;
}

.footer__links {
  display: flex;
  gap: 1.75rem;
}

.footer__links a {
  color: rgba(237, 240, 245, 0.35);
  transition: color 0.2s;
  font-size: 0.82rem;
}

.footer__links a:hover {
  color: var(--green);
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .community__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .community__item + .community__item::before {
    top: -1.25rem; left: 0;
    height: 1px; width: 100%;
    bottom: auto;
  }

  .community__item { padding: 0; }

  .features__item {
    grid-template-columns: 52px 1fr;
    gap: 0 1.25rem;
    padding: 2rem 0;
  }

  .cta__card { padding: 3.25rem 1.75rem; }

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

  .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__logo { height: 88px; }
  .hero__title { font-size: 2.75rem; }
  .parallax-emblem[data-depth="0.2"] { display: none; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax-emblem { will-change: auto; }
  .ticker__track { animation: none !important; }
  .hero__logo, .hero__title, .hero__sub, .hero__actions { animation: none; opacity: 1; }
  .hero__scroll-line { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
