:root {
  --pitch-green: #2d7a3a;
  --pitch-green-dark: #1e5228;
  --pitch-green-light: #3d9b4a;
  --accent: #4caf50;
  --accent-amber: #f59e0b;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --bg-dark: #0f2017;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pitch-green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ── Navigation ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo .pitch-icon {
  width: 32px;
  height: 32px;
  background: var(--pitch-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo .pitch-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 1.5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--pitch-green);
  text-decoration: none;
}

/* ── Hero ── */

.hero {
  background: linear-gradient(160deg, var(--pitch-green-dark) 0%, var(--pitch-green) 60%, var(--pitch-green-light) 100%);
  color: white;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 60px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--pitch-green-dark);
}

.btn-primary:hover {
  background: #f0fdf4;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  text-decoration: none;
}

.pitch-preview {
  margin-top: 64px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.pitch-mockup {
  width: min(340px, 90vw);
  aspect-ratio: 68 / 105;
  background: var(--pitch-green-dark);
  border-radius: 16px;
  border: 3px solid rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* Pitch lines drawn in CSS */
.pitch-markings::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 8%;
  bottom: 8%;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 4px;
}

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

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

.pitch-penalty-top {
  position: absolute;
  left: 27%;
  right: 27%;
  top: 8%;
  height: 18%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top: none;
}

.pitch-penalty-bottom {
  position: absolute;
  left: 27%;
  right: 27%;
  bottom: 8%;
  height: 18%;
  border: 2px solid rgba(255,255,255,0.35);
  border-bottom: none;
}

/* Player slot dots on mockup */
.slot-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: var(--pitch-green-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slot-dot.gk { left: 50%; top: 88%; background: var(--accent-amber); color: white; }
.slot-dot.lb { left: 20%; top: 75%; }
.slot-dot.lcb { left: 35%; top: 77%; }
.slot-dot.rcb { left: 65%; top: 77%; }
.slot-dot.rb { left: 80%; top: 75%; }
.slot-dot.lm { left: 20%; top: 57%; }
.slot-dot.lcm { left: 38%; top: 55%; }
.slot-dot.rcm { left: 62%; top: 55%; }
.slot-dot.rm { left: 80%; top: 57%; }
.slot-dot.ls { left: 35%; top: 32%; }
.slot-dot.rs { left: 65%; top: 32%; }

/* ── Features ── */

.features {
  background: var(--bg);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pitch-green);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
}

.section-header {
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pitch-green), var(--pitch-green-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ── Coming Soon (App Store) ── */

.download {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 720px) {
  .download-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.store-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1a1a2e;
  color: white;
  border-radius: var(--radius);
  padding: 14px 20px;
  max-width: 260px;
  opacity: 0.7;
  position: relative;
  cursor: default;
  user-select: none;
}

.store-badge-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
  flex-shrink: 0;
}

.store-badge-text small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-badge-text strong {
  display: block;
  font-size: 1rem;
}

.soon-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-amber);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 100px;
}

/* Beta form */
.beta-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.beta-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.beta-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.beta-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.beta-form input[type="email"]:focus {
  border-color: var(--pitch-green);
}

.beta-form .btn-green {
  background: var(--pitch-green);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.beta-form .btn-green:hover {
  background: var(--pitch-green-dark);
}

.beta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Web Coming Soon ── */

.web-soon {
  background: var(--bg-dark);
  color: white;
  text-align: center;
}

.web-soon .section-label {
  color: var(--accent);
}

.web-soon .section-title {
  color: white;
}

.web-soon .section-subtitle {
  color: rgba(255,255,255,0.65);
  margin: 0 auto;
}

.web-soon-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

/* ── Footer ── */

footer {
  background: #0d1b12;
  color: rgba(255,255,255,0.55);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.875rem;
}

/* ── Privacy page ── */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.prose h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.prose .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.prose p, .prose li {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 24px;
}

.prose a {
  color: var(--pitch-green);
}

/* ── Responsive ── */

@media (max-width: 600px) {
  section {
    padding: 56px 0;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .pitch-mockup {
    width: 240px;
  }

  .slot-dot {
    width: 20px;
    height: 20px;
    font-size: 5px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ── Success state for beta form ── */
.beta-success {
  display: none;
  text-align: center;
  padding: 16px;
  color: var(--pitch-green);
  font-weight: 600;
}
