/* ═══════════════════════════════════════════════════════════════
   SAMPLE PITCH — Bespoke styles for /games/samplepitch/
   Scoped under body.ac-pitch-page
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.pitch-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(10, 14, 32, 0.55), rgba(17, 36, 68, 0.95)),
    url("/assets/adaptive-command/pitch/hex-map-hero.jpg") center/cover no-repeat;
}

.pitch-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--red), transparent);
}

.pitch-hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.pitch-hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px rgba(15, 53, 240, 0.6);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.15;
}

.pitch-hero-tagline {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.5px;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.pitch-hero-tagline em {
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.pitch-scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 1px;
  animation: pitchBounce 2s ease-in-out infinite;
}

.pitch-scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.45);
}

@keyframes pitchBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Shared section styles ── */
.pitch-section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.pitch-section-dark {
  background: rgba(2, 2, 3, 0.95);
}

.pitch-section-blue {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(15, 53, 240, 0.08), transparent 50%),
    rgba(8, 16, 40, 0.98);
}

.pitch-section-accent {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(254, 0, 7, 0.06), transparent 50%),
    rgba(5, 5, 12, 0.98);
}

.pitch-container {
  max-width: 1100px;
  margin: 0 auto;
}

.pitch-container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.pitch-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 53, 240, 0.4), rgba(254, 0, 7, 0.3), transparent);
}

/* Section eyebrow + title */
.pitch-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 53, 240, 0.3);
  border-radius: 999px;
  background: rgba(15, 53, 240, 0.08);
}

.pitch-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 20px rgba(15, 53, 240, 0.4);
  line-height: 1.2;
}

.pitch-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 700px;
}

.pitch-subtitle.centered {
  margin: 0 auto;
  text-align: center;
}

.pitch-text-center {
  text-align: center;
}

/* ── Reveal animations ── */
.pitch-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.pitch-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.pitch-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.pitch-reveal-left.is-visible,
.pitch-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.pitch-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.pitch-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.pitch-stagger > * { transition-delay: 0s; }
.pitch-stagger > *:nth-child(1) { transition-delay: 0s; }
.pitch-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.pitch-stagger > *:nth-child(3) { transition-delay: 0.24s; }
.pitch-stagger > *:nth-child(4) { transition-delay: 0.36s; }

/* ── Prepare for Chaos — Stats ── */
.pitch-chaos-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pitch-stat-card {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(15, 53, 240, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top, rgba(15, 53, 240, 0.12), transparent 60%),
    rgba(8, 12, 30, 0.85);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.pitch-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 53, 240, 0.6), transparent);
}

.pitch-stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 25px rgba(15, 53, 240, 0.5);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.pitch-stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

.pitch-stat-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ── Choose Your Faction ── */
.pitch-faction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pitch-faction-card {
  position: relative;
  border: 1px solid rgba(15, 53, 240, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 12, 30, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.pitch-faction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 53, 240, 0.2);
  border-color: rgba(15, 53, 240, 0.45);
}

.pitch-faction-card-human { border-color: rgba(59, 130, 246, 0.3); }
.pitch-faction-card-human:hover { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15); }

.pitch-faction-card-alien { border-color: rgba(139, 92, 246, 0.3); }
.pitch-faction-card-alien:hover { border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15); }

.pitch-faction-card-ai { border-color: rgba(239, 68, 68, 0.3); }
.pitch-faction-card-ai:hover { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 20px 50px rgba(239, 68, 68, 0.15); }

.pitch-faction-img-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pitch-faction-card-human .pitch-faction-img-wrap {
  background:
    radial-gradient(circle at center, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(15, 53, 240, 0.14), rgba(5, 5, 8, 0.95));
}

.pitch-faction-card-alien .pitch-faction-img-wrap {
  background:
    radial-gradient(circle at center, rgba(139, 92, 246, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(89, 36, 168, 0.14), rgba(5, 5, 8, 0.95));
}

.pitch-faction-card-ai .pitch-faction-img-wrap {
  background:
    radial-gradient(circle at center, rgba(239, 68, 68, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(120, 20, 20, 0.14), rgba(5, 5, 8, 0.95));
}

.pitch-faction-img-wrap img {
  max-width: 80%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(15, 53, 240, 0.25));
  transition: transform 0.4s ease;
}

.pitch-faction-card:hover .pitch-faction-img-wrap img {
  transform: scale(1.08);
}

.pitch-faction-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.pitch-faction-body {
  padding: 1.5rem;
}

.pitch-faction-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.pitch-faction-move {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.pitch-faction-card-human .pitch-faction-move { color: rgba(96, 165, 250, 0.85); }
.pitch-faction-card-alien .pitch-faction-move { color: rgba(167, 139, 250, 0.85); }
.pitch-faction-card-ai .pitch-faction-move { color: rgba(248, 113, 113, 0.85); }

.pitch-faction-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

/* ── Discover Resources ── */
.pitch-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pitch-resource-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(15, 53, 240, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 53, 240, 0.06), rgba(2, 2, 3, 0.9));
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pitch-resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 53, 240, 0.35);
}

.pitch-resource-img-wrap {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(17, 36, 68, 0.5);
}

.pitch-resource-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.pitch-resource-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.pitch-resource-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

/* ── Build Supply Lines ── */
.pitch-supply-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: center;
}

.pitch-supply-cards {
  display: grid;
  gap: 1rem;
}

.pitch-supply-card {
  padding: 1.5rem;
  border: 1px solid rgba(15, 53, 240, 0.16);
  border-radius: 14px;
  background: rgba(8, 12, 30, 0.85);
  transition: border-color 0.3s ease;
}

.pitch-supply-card:hover {
  border-color: rgba(15, 53, 240, 0.4);
}

.pitch-supply-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pitch-supply-card p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.pitch-supply-safe h3::before {
  content: "✓ ";
  color: #22c55e;
}

.pitch-supply-risky h3::before {
  content: "⚠ ";
  color: #f59e0b;
}

.pitch-supply-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 53, 240, 0.15);
  display: block;
}

/* ── Scope Out the Battlefield ── */
.pitch-terrain-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: center;
}

.pitch-terrain-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pitch-terrain-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 53, 240, 0.14);
  border-radius: 12px;
  background: rgba(8, 12, 30, 0.8);
  transition: border-color 0.3s ease;
}

.pitch-terrain-item:hover {
  border-color: rgba(15, 53, 240, 0.35);
}

.pitch-terrain-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(15, 53, 240, 0.1);
  font-size: 1.4rem;
}

.pitch-terrain-item strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.pitch-terrain-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.pitch-terrain-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 53, 240, 0.15);
  display: block;
}

/* ── Plan Your Attack ── */
.pitch-attack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pitch-attack-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(15, 53, 240, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(15, 53, 240, 0.08), rgba(2, 2, 3, 0.92));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pitch-attack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 53, 240, 0.4);
  box-shadow: 0 16px 40px rgba(15, 53, 240, 0.12);
}

.pitch-attack-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  font-size: 1.6rem;
}

.pitch-attack-card h3 {
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 0.65rem;
}

.pitch-attack-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 1.1rem;
}

.pitch-unit-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pitch-unit-stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(15, 53, 240, 0.05);
  border: 1px solid rgba(15, 53, 240, 0.15);
  border-radius: 12px;
}

.pitch-unit-stat-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(15, 53, 240, 0.2));
}

.pitch-unit-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.pitch-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pitch-mini-stat-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.pitch-mini-stat-val {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.pitch-mini-meter {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.pitch-mini-meter span {
  display: block;
  height: 100%;
}

.pitch-mini-meter .sfill-health { background: #22c55e; }
.pitch-mini-meter .sfill-attack { background: #ef4444; }
.pitch-mini-meter .sfill-armor { background: #3b82f6; }

.pitch-attack-img-wrap {
  margin-top: 3rem;
  text-align: center;
}

.pitch-attack-img-wrap img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 53, 240, 0.15);
}

/* ── Destroy the Command Base ── */
.pitch-win-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: center;
}

.pitch-win-copy h2 {
  font-size: 2.6rem;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(254, 0, 7, 0.4);
  margin-bottom: 1rem;
}

.pitch-win-copy p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.pitch-win-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(254, 0, 7, 0.2);
  display: block;
  box-shadow: 0 20px 60px rgba(254, 0, 7, 0.1);
}

/* ── CTA ── */
.pitch-cta {
  text-align: center;
  padding: 5rem 2rem;
  background:
    linear-gradient(to bottom, rgba(15, 53, 240, 0.08), rgba(254, 0, 7, 0.06));
  border-top: 1px solid rgba(15, 53, 240, 0.3);
  border-bottom: 1px solid rgba(254, 0, 7, 0.3);
}

.pitch-cta h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.pitch-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.pitch-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Disclaimer ── */
.pitch-disclaimer {
  width: min(33%, 320px);
  margin: 2rem auto 0;
  padding: 0.45rem 0.6rem;
  background: rgba(254, 0, 7, 0.1);
  border: 1px solid var(--red);
  border-radius: 4px;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1.35;
  opacity: 0.9;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .pitch-hero-title {
    font-size: 2.4rem;
  }

  .pitch-chaos-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pitch-faction-grid {
    grid-template-columns: 1fr;
  }

  .pitch-resource-grid {
    grid-template-columns: 1fr;
  }

  .pitch-resource-card {
    grid-template-columns: 100px 1fr;
  }

  .pitch-resource-img-wrap {
    width: 100px;
    height: 100px;
  }

  .pitch-supply-layout,
  .pitch-terrain-layout,
  .pitch-win-layout {
    grid-template-columns: 1fr;
  }

  .pitch-attack-grid {
    grid-template-columns: 1fr;
  }

  .pitch-title {
    font-size: 2rem;
  }

  .pitch-disclaimer {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .pitch-hero-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .pitch-hero-tagline {
    font-size: 1.1rem;
  }

  .pitch-section {
    padding: 4rem 1.25rem;
  }

  .pitch-stat-number {
    font-size: 2.2rem;
  }

  .pitch-cta h2 {
    font-size: 1.6rem;
  }

  .pitch-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pitch-cta-actions .btn-primary,
  .pitch-cta-actions .btn-neon {
    text-align: center;
  }
}
