:root {
  --pitch: #0b6e3e;
  --pitch-deep: #064a2a;
  --pitch-vivid: #10b568;
  --ink: #0a1628;
  --ink-soft: #1c2a44;
  --cream: #f5f1e6;
  --cream-warm: #efe8d4;
  --paper: #fefcf6;
  --line: rgba(10, 22, 40, 0.08);
  --line-strong: rgba(10, 22, 40, 0.18);
  --muted: #5b6678;
  --accent: #e11d48;
  --gold: #f5b800;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(90deg,
      rgba(11, 110, 62, 0.045) 0,
      rgba(11, 110, 62, 0.045) 1px,
      transparent 1px,
      transparent 96px),
    radial-gradient(1200px 600px at 50% -100px, rgba(245, 184, 0, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(11, 110, 62, 0.08), transparent 60%);
  background-attachment: fixed;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Jersey trim across top */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--ink) 0 33%,
    var(--gold) 33% 50%,
    var(--accent) 50% 67%,
    var(--pitch) 67% 100%);
  z-index: 100;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 6px; font-weight: 500; }

p { margin-bottom: 14px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pitch);
  box-shadow: 0 0 0 3px rgba(11, 110, 62, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(11, 110, 62, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(11, 110, 62, 0.05); }
}

/* Cookie banner */
.cookie-banner {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  font-size: 14px;
  position: relative;
  z-index: 50;
}
.cookie-banner a { color: var(--gold); }
.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.cookie-inner p { margin: 0; }
.cookie-banner .btn { padding: 8px 18px; font-size: 12px; }

/* Header */
.site-header {
  padding: 28px 0 12px;
  position: relative;
}
.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-logo::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 35%, transparent 36%),
    var(--ink);
  border: 1px solid var(--ink);
}
.site-logo:hover { text-decoration: none; color: var(--ink); }
.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pitch);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

/* Sections */
section { padding: 80px 0; position: relative; }
section + section { padding-top: 0; }

.section-head {
  text-align: left;
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head p {
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
}

/* Hero */
#hero {
  padding-top: 64px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.hero-pitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-pitch .pitch-circle,
.hero-pitch .pitch-line,
.hero-pitch .pitch-arc-l,
.hero-pitch .pitch-arc-r {
  position: absolute;
  border: 1.5px solid rgba(11, 110, 62, 0.35);
}
.hero-pitch .pitch-line {
  top: 50%;
  left: -2%;
  right: -2%;
  height: 0;
  border-top: 1.5px solid rgba(11, 110, 62, 0.25);
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.hero-pitch .pitch-circle {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(11, 110, 62, 0.22);
}
.hero-pitch .pitch-arc-l,
.hero-pitch .pitch-arc-r {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  top: 50%;
  border-color: rgba(11, 110, 62, 0.18);
}
.hero-pitch .pitch-arc-l { left: -160px; transform: translateY(-50%); }
.hero-pitch .pitch-arc-r { right: -160px; transform: translateY(-50%); }

.hero-content { max-width: 760px; position: relative; }
.hero-content h1 {
  font-feature-settings: "lnum";
}
.hero-content > p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  max-width: 620px;
  box-shadow: 0 16px 40px -24px rgba(10, 22, 40, 0.25);
}
.hero-stats .stat {
  flex: 1;
  min-width: 140px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 3px;
  background: var(--pitch);
}
.hero-stats .stat:nth-child(2)::before { background: var(--gold); }
.hero-stats .stat:nth-child(3)::before { background: var(--accent); }
.hero-stats .stat strong {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats .stat span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

/* About */
#about { padding-top: 40px; }
.about-content { max-width: 760px; }
.about-content p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* Catalog grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}

/* Card */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 26px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.02);
}
.card-game {
  padding-left: 36px;
  overflow: hidden;
}
.card-game::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--pitch) 0%, var(--pitch-deep) 100%);
}
.card-game.is-manager::before {
  background: linear-gradient(180deg, var(--gold) 0%, #c98c00 100%);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -28px rgba(10, 22, 40, 0.35);
  border-color: var(--line-strong);
}

.card-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'Instrument Serif', serif;
  font-size: 3.6rem;
  line-height: 1;
  color: rgba(10, 22, 40, 0.06);
  font-feature-settings: "lnum";
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.02em;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.game-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  box-shadow: 0 8px 16px -10px rgba(10, 22, 40, 0.3);
}
.game-title {
  margin: 0 0 4px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.game-dev {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  color: var(--paper);
  background: var(--pitch);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--paper);
  opacity: 0.8;
}
.badge-sport { background: var(--pitch); color: var(--paper); }
.badge-manager { background: var(--gold); color: var(--ink); }
.badge-manager::before { background: var(--ink); opacity: 0.7; }

.game-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.65;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.shots img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.shots img:hover { transform: scale(1.02); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  padding: 14px 26px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  margin-top: -2px;
  transition: transform 0.2s ease;
}
.btn:hover {
  background: var(--pitch);
  text-decoration: none;
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(11, 110, 62, 0.5);
}
.btn:hover::after { transform: translateX(4px); }
.btn-block { width: 100%; display: flex; }

.card-game .btn { background: var(--pitch); }
.card-game .btn:hover { background: var(--pitch-deep); }
.card-game.is-manager .btn { background: var(--ink); }
.card-game.is-manager .btn:hover { background: var(--gold); color: var(--ink); }
.card-game.is-manager .btn:hover::after { color: var(--ink); }

/* Form */
.form-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--paper);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--pitch) 0%, var(--gold) 50%, var(--accent) 100%);
}
.form-card h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.form-card .subtitle { color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--cream);
  color: var(--ink);
}
input::placeholder { color: rgba(91, 102, 120, 0.7); }
input:focus {
  border-color: var(--pitch);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(11, 110, 62, 0.15);
}

/* Consent */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.form-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--pitch);
  flex-shrink: 0;
  cursor: pointer;
}
.form-consent label {
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-soft);
}
.form-consent a {
  color: var(--pitch);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-card .btn-block { background: var(--pitch); }
.form-card .btn-block:hover { background: var(--pitch-deep); }

.success-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(11, 110, 62, 0.08);
  border: 1px solid rgba(11, 110, 62, 0.3);
  color: var(--pitch-deep);
  font-size: 14px;
  border-radius: 10px;
  font-weight: 500;
}
.success-msg.show { display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 48px 0 36px;
  font-size: 14px;
  margin-top: 40px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--pitch) 0 33%,
    var(--gold) 33% 67%,
    var(--accent) 67% 100%);
}
.site-footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.site-footer a {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer .container > p { margin: 6px 0; color: rgba(255,255,255,0.55); font-size: 13px; }

/* Legal pages */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: 32px; }
.legal-content h3 { margin-top: 22px; font-family: 'Instrument Serif', serif; font-size: 1.35rem; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content p { color: var(--ink-soft); }

/* Mobile */
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .hero-pitch .pitch-circle { width: 380px; height: 380px; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }
  section { padding: 56px 0; }
  #hero { padding-top: 32px; padding-bottom: 72px; }
  .hero-content > p { font-size: 17px; margin-bottom: 28px; }
  .hero-stats { flex-direction: column; }
  .hero-stats .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .hero-stats .stat:last-child { border-bottom: none; }
  .card { padding: 22px; }
  .card-game { padding-left: 26px; }
  .card-num { font-size: 2.8rem; top: 14px; right: 16px; }
  .shots img { height: 130px; }
  .form-card { padding: 28px 22px; }
  .nav-links { gap: 18px; font-size: 12px; }
  .site-logo { font-size: 1.85rem; }
  .game-title { font-size: 1.25rem; }
  .game-icon { width: 60px; height: 60px; }
}
