/* Iron Command website
   Visual language borrowed from the game itself: navy HUD panels, monospace
   labels, the lime green of the game badge and the oil-yellow of the resource
   counter. Flat panels, 1px borders, square corners. */

:root {
  --bg-0: #090d14;
  --bg-1: #0d1320;
  --panel: #101a2a;
  --panel-2: #142238;
  --line: #1f2d44;
  --line-strong: #2f4666;
  --text: #e6ecf4;
  --muted: #a3b0c2;
  --dim: #6b7a90;
  --green: #a3d139;
  --green-deep: #5f8a17;
  --green-ink: #0b1017;
  --oil: #f2c744;
  --viewport: #0c1422;   /* background baked into the unit GIFs (tools/build-unit-gifs.py) */

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --radius: 3px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--green); }
strong { font-weight: 600; color: var(--text); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Reveal on scroll: a short fade and lift, nothing more */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ---------- Type helpers ---------- */

.mono, .kicker, .section-index, .status-label, .status-value, .news-meta,
.tag, .card-index, .gallery-bar, .stat-label, .spec-sheet dt,
.building-category .count, .tab-btn, .support-links, .hero-slogan,
.version-info, .nav-links a, .nav-support {
  font-family: var(--font-mono);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-index {
  display: block;
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}
.section-index::before { content: '// '; color: var(--dim); }

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 600px;
}

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.3;
}
.tag-green { color: var(--green); border-color: var(--green-deep); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--green);
  color: var(--green-ink);
  border-color: var(--green);
}
.btn-primary:hover { background: #b8e24d; border-color: #b8e24d; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-sm { font-size: 0.9375rem; padding: 0.5rem 0.9rem; }
.btn-lg { font-size: 1.125rem; padding: 0.9rem 1.5rem; }

/* ---------- Navigation ---------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(9, 13, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}
.logo-icon { border-radius: 6px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 0.5rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--green); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-support {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-support:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 40%;
  filter: saturate(0.85) brightness(0.85);
}
.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 13, 20, 0.97) 0%, rgba(9, 13, 20, 0.9) 38%, rgba(9, 13, 20, 0.45) 70%, rgba(9, 13, 20, 0.3) 100%),
    linear-gradient(180deg, rgba(9, 13, 20, 0.6) 0%, rgba(9, 13, 20, 0) 30%, rgba(9, 13, 20, 0.2) 80%, var(--bg-0) 100%);
}

.hero .container { position: relative; z-index: 1; width: 100%; }

.hero-content { max-width: 640px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.kicker-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(163, 209, 57, 0.18);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-slogan {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ---------- Status bar (counters) ---------- */

.statusbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.statusbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.status-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem 0.9rem 0;
  margin-right: 1.5rem;
  border-right: 1px solid var(--line);
  font-size: 0.8125rem;
}
.status-item-end { border-right: 0; margin-left: auto; padding-right: 0; margin-right: 0; }
.status-label {
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}
.status-label::after { content: ':'; }
.status-value {
  color: var(--oil);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- Sections ---------- */

section { padding: 6rem 0; }
.news-section { padding-top: 5rem; }
section + section { border-top: 1px solid var(--line); }
.screenshot-section, .units, .combat, .requirements { background: var(--bg-1); }

/* ---------- Changelog ---------- */

.news-list { border-top: 1px solid var(--line); }

.news-entry {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.news-entry-latest {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--green);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.news-version { color: var(--text); font-weight: 500; }
.news-date { flex-basis: 100%; }
.news-badge {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--green-ink);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  font-weight: 500;
}

.news-content h3 {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.news-content p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 78ch;
}
.news-entry-latest .news-content p { color: var(--text); font-size: 1rem; }
.news-entry:not(.news-entry-latest) .news-content p strong { color: var(--text); font-weight: 500; }

.news-actions { align-self: center; }

/* ---------- Screenshots + stats ---------- */

.gallery { margin: 0 0 3rem; }

.gallery-container {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.gallery-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.gallery-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery-caption span { color: var(--oil); }

.gallery-dots { display: flex; gap: 0.4rem; margin-left: auto; }
.dot {
  width: 18px; height: 4px;
  border: 0;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}
.dot:hover { background: var(--muted); }
.dot.active { background: var(--green); }

.gallery-nav { display: flex; gap: 0.35rem; }
.gallery-btn {
  width: 34px; height: 30px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.gallery-btn:hover { border-color: var(--green); color: var(--green); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-item {
  background: var(--bg-1);
  padding: 1.5rem;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.15fr 1fr; gap: 5rem; }
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.about-content .lead { font-size: 1.25rem; color: var(--text); }
.about-content strong { color: var(--green); }

.spec-sheet {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}
.spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.spec-row:last-child { border-bottom: 0; }
.spec-sheet dt {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.2rem;
}
.spec-sheet dd { color: var(--text); }

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--bg-0);
  padding: 1.75rem 1.5rem 1.75rem;
  transition: background 0.15s ease;
}
.feature-card:hover { background: var(--panel); }

.card-index {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Units ---------- */

.tabs { }

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.tab-btn:hover { color: var(--text); border-color: var(--muted); }
.tab-btn.active {
  background: var(--panel-2);
  color: var(--green);
  border-color: var(--green);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: tab-in 0.25s ease; }
@keyframes tab-in { from { opacity: 0; } to { opacity: 1; } }

.units-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 640px) { .units-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .units-grid { grid-template-columns: repeat(3, 1fr); } }

.unit-card {
  position: relative;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-height: 136px;
  cursor: default;
  outline: none;
  transition: background 0.15s ease;
}
.unit-card:hover, .unit-card:focus-visible, .unit-card.open { background: var(--panel); }
.unit-card:focus-visible { box-shadow: inset 0 0 0 1px var(--green); }

.unit-view {
  flex: 0 0 136px;
  width: 136px;
  height: 104px;
  background: var(--viewport);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.unit-view img {
  max-width: 132px;
  max-height: 100px;
  width: auto;
  height: auto;
  image-rendering: auto;
}

.unit-body { min-width: 0; }
.unit-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.unit-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Stats panel: covers the card on hover, keyboard focus, or a tap */
.unit-stats {
  display: none;
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  right: 0.4rem;
  z-index: 5;
  background: var(--panel-2);
  border: 1px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem 0.6rem;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.unit-card:hover .unit-stats, .unit-card:focus-visible .unit-stats, .unit-card.open .unit-stats { display: grid; }
.unit-stats::before {
  content: attr(data-name);
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  padding-bottom: 0.3rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--green-deep);
}
.unit-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.24rem 0;
  border-bottom: 1px solid var(--line);
}
.unit-stats > div.wide { grid-column: 1 / -1; }
.unit-stats dt { color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.unit-stats dd { color: var(--oil); text-align: right; }

@media (hover: none) {
  .unit-card:hover .unit-stats, .building-item:hover .unit-stats { display: none; }
  .unit-card.open .unit-stats, .building-item.open .unit-stats { display: grid; }
  .unit-card, .building-item { cursor: pointer; }
}

/* ---------- Buildings ---------- */

.buildings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .buildings-grid { grid-template-columns: repeat(3, 1fr); } }

.building-category h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 2px solid var(--green);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.building-category .count {
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.building-category .count::before { content: '× '; }

.building-list { display: flex; flex-direction: column; }

.building-item {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--muted);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
  outline: none;
}
.building-item:hover, .building-item:focus-visible, .building-item.open { color: var(--text); }
.b-view {
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  background: var(--viewport);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.b-view img { max-width: 92px; max-height: 68px; width: auto; height: auto; }
.b-body { min-width: 0; }
.building-item .unit-stats { top: 0.4rem; left: 0; right: 0; }
.building-item:hover .unit-stats, .building-item:focus-visible .unit-stats, .building-item.open .unit-stats { display: grid; }
.building-item:last-child { border-bottom: 0; }
.building-item strong { color: var(--text); font-weight: 600; }

/* ---------- Combat ---------- */

.combat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .combat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .combat-grid { grid-template-columns: repeat(3, 1fr); } }

.combat-item {
  background: var(--bg-1);
  padding: 1.25rem 1.25rem 1.35rem;
  transition: background 0.15s ease;
}
.combat-item:hover { background: var(--panel); }
.combat-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.combat-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Game modes ---------- */

.multiplayer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 800px) { .multiplayer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .multiplayer-grid { grid-template-columns: repeat(3, 1fr); } }

.multiplayer-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 2rem;
}
.multiplayer-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.625rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.multiplayer-card > p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.multiplayer-card ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
  border-top: 1px solid var(--line);
}
.multiplayer-card li {
  padding: 0.6rem 0 0.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  line-height: 1.5;
}
.multiplayer-card li::before {
  content: '›';
  position: absolute;
  left: 0.25rem;
  color: var(--green);
  font-family: var(--font-mono);
}

/* ---------- Requirements ---------- */

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 860px;
}
@media (min-width: 700px) { .requirements-grid { grid-template-columns: 1fr 1fr; } }

.requirements-card {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.requirements-card h3 { margin-bottom: 1rem; }
.requirements-card ul { list-style: none; }
.requirements-card li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.requirements-card li strong {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.2rem;
}

.version-info {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Download + support ---------- */

.closing {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) { .closing-grid { grid-template-columns: 1.3fr 1fr; gap: 5rem; } }

.closing-download > p {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-bottom: 0.75rem;
}
.early-access-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--green);
  margin-bottom: 1.75rem !important;
}
.early-access-note::before { content: '> '; color: var(--dim); }

.closing-support {
  border-left: 1px solid var(--line-strong);
  padding-left: 2.5rem;
}
@media (max-width: 899px) {
  .closing-support { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 2rem; }
}
.closing-support h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.625rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.closing-support p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.support-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--dim);
}

/* ---------- Footer ---------- */

.footer {
  padding: 2rem 0;
  background: var(--bg-0);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo .logo-text { font-size: 1.0625rem; }
.footer-info { font-size: 0.8125rem; color: var(--dim); }
.footer-info strong { color: var(--muted); font-weight: 500; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .hero { min-height: 0; padding: 7rem 0 4rem; }
  .hero-backdrop img { object-position: 60% 30%; }
  .hero-title { font-size: clamp(3.5rem, 18vw, 5rem); }
  .nav-support { display: none; }
  .logo-text { font-size: 1.1rem; }

  .status-item { border-right: 0; margin-right: 0; padding: 0.5rem 1.5rem 0.5rem 0; }
  .status-item-end { margin-left: 0; }
  .statusbar-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; }

  .news-entry { grid-template-columns: 1fr; gap: 0.75rem; }
  .news-entry-latest { padding: 1.25rem; }
  .news-date { flex-basis: auto; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.25rem; }

  .spec-row { grid-template-columns: 100px 1fr; padding: 0.7rem 1rem; }
  .gallery-container { aspect-ratio: 16 / 11; }
  .gallery-bar { gap: 0.75rem; }
  .gallery-caption { font-size: 0.6875rem; }
}

/* ── Gameplay video ─────────────────────────────────────────────────────── */
.video-frame {
  margin: 2.5rem 0 0;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* The platform line under the download buttons, and the aside in the spec sheet */
.platform-note {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--dim);
}
.spec-note { color: var(--dim); }
