/* ============ Hero ============ */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero-live { height: 30px; padding: 0 12px; }
.hero-title { margin-top: 22px; display: grid; }
.hero-title > span { display: block; animation: heroLine .9s var(--ease) both; }
.hero-title > span:nth-child(2) { animation-delay: .12s; }
.hero-title > span:nth-child(3) { animation-delay: .24s; color: var(--turf); }
@keyframes heroLine { from { opacity: 0; transform: translateY(30px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -10% 0); } }
.hero .lead { margin-top: 22px; }
.hero-ctas { margin-top: 30px; }
.hero-proof { margin-top: 34px; --gap: 14px; }
.hero-proof > div { display: grid; gap: 2px; }

/* 3D pitch stage */
.hero-stage { position: relative; height: clamp(380px, 46vw, 560px); perspective: 1400px; --rx: 0deg; --ry: 0deg; --mx: 0; --my: 0; }
.pitch3d {
  position: absolute; inset-inline-start: 6%; inset-inline-end: 6%; top: 18%; bottom: 14%; border-radius: 18px; transform-style: preserve-3d;
  transform: rotateX(calc(52deg + var(--rx))) rotateZ(calc(-24deg + var(--ry))) translateZ(0);
  transition: transform 900ms var(--ease);
  box-shadow: 0 60px 80px -30px rgba(10,61,45,.55), 0 0 0 10px #0d5a40, 0 0 0 11px rgba(255,255,255,.4);
  background: #0e7a52; animation: pitchIn 1.4s var(--ease) both;
}
@keyframes pitchIn { from { opacity: 0; transform: rotateX(70deg) rotateZ(-40deg) translateY(60px) scale(.9); } }
.pitch3d-grass { position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, #11885b 0 8.33%, #0f7c53 8.33% 16.66%); }
.pitch3d-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch3d-glow { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 70% at calc(50% + var(--mx) * 40%) calc(40% + var(--my) * 40%), rgba(255,255,255,.28), transparent 70%); pointer-events: none; }
.pdot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 6px 8px rgba(0,0,0,.3); transform: translateZ(8px); animation: drift 6s ease-in-out infinite alternate; }
.pdot.is-away { background: #ffd23f; }
.pdot.is-open { background: transparent; box-shadow: 0 0 0 2px var(--blaze); animation: openPulse 1.6s infinite; }
.pdot.is-ball { width: 9px; height: 9px; margin: -4px 0 0 -4px; background: #fff; box-shadow: 0 0 0 2px #0d1411; animation: ball 5s ease-in-out infinite; }
.pdot:nth-child(odd) { animation-duration: 7s; animation-delay: -2s; }
@keyframes drift { to { translate: 10px -6px; } }
@keyframes openPulse { 0%,100% { box-shadow: 0 0 0 2px var(--blaze), 0 0 0 0 rgba(255,91,20,.6); } 50% { box-shadow: 0 0 0 2px var(--blaze), 0 0 0 10px rgba(255,91,20,0); } }
@keyframes ball { 0% { translate: 0 0; } 30% { translate: -60px 30px; } 60% { translate: 40px -40px; } 100% { translate: 0 0; } }

.float-card {
  position: absolute; z-index: 2; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: var(--r-md);
  box-shadow: var(--shadow-3); padding: 12px; font-size: var(--fs-sm); border: 1px solid rgba(255,255,255,.8);
  translate: calc(var(--mx) * var(--depth, 14px)) calc(var(--my) * var(--depth, 14px)); transition: translate 600ms var(--ease);
  animation: floatIn .9s var(--ease) both, bob 6s ease-in-out infinite alternate;
}
.float-card b { display: block; font-weight: 700; }
.float-card span { color: var(--ink-3); font-size: var(--fs-xs); display: block; }
.float-card .spots { display: flex; }
.float-card .badge { display: inline-flex; color: var(--blaze-2); }
.float-card .badge .live-dot { display: inline-block; }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px) scale(.95); } }
@keyframes bob { to { transform: translateY(-8px); } }
.fc-pitch { top: 4%; inset-inline-start: 0; display: flex; gap: 10px; align-items: center; width: 290px; --depth: 22px; animation-delay: .5s, 0s; }
.fc-pitch img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.fc-pitch > div { flex: 1; min-width: 0; }
.fc-price { font-weight: 750 !important; color: var(--ink) !important; font-size: var(--fs-sm) !important; white-space: nowrap; }
.fc-match { inset-inline-end: 0; top: 34%; width: 250px; display: grid; gap: 8px; --depth: 30px; animation-delay: .7s, -2s; }
.fc-fantasy { inset-inline-start: 4%; bottom: 4%; background: var(--ink-bg); color: #fff; border-color: transparent; --depth: 18px; animation-delay: .9s, -4s; }
.fc-fantasy span.xs { color: rgba(255,255,255,.65); }
.fc-fantasy .num { color: #fff !important; font-size: 1.35rem !important; font-weight: 800; font-variation-settings: "wdth" 118; }
.fc-product { inset-inline-end: 6%; bottom: 0; display: flex; gap: 12px; align-items: center; min-width: 210px; --depth: 26px; animation-delay: 1.1s, -1s; }
.fc-product > div { display: grid; gap: 1px; }
.fc-product img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.fc-product .price { color: var(--ink) !important; font-size: var(--fs-sm) !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: 420px; margin-inline: -8px; }
}
@media (max-width: 560px) {
  .hero-stage { height: 360px; }
  .fc-pitch { width: 240px; }
  .fc-match { width: 200px; top: 38%; }
  .fc-product { display: none; }
  .pitch3d { inset-inline-start: 2%; inset-inline-end: 2%; }
}

/* ============ Service tiles ============ */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service-tile { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.service-tile:hover .media img { transform: scale(1.05); }
.service-media { aspect-ratio: 16 / 10; }
.service-body { padding: 18px 20px 20px; display: grid; gap: 8px; position: relative; flex: 1; align-content: start; }
.service-body .link { margin-top: 6px; color: var(--ink); }
.service-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--ink-bg); color: #fff; display: grid; place-items: center; flex: none; }
.service-tile .service-ico { position: absolute; top: -21px; inset-inline-end: 18px; box-shadow: 0 0 0 4px var(--surface); }
.service-tile:hover .service-ico { background: var(--blaze); }
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .service-body { padding: 14px; }
  .service-body p { display: none; }
  .service-body .h3 { font-size: 1rem; }
  .service-body .link { font-size: var(--fs-xs); }
  .service-tile .service-ico { width: 36px; height: 36px; top: -18px; inset-inline-end: 12px; }
}

/* Next up */
.next-up { display: flex; align-items: center; gap: 18px; padding: 16px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line-2); flex-wrap: wrap; margin-top: 8px; }
.next-up-media { width: 72px; height: 72px; border-radius: var(--r-md); flex: none; }

/* Players band */
.players-band { background: var(--surface-3); }
.flow-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); width: fit-content; max-width: 100%; }
.flow-strip.compact { margin-bottom: 24px; border-radius: var(--r-md); }
.flow-step { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.flow-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink-bg); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.flow-step:last-child .flow-n { background: var(--blaze); }
.flow-arrow { color: var(--ink-3); display: inline-flex; }
@media (max-width: 640px) { .flow-strip { border-radius: var(--r-md); } .flow-arrow { display: none; } .flow-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .match-grid { grid-template-columns: minmax(0, 1fr); } }

/* Fantasy band */
.fantasy-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: radial-gradient(120% 120% at 0% 0%, #0f5c41 0%, var(--turf-deep) 45%, #06251b 100%); color: #fff; position: relative; overflow: hidden; }
.fantasy-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 60px, transparent 60px 120px); pointer-events: none; }
.fantasy-band > * { position: relative; z-index: 1; }
.fb-side { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 20px; }
.fb-players { margin-top: 10px; }
.fb-players li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.fb-players b { display: block; font-size: var(--fs-sm); }
.fb-players .xs { color: rgba(255,255,255,.6); }
.fb-form { font-weight: 800; font-size: 1.1rem; color: #b9f5d6; }
.fb-leagues { display: grid; gap: 8px; margin-top: 16px; }
.fb-league { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); transition: background var(--t-fast); }
.fb-league:hover { background: rgba(255,255,255,.14); }
.fb-league b { display: block; font-size: var(--fs-sm); }
.fb-league .xs { color: rgba(255,255,255,.6); }
.fb-prize { font-weight: 800; color: #ffd27a; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .fantasy-band { grid-template-columns: minmax(0, 1fr); } }

/* Promos */
.promo-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 460px; }
.promo { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; min-height: 200px; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,15,10,.82)); z-index: 1; }
.promo:hover img { transform: scale(1.05); }
.promo > div { position: relative; z-index: 2; padding: clamp(18px, 3vw, 30px); display: grid; gap: 10px; justify-items: start; max-width: 40ch; }
.promo-a { grid-row: span 2; }
@media (max-width: 760px) { .promo-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .promo-a { grid-row: auto; min-height: 320px; } }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-strip > div { padding: 28px 20px; display: grid; gap: 4px; }
.stats-strip > div + div { border-inline-start: 1px solid var(--line); }
.stats-strip b { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -0.03em; line-height: 1; }
.stats-strip span { color: var(--ink-3); font-size: var(--fs-sm); }
@media (max-width: 760px) { .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-strip > div:nth-child(3) { border-inline-start: 0; } .stats-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Mobile: keep the 3D pitch and floating cards inside the screen (no sideways scroll) */
.hero-stage { overflow: clip; overflow-clip-margin: 24px; }
@media (max-width: 980px) { .hero-stage { margin-inline: 0; overflow: hidden; border-radius: var(--r-lg); } }
@media (max-width: 560px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head > .row { flex-wrap: wrap; }
  .hero { padding-top: 16px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .fc-pitch { width: min(240px, 72%); inset-inline-start: 8px; top: 2%; }
  .fc-match { width: min(200px, 58%); inset-inline-end: 8px; }
  .fc-fantasy { inset-inline-start: 8px; bottom: 6%; }
  .pitch3d { inset-inline-start: 8%; inset-inline-end: 8%; top: 24%; bottom: 18%; }
  .ticker { border-radius: var(--r-md); }
}
/* Projected centre of the 3D pitch — the ball's first landing spot */
.pitch3d-anchor { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; transform: translateZ(0); }

/* Shortcuts to every section, under the hero */
.quick-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
.quick-nav-item { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--r-lg, 16px); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 650; text-align: center; transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); }
.quick-nav-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: transparent; }
.quick-nav-ico { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); }
.quick-nav-item:hover .quick-nav-ico { background: var(--blaze); color: #fff; }
.quick-nav-dot { position: absolute; top: 6px; inset-inline-end: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger, #E5484D); box-shadow: 0 0 0 2px var(--surface-3); }
@media (max-width: 900px) {
  .quick-nav { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .quick-nav::-webkit-scrollbar { display: none; }
  .quick-nav-item { flex: 0 0 84px; scroll-snap-align: start; padding: 10px 4px; font-size: var(--fs-xs, 12px); }
  .quick-nav-ico { width: 42px; height: 42px; }
}
