/* Sol Divided website: dark space, gold accent, the four faction colours. */
:root {
  --bg: #07090f;
  --bg-2: #0d1220;
  --panel: rgba(16, 22, 38, 0.82);
  --line: rgba(120, 145, 190, 0.22);
  --text: #e8ecf5;
  --muted: #9aa6bd;
  --gold: #f4c46a;
  --gold-2: #e0a640;
  --good: #6fe0a0;
  --bad: #ff7b6b;
  --mars: #e2553f;
  --earth: #4f8fe6;
  --col: #4fbf7a;
  --corp: #e7b44c;
  --radius: 14px;
  --wrap: 1180px;
  --display: "Play", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 0.78rem/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.muted { color: var(--muted); }

/* --- header ------------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font: 700 1.25rem/1 var(--display); color: var(--text); letter-spacing: 0.06em; white-space: nowrap; }
.logo span { color: var(--gold); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .site-head .btn { margin-left: auto; }
}

/* --- buttons ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 10px;
  font: 700 1rem/1.1 var(--display); letter-spacing: 0.03em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #ff8a4c, #e5572c); color: #fff; box-shadow: 0 8px 28px rgba(229, 87, 44, 0.35); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(229, 87, 44, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--text); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; }
.btn .btn-note { font: 600 0.72rem/1 var(--body); opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.btn.is-soon { background: rgba(255, 255, 255, 0.06); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: default; }
.btn.is-soon:hover { transform: none; }
.btn.is-soon .btn-label::after { content: " · Coming soon"; color: var(--gold); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* --- hero ---------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  padding: 120px 0 72px;
  background: url("img/hero.jpg") center 30% / cover no-repeat, var(--bg-2);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.55) 0%, rgba(7, 9, 15, 0.15) 35%, rgba(7, 9, 15, 0.85) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 9, 15, 0.75) 0%, rgba(7, 9, 15, 0) 60%);
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); letter-spacing: 0.04em; margin-bottom: 0.15em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.hero h1 span { color: var(--gold); }
.hero .rule { width: 120px; height: 3px; background: var(--gold); border-radius: 2px; margin: 18px 0 22px; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; color: #d6dcea; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(10, 14, 24, 0.7); border: 1px solid var(--line);
  font-size: 0.92rem; color: var(--muted);
}
.status .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-live .pulse { background: var(--good); box-shadow: 0 0 0 0 rgba(111, 224, 160, 0.6); animation: pulse 2s infinite; }
.status.is-live { color: var(--text); }
.status.is-down .pulse { background: var(--bad); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(111, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 224, 160, 0); } }
@media (prefers-reduced-motion: reduce) { .status .pulse { animation: none !important; } .btn { transition: none; } }

/* --- sections ------------------------------------------------------------------ */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -36px; position: relative; z-index: 2; }
.stats div { background: var(--bg-2); padding: 22px 20px; text-align: center; }
.stats b { display: block; font: 700 2rem/1.1 var(--display); color: var(--gold); }
.stats span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* factions */
.factions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.faction { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.faction img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.faction .body { padding: 18px 18px 20px; border-top: 3px solid var(--c); flex: 1; }
.faction h3 { color: var(--c); margin-bottom: 4px; }
.faction .tag { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.faction p { color: #c9d1e2; font-size: 0.95rem; margin: 0; }
@media (max-width: 1000px) { .factions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .factions { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(244, 196, 106, 0.12); color: var(--gold); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* screenshots */
.shots { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.shots figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.shots figure:first-child { grid-row: span 2; }
.shots img { width: 100%; height: 100%; object-fit: cover; }
.shots figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 0.85rem; color: #d6dcea; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } .shots figure:first-child { grid-row: auto; } }

/* how it plays */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: r; }
.rule-item { padding: 22px 20px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(244, 196, 106, 0.07), transparent); border-radius: 0 12px 12px 0; }
.rule-item::before { counter-increment: r; content: "0" counter(r); font: 700 0.85rem/1 var(--display); color: var(--gold); letter-spacing: 0.15em; display: block; margin-bottom: 10px; }
.rule-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 900px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rules { grid-template-columns: 1fr; } }

/* call to action */
.cta { text-align: center; }
.cta .box { padding: 56px 24px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(ellipse at top, rgba(244, 196, 106, 0.14), transparent 60%), var(--bg-2); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }

/* --- footer -------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.site-foot nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* --- inner pages (meta, privacy) -------------------------------------------------- */
.page-head { padding: 72px 0 24px; background: radial-gradient(ellipse at 20% 0%, rgba(244, 196, 106, 0.12), transparent 55%); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p { color: var(--muted); max-width: 680px; font-size: 1.08rem; }
.page { padding: 24px 0 88px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose p, .prose li { color: #cfd6e5; }
.prose table { border-collapse: collapse; width: 100%; margin: 0.5em 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 34px; }
.kpis div { padding: 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.kpis b { display: block; font: 700 1.7rem/1.1 var(--display); color: var(--text); }
.kpis span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

#meta h2 { font-size: 1.3rem; margin: 30px 0 12px; }
.bars { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.bar-row { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 64px 70px; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.bar-row:last-child { border-bottom: 0; }
.bar-head { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(255, 255, 255, 0.02); }
.bar-scale { display: flex; justify-content: space-between; }
.bar-scale b { font-weight: 600; }
.bar-name { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bar-track { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); }
.bar-mid { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: rgba(255, 255, 255, 0.35); }
.bar-fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.bar-fill.up { background: var(--good); }
.bar-fill.down { background: var(--bad); }
.bar-pct { font-variant-numeric: tabular-nums; text-align: right; font-weight: 700; }
.bar-games { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }
.bar-row.is-few { opacity: 0.45; }
.note, .empty { color: var(--muted); font-size: 0.92rem; margin-top: 16px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
@media (max-width: 560px) {
  .bar-row { grid-template-columns: 1fr 52px 48px; }
  .bar-track, .bar-scale { display: none; }
}
@media (max-width: 760px) { .site-head .btn.is-soon { display: none; } }
