:root {
  --bg: #0b0d11;
  --surface: #141820;
  --surface-elevated: #1a2030;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #2ecc71;
  --primary-light: #5be599;
  --primary-dark: #1f9d55;
  --field: #065f46;
  --field-dark: #14532d;
  --gk: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1140px;
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow-glow: 0 0 80px rgba(46, 204, 113, 0.18);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
}

.bg-glow--hero {
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.22), transparent 70%);
  animation: glow-pulse 8s ease-in-out infinite;
}

.bg-glow--cta {
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(46, 204, 113, 0.15), transparent 70%);
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.header-nav {
  display: none;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--text);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 12px 40px rgba(46, 204, 113, 0.4);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Typography */
.eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  margin: 0.75rem 0 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 2.5rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

/* Formation picker */
.formation-picker {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.formation-picker::-webkit-scrollbar {
  display: none;
}

.formation-chip {
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.formation-chip:hover {
  color: var(--text);
  border-color: rgba(46, 204, 113, 0.3);
}

.formation-chip.is-active {
  color: #0f172a;
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(46, 204, 113, 0.35);
}

/* 3D Pitch */
.hero-visual {
  position: relative;
}

.pitch-scene {
  perspective: 900px;
  perspective-origin: 50% 40%;
}

.pitch-scene-inner {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.pitch-3d {
  transform: rotateX(52deg) rotateZ(0deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pitch-surface {
  position: relative;
  aspect-ratio: 68 / 105;
  max-width: 340px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--field) 0%, var(--field-dark) 100%);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(46, 204, 113, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.pitch-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pitch-line--center {
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.pitch-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-box {
  position: absolute;
  left: 22%;
  right: 22%;
  height: 16%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.pitch-box--top {
  top: 0;
  border-top: none;
}

.pitch-box--bottom {
  bottom: 0;
  border-bottom: none;
}

.pitch-players {
  position: absolute;
  inset: 0;
}

.player-token {
  position: absolute;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.15);
  transition:
    left 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    transform 0.3s ease;
  z-index: 2;
}

.player-token--gk {
  background: var(--gk);
  color: #0f172a;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  font-size: 0.6rem;
}

.player-token:hover {
  transform: scale(1.15);
  z-index: 3;
}

.hero-visual-caption {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual-caption span {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 959px) {
  .pitch-3d {
    transform: rotateX(42deg);
  }

  .pitch-surface {
    max-width: 280px;
  }
}

/* Trust bar */
.trust {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-block: 1px solid var(--glass-border);
  background: rgba(20, 24, 32, 0.5);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(46, 204, 113, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 204, 113, 0.25);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(46, 204, 113, 0.08);
}

.feature-card.is-highlighted {
  border-color: rgba(46, 204, 113, 0.4);
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  padding: 10px;
  border-radius: 12px;
  background: rgba(46, 204, 113, 0.12);
  color: var(--primary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Showcase */
.showcase {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 32, 0.4), transparent);
}

.showcase-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.showcase-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition);
}

.showcase-tab:hover {
  color: var(--text);
}

.showcase-tab.is-active {
  color: #0f172a;
  background: var(--primary);
  border-color: transparent;
}

.showcase-device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 420px;
}

.showcase-device > .phone-frame {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  max-width: 260px;
}

.showcase-device > .phone-frame .phone-screen img {
  width: auto;
  height: min(480px, 62vh);
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1080 / 2424;
}

.phone-frame {
  position: relative;
  width: min(240px, 62vw);
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2a2f3a, #1a1f28);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(46, 204, 113, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-frame:hover {
  transform: perspective(1000px) rotateY(-2deg);
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  line-height: 0;
  background: #0b0d11;
  display: flex;
  justify-content: center;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  background: #0b0d11;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 2424;
  object-fit: contain;
}

.showcase-caption {
  margin-top: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.showcase-fan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phone-frame--small {
  position: absolute;
  width: 130px;
  padding: 6px;
  border-radius: 24px;
  opacity: 0.5;
}

.phone-frame--small .phone-screen {
  border-radius: 18px;
}

.phone-frame--small .phone-notch {
  display: none;
}

.phone-frame--left {
  left: -10px;
  top: 28%;
  transform: perspective(800px) rotateY(18deg) scale(0.9);
}

.phone-frame--right {
  right: -10px;
  top: 32%;
  transform: perspective(800px) rotateY(-18deg) scale(0.9);
}

@media (max-width: 959px) {
  .showcase-fan {
    display: none;
  }

  .phone-frame {
    transform: none;
  }

  .phone-frame:hover {
    transform: none;
  }
}

/* Steps */
.steps {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.steps-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.step-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.faq-list {
  max-width: 720px;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 0.75rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(46, 204, 113, 0.25);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--muted);
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(46, 204, 113, 0.08), rgba(20, 24, 32, 0.6));
  border: 1px solid rgba(46, 204, 113, 0.2);
  box-shadow: var(--shadow-glow);
}

.cta-lead {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.cta-pitch {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 180px;
  opacity: 0.15;
  transform: rotate(15deg);
  pointer-events: none;
}

.cta-pitch-surface {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--field), var(--field-dark));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.8rem;
  color: #a8b8c8;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .pitch-scene-inner {
    transform: none !important;
  }

  .player-token {
    transition: none;
  }
}
