/* ===========================================================================
   Club Mates HQ — Main Portal styles
   Scoped to the marketing site (all classes are prefixed `p-`). Dark, modern,
   sports-tech aesthetic: near-black canvas, lime-green accent, glassmorphism,
   an animated background and scroll-reveal friendly defaults. Mobile-first.
   =========================================================================== */

:root {
  --p-bg: #001117;
  --p-bg-2: #04202a;
  --p-surface: rgba(255, 255, 255, 0.04);
  --p-surface-2: rgba(255, 255, 255, 0.06);
  --p-border: rgba(255, 255, 255, 0.10);
  --p-border-strong: rgba(168, 255, 0, 0.22);
  --p-text: #eef3f5;
  --p-muted: #9aa7ad;
  --p-faint: #6b7280;

  --p-primary: #a8ff00;
  --p-primary-2: #78e00a;
  --p-accent: #a8ff00;
  --p-grad: linear-gradient(120deg, #a8ff00 0%, #78e00a 55%, #d4ff4d 100%);
  --p-grad-soft: linear-gradient(120deg, rgba(168,255,0,.16), rgba(120,224,10,.16));

  --p-radius: 18px;
  --p-radius-lg: 26px;
  --p-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --p-shadow-glow: 0 0 0 1px var(--p-border), 0 30px 80px -30px rgba(168, 255, 0, 0.30);
  --p-maxw: 1180px;

  --p-display: "Bebas Neue", "Sora", "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--p-bg);
  color: var(--p-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.p-container { width: 100%; max-width: var(--p-maxw); margin: 0 auto; padding: 0 22px; }
.p-muted { color: var(--p-muted); }
.p-grad-text {
  background: var(--p-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Animated background ---------- */
.bg-aurora, .bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-aurora {
  background:
    radial-gradient(45% 45% at 15% 12%, rgba(168, 255, 0, 0.16), transparent 60%),
    radial-gradient(40% 40% at 85% 8%, rgba(120, 224, 10, 0.14), transparent 60%),
    radial-gradient(50% 50% at 50% 100%, rgba(168, 255, 0, 0.10), transparent 60%);
  filter: blur(10px);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}
.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.05); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.15); }
}

/* ---------- Glass primitive ---------- */
.p-glass {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--p-shadow);
}

/* ---------- Buttons ---------- */
.p-btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.p-btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: 0.88rem; }
.p-btn-lg { --pad-y: 15px; --pad-x: 28px; font-size: 1rem; }
.p-btn-block { display: flex; width: 100%; }
.p-btn-primary {
  background: var(--p-grad); color: #001117; font-weight: 700;
  box-shadow: 0 12px 30px -10px rgba(168, 255, 0, 0.6);
}
.p-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(168, 255, 0, 0.7); }
.p-btn-ghost { background: var(--p-surface-2); color: var(--p-text); border-color: var(--p-border-strong); }
.p-btn-ghost:hover { transform: translateY(-2px); border-color: var(--p-primary); background: rgba(168,255,0,0.10); }

/* ---------- Nav ---------- */
.p-nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.p-nav.is-stuck {
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--p-border);
}
.p-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.p-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.p-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--p-grad); color: #001117; font-family: var(--p-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -6px rgba(168,255,0,0.6);
}
.p-brand-logo { height: 138px; width: auto; display: block; }
.p-brand-name { font-family: var(--p-display); font-size: 1.55rem; letter-spacing: 0.04em; }
.p-nav-links { display: flex; gap: 28px; }
.p-nav-links a { color: var(--p-muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.p-nav-links a:hover { color: var(--p-text); }
.p-nav-actions { display: flex; align-items: center; gap: 10px; }
.p-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.p-nav-toggle span { width: 24px; height: 2px; background: var(--p-text); border-radius: 2px; transition: .25s; }
.p-mobile-menu {
  display: none; flex-direction: column; gap: 12px; padding: 18px 22px 26px;
  background: rgba(7, 11, 22, 0.95); border-bottom: 1px solid var(--p-border);
}
.p-mobile-menu.is-open { display: flex; }
.p-mobile-menu a:not(.p-btn) { color: var(--p-muted); padding: 8px 0; font-weight: 500; }

/* ---------- Pills / eyebrows / chips ---------- */
.p-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: var(--p-grad-soft); border: 1px solid var(--p-border-strong); color: #cfe0ff;
}
.p-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); box-shadow: 0 0 10px var(--p-accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.p-eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; color: var(--p-accent); }
.p-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px;
  background: var(--p-surface-2); border: 1px solid var(--p-border); font-size: 0.78rem; font-weight: 600; color: var(--p-muted);
}
.p-chip-live { color: #ff7a90; border-color: rgba(255,122,144,.4); }

/* ---------- Sections ---------- */
.p-section { padding: 96px 0; position: relative; }
.p-section-tight { padding: 56px 0 96px; }
.p-section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.p-section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 16px 0 14px; }
.p-section-lead { color: var(--p-muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.p-hero { padding: 70px 0 60px; }
.p-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.p-hero-title { font-size: clamp(2.3rem, 5.4vw, 4rem); margin: 16px 0 18px; }
.p-slogan {
  font-family: var(--p-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-text);
  margin: 18px 0 0;
}
.p-slogan span { color: var(--p-primary); }
.p-hero-sub { font-size: 1.15rem; color: var(--p-muted); max-width: 52ch; }
.p-hero-cta { display: flex; gap: 14px; margin: 30px 0 40px; flex-wrap: wrap; }
.p-hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.p-stat { display: flex; flex-direction: column; }
.p-stat-num { font-family: "Sora"; font-weight: 800; font-size: 2rem; background: var(--p-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.p-stat-label { font-size: 0.86rem; color: var(--p-muted); max-width: 18ch; }

/* Hero visual */
.p-hero-visual { position: relative; min-height: 320px; }
.p-hero-card { padding: 20px; position: relative; z-index: 2; }
.p-hero-card-top { display: flex; justify-content: space-between; margin-bottom: 14px; }
.p-mini-pitch,
.p-mock-pitch {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--p-border);
  overflow: hidden;
  background: #0a140f;
}
.p-hero-lineup-wrap {
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  margin: 0 -4px;
}
.p-hero-lineup-img {
  display: block;
  width: 100%;
  height: auto;
}
.p-mini-pitch { height: 200px; }
.p-lineup-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.p-hero-card-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.p-hero-card-row small { display: block; color: var(--p-muted); font-size: 0.8rem; }
.p-score { font-family: "Sora"; font-weight: 800; font-size: 1.6rem; }

/* ---------- Problem ---------- */
.p-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-problem-card { padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.p-problem-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.p-x { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,122,144,.14); color: #ff7a90; font-weight: 700; }

/* ---------- Features ---------- */
.p-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-feature-card { padding: 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.p-feature-card:hover { transform: translateY(-5px); border-color: var(--p-border-strong); box-shadow: var(--p-shadow-glow); }
.p-feature-card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.p-feature-ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--p-grad-soft); border: 1px solid var(--p-border-strong); position: relative;
}
.p-feature-ico::before {
  content: ""; width: 22px; height: 22px;
  background: var(--p-grad); -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat;
}
/* simple geometric glyphs via clip; fallback dot if unmatched */
.p-feature-ico[data-ico]::before { border-radius: 6px; }

/* ---------- Showcase mocks ---------- */
.p-showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.p-mock { padding: 20px; }
.p-mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.p-mock-head small { color: var(--p-muted); }
.p-mock-pitch { height: 230px; }
.p-mock-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.p-mock-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; background: var(--p-surface-2); border: 1px solid var(--p-border); }
.p-mock-list li.is-mine { background: var(--p-grad-soft); border-color: var(--p-primary); }
.p-rank { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 0.8rem; font-weight: 700; }
.p-mock-name { flex: 1; font-weight: 600; font-size: 0.92rem; }
.p-pts { font-family: "Sora"; font-weight: 700; }
.p-mock-gameday { display: flex; align-items: center; justify-content: space-between; padding: 18px 6px; }
.p-gd-team { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.p-gd-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--p-grad); color: #001117; font-family: "Sora"; font-weight: 800; }
.p-gd-score { font-family: "Sora"; font-weight: 800; font-size: 1.7rem; }
.p-mock-meta { display: flex; justify-content: space-between; color: var(--p-muted); font-size: 0.85rem; padding-top: 10px; border-top: 1px solid var(--p-border); }

/* ---------- Pricing ---------- */
.p-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; }
.p-price-card { padding: 30px; position: relative; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.p-price-card:hover { transform: translateY(-5px); }
.p-price-card.is-featured { border-color: var(--p-primary); box-shadow: var(--p-shadow-glow); background: var(--p-grad-soft); }
.p-price-tag { position: absolute; top: -12px; right: 24px; padding: 5px 13px; border-radius: 999px; background: var(--p-grad); color: #001117; font-size: 0.76rem; font-weight: 700; }
.p-price-name { font-size: 1.35rem; margin-bottom: 6px; }
.p-price-amount { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.p-price-now { font-family: "Sora"; font-weight: 800; font-size: 2.6rem; }
.p-price-per { color: var(--p-muted); }
.p-price-was { font-size: 0.85rem; color: var(--p-muted); margin-bottom: 18px; }
.p-strike { text-decoration: line-through; opacity: .8; }
.p-price-features { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.p-price-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.p-tick { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(168,255,0,.16); color: var(--p-accent); font-size: 0.75rem; font-weight: 700; }
.p-price-note { text-align: center; color: var(--p-muted); margin-top: 28px; font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.p-cta-band {
  padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--p-grad-soft); border-color: var(--p-border-strong);
}
.p-cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.p-faq-wrap { max-width: 820px; }
.p-faq { display: flex; flex-direction: column; gap: 12px; }
.p-faq-item { border: 1px solid var(--p-border); border-radius: 14px; background: var(--p-surface); overflow: hidden; }
.p-faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-family: "Sora";
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.p-faq-item summary::-webkit-details-marker { display: none; }
.p-faq-plus { font-size: 1.4rem; color: var(--p-accent); transition: transform .25s; }
.p-faq-item[open] .p-faq-plus { transform: rotate(45deg); }
.p-faq-item p { margin: 0; padding: 0 20px 20px; }

/* ---------- Page hero (sub-pages) ---------- */
.p-page-hero { padding: 70px 0 30px; text-align: center; }
.p-page-title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 18px 0 14px; }

/* ---------- Forms ---------- */
.p-form-wrap { max-width: 820px; }
.p-form { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.p-form-section { display: flex; flex-direction: column; gap: 16px; }
.p-form-legend { font-size: 1.05rem; color: var(--p-accent); }
.p-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.p-field { display: flex; flex-direction: column; gap: 7px; }
.p-field > span { font-size: 0.88rem; color: var(--p-muted); font-weight: 500; }
.p-field em { color: #ff7a90; font-style: normal; }
.p-field input, .p-field select, .p-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--p-border); color: var(--p-text);
  font-family: inherit; font-size: 0.95rem; transition: border-color .2s, box-shadow .2s;
}
.p-field input::placeholder, .p-field textarea::placeholder { color: var(--p-faint); }
.p-field input:focus, .p-field select:focus, .p-field textarea:focus {
  outline: none; border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(168,255,0,.18);
}
.p-field select option { background: var(--p-bg-2); }
.p-form-actions { display: flex; flex-direction: column; gap: 10px; }
.p-form-fineprint { text-align: center; font-size: 0.82rem; }

/* ---------- Thank you ---------- */
.p-thanks { padding-top: 90px; }
.p-thanks-check {
  width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  font-size: 2.4rem; color: #001117; background: var(--p-grad);
  box-shadow: 0 18px 50px -12px rgba(168,255,0,.6); animation: pop .5s ease;
}
.p-thanks-cta { justify-content: center; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Dev leads ---------- */
.p-leads { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.p-lead { padding: 18px; border: 1px solid var(--p-border); border-radius: 14px; background: var(--p-surface-2); }
.p-lead-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.p-lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 0.88rem; margin-bottom: 8px; }
.p-empty { padding: 40px; text-align: center; }

/* ---------- Footer ---------- */
.p-footer { border-top: 1px solid var(--p-border); padding: 56px 0 30px; margin-top: 40px; background: rgba(7,11,22,0.5); }
.p-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.p-footer-brand .p-muted { margin: 14px 0; max-width: 40ch; }
.p-footer-contact { color: var(--p-accent); font-weight: 600; }
.p-footer h4 { font-size: 0.95rem; margin-bottom: 14px; }
.p-footer-grid a:not(.p-brand) { display: block; color: var(--p-muted); padding: 5px 0; transition: color .2s; }
.p-footer-grid a:not(.p-brand):hover { color: var(--p-text); }
.p-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--p-border); color: var(--p-muted); font-size: 0.85rem; flex-wrap: wrap; }
.p-footer-legal-links { display: inline-flex; gap: 8px; }
.p-footer-legal-links a { color: var(--p-muted); transition: color .2s; }
.p-footer-legal-links a:hover { color: var(--p-text); }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 84px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.flash { padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; font-weight: 500; background: var(--p-surface); border: 1px solid var(--p-border); backdrop-filter: blur(12px); }
.flash-error { border-color: rgba(255,122,144,.5); color: #ffb3c0; }
.flash-success { border-color: rgba(168,255,0,.5); color: #9bf0e2; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .p-hero-inner { grid-template-columns: 1fr; }
  .p-hero-visual { order: -1; min-height: 280px; max-width: 460px; }
  .p-problem-grid, .p-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .p-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .p-nav-links { display: none; }
  .p-nav-actions .p-btn { display: none; }
  .p-nav-toggle { display: flex; }
  .p-section { padding: 64px 0; }
  .p-problem-grid, .p-feature-grid, .p-showcase-grid, .p-pricing-grid, .p-form-grid, .p-lead-grid { grid-template-columns: 1fr; }
  .p-pricing-grid { max-width: 420px; margin: 0 auto; }
  .p-footer-grid { grid-template-columns: 1fr; }
  .p-cta-band { flex-direction: column; align-items: flex-start; }
  .flash-stack { left: 16px; right: 16px; top: 80px; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.p-legal-hero { padding-bottom: 10px; }
.p-legal-effective { color: var(--p-muted); font-size: .95rem; margin: 0; }
.p-legal-section { padding-top: 26px; }
.p-legal-wrap { max-width: 860px; }
.p-legal { padding: 40px clamp(22px, 4vw, 52px); }
.p-legal > p:first-child { margin-top: 0; }
.p-legal p { color: var(--p-muted); margin: 0 0 16px; }
.p-legal h2 {
  font-size: 1.35rem;
  margin: 38px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--p-border);
  color: var(--p-text);
}
.p-legal h3 {
  font-size: 1.05rem;
  color: var(--p-accent);
  margin: 22px 0 8px;
}
.p-legal ul { margin: 0 0 18px; padding-left: 22px; color: var(--p-muted); }
.p-legal li { margin: 0 0 7px; }
.p-legal a { color: var(--p-accent); text-decoration: underline; text-underline-offset: 2px; }
.p-legal a:hover { color: var(--p-primary-2); }
.p-legal-crosslink {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--p-border);
}

@media (prefers-reduced-motion: reduce) {
  *, [data-reveal] { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
