:root {
  --bg: #07080f;
  --bg-soft: #0e1020;
  --surface: rgba(22, 26, 48, 0.85);
  --surface-solid: #161a30;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f4ff;
  --muted: #9aa3c7;
  --lime: #c8ff47;
  --lime-dim: #9fd624;
  --coral: #ff6b5b;
  --violet: #8b5cf6;
  --cyan: #45e3ff;
  --gold: #ffc947;
  --max: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gradient-brand: linear-gradient(
    135deg,
    var(--lime) 0%,
    var(--cyan) 45%,
    var(--violet) 100%
  );
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(
      ellipse 80% 50% at 20% -10%,
      rgba(139, 92, 246, 0.25),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 90% 10%,
      rgba(200, 255, 71, 0.12),
      transparent
    );
}

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

a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

main {
  flex: 1;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: #111;
  padding: 0.75rem 1rem;
  z-index: 9999;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  min-width: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(200, 255, 71, 0.35);
}

.nav-toggle {
  display: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #0a0a0a;
  background: transparent;
  border: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

.nav-toggle::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  background-size: 100% 100%;
  z-index: -1;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition:
    color 0.15s,
    background 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a[aria-current='page'] {
  color: #0a0a0a;
  background: var(--lime);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.15s;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  line-height: 1.25;
  flex-shrink: 0;
}

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

.btn-primary {
  color: #0a0a0a;
  background: transparent;
  box-shadow: 0 12px 32px rgba(200, 255, 71, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  background-size: 100% 100%;
  z-index: -1;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:hover::before {
  filter: brightness(1.06);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
  overflow: visible;
  padding-bottom: 0.25rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 88vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 15, 0.35) 0%, rgba(7, 8, 15, 0.92) 78%),
    linear-gradient(105deg, rgba(139, 92, 246, 0.35) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0 3.5rem;
  max-width: 680px;
  overflow: visible;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(200, 255, 71, 0.15);
  color: var(--lime);
  border: 1px solid rgba(200, 255, 71, 0.35);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.12rem;
  color: #dce2ff;
  margin-bottom: 0.75rem;
}

.hero p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  max-width: 560px;
}

/* Stats strip */
.stats-strip {
  margin-top: -2rem;
  position: relative;
  z-index: 5;
  padding-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 620px;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-sub {
  margin: 0;
  color: var(--muted);
}

.section-dark {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

/* Bento gallery */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}

.bento-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 180px;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-item:hover img {
  transform: scale(1.06);
}

.bento-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(7, 8, 15, 0.92));
  font-weight: 700;
  font-size: 0.95rem;
}

.bento-a {
  grid-column: span 7;
  grid-row: span 2;
}

.bento-b {
  grid-column: span 5;
}

.bento-c {
  grid-column: span 4;
}

.bento-d {
  grid-column: span 4;
}

.bento-e {
  grid-column: span 4;
}

/* Feature cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 71, 0.25);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(139, 92, 246, 0.2);
  color: var(--lime);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

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

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 8, 15, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lime);
  border: 1px solid var(--border);
}

.card-light {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card-light ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.card-light li {
  margin-bottom: 0.5rem;
}

.card-light li::marker {
  color: var(--lime);
  font-weight: 700;
}

/* Simulation block home */
.sim-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.sim-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-sim-visual {
  min-height: 0;
}

.canvas-shell--home {
  position: relative;
  line-height: 0;
}

.canvas-shell--home::after {
  content: none;
}

.canvas-shell--home canvas {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  cursor: pointer;
}

.home-sim-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: rgba(7, 8, 15, 0.45);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-sim-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(7, 8, 15, 0.92));
  pointer-events: none;
}

.home-sim-live {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--coral);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.home-sim-score {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--lime);
  letter-spacing: 0.06em;
}

.home-sim-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.sim-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.sim-visual .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(69, 227, 255, 0.25),
    transparent 55%
  );
  pointer-events: none;
}

.sim-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.sim-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sim-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.sim-list li::before {
  content: '✓';
  color: var(--lime);
  font-weight: 800;
}

/* Page hero inner */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
}

.content-prose {
  max-width: 760px;
}

.content-prose h3 {
  margin-top: 1.4rem;
  font-size: 1.05rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-prose h2 {
  color: var(--lime);
  margin-top: 2rem;
  font-size: 1.35rem;
}

.content-prose p,
.content-prose li {
  color: var(--muted);
}

/* Tables */
table.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface-solid);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

table.score-table th,
table.score-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

table.score-table th {
  background: rgba(139, 92, 246, 0.25);
  color: var(--text);
  font-weight: 700;
}

/* Team builder */
.team-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

.player-pool {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.player-card {
  background: var(--surface-solid);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
  font-family: inherit;
  color: inherit;
}

.player-card:hover,
.player-card.selected {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(200, 255, 71, 0.3);
  transform: translateY(-2px);
}

.player-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 0.5rem;
  border-radius: 10px;
}

.player-card .name {
  font-size: 0.82rem;
  font-weight: 700;
}

.player-card .meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.pitch {
  background:
    linear-gradient(rgba(7, 8, 15, 0.4), rgba(7, 8, 15, 0.4)),
    url('/assets/images/pitch-aerial.webp') center / cover;
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 480px;
  position: relative;
  border: 2px solid rgba(200, 255, 71, 0.25);
}

.pitch-lines {
  position: absolute;
  inset: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  pointer-events: none;
}

.pitch-slot {
  position: absolute;
  width: 68px;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 0.62rem;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.pitch-slot .dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.9);
  border: 2px solid var(--lime);
  margin: 0 auto 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.68rem;
}

.team-sidebar {
  background: var(--surface-solid);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: sticky;
  top: 5.5rem;
}

.budget-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}

.budget-bar span {
  display: block;
  height: 100%;
  background: var(--gradient-brand);
  width: 100%;
  transition: width 0.25s;
}

/* Simulation page */
.sim-page-hero .page-hero-bg img {
  object-position: center 40%;
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 1.25rem;
}

.sim-squad-label {
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.sim-after {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
}

.sim-after[hidden],
.home-sim-overlay[hidden] {
  display: none !important;
}

.sim-after .btn {
  margin-top: 0.5rem;
  width: 100%;
}

.canvas-shell canvas {
  max-width: 100%;
  display: block;
}

.canvas-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(69, 227, 255, 0.25);
  box-shadow: var(--shadow);
}

.canvas-shell::after {
  content: 'LIVE';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--coral);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  z-index: 2;
  pointer-events: none;
}

#matchCanvas {
  width: 100%;
  height: auto;
  display: block;
  background: #1a5c32;
}

.sim-panel {
  background: var(--surface-solid);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  overflow: visible;
}

.sim-panel .btn {
  max-width: 100%;
}

.sim-preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sim-preview-row img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.score-display {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.05em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sim-log {
  font-size: 0.8rem;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin-top: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
}

.sim-log p {
  margin: 0.25rem 0;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.sim-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-details {
  margin: 0;
}

.contact-details dt {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.contact-details dd {
  margin: 0 0 1.1rem;
}

.contact-details a {
  color: var(--text);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--lime);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  margin-bottom: 1rem;
  background: var(--surface-solid);
  color: var(--text);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  display: none;
  background: rgba(200, 255, 71, 0.12);
  border: 1px solid rgba(200, 255, 71, 0.35);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  color: var(--lime);
}

.form-success.visible {
  display: block;
}

/* Modal — formulario enviado */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}

.form-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-modal__box {
  width: min(100%, 420px);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.form-modal__box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: var(--lime);
}

.form-modal__box p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

.cookie-inner .btn {
  flex-shrink: 0;
}

/* App CTA */
.app-cta {
  background: var(--gradient-brand);
  background-size: 100% 100%;
  border-radius: var(--radius);
  padding: 2.5rem;
  color: #0a0a0a;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  overflow: visible;
}

.app-cta .btn-primary::before {
  background: #0a0a0a;
  opacity: 0.92;
}

.app-cta .btn-primary {
  color: var(--lime);
  box-shadow: none;
}

.app-cta .btn-primary:hover {
  color: #fff;
}

.app-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}

.app-cta p {
  margin: 0;
  opacity: 0.85;
}

.app-cta .btn-secondary {
  border-color: rgba(0, 0, 0, 0.35);
  color: #0a0a0a;
}

/* Footer */
.site-footer {
  background: #040508;
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 1.5rem;
  margin-top: auto;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-btn-phone {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
}

.footer-btn-mail {
  border: 2px solid rgba(99, 102, 241, 0.6);
  color: var(--text);
}

.footer-legal {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 920px;
  margin: 0 auto 2rem;
  text-align: center;
}

.footer-legal p {
  margin: 0 0 1rem;
}

.footer-legal a {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.age-badge {
  font-size: 2rem;
  font-weight: 900;
  color: var(--coral);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  flex: 1;
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.footer-social a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  color: var(--text);
  padding: 1rem;
  z-index: 200;
  border-top: 1px solid var(--border);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip {
    margin-top: -1rem;
  }

  .hero {
    min-height: clamp(460px, 75vh, 640px);
  }

  .bento-a,
  .bento-b,
  .bento-c,
  .bento-d,
  .bento-e {
    grid-column: span 12;
  }

  .bento-item {
    min-height: 200px;
  }

  .split,
  .sim-showcase,
  .contact-grid,
  .team-layout,
  .sim-wrap,
  .sim-layout,
  .sim-preview-row,
  .app-cta {
    grid-template-columns: 1fr;
  }

  .sim-showcase {
    gap: 1.5rem;
  }

  .team-sidebar {
    position: static;
  }

  .pitch {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-item strong {
    font-size: 1.35rem;
  }

  .btn-row .btn {
    width: 100%;
  }

  .player-pool {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-sim-hud {
    padding: 0.65rem 0.75rem;
  }

  .home-sim-overlay {
    font-size: 0.92rem;
    padding: 0 1rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  table.score-table {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

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