/* ============================================================
   World at War — Ultima Online Shard
   ============================================================ */

:root {
  --bg: #0c0a08;
  --bg-soft: #14100c;
  --surface: #1a1511;
  --surface-2: #221a14;
  --border: #2e241a;
  --border-soft: #241c14;

  --gold: #d4a63a;
  --gold-bright: #e9c25a;
  --gold-dark: #8a6a1d;

  --ember: #b3402a;
  --ember-bright: #d65a3d;

  --text: #ede6da;
  --muted: #a99e8f;
  --muted-2: #857b6d;

  --green: #46c27a;
  --red: #e2503f;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #1a1206; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(12, 10, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 0.55rem;
  font-size: 1rem;
  line-height: 1;
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(212, 166, 58, 0.4), 0 2px 10px rgba(212, 166, 58, 0.3);
}

.brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav .nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  transition: color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn-gold {
  --bs-btn-color: #1a1206;
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: #1a1206;
  --bs-btn-hover-bg: var(--gold-bright);
  --bs-btn-hover-border-color: var(--gold-bright);
  --bs-btn-active-color: #1a1206;
  --bs-btn-active-bg: var(--gold);
  --bs-btn-active-border-color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid var(--gold);
  background-image: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 8px 24px rgba(212, 166, 58, 0.28);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background-image: linear-gradient(135deg, #f2d177, var(--gold-bright));
  color: #1a1206;
}

.btn-gold:active {
  background-image: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1206;
}

.btn-outline-gold {
  --bs-btn-color: var(--gold-bright);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: #1a1206;
  --bs-btn-hover-bg: var(--gold);
  --bs-btn-hover-border-color: var(--gold);
  --bs-btn-active-color: #1a1206;
  --bs-btn-active-bg: var(--gold);
  --bs-btn-active-border-color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-width: 1.5px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 150px;
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(212, 166, 58, 0.14), transparent 60%),
    radial-gradient(700px 460px at 12% 90%, rgba(179, 64, 42, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(12, 10, 8, 0.94) 0%,
      rgba(12, 10, 8, 0.68) 42%,
      rgba(12, 10, 8, 0.28) 72%,
      rgba(12, 10, 8, 0.55) 100%),
    linear-gradient(180deg,
      rgba(12, 10, 8, 0.55) 0%,
      rgba(12, 10, 8, 0.12) 42%,
      rgba(12, 10, 8, 0.9) 100%),
    url("../img/header-bg.jpg") center / cover no-repeat;
  background-position: center 40%;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(212, 166, 58, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 166, 58, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 60% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  right: -120px;
  top: 40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212, 166, 58, 0.18), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.text-gold { color: var(--gold-bright) !important; }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-cta { margin-bottom: 2.2rem; }

.hero-meta {
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-meta .list-inline-item:not(:last-child)::after {
  content: "·";
  margin-left: 0.9rem;
  color: var(--border);
}

.hero-meta i { color: var(--gold); }

/* ---------- Status ---------- */
.status-section {
  margin-top: -64px;
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

.status-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.8rem;
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.status-item:last-child { border-right: 0; }

.status-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--gold-bright);
  background: rgba(212, 166, 58, 0.1);
  border: 1px solid rgba(212, 166, 58, 0.25);
  border-radius: 10px;
}

.status-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.2rem;
}

.status-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-2);
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.status-dot.is-online {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(70, 194, 122, 0.16), 0 0 14px rgba(70, 194, 122, 0.6);
  animation: pulse 2s infinite;
}

.status-dot.is-offline {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(226, 80, 63, 0.16), 0 0 14px rgba(226, 80, 63, 0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(70, 194, 122, 0.16), 0 0 14px rgba(70, 194, 122, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(70, 194, 122, 0.06), 0 0 22px rgba(70, 194, 122, 0.75); }
}

.status-updated {
  padding: 0.7rem 1.8rem;
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: right;
  border-top: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.2);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

.section-alt {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head { max-width: 680px; margin-bottom: 3.2rem; }

.section-head .eyebrow { margin-bottom: 0.5rem; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.lead-muted {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}

.body-copy { color: var(--muted); font-size: 1rem; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.8rem 1.4rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -1.4rem;
  top: 0.35rem;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 166, 58, 0.16);
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-text { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Features ---------- */
.feature-card {
  height: 100%;
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dark);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold-bright);
  background: rgba(212, 166, 58, 0.1);
  border: 1px solid rgba(212, 166, 58, 0.22);
  border-radius: 9px;
  margin-bottom: 1rem;
}

.feature-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.5rem; }

.feature-text { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Chips ---------- */
.chips { max-width: 860px; margin: 0 auto; }

.chip {
  display: inline-block;
  margin: 0.35rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dark);
  background: var(--surface-2);
}

/* ---------- Connect ---------- */
.connect-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.connect-info {
  padding: 2.2rem;
  border-bottom: 1px solid var(--border-soft);
}

.connect-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--border-soft);
}

.connect-row:last-child { border-bottom: 0; }

.connect-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.connect-value {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
  font-family: var(--font);
}

.connect-cta {
  padding: 2.2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}

.connect-icon { font-size: 2.4rem; color: var(--gold); margin-bottom: 0.6rem; }

.connect-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }

.connect-text { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.3rem; }

.connect-note {
  margin-top: 1.4rem;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  padding: 3.2rem 0 0;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-brand:hover { color: var(--text); }

.footer-tagline { color: var(--muted); margin-top: 0.6rem; margin-bottom: 0; }

.footer-links .list-inline-item { margin-right: 1.2rem; }

.footer-links a { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.footer-links a:hover { color: var(--gold-bright); }

.footer-bottom {
  margin-top: 2.4rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 0.78rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .status-item { border-bottom: 0; }
  .connect-info { border-bottom: 0; border-right: 1px solid var(--border-soft); }
}

@media (max-width: 767.98px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--nav-h) + 64px) 0 120px; }
  .status-item { padding: 1.3rem 1.4rem; }
  .status-updated { text-align: center; }
}
