/* Layout: a night match — floodlit dark pitch hero, an LED ticker, a fork into two paths (players / owners), kick-off steps, a photo band and a final whistle CTA on mowed stripes. Tokens from the greenta design system. */
:root {
  --pitch-950: #011408; --pitch-900: #022514; --pitch-800: #06331b;
  --grass-700: #027233; --grass-500: #38bd26; --lime-400: #71e031; --lime-300: #b4f024; --chalk: #f6f6f7;
  --surface: var(--pitch-950); --surface-raised: #06291a; --surface-sunken: #000d05;
  --ink: var(--chalk); --ink-muted: #a3bfad; --accent: var(--lime-400); --line: #1d4a30;
  --day-surface: #f5f8f2; --day-raised: #ffffff; --day-ink: #04170c; --day-muted: #46604f; --day-line: #cfdcc8;
  --font: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-24: 96px;
  --radius-sm: 10px; --radius-md: 18px; --radius-lg: 32px; --radius-pill: 999px;
  --shadow-raise: 0 16px 40px rgba(0,0,0,.45); --shadow-glow: 0 10px 30px rgba(113,224,49,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main, footer { overflow-x: clip; }
body { direction: rtl; margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 28px; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime-300); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--space-6); }
@media (max-width: 600px) { .wrap { padding-inline: var(--space-4); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 14px 26px; border-radius: var(--radius-pill); font: 700 16px/22px var(--font); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(-4px); }
.btn-primary { background: var(--lime-400); color: var(--pitch-900); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); background: var(--lime-300); }
.btn-secondary { background: var(--chalk); color: var(--pitch-900); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(246,246,247,.18); }
.btn-dark { background: var(--pitch-900); color: var(--chalk); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(2,37,20,.3); }
.btn-lg { padding: 18px 32px; font-size: 18px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(1,20,8,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand b { font-size: 22px; font-weight: 900; letter-spacing: -.3px; }
.brand span { display: block; font: 700 12px/14px var(--font); color: var(--ink-muted); letter-spacing: .5px; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a.link { text-decoration: none; color: var(--ink-muted); font-weight: 700; font-size: 15px; }
.nav a.link:hover { color: var(--ink); }
.nav .btn { padding: 10px 20px; font-size: 15px; }
@media (max-width: 760px) { .nav a.link { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: var(--space-12) var(--space-24); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background: radial-gradient(60% 50% at 20% 10%, rgba(113,224,49,.18), transparent 60%), radial-gradient(40% 40% at 90% 0%, rgba(246,246,247,.10), transparent 60%); }
.floodlight { position: absolute; top: -40px; width: 2px; height: 0; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-12); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.kicker { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 14px 6px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-muted); font: 700 13px/20px var(--font); background: var(--surface-raised); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-400); box-shadow: 0 0 0 0 rgba(113,224,49,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(113,224,49,0); } 100% { box-shadow: 0 0 0 0 rgba(113,224,49,0); } }
.hero h1 { margin-top: var(--space-6); font-size: clamp(42px, 7vw, 76px); line-height: 1.18; font-weight: 900; letter-spacing: -1px; }
.hero h1 .hl { color: var(--accent); position: relative; display: inline-block; }
.hero h1 .hl svg { position: absolute; inset-inline: 0; bottom: -6px; width: 100%; height: 16px; }
.hero h1 .hl path { stroke: var(--lime-400); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 0; animation: draw 1.4s .4s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 400; } }
.hero .lead { margin-top: var(--space-6); font-size: 20px; line-height: 36px; font-weight: 500; color: var(--ink-muted); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.cta-note { margin-top: var(--space-4); font: 500 13px/20px var(--font); color: var(--ink-muted); }

/* Pitch illustration */
.stage { position: relative; aspect-ratio: 1 / 0.92; max-width: 100%; perspective: 1100px; }
.pitch { position: absolute; inset: 14% 4% 6%; border-radius: var(--radius-lg); transform: rotateX(52deg) rotateZ(-8deg); transform-origin: 50% 70%;
  background: repeating-linear-gradient(90deg, var(--grass-500) 0 12.5%, #2fa521 12.5% 25%); box-shadow: 0 60px 80px rgba(0,0,0,.55), inset 0 0 0 10px rgba(1,20,8,.25); overflow: hidden; }
.pitch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,20,8,.0), rgba(1,20,8,.35)); animation: mow 6s linear infinite; background-size: 100% 200%; }
@keyframes mow { from { background-position: 0 0; } to { background-position: 0 -200%; } }
.pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch svg * { fill: none; stroke: rgba(246,246,247,.9); stroke-width: 3; }
.ball-wrap { position: absolute; left: 50%; top: 36%; width: 92px; translate: -50% 0; animation: bounce 1.6s cubic-bezier(.3,0,.7,1) infinite; z-index: 2; }
.ball-wrap svg { width: 100%; height: auto; animation: spin 3.2s linear infinite; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
@keyframes bounce { 0%,100% { transform: translateY(-70px); animation-timing-function: cubic-bezier(.4,0,1,1);} 50% { transform: translateY(40px); animation-timing-function: cubic-bezier(0,0,.6,1);} }
@keyframes spin { to { transform: rotate(-360deg); } }
.ball-shadow { position: absolute; left: 50%; top: 66%; width: 90px; height: 18px; translate: -50% 0; border-radius: 50%; background: rgba(1,20,8,.55); filter: blur(4px); animation: shadow 1.6s cubic-bezier(.3,0,.7,1) infinite; z-index: 1; }
@keyframes shadow { 0%,100% { transform: scale(.55); opacity: .5; } 50% { transform: scale(1.05); opacity: .9; } }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: var(--space-3); padding: 12px 16px; border-radius: var(--radius-md); background: rgba(6,41,26,.92); border: 1px solid var(--line); box-shadow: var(--shadow-raise); backdrop-filter: blur(6px); animation: float 5s ease-in-out infinite; }
.chip .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lime-400); color: var(--pitch-900); flex: none; }
.chip .ico.alt { background: var(--chalk); }
.chip .ico svg { width: 20px; height: 20px; }
.chip b { display: block; font: 800 14px/20px var(--font); }
.chip small { display: block; font: 500 12px/18px var(--font); color: var(--ink-muted); }
.chip.c1 { top: 4%; inset-inline-start: 0; }
.chip.c2 { bottom: 6%; inset-inline-end: 0; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .chip { padding: 10px 12px; } .chip.c1 { top: 0; } .ball-wrap { width: 70px; } }

/* LED ticker */
.ticker { background: var(--lime-400); color: var(--pitch-900); overflow: hidden; border-block: 4px solid var(--pitch-900); transform: rotate(-1.2deg); margin-block: -18px 0; position: relative; z-index: 4; }
.ticker-track { display: flex; width: max-content; animation: tick 28s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: var(--space-6); padding: 14px var(--space-6) 14px 0; font: 900 20px/28px var(--font); white-space: nowrap; }
.ticker span::after { content: ""; width: 10px; height: 10px; background: var(--pitch-900); border-radius: 50%; }
@keyframes tick { to { transform: translateX(50%); } }

/* Sections */
section { padding-block: var(--space-24); }
@media (max-width: 600px) { section { padding-block: var(--space-12); } }
.eyebrow { font: 800 14px/20px var(--font); color: var(--accent); letter-spacing: .5px; }
.sec-title { margin-top: var(--space-2); font-size: clamp(30px, 4.5vw, 46px); line-height: 1.3; font-weight: 900; }
.sec-lead { margin-top: var(--space-4); color: var(--ink-muted); font-size: 18px; line-height: 32px; max-width: 40em; }

/* Fork: two paths */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-12); }
@media (max-width: 860px) { .fork { grid-template-columns: 1fr; } }
.path { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; transition: transform .3s ease; }
.path:hover { transform: translateY(-6px); }
.path.players { background: var(--surface-raised); border: 1px solid var(--line); }
.path.owners { background: var(--day-surface); color: var(--day-ink); }
.path .tag { align-self: flex-start; padding: 4px 14px; border-radius: var(--radius-pill); font: 800 13px/20px var(--font); }
.players .tag { background: var(--lime-400); color: var(--pitch-900); }
.owners .tag { background: var(--pitch-900); color: var(--chalk); }
.path h3 { font-size: 30px; line-height: 42px; font-weight: 900; }
.path .desc { font-size: 17px; line-height: 30px; }
.players .desc { color: var(--ink-muted); }
.owners .desc { color: var(--day-muted); }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.feats li { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 700; }
.feats li svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.players .feats svg { color: var(--lime-400); }
.owners .feats svg { color: var(--grass-700); }
.path .btn { align-self: flex-start; margin-top: auto; }
.path .deco { position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; opacity: .9; pointer-events: none; }
.players .deco { stroke: var(--line); }
.owners .deco { stroke: var(--day-line); }
.path .deco { fill: none; stroke-width: 3; }
.path > *:not(.deco) { position: relative; }

/* Kick-off steps */
.steps-sec { background: var(--surface-sunken); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-12); counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; gap: var(--space-4); align-items: flex-start; min-width: 0; }
.shirt { position: relative; width: 72px; flex: none; color: var(--pitch-900); }
.shirt svg { width: 72px; height: 72px; }
.shirt svg { fill: var(--lime-400); }
.shirt b { position: absolute; inset: 22px 0 0; text-align: center; font: 900 26px/30px var(--font); }
.step h4 { margin: 0; font-size: 20px; line-height: 30px; font-weight: 800; }
.step p { margin-top: var(--space-1); color: var(--ink-muted); }
.step .min { font: 800 12px/18px var(--font); color: var(--accent); letter-spacing: .5px; }

/* Photo band */
.photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); margin-top: var(--space-12); }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr; } }
.photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; background: var(--surface-raised); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .8s ease; }
.photo:hover img { transform: scale(1.1); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,20,8,.9) 0%, rgba(1,20,8,.15) 55%, transparent); }
.photo figcaption { position: absolute; z-index: 1; inset-inline: var(--space-6); bottom: var(--space-6); }
.photo figcaption b { display: block; font-size: 24px; line-height: 34px; font-weight: 900; }
.photo figcaption span { color: var(--ink-muted); font-weight: 500; }

/* Final CTA */
.final { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: var(--space-24) var(--space-8); text-align: center;
  background: repeating-linear-gradient(90deg, var(--grass-700) 0 64px, #02662d 64px 128px); }
.final .lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.final .lines * { fill: none; stroke: rgba(246,246,247,.35); stroke-width: 3; }
.final > *:not(.lines) { position: relative; }
.final h2 { font-size: clamp(36px, 6vw, 64px); line-height: 1.25; font-weight: 900; }
.final p { margin: var(--space-4) auto 0; max-width: 32em; font-size: 19px; line-height: 32px; color: #e4f3dc; }
.final .ctas { justify-content: center; }
@media (max-width: 600px) { .final { padding: var(--space-12) var(--space-6); } }

/* Footer */
footer { padding-block: var(--space-12); border-top: 1px solid var(--line); margin-top: var(--space-24); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
footer img { width: 88px; height: 88px; border-radius: 20px; }
footer .flinks { display: flex; flex-wrap: wrap; gap: var(--space-6); }
footer .flinks a { color: var(--ink-muted); text-decoration: none; font-weight: 700; }
footer .flinks a:hover { color: var(--ink); }
footer small { color: var(--ink-muted); font-size: 13px; }

/* Reveal: visible at rest, small lift when entering */
.reveal.in { animation: rise .7s ease-out both; }
@keyframes rise { from { transform: translateY(24px); opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
