/* The Asia Pickleball — brand tokens */
:root {
  --green-950: #071f04;
  --green-900: #0f3609;   /* logo background */
  --green-850: #123d0c;
  --green-800: #18490f;
  --green-700: #22601a;
  --lime: #cdf25b;        /* logo ball */
  --lime-soft: rgba(205, 242, 91, 0.14);
  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);

  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--green-900);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1; font-weight: 800; font-stretch: 118%; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 700; font-stretch: 110%; }
p { margin: 0; }
em { font-style: normal; color: var(--lime); }
::selection { background: var(--lime); color: var(--green-950); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* subtle film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); flex: none; }
.kicker { font: 600 12px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid var(--lime);
  background: var(--lime); color: var(--green-950);
  font: 700 16px/1 var(--display); font-stretch: 112%; letter-spacing: 0.01em;
  cursor: pointer; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(205, 242, 91, 0.55); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); box-shadow: none; }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-full { width: 100%; }

.status-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--lime); color: var(--green-950); font: 700 12px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase;
}
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.status-dim { background: var(--lime-soft); color: var(--lime); }
@keyframes pulse { 50% { opacity: 0.3; } }

.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(88px, 12vw, 150px) var(--gutter); }
.section-alt { max-width: none; background: var(--green-950); padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 820px; }
.section-head-row { max-width: none; grid-template-columns: 1fr; align-items: end; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 560px; }
@media (min-width: 900px) { .section-head-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; } .section-head-row .section-sub { justify-self: end; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.4s, padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 41, 6, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--muted); transition: color 0.3s, background 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav-mobile-cta { display: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-logo img { height: 34px; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--white); transition: transform 0.4s var(--ease); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--gutter);
    background: var(--green-950);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a { font: 800 34px/1.1 var(--display); font-stretch: 115%; color: var(--white); padding: 12px 0; background: none !important; }
  .nav-mobile-cta { display: block; color: var(--lime) !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) 40px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.court { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, 0.07); }
.hero-mono {
  position: absolute; right: -6vw; top: 50%; width: min(76vw, 980px); opacity: 0.08;
  transform: translateY(-46%); animation: drift 18s var(--ease) infinite alternate;
}
.hero-glow {
  position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: -16vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 242, 91, 0.16), transparent 62%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--green-900)); }
@keyframes drift { to { transform: translateY(-50%) translateX(-2vw) rotate(-2deg); } }

.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; display: grid; gap: 28px; }
.hero-title {
  font-size: clamp(46px, 8.6vw, 124px); line-height: 0.95; font-weight: 900; font-stretch: 122%; letter-spacing: -0.035em;
}
.hero-title em { position: relative; }
.hero-lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-foot {
  max-width: var(--max); width: 100%; margin: clamp(56px, 9vh, 110px) auto 0;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font: 700 14px/1 var(--display); font-stretch: 115%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}
.hero-foot i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); opacity: 0.7; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--green-850); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
  font: 800 clamp(22px, 2.6vw, 32px)/1 var(--display); font-stretch: 120%; color: var(--white); white-space: nowrap;
}
.marquee span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- featured ---------- */
.featured { display: grid; gap: 20px; }
@media (min-width: 960px) { .featured { grid-template-columns: 1.55fr 1fr; } }

.video-card { border-radius: var(--radius); overflow: hidden; background: var(--green-850); border: 1px solid var(--line); }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 20%, var(--green-700), var(--green-950));
}
.video-mono { position: absolute; width: 58%; opacity: 0.14; transition: transform 1.4s var(--ease); }
.video-card:hover .video-mono { transform: scale(1.05) rotate(-2deg); }
.play {
  position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); box-shadow: 0 0 0 14px rgba(205, 242, 91, 0.12), 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}
.play svg { width: 32px; height: 32px; fill: var(--green-950); margin-left: 4px; }
.video-frame .status-chip { position: absolute; left: 20px; top: 20px; }
.video-meta { padding: 26px 28px 30px; display: grid; gap: 10px; }
.video-meta h3 { font-size: clamp(22px, 2.2vw, 30px); }
.video-meta p:last-child { color: var(--muted); }

.news { display: grid; gap: 20px; }
.news-item {
  padding: 26px 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.news-item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.news-item p:not(.kicker) { color: var(--muted); font-size: 15px; }
.news-item .status-chip { justify-self: start; margin-top: 6px; }

/* ---------- leagues ---------- */
.leagues { display: grid; gap: 20px; }
@media (min-width: 960px) { .leagues { grid-template-columns: 1fr 1.25fr; } }
.league-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.league-slot {
  aspect-ratio: 1; padding: 20px; border-radius: var(--radius-sm); border: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
}
.league-slot b { font: 700 18px/1.2 var(--display); font-stretch: 110%; color: var(--white); }
.league-slot span:last-child { color: var(--faint); font-size: 14px; }
.slot-mark { width: 44px; height: 44px; border-radius: 12px; margin-bottom: auto; background: rgba(255, 255, 255, 0.06); }
.league-slot-cta { border: 1px solid var(--lime); background: var(--lime-soft); transition: background 0.3s, transform 0.6s var(--ease); }
.league-slot-cta:hover { background: rgba(205, 242, 91, 0.22); transform: translateY(-3px); }
.league-slot-cta span:last-child { color: var(--lime); }
.slot-plus { width: 44px; height: 44px; border-radius: 50%; margin-bottom: auto; display: grid; place-items: center; background: var(--lime); color: var(--green-950); font: 600 26px/1 var(--body); }

.calendar { border-radius: var(--radius); border: 1px solid var(--line); background: var(--green-900); display: flex; flex-direction: column; overflow: hidden; }
.cal-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cal-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-tabs button {
  border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 14px;
  font: 600 13px/1 var(--body); cursor: pointer; transition: all 0.3s;
}
.cal-tabs button[aria-selected="true"] { background: var(--white); color: var(--green-950); border-color: var(--white); }
.cal-empty { flex: 1; display: grid; place-items: center; align-content: center; text-align: center; gap: 12px; padding: 56px 24px; }
.cal-empty p { color: var(--muted); max-width: 380px; }
.cal-empty .cal-empty-title { font: 700 22px/1.2 var(--display); font-stretch: 110%; color: var(--white); }
.cal-icon { width: 64px; height: 64px; fill: none; stroke: var(--line-strong); stroke-width: 2; margin-bottom: 4px; }
.cal-icon .ball { fill: var(--lime); stroke: none; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }

/* ---------- brands ---------- */
.pillars { display: grid; gap: 20px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 34px 30px; border-top: 2px solid var(--lime); background: linear-gradient(180deg, rgba(205, 242, 91, 0.06), transparent 70%); border-radius: 0 0 var(--radius) var(--radius); display: grid; gap: 14px; align-content: start; }
.pillar-num { font: 800 15px/1 var(--display); font-stretch: 120%; color: var(--lime); }
.pillar p { color: var(--muted); }

/* ---------- partner ---------- */
.steps { list-style: none; margin: 0 0 clamp(56px, 7vw, 88px); padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.steps li { position: relative; display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.steps span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  border: 1px solid var(--lime); color: var(--lime); font: 800 16px/1 var(--display);
}
.steps b { font: 800 24px/1 var(--display); font-stretch: 115%; color: var(--white); }
.steps p { color: var(--muted); font-size: 15px; }

.packages { display: grid; gap: 20px; }
@media (min-width: 900px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.pkg {
  padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--green-900);
  display: flex; flex-direction: column; gap: 14px; transition: transform 0.6s var(--ease), border-color 0.4s;
}
.pkg:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pkg h3 { font-size: 32px; font-weight: 800; font-stretch: 118%; }
.pkg > p:not(.kicker) { color: var(--muted); }
.pkg ul { list-style: none; padding: 16px 0 0; margin: 4px 0 auto; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pkg li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.pkg li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.pkg-link { margin-top: 22px; font: 700 15px/1 var(--display); font-stretch: 110%; color: var(--lime); }
.pkg-link span { display: inline-block; transition: transform 0.4s var(--ease); }
.pkg-link:hover span { transform: translateX(4px); }
.pkg-hot { background: var(--lime); border-color: var(--lime); color: var(--green-950); }
.pkg-hot h3, .pkg-hot .kicker, .pkg-hot .pkg-link { color: var(--green-950); }
.pkg-hot > p:not(.kicker) { color: rgba(7, 31, 4, 0.74); }
.pkg-hot ul { border-color: rgba(7, 31, 4, 0.16); }
.pkg-hot li::before { background: var(--green-950); }
.pkg-hot:hover { border-color: var(--lime); }

/* ---------- contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; } .contact-copy { position: sticky; top: 120px; } }
.contact-copy { display: grid; gap: 22px; }
.contact-copy h2 { font-size: clamp(44px, 6.4vw, 84px); font-stretch: 122%; font-weight: 900; }
.contact-links { display: grid; gap: 10px; margin-top: 8px; }
.contact-links a { justify-self: start; font: 700 clamp(17px, 1.6vw, 20px)/1.3 var(--display); font-stretch: 110%; color: var(--white); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s; word-break: break-all; }
.contact-links a:hover { color: var(--lime); border-color: var(--lime); }

.contact-form { display: grid; gap: 18px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius); background: var(--green-950); border: 1px solid var(--line); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.contact-form label, .chips legend { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.contact-form input:not([type="radio"]), .contact-form textarea, .contact-form select {
  width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--white); font: 400 16px/1.4 var(--body); transition: border-color 0.3s, background 0.3s; appearance: none; -webkit-appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23cdf25b' stroke-width='2'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.contact-form select option { background: var(--green-950); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--lime); background: rgba(255, 255, 255, 0.07); }
.contact-form .invalid { border-color: #ff8a7a !important; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; transition: all 0.3s; }
.chips input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--green-950); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.4em; font-size: 15px; color: var(--muted); }
.form-note.ok { color: var(--lime); }
.form-note.err { color: #ff8a7a; }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- about ---------- */
.about { display: grid; gap: 40px; align-items: center; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .about { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.about-mono { width: min(60%, 460px); height: auto; justify-self: center; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35)); }
.about-copy { display: grid; gap: 22px; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 580px; }

/* ---------- footer ---------- */
.footer { background: var(--green-950); padding: 72px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 32px; display: grid; gap: 40px; }
.footer-logo { width: min(520px, 100%); height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a, .footer-bottom a { color: var(--muted); font-weight: 500; transition: color 0.3s; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
