:root {
  --bg: #0b0d10;
  --panel: #111317;
  --border: rgba(255,255,255,0.10);
  --text: #e8eaee;
  --muted: #a9afbd;
  --blue: #3b82f6;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,13,16,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-name {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .4px;
}

nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s;
}

nav a:hover { color: var(--text); }

/* ── Hero ── */

.hero {
  text-align: center;
  padding: 80px 28px 60px;
  background:
    radial-gradient(900px 400px at 50% -5%, rgba(59,130,246,.15), transparent 60%);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: .5px;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 18px);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── System cards ── */

.systems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 70px;
}

@media (max-width: 700px) {
  .systems { grid-template-columns: 1fr; }
}

.system-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}

.system-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.system-card-inner {
  padding: 36px 28px 32px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* WH40K — dark red / grimdark */
.system-card.wh40k {
  background: linear-gradient(145deg, #1a0505 0%, #2a0808 60%, #1a0505 100%);
  border-color: rgba(160,20,20,.35);
}
.system-card.wh40k:hover { box-shadow: 0 20px 60px rgba(180,0,0,.25); }
.system-card.wh40k .system-label { color: #e05555; }
.system-card.wh40k .system-arrow { color: #cc2222; }

/* Age of Sigmar — celestial blue / gold */
.system-card.aos {
  background: linear-gradient(145deg, #060a14 0%, #0b1428 60%, #060a14 100%);
  border-color: rgba(100,140,220,.25);
}
.system-card.aos:hover { box-shadow: 0 20px 60px rgba(40,80,200,.2); }
.system-card.aos .system-label { color: #c9a227; }
.system-card.aos .system-arrow { color: #c9a227; }

/* The Old World — parchment / amber */
.system-card.tow {
  background: linear-gradient(145deg, #110e06 0%, #1c1608 60%, #110e06 100%);
  border-color: rgba(140,100,40,.3);
}
.system-card.tow:hover { box-shadow: 0 20px 60px rgba(120,80,20,.2); }
.system-card.tow .system-label { color: #c8924a; }
.system-card.tow .system-arrow { color: #a07840; }

.system-label {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .3px;
  margin-bottom: 10px;
}

.system-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.system-arrow {
  font-size: 22px;
  margin-top: 18px;
  display: block;
  transition: transform .15s;
}

.system-card:hover .system-arrow {
  transform: translateX(4px);
}

/* ── Updates ── */

.updates {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.updates-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--text);
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.update-placeholder {
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.update-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .12s;
}

.update-card:hover { transform: translateY(-2px); }

.update-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.update-card-meta {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.update-card-date {
  font-size: 11px;
  color: var(--muted);
}

.system-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.system-badge.wh40k { background: rgba(180,20,20,.25); color: #e05555; }
.system-badge.aos   { background: rgba(100,140,220,.2); color: #7ba8e8; }
.system-badge.tow   { background: rgba(140,100,40,.25); color: #c8924a; }

/* Noosphere — phosphor green / mechanicus */
.system-card.noosphere {
  background: linear-gradient(145deg, #030a03 0%, #061006 60%, #030a03 100%);
  border-color: rgba(57,255,20,.2);
}
.system-card.noosphere:hover { box-shadow: 0 20px 60px rgba(57,255,20,.12); }
.system-card.noosphere .system-label { color: #39ff14; }
.system-card.noosphere .system-desc { color: #5a9a5a; }
.system-card.noosphere .system-arrow { color: #2ab80a; }

/* ── Footer ── */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 16px 28px;
  font-size: 12px;
  color: rgba(232,234,238,.35);
  max-width: 1100px;
  margin: 0 auto;
}
