:root {
  color-scheme: dark;
  --ink: #080a0d;
  --surface: #111419;
  --surface-2: #171b21;
  --text: #eee9df;
  --muted: #9b9a96;
  --gold: #c8a76a;
  --gold-bright: #e1c78f;
  --line: rgba(220, 195, 143, .18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 42px;
  height: 84px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: .22em;
}
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: .86rem; text-transform: uppercase; letter-spacing: .09em; }
nav a:hover, nav a:focus-visible { color: var(--gold-bright); }
.status { color: #b9c0b1; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.status i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #84956f; box-shadow: 0 0 12px #84956f; }
.language-switcher { display: flex; align-items: center; gap: 7px; color: #777a78; font-size: .72rem; letter-spacing: .12em; }
.language-switcher button { padding: 4px 2px; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { color: var(--gold-bright); }
.language-switcher button:hover, .language-switcher button:focus-visible { color: var(--text); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  height: 100vh;
  max-height: 980px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  padding: 100px max(24px, calc((100vw - var(--max)) / 2));
  background: #080a0d;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/valtherion-bg.png") center center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,6,8,.42) 0%, rgba(5,7,9,.10) 34%, rgba(5,7,9,.18) 67%, rgba(5,7,9,.72) 100%),
    radial-gradient(ellipse at 36% 54%, rgba(3,5,7,.64) 0%, rgba(3,5,7,.26) 34%, transparent 62%);
}
.hero-glow { display: none; }
.hero-content { z-index: 2; min-width: 0; max-width: 680px; padding: 34px 40px 38px; background: linear-gradient(90deg, rgba(3,5,7,.34), rgba(3,5,7,.08) 82%, transparent); }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .23em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(3.6rem, 8vw, 7.8rem); line-height: .9; letter-spacing: .035em; text-shadow: 0 8px 40px #000; }
.chronicle { margin: 24px 0 30px; color: #bbb7ae; font-size: 1rem; letter-spacing: .33em; }
.chronicle strong { color: var(--gold-bright); }
.lead { margin: 0 0 34px; color: #d2cec5; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.3vw, 1.75rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 28px; border: 1px solid var(--line); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; transition: .2s ease; }
.button-primary { background: var(--gold); border-color: var(--gold); color: #15120d; }
.button-primary:hover, .button-primary:focus-visible { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); }
.button-primary[aria-disabled="true"] { cursor: not-allowed; filter: saturate(.35); opacity: .68; }
.button-secondary { background: rgba(255,255,255,.025); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--gold); color: var(--gold-bright); }
.download-note { min-height: 1.4em; margin: 14px 0 0; color: var(--muted); font-size: .8rem; }
.sigil { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: min(31vw, 390px); aspect-ratio: 1; border: 1px solid rgba(220,195,143,.2); transform: rotate(45deg); box-shadow: inset 0 0 90px rgba(200,167,106,.05); }
.sigil::before, .sigil::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(220,195,143,.12); }
.sigil::after { inset: 28%; }
.sigil span { transform: rotate(-45deg); color: rgba(225,199,143,.32); font-family: Georgia, serif; font-size: 10rem; }

.server-section, .guide-section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 110px 0; }
.section-heading { max-width: 640px; margin-bottom: 44px; }
h2 { margin: 0; font-size: clamp(2.25rem, 4.5vw, 4.25rem); line-height: 1.05; }
.section-heading > p:last-child { color: var(--muted); }
.server-card { display: grid; grid-template-columns: 300px 1fr; min-height: 260px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.server-identity { display: flex; flex-direction: column; justify-content: center; padding: 42px; border-right: 1px solid var(--line); }
.server-identity span { color: var(--gold); font-family: Georgia, serif; letter-spacing: .12em; }
.server-identity strong { margin: 8px 0; font-size: 1.5rem; letter-spacing: .13em; }
.server-identity b { color: var(--gold-bright); font-size: 3rem; font-family: Georgia, serif; }
.server-identity small { width: max-content; margin-top: 14px; padding: 5px 9px; border: 1px solid #59604e; color: #aeb8a2; letter-spacing: .12em; }
.rates { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
.rates div { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; border-right: 1px solid var(--line); }
.rates div:last-child { border-right: 0; }
.rates dt { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .15em; }
.rates dd { margin: 0; color: var(--gold-bright); font-family: Georgia, serif; font-size: 2rem; }

.guide-section { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; list-style: none; background: var(--line); }
.steps li { min-height: 145px; padding: 28px; background: var(--surface); }
.steps span { color: var(--gold); font-size: .7rem; letter-spacing: .15em; }
.steps p { margin: 24px 0 0; }
.test-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; padding: 24px 28px; border-left: 2px solid var(--gold); background: rgba(200,167,106,.07); }
.test-note span { color: var(--gold-bright); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.test-note p { margin: 0; color: #c6c2b9; }
footer { display: flex; justify-content: space-between; gap: 24px; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 32px 0 48px; border-top: 1px solid var(--line); color: #747672; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 850px) {
  .site-header { gap: 18px; }
  nav { display: none; }
  .status { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 720px; }
  .sigil { position: absolute; right: -80px; width: 360px; opacity: .35; }
  .server-card { grid-template-columns: 1fr; }
  .server-identity { border-right: 0; border-bottom: 1px solid var(--line); }
  .rates { min-height: 150px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header { width: calc(100% - 32px); height: 70px; }
  .wordmark { font-size: .86rem; }
  .status { display: none; }
  .language-switcher { margin-left: auto; }
  .hero { min-height: 680px; padding-inline: 20px; }
  .hero::before { background-position: 59% center; }
  .hero-content { width: 100%; padding: 28px 0 32px; background: none; }
  h1 { font-size: clamp(2.5rem, 12.3vw, 4rem); letter-spacing: .01em; }
  .chronicle { letter-spacing: .19em; }
  .button { width: 100%; }
  .server-section, .guide-section { width: calc(100% - 32px); padding: 78px 0; }
  .rates { grid-template-columns: repeat(2, 1fr); }
  .rates div { min-height: 105px; border-bottom: 1px solid var(--line); }
  .rates div:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .test-note, footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
