:root {
  color-scheme: dark;
  --ink: #090807;
  --surface: #151210;
  --line: #352d26;
  --line-bright: #5a4835;
  --bone: #eee6d7;
  --muted: #aaa093;
  --brass: #c6a260;
  --brass-light: #ead39e;
  --blood: #781d28;
  --blood-light: #a82e3c;
  --green: #6fc18c;
  --danger: #e87982;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--bone);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(198,162,96,.025) 50%, transparent 50.1%),
    radial-gradient(ellipse at 82% 8%, rgba(120,29,40,.22), transparent 34rem),
    radial-gradient(ellipse at 12% 48%, rgba(198,162,96,.07), transparent 30rem),
    var(--ink);
  font: 16px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 8px);
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: var(--ink); background: var(--brass-light); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  min-height: 84px;
  padding: 8px max(32px, calc((100% - 1220px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(234,211,158,.13);
  background: rgba(9,8,7,.88);
  backdrop-filter: blur(18px) saturate(120%);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; height: 66px; text-decoration: none; }
.brand img { display: block; width: 196px; height: 64px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 3px; }
.nav-link { position: relative; padding: 12px 13px; color: var(--muted); border: 0; background: transparent; text-decoration: none; font-size: .9rem; font-weight: 650; letter-spacing: .015em; cursor: pointer; }
.nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--bone); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-form { margin: 0; }
.button-link { font: inherit; }
.menu-button { display: none; align-items: center; justify-content: center; width: 46px; height: 42px; padding: 0; color: var(--bone); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.menu-button span { width: 18px; height: 1px; background: currentColor; }
.menu-button b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border: 1px solid #bd4754;
  border-radius: 2px;
  color: #fff8ee;
  background: linear-gradient(180deg, #9d2c39, #681620);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(82,11,20,.3), inset 0 1px rgba(255,255,255,.12);
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.button:focus-visible, .nav-link:focus-visible, .text-link:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }
.button.secondary { color: var(--brass-light); border-color: var(--line-bright); background: rgba(198,162,96,.06); box-shadow: none; }
.button.compact { min-height: 40px; padding-inline: 17px; font-size: .88rem; }
.button.full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 12px 4px; color: var(--brass-light); text-decoration: none; font-weight: 700; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translate(2px, -2px); }

.hero { min-height: min(750px, calc(100vh - 84px)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .72fr); align-items: center; gap: clamp(48px, 7vw, 104px); padding-block: clamp(54px, 8vw, 96px); }
.hero-copy { position: relative; }
.hero-copy::before { content: ""; position: absolute; width: 250px; height: 1px; left: -285px; top: 17px; background: linear-gradient(90deg, transparent, var(--line-bright)); }
.realm-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; color: #c9bfb1; font-size: .74rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.realm-kicker i { width: 28px; height: 1px; background: var(--line-bright); }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #777067; box-shadow: 0 0 0 5px rgba(119,112,103,.12); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 5px rgba(111,193,140,.11), 0 0 16px rgba(111,193,140,.35); }
.status-dot.offline { background: var(--danger); }
.hero-logo { display: block; width: min(650px, 100%); height: auto; margin: -55px 0 -48px -24px; filter: drop-shadow(0 20px 36px rgba(0,0,0,.45)); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.05; }
.hero h1 { max-width: 660px; margin: 0; color: var(--bone); font-size: clamp(2.15rem, 4.1vw, 4rem); font-weight: 500; letter-spacing: -.035em; }
.lead { max-width: 620px; margin: 21px 0 30px; color: #bbb1a4; font-size: 1.08rem; line-height: 1.72; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.realm-card { position: relative; padding: 34px; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 3px; background: linear-gradient(150deg, rgba(31,26,22,.97), rgba(15,13,12,.98)); box-shadow: var(--shadow); }
.realm-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(198,162,96,.12); pointer-events: none; }
.realm-card::after { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .14; background: radial-gradient(circle at 85% 0, var(--blood-light), transparent 42%); pointer-events: none; }
.realm-card > *:not(.card-rivets) { position: relative; z-index: 1; }
.card-rivets i { position: absolute; z-index: 2; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); opacity: .5; }
.card-rivets i:nth-child(1) { top: 14px; left: 14px; }
.card-rivets i:nth-child(2) { top: 14px; right: 14px; }
.card-rivets i:nth-child(3) { bottom: 14px; left: 14px; }
.card-rivets i:nth-child(4) { bottom: 14px; right: 14px; }
.eyebrow { margin: 0 0 14px; color: var(--brass); font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.realm-title { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 6px 0 26px; border-bottom: 1px solid var(--line); }
.realm-title span:first-child { color: var(--muted); font-size: .78rem; }
.realm-title h2 { margin: 5px 0 0; color: var(--brass-light); font-size: 2.05rem; font-weight: 500; }
.realm-state { margin-top: 6px; padding: 5px 9px; color: var(--muted); border: 1px solid var(--line); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.realm-state.is-online { color: #aee7c1; border-color: rgba(111,193,140,.35); background: rgba(111,193,140,.07); }
.realm-state.is-offline { color: #f0afb5; border-color: rgba(232,121,130,.35); }
.realm-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0 25px; }
.realm-card dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.realm-card dl div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.realm-card dl div:nth-child(even) { padding-left: 16px; }
.realm-card dt { color: var(--muted); font-size: .75rem; }
.realm-card dd { margin: 2px 0 0; color: var(--bone); font: 1.28rem var(--serif); }
.card-link { display: flex; justify-content: space-between; color: var(--brass-light); text-decoration: none; font-size: .9rem; font-weight: 700; }
.card-link:hover span { transform: translateX(3px); }
.card-link span { transition: transform .18s ease; }

.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 90px; border: 1px solid var(--line); border-width: 1px 0; }
.feature-strip article { position: relative; min-height: 170px; padding: 30px 28px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border-right: 0; }
.feature-strip article::before { content: ""; position: absolute; top: -1px; left: 28px; width: 40px; height: 2px; background: var(--blood-light); }
.feature-strip span { display: block; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.feature-strip strong { display: block; margin-top: 8px; color: var(--brass-light); font: 2.2rem var(--serif); font-weight: 500; }
.feature-strip p { margin: 7px 0 0; color: #968d82; font-size: .9rem; line-height: 1.55; }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); min-height: calc(100vh - 172px); padding-block: 64px; gap: 0; align-items: stretch; }
.auth-panel, .auth-aside, .content-card { border: 1px solid var(--line); background: rgba(21,18,16,.94); box-shadow: var(--shadow); }
.auth-panel { padding: clamp(30px, 5vw, 64px); border-right: 0; }
.auth-panel h1 { margin: 0 0 12px; font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
.auth-panel > p:not(.eyebrow) { max-width: 600px; color: var(--muted); }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(30px, 4vw, 52px); overflow: hidden; border-color: #55333a; background: linear-gradient(155deg, rgba(83,22,31,.93), rgba(22,15,14,.98) 66%); }
.auth-aside::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(234,211,158,.12); pointer-events: none; }
.auth-logo { position: relative; z-index: 1; display: block; width: min(100%, 380px); height: auto; margin: -30px 0 -35px -15px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.35)); }
.auth-aside > div, .auth-aside ul { position: relative; z-index: 1; }
.auth-aside h2 { margin: 0 0 14px; color: var(--bone); font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 500; }
.auth-aside p { color: #c2b7aa; }
.auth-aside ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.auth-aside li { padding: 10px 0; color: #cabfb1; border-top: 1px solid rgba(234,211,158,.13); }
.auth-aside li span { display: inline-block; width: 32px; color: var(--brass-light); font: .8rem var(--serif); }
.form { display: grid; gap: 19px; margin-top: 32px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .9rem; font-weight: 720; }
.field small { color: var(--muted); font-size: .78rem; }
input { width: 100%; min-height: 50px; padding: 11px 14px; color: var(--bone); border: 1px solid #4a4036; border-radius: 2px; outline: none; background: #0d0b0a; }
input:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(198,162,96,.1); }
.form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--brass-light); font-size: .9rem; }
.honeypot { position: absolute !important; left: -9999px !important; }
.alert { margin: 21px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px; }
.alert.success { color: #b9e7c9; border-color: #315f43; background: rgba(49,95,67,.15); }
.alert.error { color: #f0aeb4; border-color: #74313a; background: rgba(120,29,40,.15); }
.alert.info { color: #c7d2de; background: rgba(48,73,99,.15); }

.page-shell { min-height: calc(100vh - 172px); padding-block: 66px 90px; }
.page-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .6fr); align-items: end; gap: 40px; margin-bottom: 34px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.6rem); font-weight: 500; letter-spacing: -.04em; }
.page-heading p { max-width: 500px; margin: 0; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.content-card { padding: clamp(26px, 4vw, 46px); border-radius: 2px; }
.content-card h1, .content-card h2 { margin-top: 0; font-weight: 500; }
.content-card h2 { font-size: 1.8rem; }
.content-card p { color: var(--muted); }
.content-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.content-card dt { color: var(--muted); }
.content-card dd { margin: 0; font-weight: 700; }
code { padding: 3px 7px; color: var(--brass-light); border: 1px solid var(--line); background: #0d0b0a; }
.download-feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; margin-bottom: 18px; border-color: #5b3a30; background: linear-gradient(120deg, rgba(92,24,32,.48), rgba(21,18,16,.96) 58%); }
.download-feature h2 { margin-bottom: 12px; color: var(--brass-light); font-size: clamp(2rem, 4vw, 3.25rem); }
.download-feature p:not(.eyebrow) { max-width: 680px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.download-meta span { padding: 5px 10px; color: #c9bfb1; border: 1px solid var(--line-bright); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.download-button { min-width: 220px; gap: 10px; }
.download-grid { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.stat { padding: 22px; background: var(--surface); }
.stat span { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
.stat strong { color: var(--brass-light); font: 1.75rem var(--serif); font-weight: 500; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 13px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(198,162,96,.04); }
.pill { display: inline-flex; padding: 4px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; background: #1c1815; font-size: .75rem; }
.pill.online { color: #aee7c1; border-color: rgba(111,193,140,.3); background: rgba(111,193,140,.08); }
.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--line-bright); }
.empty strong { color: var(--bone); }

footer { min-height: 116px; padding: 18px max(32px, calc((100% - 1220px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 42px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 26px; }
.footer-brand img { width: 150px; height: 74px; object-fit: contain; }
.legal-notice { max-width: 690px; margin: 0; color: #686159; font-size: .62rem; line-height: 1.55; letter-spacing: .045em; text-align: right; }

@media (max-width: 940px) {
  .shell { width: min(100% - 40px, 1220px); }
  .site-header { padding-inline: 20px; }
  .menu-button { display: flex; flex-direction: column; gap: 5px; }
  .site-nav { display: none; position: absolute; top: 83px; left: 20px; right: 20px; padding: 12px; flex-direction: column; align-items: stretch; border: 1px solid var(--line-bright); background: rgba(16,13,12,.98); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-link { display: block; width: 100%; text-align: left; }
  .nav-link::after { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { padding-top: 10px; }
  .hero-logo { width: min(620px, 100%); }
  .realm-card { width: 100%; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-strip article:nth-child(2) { border-right: 0; }
  .feature-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .auth-shell { grid-template-columns: 1fr; gap: 18px; }
  .auth-panel { border-right: 1px solid var(--line); }
  .auth-aside { min-height: 460px; }
  .grid-2 { grid-template-columns: 1fr; }
  .download-feature { grid-template-columns: 1fr; gap: 26px; }
  .download-button { width: 100%; }
  footer { padding-inline: 20px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1220px); }
  .site-header { min-height: 72px; padding-inline: 14px; }
  .brand { height: 56px; }
  .brand img { width: 164px; height: 54px; }
  .site-nav { top: 71px; left: 14px; right: 14px; }
  .hero { padding-block: 38px 54px; }
  .realm-kicker { flex-wrap: wrap; font-size: .68rem; }
  .hero-logo { margin: -34px 0 -27px -12px; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .lead { font-size: 1rem; }
  .actions { align-items: stretch; flex-direction: column; gap: 6px; }
  .actions .button, .actions .text-link { width: 100%; justify-content: center; }
  .realm-card { padding: 28px 24px; }
  .realm-title { flex-direction: column; }
  .realm-state { margin-top: 0; }
  .feature-strip { grid-template-columns: 1fr; margin-bottom: 60px; }
  .feature-strip article { min-height: 145px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-strip article:nth-child(3) { border-bottom: 1px solid var(--line); }
  .feature-strip article:last-child { border-bottom: 0; }
  .auth-shell { padding-block: 28px 55px; }
  .auth-aside { display: none; }
  .page-shell { padding-block: 42px 65px; }
  .page-heading { grid-template-columns: 1fr; gap: 15px; }
  .page-heading h1 { font-size: 3rem; }
  .content-card { padding: 24px 20px; }
  .stat-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 4px; }
  .footer-brand img { width: 135px; height: 68px; margin-left: -8px; }
  .legal-notice { max-width: 100%; font-size: .58rem; text-align: left; }
}

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