/* ===== A World Reforged — site styles ===== */
:root {
  --bg:        #050a12;
  --bg-2:      #0a1320;
  --panel:     #0e1a2b;
  --panel-2:   #122236;
  --line:      rgba(96, 196, 255, 0.18);
  --cyan:      #38c6ff;
  --cyan-soft: #7fe0ff;
  --cyan-deep: #1b6fa8;
  --text:      #dce8f4;
  --muted:     #8aa3bd;
  --white:     #f4fbff;
  --maxw:      1160px;
  --r:         12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Rajdhani', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .brand span {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #03121d;
  box-shadow: 0 8px 28px rgba(56, 198, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(56, 198, 255, 0.5); }

.btn-ghost {
  background: rgba(56, 198, 255, 0.06);
  border-color: var(--line);
  color: var(--cyan-soft);
}
.btn-ghost:hover { background: rgba(56, 198, 255, 0.14); }

.btn-small { padding: 9px 18px; font-size: 0.72rem;
  background: rgba(56, 198, 255, 0.1); border: 1px solid var(--line); color: var(--cyan-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; }
.brand span { font-size: 1rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; letter-spacing: 0.04em; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--cyan-soft); }
.nav-links a.btn-small:hover { color: var(--white); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/SteamStoreArt/library_hero_3840_1240.png') center/cover no-repeat;
  transform: scale(1.05);
  filter: saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(5,10,18,0.25) 0%, rgba(5,10,18,0.82) 70%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(5,10,18,0.6) 0%, rgba(5,10,18,0.2) 35%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 80px 24px;
  margin: 0 auto;
}
.hero-logo {
  width: 132px; height: 132px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 30px rgba(56, 198, 255, 0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  margin: 0 0 18px;
  text-shadow: 0 0 40px rgba(56, 198, 255, 0.4);
}
.hero-tag {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-status {
  margin-top: 30px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-status .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }

/* ===== Split (About) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 20px; }
.split-text p { color: var(--muted); margin: 0 0 16px; font-size: 1.05rem; }
.split-media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.split-media::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 70px rgba(56,198,255,0.12);
  pointer-events: none;
}
.split-media img { width: 100%; }

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56,198,255,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
  background: rgba(56,198,255,0.08);
  border: 1px solid var(--line);
}
.feature-card h3 { font-size: 1.05rem; margin: 0 0 10px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shot {
  padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; cursor: pointer; background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.4s ease; }
.shot:hover { border-color: rgba(56,198,255,0.5); transform: translateY(-4px); }
.shot:hover img { transform: scale(1.06); }

/* ===== Trailer ===== */
.trailer-frame {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(56,198,255,0.05);
  background: #000;
}
.trailer-frame::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 90px rgba(56,198,255,0.14);
  pointer-events: none;
}
.trailer-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

/* ===== CTA ===== */
.cta { background: var(--bg-2); border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.cta-art { border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,0.55); }
.cta-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 16px; }
.cta-text p { color: var(--muted); font-size: 1.05rem; margin: 0 0 24px; max-width: 520px; }
.cta-note { font-size: 0.82rem; color: var(--muted); opacity: 0.7; margin-top: 16px; }
.steam-widget { margin-top: 18px; max-width: 520px; border-radius: 8px; }

/* ===== Updates ===== */
.updates-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}
.update-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
}
.update-meta {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 8px;
}
.update-title {
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--white);
}
.update-changes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.update-changes li {
  font-size: 0.95rem;
  color: var(--muted);
}
.update-changes li[data-type="added"]   { color: var(--cyan-soft); }
.update-changes li[data-type="fixed"]   { color: #7fc98a; }
.update-changes li[data-type="removed"] { color: #e07070; }
.update-error { color: var(--muted); font-size: 0.9rem; }

/* skeleton loader */
.update-skeleton {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sk-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--panel-2) 25%, rgba(96,196,255,0.08) 50%, var(--panel-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.sk-line--short { width: 35%; }
.sk-line--long  { width: 75%; height: 16px; }
.sk-line--mid   { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand span { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; color: var(--white); }
.footer-copy { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 7, 13, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 0 80px rgba(56,198,255,0.25); }
.lightbox-close {
  position: absolute; top: 22px; right: 28px;
  background: rgba(56,198,255,0.1); border: 1px solid var(--line); color: var(--cyan-soft);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(56,198,255,0.25); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links a:not(.btn-small) { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta-art { max-width: 260px; }
  .section { padding: 72px 0; }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
}
