/* =========================================================
   AfterFall RTS — static marketing site
   Engraved-steel / near-black-stone industrial theme,
   tuned to harmonize with the metallic AFTERFALL emblem.
   Green (#39d98a) kept as a sparing "energy / HUD" accent.
   ========================================================= */

:root {
  /* --- stone / near-black base (neutral, like the logo backdrop) --- */
  --bg:            #0b0c0d;
  --bg-2:          #0e1012;
  --bg-3:          #101315;

  /* --- steel plate surfaces --- */
  --panel:         #14181b;
  --panel-2:       #1a1f23;
  --line:          #2c333a;
  --line-soft:     #1f262b;

  /* --- forged-metal materials (reused via var) --- */
  --metal-face:      linear-gradient(180deg, #1b2024 0%, #15191d 48%, #101315 100%);
  --metal-face-lit:  linear-gradient(180deg, #262c31 0%, #191e22 52%, #14181b 100%);
  --brushed:         repeating-linear-gradient(90deg, rgba(220,230,236,0.014) 0 1px, rgba(0,0,0,0.02) 1px 3px);
  --edge-hi:         rgba(198,211,220,0.11);   /* top bevel highlight */
  --edge-lo:         rgba(0,0,0,0.55);          /* bottom bevel shadow */
  --bevel:           inset 0 1px 0 var(--edge-hi), inset 0 -1px 2px var(--edge-lo);
  --plate-shadow:    0 20px 44px -26px rgba(0,0,0,0.95);

  /* --- text: brushed steel tones --- */
  --text:          #d6dce1;
  --text-dim:      #949ea6;
  --text-faint:    #616b72;

  /* --- steel accents --- */
  --steel:         #7d8a92;
  --steel-light:   #c3ccd2;
  --steel-dark:    #3a434a;

  /* --- energy accent: use sparingly --- */
  --green:         #39d98a;
  --green-bright:  #5cf0a6;
  --green-deep:    #1c6e48;
  --green-glow:    rgba(57, 217, 138, 0.30);

  --amber:         #f0a53c;
  --red:           #e5533c;

  --maxw:          1180px;
  --radius:        4px;
  --radius-lg:     7px;
  --notch:         9px;   /* chamfer size for cut-steel plates */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift", "Oswald", "Roboto Condensed", "Arial Narrow",
          "Haettenschweiler", "Helvetica Neue Condensed", "DIN Alternate", Impact, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg);
  /* faint stone grain + top sheen so the near-black reads as forged surface */
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(120,134,144,0.06), transparent 60%),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.015), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(0,0,0,0.35), transparent 55%);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.01em;
  font-stretch: 90%;
}

::selection { background: var(--green); color: #04140c; }

/* ---------- Engraved-steel display text (mirrors the emblem lettering) ---------- */
.engraved {
  color: var(--steel-light);                 /* fallback if background-clip unsupported */
  background: linear-gradient(180deg,
      #eef3f6 0%, #c2ccd2 26%, #8b959c 50%,
      #d3dbe0 58%, #7c868d 78%, #aab4bb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 1px rgba(0,0,0,0.7))
    drop-shadow(0 -1px 0 rgba(230,240,246,0.06));
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.section { position: relative; padding: 110px 0; }

.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.section-head h2 em {
  font-style: normal;
  color: var(--green);
  -webkit-text-fill-color: var(--green);
  filter: drop-shadow(0 0 18px var(--green-glow));
}
.section-intro { margin-top: 22px; color: var(--text-dim); font-size: 1.05rem; }

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  padding-left: 2px;
}
.kicker::before { content: "// "; color: var(--green-deep); }
.kicker-alt { color: var(--amber); }
.kicker-alt::before { color: #7a5417; }

/* =========================================================
   Buttons — cut-steel plates; the primary CTA is the one
   deliberate "energy" element (green).
   ========================================================= */
.btn {
  --btn-pad-y: 0.85em;
  --btn-pad-x: 1.7em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  /* chamfered "plasma-cut" corners echoing the emblem plate */
  clip-path: polygon(
    var(--notch) 0, 100% 0,
    100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%,
    0 100%, 0 var(--notch));
  transition: transform 0.15s var(--ease), filter 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.2s var(--ease);
}
.btn-icon { font-size: 0.8em; transform: translateY(0.5px); }

.btn-primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, var(--green-bright) 0%, var(--green) 55%, #23b573 100%);
  color: #04140c;
  box-shadow:
    inset 0 0 0 1px rgba(4,20,12,0.35),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -3px 8px rgba(0,60,32,0.5);
  filter: drop-shadow(0 12px 24px rgba(57,217,138,0.22));
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 22px rgba(57,217,138,0.45)) drop-shadow(0 14px 26px rgba(57,217,138,0.28));
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background-image: var(--brushed), var(--metal-face-lit);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.4),
    inset 0 1px 0 var(--edge-hi),
    inset 0 -2px 5px var(--edge-lo);
}
.btn-ghost:hover {
  color: var(--steel-light);
  box-shadow:
    inset 0 0 0 1px rgba(57,217,138,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 5px var(--edge-lo);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6));
}

.btn-lg { --btn-pad-y: 1.05em; --btn-pad-x: 2.3em; --notch: 11px; font-size: 1.12rem; }
.btn-sm { --btn-pad-y: 0.6em; --btn-pad-x: 1.2em; --notch: 7px; font-size: 0.82rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 12, 13, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: linear-gradient(180deg, rgba(20,24,27,0.92), rgba(11,13,15,0.86));
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 var(--edge-hi), 0 14px 30px -20px rgba(0,0,0,0.9);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* brand = forged insignia mark + engraved wordmark */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  height: 36px; width: 36px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(220,230,236,0.06), 0 3px 8px rgba(0,0,0,0.6);
  transition: filter 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
}
.brand-rts {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  color: var(--green);
  -webkit-text-fill-color: var(--green);
  filter: none;
  transform: translateY(-0.25em);
}
.brand:hover .brand-mark { filter: brightness(1.12) drop-shadow(0 0 9px var(--green-glow)); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link:hover { color: var(--steel-light); }
.nav-play { color: var(--text); }
.nav-play:hover { color: var(--green-bright); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background-image: var(--metal-face-lit);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--bevel);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 26px 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 30%, transparent 78%);
  opacity: 0.5;
}
/* cold steel sheen with a faint green energy core behind the emblem */
.hero-glow {
  position: absolute;
  left: 50%; top: 40%;
  width: 950px; height: 950px;
  max-width: 132vw;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(150,166,176,0.10) 0%, transparent 55%),
    radial-gradient(circle, rgba(57,217,138,0.10) 0%, rgba(57,217,138,0.04) 30%, transparent 60%);
  filter: blur(8px);
}
/* scanlines echo the ruined-city arch inside the emblem */
.hero-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 1px, transparent 2px, transparent 4px);
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 40%, rgba(3,4,5,0.72) 100%),
    linear-gradient(180deg, rgba(11,12,13,0.6) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 900px; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 18px;
  background-image: var(--metal-face-lit);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4), inset 0 1px 0 var(--edge-hi), inset 0 -1px 3px var(--edge-lo);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  margin-bottom: 34px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-logo {
  width: min(620px, 86vw);
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 24px 58px rgba(0,0,0,0.75));
  animation: heroIn 1s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tagline {
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero-tagline .accent {
  color: var(--green);
  -webkit-text-fill-color: var(--green);
  filter: drop-shadow(0 0 26px var(--green-glow));
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 42px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-badges {
  list-style: none;
  display: flex;
  gap: 10px 26px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-badges li { display: flex; align-items: center; gap: 10px; }
.hero-badges li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--steel);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 var(--edge-hi);
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--green);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* =========================================================
   Story
   ========================================================= */
.section-story { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.section-story .section-head { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }

.story-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.story-lead p { color: var(--text-dim); margin-bottom: 20px; font-size: 1.06rem; }
.story-lead strong { color: var(--text); font-weight: 700; }
.drop-cap {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.78;
  font-weight: 700;
  margin: 6px 14px 0 0;
  color: var(--steel-light);
  background: linear-gradient(180deg, #eef3f6, #8b959c 55%, #b7c1c8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.6));
}
.motto {
  font-family: var(--mono);
  color: var(--green-bright) !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.06em;
  padding: 14px 0 14px 20px;
  border-left: 2px solid var(--green);
  margin: 6px 0 26px !important;
}

/* forged-steel panel (shared look) */
.faction-list {
  background-image: var(--brushed), var(--metal-face);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 12px;
  position: sticky;
  top: 90px;
  box-shadow: var(--bevel), var(--plate-shadow);
}
.faction-title {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.faction { padding: 16px 0 18px; border-bottom: 1px solid var(--line-soft); position: relative; padding-left: 16px; }
.faction:last-child { border-bottom: none; }
.faction::before {
  content: "";
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 3px;
  border-radius: 2px;
  box-shadow: 0 0 10px -2px currentColor;
}
.faction-echo::before     { background: var(--red);   color: var(--red); }
.faction-vanguard::before { background: var(--green); color: var(--green); }
.faction-dominion::before { background: var(--amber); color: var(--amber); }
.faction-scav::before     { background: var(--steel); color: var(--steel); }
.faction-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.faction h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.faction-echo h4     { color: #ff7a63; }
.faction-vanguard h4 { color: var(--green-bright); }
.faction-dominion h4 { color: var(--amber); }
.faction-scav h4     { color: #a4b1b8; }
.faction p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.5; }

/* =========================================================
   Gameplay / features — cut-steel HUD tiles
   ========================================================= */
.section-gameplay { background: var(--bg-2); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background-image: var(--brushed), var(--metal-face);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--bevel);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* HUD corner bracket (top-left) */
.feature::before {
  content: "";
  position: absolute;
  top: 11px; left: 11px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--steel-dark);
  border-left: 1px solid var(--steel-dark);
  opacity: 0.7;
  transition: border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* energy scan line on hover */
.feature::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 217, 138, 0.4);
  box-shadow: var(--bevel), 0 24px 44px -26px rgba(0,0,0,0.95);
}
.feature:hover::before { border-color: var(--green); opacity: 1; }
.feature:hover::after { transform: scaleX(1); }
.feature-wide { grid-column: span 2; }
.feature-icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background-image: var(--metal-face-lit);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--bevel);
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text);
}
.feature p { color: var(--text-dim); font-size: 0.98rem; }

/* =========================================================
   Global War
   ========================================================= */
.section-globalwar { background: var(--bg); overflow: hidden; }
.globalwar-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(240, 165, 60, 0.07), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(57, 217, 138, 0.06), transparent 45%);
  pointer-events: none;
}
.section-globalwar .container { position: relative; z-index: 1; }

.globalwar-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  margin-bottom: 40px;
}

.mission-brief, .worldmap {
  background-image: var(--brushed), var(--metal-face);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--bevel), var(--plate-shadow);
}
.mission-brief { border-left: 3px solid var(--green); }
.brief-head, .worldmap-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.brief-signal {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s var(--ease) infinite;
}
.brief-line { font-size: 1rem; color: var(--text-dim); margin-bottom: 12px; }
.brief-line span { color: var(--green-bright); font-weight: 700; }
.brief-line strong { color: var(--text); }
.brief-note {
  font-size: 0.88rem;
  color: var(--text-faint);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-top: 6px;
}
.brief-cta { margin-top: 18px; }

.worldmap { border-left: 3px solid var(--amber); }
.worldmap-title { color: var(--amber); }
.worldmap-title::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 8px var(--amber);
  animation: pulse 2s var(--ease) infinite;
}
.region-list { list-style: none; }
.region-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
}
.region-list li:last-child { border-bottom: none; }
.region-name { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }
.region-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.status-attack { color: #ff8a72; background: rgba(229, 83, 60, 0.1);  border-color: rgba(229, 83, 60, 0.35); }
.status-secure { color: var(--green-bright); background: rgba(57, 217, 138, 0.1); border-color: rgba(57, 217, 138, 0.35); }
.status-scav   { color: #b0bcc3; background: rgba(125, 138, 146, 0.12); border-color: rgba(125, 138, 146, 0.35); }
.status-echo   { color: var(--amber); background: rgba(240, 165, 60, 0.1); border-color: rgba(240, 165, 60, 0.35); }
.worldmap-foot { margin-top: 18px; font-size: 0.84rem; color: var(--text-faint); }

.globalwar-tease {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.globalwar-tease strong { color: var(--text); }

/* =========================================================
   Final CTA — the single big "energy" moment
   ========================================================= */
.section-cta { text-align: center; overflow: hidden; padding: 130px 0; }
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 100%, rgba(57, 217, 138, 0.13), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #070a08 100%);
}
.cta-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 100%, #000, transparent 70%);
  opacity: 0.45;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.cta-inner > p {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 34px;
}
.cta-fine {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #070908; border-top: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge-hi); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  padding-top: 60px;
  padding-bottom: 44px;
}
.footer-brand { max-width: 300px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-mark {
  height: 42px; width: 42px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(220,230,236,0.06), 0 3px 8px rgba(0,0,0,0.6);
}
.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.footer-tag { color: var(--text-faint); font-size: 0.95rem; max-width: 280px; }
.footer-nav { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.footer-col a {
  color: var(--text-dim);
  font-size: 0.96rem;
  transition: color 0.18s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col a:hover { color: var(--green-bright); }
.footer-play { color: var(--green) !important; font-weight: 700; }
.soon { cursor: default; }
.soon:hover { color: var(--text-dim) !important; }
.soon-tag {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
}

.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 26px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.footer-bottom-play { color: var(--green); }
.footer-bottom-play:hover { color: var(--green-bright); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .faction-list { position: static; }
  .globalwar-body { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: linear-gradient(180deg, rgba(18,21,24,0.98), rgba(9,11,10,0.97));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 12px; border-radius: var(--radius); font-size: 1.05rem; }
  .nav-link:hover { background: rgba(57, 217, 138, 0.06); }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }
  .brand-word { font-size: 1.18rem; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; }
  .footer-inner { gap: 36px; }
  .footer-nav { gap: 44px; }
  .hero { padding-top: 100px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .brand-word { font-size: 1.05rem; letter-spacing: 0.12em; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
