/* ==========================================================================
   Argos — pre-alpha teaser site
   Palette is pulled straight off the key art: torch-flame amber, warm cave
   stone, and a near-black earth-shadow ground. Forked from cebus-vr's
   styles.css (Web/cebus-vr/static/styles.css) — same structure, different
   color story. Keep layout rules in sync between the two; palette is the
   one thing that should stay different.
   ========================================================================== */

:root {
  --amber: #e0972b;
  --amber-bright: #f4b85a;
  --amber-deep: #a8641a;
  --moss: #7a9a5c;

  --bg: #14100b;
  --bg-alt: #1b140d;
  --surface: #241b12;
  --surface-2: #2d2117;
  --line: #3d2e1e;

  --text: #f3ead9;
  --muted: #b9a889;

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

a { color: var(--amber-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--amber-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }
.center { text-align: center; }

/* --------------------------------------------------------------- nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav-solid {
  background: rgba(20, 16, 11, .88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .01em;
  text-decoration: none;
}
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: #1a1108;
  box-shadow: 0 10px 28px -10px rgba(224, 151, 43, .75);
}
.btn-primary:hover { box-shadow: 0 16px 34px -10px rgba(224, 151, 43, .9); }

.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }

.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-icon { font-size: 12px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center-row { justify-content: center; }

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  margin-top: -72px;
  padding: 190px 0 110px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 11, .55) 0%, rgba(20, 16, 11, .8) 55%, var(--bg) 100%),
    url("/img/hero.png") center 38% / cover no-repeat;
  transform: scale(1.04);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(224, 151, 43, .18), transparent 70%);
}
.hero-inner { position: relative; }

.hero-logo {
  width: 148px;
  height: 148px;
  margin: 0 auto 26px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .12);
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: .35em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .7);
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: #ecdcc2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}

.hero .cta-row { justify-content: center; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.badge {
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: #e2d2b3;
  backdrop-filter: blur(6px);
}

/* -------------------------------------------------------------- bands --- */

.band { padding: 92px 0; }
.band-alt { background: var(--bg-alt); }
.band-top { padding-top: 130px; }
.band-accent {
  background:
    linear-gradient(135deg, rgba(224, 151, 43, .12), rgba(122, 154, 92, .12)),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin-bottom: .3em;
}
.section-lede {
  max-width: 620px;
  margin: 0 0 44px;
  color: var(--muted);
  font-size: 1.04rem;
}
.center .section-lede { margin-left: auto; margin-right: auto; }
.section-more { margin-top: 36px; font-weight: 600; }
.crumb { margin: 0 0 20px; font-size: 15px; font-weight: 600; }

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

/* ----------------------------------------------------------- features --- */

.card {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(224, 151, 43, .5); }
.card-icon { font-size: 30px; line-height: 1; margin-bottom: 16px; }
.card h3 { font-size: 1.24rem; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* -------------------------------------------------------------- stats --- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.stat[hidden] { display: none; }
.stat {
  padding: 34px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stat-value {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stats-live #stat-players {
  border-color: rgba(224, 151, 43, .55);
  box-shadow: 0 0 34px -12px var(--amber);
}
.stats-live #stat-players .stat-value { color: var(--amber-bright); }
.stat-status {
  margin: 26px 0 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 13.5px;
}
.stat-credit { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }

@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- media --- */

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.media-frame video,
.media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ------------------------------------------------------------ roadmap --- */

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

.col {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--muted);
}
.col-next { border-top-color: var(--muted); }
.col-wip { border-top-color: var(--amber); }
.col-done { border-top-color: var(--moss); }

.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.col-count {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}

.col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.col-list li {
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.item-title { display: block; font-weight: 700; font-size: 15.5px; }
.item-detail {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.col-done .col-list li { opacity: .78; }

/* ---------------------------------------------------------- changelog --- */

.releases { display: grid; gap: 20px; }
.release {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.release-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.release-version { margin: 0; font-size: 1.3rem; color: var(--amber-bright); }
.release-date { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.release-body { font-size: 15.5px; }
.release-body h3 {
  margin: 18px 0 8px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.release-body h3:first-child { margin-top: 0; }

/* ------------------------------------------------------------- devlog --- */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 151, 43, .5);
  text-decoration: none;
}
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: .4em; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }

.post-meta {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.post-title { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: .25em; }
.post-hero {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 26px 0 34px;
  border: 1px solid var(--line);
}

/* -------------------------------------------------------------- prose --- */

.prose { color: #ecdcc2; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; color: var(--text); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; color: var(--text); }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
}
.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: .9em;
}
.prose pre {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.prose pre code { padding: 0; background: none; }
.prose hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

/* ---------------------------------------------------------------- faq --- */

.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  color: var(--amber);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .prose {
  padding: 0 22px 20px;
  font-size: 15.5px;
}
.faq-item .prose p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- footer --- */

.footer {
  padding: 64px 0 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 12px; }
.footer-brand strong { display: block; font-size: 18px; }
.footer-brand span { color: var(--muted); font-size: 14.5px; }

.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 {
  margin-bottom: 14px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.footer-cols a {
  display: block;
  margin-bottom: 9px;
  color: #d9c7a3;
  font-size: 15px;
}

.footer-base {
  padding: 22px 24px 30px;
  border-top: 1px solid var(--line);
}
.footer-base p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Unused until a trailer modal is needed; kept so the markup has a home. */
.modal[hidden] { display: none; }

/* -------------------------------------------------------- responsive --- */

@media (max-width: 900px) {
  .grid-3, .board { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 68px 0; }
  .hero { padding: 150px 0 84px; }

  .nav-toggle { display: flex; margin-left: auto; }
  .nav .btn-primary { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(20, 16, 11, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero-logo { width: 112px; height: 112px; }
  .cta-row .btn { width: 100%; }
  .footer-cols { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .post-card:hover, .btn:hover { transform: none; }
}
