:root {
  --bg: #0b0f17;
  --bg-alt: #101623;
  --surface: #161d2b;
  --surface-border: #232c40;
  --text: #e7ebf3;
  --text-dim: #a3adc2;
  --accent: #3ddc84;
  --accent-dark: #22a35e;
  --gold: #f2b632;
  --radius: 14px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; text-align: center; margin-bottom: 0.3em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--text-dim); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 760px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(11, 15, 23, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}
.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #06210f; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { color: var(--text); border-color: var(--surface-border); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse at top, var(--bg-alt), var(--bg) 70%);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-text { flex: 1 1 420px; }
.hero-lead { max-width: 560px; margin: 0 0 1em; font-size: 1.1rem; }
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}
.hero-small { font-size: 0.8rem; color: var(--text-dim); max-width: 500px; }

.hero-visual {
  flex: 1 1 380px;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.hero-scene { width: 100%; height: auto; overflow: visible; display: block; border-radius: 10px; }

.pitch-line { stroke: rgba(255, 255, 255, 0.25); stroke-width: 2; }
.ground-shadow { fill: rgba(0, 0, 0, 0.3); }
.goal-post { stroke: url(#postGradient); stroke-width: 5; stroke-linecap: round; fill: none; }
.net-line { stroke: rgba(238, 242, 248, 0.4); stroke-width: 1; }

.player-hair { fill: #3a2a1e; }
.player-skin { fill: #e8b382; }
.player-jersey { stroke: var(--accent); stroke-width: 13; stroke-linecap: round; }
.player-shorts { stroke: #1c2333; stroke-width: 13; stroke-linecap: round; }
.player-skin-limb { stroke: #e8b382; stroke-width: 10; stroke-linecap: round; }
.player-boot { fill: var(--gold); }

.ball-base { fill: #f5f7fb; stroke: #1c2333; stroke-width: 1; }
.ball-center { fill: #1c2333; }
.ball-seam-line { stroke: #1c2333; stroke-width: 1.2; stroke-linecap: round; }
.ball-ghost { fill: #f5f7fb; }

.impact-flash {
  stroke: #ffe9a8;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 435px 150px;
  animation: impact-pulse 3.4s ease-in-out infinite;
}

.kicking-leg {
  transform-box: view-box;
  transform-origin: 118px 192px;
  animation: kick-swing 3.4s ease-in-out infinite;
}

.ball-anim {
  transform-box: view-box;
  transform-origin: 198px 222px;
  animation: ball-flight 3.4s ease-in-out infinite;
}

.ball-trail { opacity: 0.3; }
.ball-trail-1 { animation-delay: -0.07s; opacity: 0.28; }
.ball-trail-2 { animation-delay: -0.14s; opacity: 0.14; }

.net {
  transform-box: view-box;
  transform-origin: 435px 150px;
  animation: net-ripple 3.4s ease-in-out infinite;
}

@keyframes kick-swing {
  0%   { transform: rotate(-18deg); }
  8%   { transform: rotate(48deg); }
  16%  { transform: rotate(10deg); }
  100% { transform: rotate(-18deg); }
}

@keyframes ball-flight {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  8%   { transform: translate(6px, -4px) rotate(40deg) scale(1); opacity: 1; }
  45%  { transform: translate(140px, -70px) rotate(320deg) scale(1.05); opacity: 1; }
  72%  { transform: translate(220px, -18px) rotate(560deg) scale(0.9); opacity: 1; }
  80%  { transform: translate(238px, 4px) rotate(600deg) scale(0.82); opacity: 1; }
  84%  { transform: translate(240px, 8px) scale(0.78); opacity: 0; }
  100% { transform: translate(240px, 8px) scale(0.78); opacity: 0; }
}

@keyframes net-ripple {
  0%, 78% { transform: scale(1, 1); }
  82%     { transform: scale(1.04, 0.96); }
  88%     { transform: scale(0.98, 1.03); }
  94%     { transform: scale(1.01, 0.99); }
  100%    { transform: scale(1, 1); }
}

@keyframes impact-pulse {
  0%, 77%  { opacity: 0; transform: scale(0.6); }
  80%      { opacity: 1; transform: scale(1.1); }
  88%      { opacity: 0; transform: scale(1.4); }
  100%     { opacity: 0; transform: scale(0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .kicking-leg, .ball-anim, .net, .impact-flash {
    animation: none;
  }
}

@media (max-width: 860px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-lead { margin: 0 auto 1em; }
  .hero-actions { justify-content: center; }
  .hero-small { margin: 0 auto; }
  .hero-visual { max-width: 380px; }
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.callout {
  font-weight: 600;
  color: var(--text);
}
.disclaimer-inline {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

/* Pricing */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  background: var(--accent);
  color: #06210f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.plan-name { margin-bottom: 0.2em; }
.plan-price { font-size: 1.1rem; color: var(--text); margin-bottom: 0.5em; }
.plan-price-amount { font-size: 2rem; font-weight: 700; }
.plan-subtitle { font-size: 0.9rem; }
.plan-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}
.plan-bullets li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--surface-border);
  font-size: 0.92rem;
  color: var(--text-dim);
}
.plan-bullets li:first-child { border-top: none; }
.plan-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-dim);
}
.plan-cta { text-align: center; margin-top: auto; }

/* Contests */
.contests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.contest-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.contest-card h4 { margin-bottom: 0.4em; color: var(--gold); }
.contest-card p { margin: 0; font-size: 0.9rem; }

ul { color: var(--text-dim); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
}
.disclaimer { max-width: 600px; margin: 0 auto 0.75em; }
.footer-meta { color: var(--text-dim); margin: 0; }

/* Forms (login/register, reused later) */
.form-card {
  max-width: 420px;
  margin: 4rem auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-card h1 { font-size: 1.6rem; text-align: center; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text-dim); }
.form-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}
.form-error {
  background: #3a1420;
  border: 1px solid #7a2c3d;
  color: #ff9fb1;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  h1 { font-size: 1.9rem; }
}
