/* Swarmy official site — palette from in-game UiTheme + homepage sky */
:root {
  --ink: #241c16;
  --ink-soft: #4b3d31;
  --cream: #f4e7cb;
  --cream-dim: #c9b694;
  --cream-deep: #9a866a;
  --gold: #f2c14e;
  --gold-deep: #a8742a;
  --leaf: #7ec46a;
  --leaf-deep: #4fae4a;
  --sky: #7ec8f0;
  --sky-deep: #4aa6d8;
  --blood: #d1483a;
  --panel: #1a1310;
  --panel-2: #2e241d;
  --chrome: rgba(33, 26, 22, 0.78);
  --edge: #2b2118;
  --text: #f4e7cb;
  --muted: #c9b694;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif;
  --pixel: "Courier New", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -15%, rgba(126, 200, 240, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 30%, rgba(242, 193, 78, 0.08), transparent 50%),
    radial-gradient(800px 500px at 0% 80%, rgba(126, 196, 106, 0.08), transparent 50%),
    linear-gradient(180deg, #0f1612 0%, #120e0b 40%, #0b0a09 100%);
  line-height: 1.55;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #ffe08a;
}

.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 10, 9, 0.82);
  border-bottom: 1px solid rgba(242, 193, 78, 0.14);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.35);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  text-decoration: none;
  line-height: 1.1;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-primary {
  background: linear-gradient(180deg, #f7d36a 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: var(--ink) !important;
  box-shadow: 0 8px 24px rgba(168, 116, 42, 0.35);
}

.btn-ghost {
  background: rgba(244, 231, 203, 0.05);
  color: var(--cream) !important;
  border-color: rgba(244, 231, 203, 0.18);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 193, 78, 0.12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 14, 0.15) 0%, rgba(10, 9, 8, 0.72) 70%, #0b0a09 100%),
    url("../assets/hero-home.png") center top / cover no-repeat;
  image-rendering: pixelated;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.35);
  background: rgba(26, 19, 16, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  color: var(--gold);
}

.lead {
  margin: 0 0 26px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--cream);
  font-weight: 700;
}

.hero-shot {
  position: relative;
}

.hero-shot-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(242, 193, 78, 0.28);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.5);
  background: #0a0a0a;
}

.hero-shot-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  image-rendering: pixelated;
}

.float-chip {
  position: absolute;
  left: -10px;
  bottom: 18px;
  background: var(--chrome);
  border: 1px solid rgba(242, 193, 78, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.float-chip b {
  color: var(--gold);
}

/* ── Sections ────────────────────────────────────────── */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.kicker {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, rgba(46, 36, 29, 0.92), rgba(26, 19, 16, 0.96));
  border: 1px solid rgba(242, 193, 78, 0.14);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--cream);
}

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

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.2), rgba(126, 196, 106, 0.18));
  border: 1px solid rgba(242, 193, 78, 0.22);
  font-size: 1.2rem;
}

/* ── Media grid ──────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(242, 193, 78, 0.18);
  background: #111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  min-height: 180px;
}

.shot.tall {
  min-height: 340px;
}

.shot-stack {
  display: grid;
  gap: 14px;
}

.shot-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(18, 14, 12, 0.82);
  border: 1px solid rgba(242, 193, 78, 0.22);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

/* ── Biomes ──────────────────────────────────────────── */
.biome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.biome {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(242, 193, 78, 0.16);
  background: var(--panel);
  min-height: 220px;
  position: relative;
}

.biome img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  image-rendering: pixelated;
}

.biome-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 8, 7, 0.92));
}

.biome-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.biome-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Research ────────────────────────────────────────── */
.research {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.research-shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(242, 193, 78, 0.2);
  box-shadow: var(--shadow);
  background: #000;
}

.research-shot img {
  width: 100%;
  image-rendering: pixelated;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.stat-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(46, 36, 29, 0.55);
  border: 1px solid rgba(242, 193, 78, 0.1);
}

.stat-list .dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(242, 193, 78, 0.14);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8rem;
}

.stat-list strong {
  display: block;
  color: var(--cream);
  margin-bottom: 2px;
}

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

/* ── CTA / units ─────────────────────────────────────── */
.cta {
  margin-top: 72px;
  border-radius: 22px;
  border: 1px solid rgba(242, 193, 78, 0.22);
  background:
    linear-gradient(135deg, rgba(242, 193, 78, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(46, 36, 29, 0.95), rgba(18, 14, 12, 0.98));
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta p {
  margin: 0 0 18px;
  color: var(--muted);
}

.units-strip {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(242, 193, 78, 0.18);
  background: #2a2f35;
  padding: 18px 12px;
}

.units-strip img {
  width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq details {
  background: rgba(26, 19, 16, 0.8);
  border: 1px solid rgba(242, 193, 78, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cream);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Footer / legal ──────────────────────────────────── */
footer {
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 28px 20px 48px;
  border-top: 1px solid rgba(242, 193, 78, 0.12);
  color: var(--cream-deep);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--cream);
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.legal-page .updated {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--gold);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page a.back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner,
  .research,
  .cta,
  .shots {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .biome-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .shot.tall {
    min-height: 220px;
  }

  .float-chip {
    left: 12px;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero-inner {
    padding-top: 48px;
  }
}
