/* ──────────────────────────────────────────────────────────
   Warstrife landing page — standalone styles.
   No shared deps with public/styles.css (the launcher's CSS).
   Mobile-first; breakpoints at 720 + 1100.
   ────────────────────────────────────────────────────────── */

:root {
  --bg:        #0a0d18;
  --bg-elev:   #11151f;
  --bg-card:   #161b27;
  --bord:      #2a2f3d;
  --bord-soft: #1c2030;
  --text:      #e3e7ef;
  --text2:     #9ba2b1;
  --text3:     #5b6273;
  --gold:      #d4a44c;
  --gold-dim:  #8a6d33;
  --gold-glow: #f0c060;
  --accent:    #c97548;
  --red:       #c44848;
  --font-d:    'Cinzel', 'Times New Roman', serif;
  --font-u:    'Rajdhani', system-ui, sans-serif;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-u);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-glow); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Placeholder art slots (visible until real art lands) ── */
.art-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #1a1f2e 0 12px, #161a26 12px 24px);
  border: 1px solid var(--bord);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--text3);
  font-family: var(--font-d);
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
}
.art-placeholder .placeholder-label {
  padding: 12px 18px;
  background: rgba(10,13,24,.7);
  border: 1px solid var(--bord);
  border-radius: 4px;
  font-weight: 700;
  color: var(--gold-dim);
}
.art-placeholder small { font-size: 9px; color: var(--text3); letter-spacing: 1px; }

/* ── Section primitives ── */
section {
  padding: 80px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-h {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 36px;
  text-align: center;
}
.section-head-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 36px; flex-wrap: wrap;
}
.section-head-row .section-h { margin: 0; text-align: left; }
.link-arrow {
  font-family: var(--font-d);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.link-arrow:hover { color: var(--gold); }

@media (max-width: 720px) {
  section { padding: 56px 18px; }
  .section-h { font-size: 22px; letter-spacing: 3px; margin-bottom: 28px; }
}

/* ── CTA buttons ── */
.cta {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .18s ease;
  border: 1px solid transparent;
}
.cta-primary {
  background: var(--gold);
  color: #1a1207;
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212,164,76,.25);
}
.cta-primary:hover {
  background: var(--gold-glow);
  color: #1a1207;
  box-shadow: 0 6px 22px rgba(240,192,96,.4);
  transform: translateY(-1px);
}
.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--bord);
}
.cta-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,164,76,.06);
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  padding: 14px 28px;
  background: rgba(10,13,24,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bord-soft);
  gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--gold); }
.brand-mark { color: var(--gold); font-size: 18px; }
.nav-links {
  display: flex; gap: 26px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text2);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 3px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .nav { padding: 10px 14px; gap: 12px; }
  .nav-links { display: none; }
  .nav-brand { font-size: 13px; letter-spacing: 3px; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  padding: 0 !important;
  max-width: none !important;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  border: none; border-radius: 0;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,24,.4) 0%, rgba(10,13,24,.85) 100%);
}
.hero-overlay {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: 1px;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.hero-tagline {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text2);
  margin: 0 0 40px;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; gap: 24px; }
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.feature-art {
  height: 200px;
  border: none; border-radius: 0;
  border-bottom: 1px solid var(--bord);
}
.feature h3 {
  font-family: var(--font-d);
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin: 24px 24px 10px;
}
.feature p {
  margin: 0 24px 28px;
  color: var(--text2);
  font-size: 15px;
}

/* ── Trailer ── */
.trailer-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 8px;
}

/* ── Screenshots ── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .screenshots-grid { grid-template-columns: 1fr; }
}
.shot {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform .2s ease, border-color .2s ease;
}
.shot:hover {
  transform: scale(1.02);
  border-color: var(--gold-dim);
}

/* ── News ── */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .news-list { grid-template-columns: 1fr; }
}
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text3);
  font-style: italic;
  padding: 40px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: 24px;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.news-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  color: inherit;
}
.news-card .news-date {
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.news-card .news-title {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.news-card .news-summary {
  color: var(--text2);
  font-size: 14px;
  flex: 1;
}

/* ── News post (per-post page) + archive list ── */
.news-post {
  max-width: 760px;
  margin: 0 auto;
}
.news-post-back {
  margin-bottom: 24px;
}
.news-post-date {
  font-family: var(--font-d);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 12px;
}
.news-post-title {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 32px;
}
.news-post-body {
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 40px;
}
.news-post-body p { margin: 0 0 18px; }
.news-archive-list {
  /* archive uses the same .news-list grid as the latest-3 on the landing page */
}

/* ── Newsletter ── */
.newsletter {
  text-align: center;
  background: var(--bg-elev);
  border-top: 1px solid var(--bord-soft);
  border-bottom: 1px solid var(--bord-soft);
  max-width: none !important;
  padding-left: 24px; padding-right: 24px;
}
.newsletter > * { max-width: 620px; margin-left: auto; margin-right: auto; }
.newsletter-blurb {
  color: var(--text2);
  margin: 0 auto 28px;
}
.newsletter-form {
  display: flex; gap: 12px;
  margin-bottom: 16px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--bord);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 4px;
  font-family: var(--font-u);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--gold-dim);
}
.newsletter-form button { flex-shrink: 0; }
.newsletter-status {
  min-height: 24px;
  font-size: 14px;
  margin-bottom: 16px;
}
.newsletter-status.ok { color: #6abf6a; }
.newsletter-status.err { color: var(--red); }
.newsletter-consent {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.6;
  margin: 0;
}
.newsletter-consent a { color: var(--gold-dim); }
.newsletter-consent a:hover { color: var(--gold); }
@media (max-width: 520px) {
  .newsletter-form { flex-direction: column; }
}

/* ── Community ── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.community-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: var(--text);
  transition: all .15s ease;
}
.community-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  color: var(--text);
}
.community-icon { font-size: 32px; margin-bottom: 12px; }
.community-name {
  font-family: var(--font-d);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.community-blurb {
  color: var(--text2);
  font-size: 13px;
}

/* ── FAQ ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bord);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 0;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-d);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--gold-dim);
  font-family: var(--font-u);
  font-weight: 400;
  transition: transform .15s ease;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item[open] summary {
  color: var(--gold);
  border-bottom: 1px solid var(--bord-soft);
}
.faq-item p {
  padding: 18px 22px;
  margin: 0;
  color: var(--text2);
  font-size: 15px;
}

/* ── Footer ── */
.footer {
  background: #06080f;
  border-top: 1px solid var(--bord-soft);
  padding: 56px 24px 32px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.footer-col h4 {
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--gold); }
.footer-col a.muted { color: var(--text3); }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-weight: 900;
  font-size: 15px; letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-credit {
  color: var(--text3);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
