/* CSS Variables based on strict inputs & military visual world */
:root {
  --primary: #1e2a27; /* Olive Drab base */
  --secondary: #2d3e3a; /* Lighter Olive */
  --accent: #f5a623; /* Amber/Radar Orange */
  --bg-dark: #0f1614; /* Deep space/black-green */
  --surface: #1a2220; /* Card background */
  --text-primary: #eaeaea;
  --text-secondary: #a0b0aa;
  --border-color: #3c4a45;

  --font-heading: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;
  --transition-snappy: 0.2s cubic-bezier(0.2, 0, 0, 1);
  --transition-smooth: 0.4s ease-out;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
.stencil-font {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-snappy);
}
a:hover {
  color: #fff;
}
img {
  max-width: 100%;
  display: block;
}
.hidden {
  display: none !important;
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.center {
  text-align: center;
}
.text-narrow {
  max-width: 800px;
  margin: 0 auto;
}
.mt-2 {
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-snappy);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 10px var(--accent);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--border-color);
}
.btn-accent {
  background: var(--secondary);
  color: var(--accent);
  border: 1px solid var(--border-color);
}
.btn-accent:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn[data-missing-link="true"],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Animations */
@keyframes radar-sweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 166, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
  }
}

/* Scroll Reveal */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.js-enabled .reveal.active {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .btn,
  a,
  .radar-plot .pulse-ring {
    animation: none !important;
    transition: none !important;
  }
}

/* Header & Nav */
.site-header {
  background: var(--primary);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
}
.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.main-nav a {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

@media (max-width: 767px) {
  .burger-btn {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--primary);
    border-bottom: 2px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  .main-nav.open {
    max-height: 300px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }
  .main-nav li {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav li:last-child {
    border: none;
  }
}

/* Hero Section (Split Asymmetric Duotone) */
.hero-split-image-right {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  padding: 60px 20px;
  z-index: 2;
}
.stencil-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245, 166, 35, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 500px;
}
.proof-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.proof-item {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.radar-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-media-panel {
  position: relative;
  width: 100%;
  min-height: 300px;
  background: #000;
}
.hero-media-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.2) 2px,
    rgba(0, 0, 0, 0.2) 4px
  );
  pointer-events: none;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mix-blend-mode: luminosity;
}

@media (min-width: 768px) {
  .hero-split-image-right {
    flex-direction: row;
    align-items: stretch;
    min-height: 80vh;
  }
  .hero-content {
    flex: 1;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 4rem;
  }
  .hero-media-panel {
    flex: 1;
    min-height: auto;
    border-left: 2px solid var(--border-color);
  }
}

/* Post-Hero Game Roster */
.source-game-roster {
  padding: 60px 0;
  background: var(--surface);
  position: relative;
}
.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}
.roster-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-row {
  display: flex;
  flex-direction: column;
  background: var(--primary);
  border: 1px solid var(--border-color);
  transition:
    transform var(--transition-snappy),
    box-shadow var(--transition-snappy);
}
.catalog-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}
.game-thumbnail-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-bottom: 1px solid var(--border-color);
}
.game-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bg-dark);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 5px 10px;
  border: 1px solid var(--accent);
}
.game-intel {
  padding: 20px;
  flex: 1;
}
.genre-tag {
  font-size: 0.8rem;
  color: var(--bg-dark);
  background: var(--text-secondary);
  padding: 2px 8px;
  text-transform: uppercase;
  font-weight: bold;
}
.game-intel h3 {
  margin: 10px 0;
  font-size: 1.5rem;
}
.game-meta {
  list-style: none;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.game-short-desc {
  font-size: 0.95rem;
}
.game-action {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .catalog-row {
    flex-direction: row;
  }
  .catalog-table-wrap .catalog-row {
    height: 200px;
  }
  .game-thumbnail-wrap {
    width: 300px;
    height: 100%;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
  .game-action {
    width: 200px;
    border-top: none;
    border-left: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Radar Methodology Grid */
.methodology-radar-section {
  padding: 80px 0;
  background: var(--bg-dark);
}
.radar-quadrant-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}
.radar-map-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 0 auto;
  background: radial-gradient(circle, var(--surface) 0%, var(--bg-dark) 100%);
  border: 2px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}
.radar-y-axis,
.radar-x-axis {
  position: absolute;
  background: rgba(160, 176, 170, 0.2);
}
.radar-y-axis {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
.radar-x-axis {
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.axis-label {
  position: absolute;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.axis-label.top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.axis-label.bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.axis-label.left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.axis-label.right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.radar-plot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
}
.pulse-ring {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.plot-label {
  font-size: 0.7rem;
  background: var(--bg-dark);
  padding: 2px 4px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.radar-legend h3 {
  color: var(--accent);
  margin-bottom: 15px;
}
.ledger-list {
  list-style: none;
}
.ledger-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .radar-quadrant-layout {
    flex-direction: row;
    align-items: center;
  }
  .radar-map-container {
    flex: 1;
  }
  .radar-legend {
    flex: 1;
    padding-left: 40px;
  }
}

/* Deep Guide Block */
.seo-editorial-depth {
  padding: 80px 0;
  background: var(--surface);
  border-top: 2px solid var(--border-color);
}
.guide-header {
  margin-bottom: 40px;
  max-width: 800px;
}
.guide-columns {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.guide-col h3 {
  color: var(--accent);
  margin: 30px 0 15px;
  font-size: 1.3rem;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.guide-col p {
  margin-bottom: 15px;
  color: #d0d0d0;
}
.editorial-verdict-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 25px;
  margin-top: 40px;
}
.editorial-verdict-box h4 {
  margin-bottom: 10px;
  color: var(--accent);
}

@media (min-width: 768px) {
  .guide-columns {
    flex-direction: row;
  }
  .guide-col {
    flex: 1;
  }
}

/* Brand Operations */
.brand-operations-summary {
  padding: 60px 0;
  background: var(--primary);
}
.operations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.op-card {
  background: var(--bg-dark);
  border-top: 3px solid var(--accent);
  padding: 30px;
}
.op-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

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

/* Contact CTA Section */
.contact-cta-section {
  padding: 80px 0;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-dark),
    var(--bg-dark) 10px,
    var(--surface) 10px,
    var(--surface) 20px
  );
}
.contact-cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Catalog Page Filters */
.page-catalog {
  background: var(--bg-dark);
}
.catalog-header {
  padding: 60px 0 40px;
  background: var(--surface);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.catalog-filters {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-chip {
  background: var(--primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.2s;
  font-family: var(--font-heading);
  text-transform: uppercase;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--accent);
  color: var(--bg-dark);
}
.catalog-content {
  padding: 40px 0;
}
.catalog-table-wrap .catalog-row {
  margin-bottom: 20px;
}
.row-tags span {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--surface);
  padding: 2px 6px;
  margin-right: 5px;
  margin-bottom: 5px;
  border: 1px solid var(--border-color);
}
.row-stats {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}
.stat-score {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}
@media (min-width: 768px) {
  .row-stats {
    border-top: none;
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    width: 150px;
    text-align: center;
  }
}

/* Standard Pages (About, Contact, Policy) */
.page-standard {
  background: var(--bg-dark);
  padding-bottom: 60px;
}
.standard-hero {
  padding: 60px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
}
.standard-content {
  padding: 40px 0;
}
.standard-content h2 {
  color: var(--accent);
  margin: 30px 0 15px;
}
.standard-content p,
.standard-content ul {
  margin-bottom: 20px;
}
.standard-content ul {
  padding-left: 20px;
}

/* Contact Form */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.tactical-form .form-group {
  margin-bottom: 20px;
}
.tactical-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.tactical-form input,
.tactical-form select,
.tactical-form textarea {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-body);
}
.tactical-form input:focus,
.tactical-form select:focus,
.tactical-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-success {
  margin-top: 20px;
  padding: 15px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}
@media (min-width: 768px) {
  .contact-layout {
    flex-direction: row;
  }
  .contact-info,
  .contact-form-wrap {
    flex: 1;
  }
}

/* Footer */
.site-footer {
  background: #080c0a;
  padding: 60px 0 20px;
  border-top: 3px solid var(--accent);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  color: var(--accent);
  margin-bottom: 15px;
}
.footer-links ul,
.footer-legal ul {
  list-style: none;
}
.footer-links li,
.footer-legal li {
  margin-bottom: 10px;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-brand {
    max-width: 300px;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  border-top: 2px solid var(--accent);
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
