/* Shared by index.html, releases.html and privacy.html. No web fonts, no scripts: the Caddy CSP allows only same-origin
   styles and images, and a static page needs neither. */
:root {
  --ink: #eaf0f8;
  --dim: #9aa8bd;
  --faint: #66758c;
  --bg: #04060b;
  --panel: #0a0f18;
  --panel-2: #0e1522;
  --line: #1b2536;
  --accent: #4fc3f7;
  --amber: #f2a93b;
  --danger: #ff6b5b;
  --max: 1160px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px;
}
h1, h2, h3 { letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin-bottom: 16px; }
h3 { font-size: 19px; margin-bottom: 8px; }
.lede { color: var(--dim); font-size: clamp(16px, 2vw, 19px); max-width: 680px; margin: 0; }
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(4, 6, 11, .8); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; }
.brand { font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: 14px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.top nav a { color: var(--dim); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
/* .top nav a would otherwise win on specificity and paint the button's label grey on amber. */
.top nav a.btn { padding: 8px 16px; font-size: 13px; color: #1a1003; }
.top nav a.btn:hover { color: #1a1003; }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  background: var(--amber); color: #1a1003;
  box-shadow: 0 10px 40px -12px rgba(242, 169, 59, .7);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 44px -10px rgba(242, 169, 59, .9); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--dim); }
.btn svg { width: 18px; height: 18px; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: 0; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,6,11,.96) 0%, rgba(4,6,11,.72) 40%, rgba(4,6,11,.1) 75%),
    linear-gradient(180deg, rgba(4,6,11,0) 60%, rgba(4,6,11,1) 100%);
}
.hero .wrap { position: relative; z-index: 2; min-height: min(86vh, 780px); display: flex; flex-direction: column; justify-content: center; padding-top: 60px; padding-bottom: 80px; }
.hero h1 {
  font-size: clamp(46px, 8vw, 96px); line-height: .95; letter-spacing: -.03em; margin-bottom: 22px; max-width: 760px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 34px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-note { font-size: 13px; color: var(--faint); }
.cta-note a { color: var(--dim); }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(4,6,11,.55) 0%, rgba(4,6,11,.92) 55%, rgba(4,6,11,1) 100%); }
  .hero img.bg { object-position: 70% 20%; }
}

/* ---- stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 0; }
.stats div { background: var(--panel); padding: 22px 18px; text-align: center; }
.stats b { display: block; font-size: 32px; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.stats span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(3, 1fr); } }

/* ---- pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar .n { font-size: 12px; letter-spacing: .2em; color: var(--accent); margin-bottom: 14px; display: block; }
.pillar p { color: var(--dim); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---- factions ---- */
.factions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.faction {
  position: relative; border-radius: var(--radius); padding: 30px 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--tone) -60%, var(--panel) 55%); border: 1px solid var(--line);
}
.faction::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone); }
.faction.concord { --tone: #3f8cff; }
.faction.ascendancy { --tone: #ff5b4a; }
.faction.veil { --tone: #9b6bff; }
.faction .motto { color: var(--ink); font-weight: 600; margin: 4px 0 12px; }
.faction p { color: var(--dim); font-size: 15px; margin: 0 0 22px; }
.roles { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.roles li { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 9px; }
.roles li span { color: var(--faint); }
@media (max-width: 860px) { .factions { grid-template-columns: 1fr; } }

/* ---- map ladder ---- */
.tiers { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 16px; margin-top: 44px; }
.tier { border-radius: var(--radius); padding: 22px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--tone); }
.tier.home { --tone: #4fc3f7; }
.tier.frontier { --tone: #7ee0a3; }
.tier.deep { --tone: #f2a93b; }
.tier.abyss { --tone: #ff6b5b; }
.tier.rift { --tone: #b388ff; }
.tier .lv { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tone); }
.tier h3 { margin: 6px 0 14px; }
.tier ul { list-style: none; margin: 0; padding: 0; color: var(--dim); font-size: 15px; display: grid; gap: 6px; }
.tier ul li.final { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }

/* ---- feature rows ---- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .shot { order: 2; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.feature p { color: var(--dim); margin: 0 0 14px; }
.feature ul { color: var(--dim); padding-left: 18px; margin: 0; }
.feature ul li { margin-bottom: 6px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .shot { order: 0; }
}

/* ---- threats ---- */
.threats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 44px; }
.threat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.threat h3 { font-size: 17px; }
.threat p { color: var(--dim); font-size: 14px; margin: 0; }
.bosses { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bosses span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.bosses b { font-weight: 600; font-size: 14px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255,107,91,.4); color: #ffb4ab; background: rgba(255,107,91,.07); }
.bosses b.raid { border-color: rgba(179,136,255,.5); color: #d9c6ff; background: rgba(179,136,255,.08); }

/* ---- final cta ---- */
.finale { text-align: center; }
.finale .lede { margin: 0 auto 30px; }
.finale .cta { justify-content: center; }

/* ---- prose (privacy) ---- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--dim); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.mail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 560px; margin: 18px 0 8px; }
.mail .head { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.mail .head b { color: var(--ink); font-weight: 500; }
.mail .body { padding: 22px 20px; font-size: 15px; }
.mail .code { font: 600 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3em; color: var(--accent); margin: 16px 0; }
.mail .note { color: var(--faint); font-size: 13px; margin: 0; }
.table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--faint); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.table td:first-child { color: var(--ink); white-space: nowrap; }
.table td { color: var(--dim); }
.scroll { overflow-x: auto; }
/* On a phone three columns of prose are unreadable: each row becomes a small card instead. */
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 3px 0; }
  .table td:first-child { white-space: normal; font-weight: 600; margin-bottom: 2px; }
  .table td:last-child { color: var(--faint); font-size: 13px; }
}

/* ---- release notes ---- */
.releases { max-width: 820px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin-bottom: 14px; }
.release { padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.release:first-child { border-top: 0; padding-top: 12px; }
.release header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.release .ver { font: 600 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); text-decoration: none; letter-spacing: .04em; }
.release .tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #1a1003; background: var(--amber); border-radius: 999px; padding: 3px 9px; }
.release time { color: var(--faint); margin-left: auto; }
.release h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.release h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin: 26px 0 12px; }
.release .summary { color: var(--dim); font-size: 17px; margin: 0; }
.release strong { color: var(--ink); font-weight: 600; }
.release code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--panel-2); padding: 1px 6px; border-radius: 5px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.features li { position: relative; padding: 14px 18px 14px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--dim); font-size: 15px; }
.features li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); }
.fixes { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.fixes summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 13px 18px; font-size: 14px; }
.fixes summary::-webkit-details-marker { display: none; }
.fixes summary::after { content: "Show"; margin-left: auto; color: var(--faint); font-size: 13px; }
.fixes[open] summary::after { content: "Hide"; }
.fixes .areas { display: flex; flex-wrap: wrap; gap: 6px; }
.fixes .areas span { font-size: 12px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.fixes .areas b { color: var(--ink); font-weight: 600; margin-left: 2px; }
.fixes ul { margin: 0; padding: 4px 18px 16px; list-style: none; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.fixes li { color: var(--dim); font-size: 14px; display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.fixes li .area { color: var(--faint); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
@media (max-width: 640px) {
  .fixes li { grid-template-columns: 1fr; gap: 0; }
  .release time { margin-left: 0; }
}

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .fine { flex-basis: 100%; font-size: 13px; margin: 0; }
