* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-soft: #0b1018;
  --panel: rgba(14, 20, 31, 0.86);
  --panel-solid: #111927;
  --panel-raised: #172232;
  --line: rgba(164, 190, 220, 0.18);
  --line-strong: rgba(215, 184, 104, 0.34);
  --text: #f6f8fb;
  --muted: #aebbc9;
  --dim: #768599;
  --gold: #d9b86c;
  --gold-strong: #f0ce7a;
  --ice: #9fd8ff;
  --blue: #5f9bea;
  --green: #62e6a2;
  --red: #ff7575;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.52), #05070b 78%),
    radial-gradient(circle at 16% 12%, rgba(95, 155, 234, 0.22), transparent 32%),
    url("/assets/hero-frost-citadel.png") top center / min(1600px, 155vw) auto no-repeat,
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.nav a,
.feature-card a,
.back-link {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(217, 184, 108, 0.24), rgba(95, 155, 234, 0.16));
  color: var(--gold-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover,
.nav a.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

main,
.page-wrap,
.hero-shell,
.section-grid {
  position: relative;
  z-index: 1;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  width: min(1180px, 92vw);
  min-height: calc(100vh - 210px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 0 42px;
  align-items: end;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ice);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 18px;
  max-width: 860px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

p,
li,
small,
dt,
dd {
  color: var(--muted);
  line-height: 1.62;
}

.lead {
  max-width: 680px;
  margin: 0;
  font-size: 19px;
}

.lead.compact {
  max-width: 560px;
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--gold-strong), #b58b3c);
  color: #151007;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.button.secondary {
  border-color: rgba(159, 216, 255, 0.32);
  background: linear-gradient(180deg, rgba(95, 155, 234, 0.34), rgba(23, 34, 50, 0.9));
  color: var(--text);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.realm-panel,
.card,
.feature-card,
.step-card,
.copy-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 25, 39, 0.92), rgba(8, 12, 19, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.realm-panel {
  align-self: center;
  padding: 22px;
}

.panel-title,
.muted-label {
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.realm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.realm-grid div,
.info-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.realm-grid span,
.info-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.realm-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--gold-strong);
  font-size: 25px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0 0 70px;
}

.feature-card,
.step-card,
.card,
.copy-panel {
  padding: clamp(22px, 4vw, 34px);
}

.feature-icon,
.step-card strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--gold-strong);
  font-weight: 900;
}

.feature-card p,
.step-card p {
  min-height: 54px;
}

.feature-card a {
  display: inline-flex;
  margin-top: 6px;
  color: var(--ice);
  font-weight: 900;
}

.page-wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.two-column,
.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

.split-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 22px;
}

.split-flow .steps-grid {
  grid-column: 1 / -1;
}

.copy-panel {
  min-height: 100%;
}

.copy-panel h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.form-card form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--text);
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(4, 8, 14, 0.88);
  color: var(--text);
  font: inherit;
}

input::placeholder {
  color: #66758a;
}

input:focus {
  border-color: rgba(159, 216, 255, 0.65);
  outline: 3px solid rgba(95, 155, 234, 0.18);
}

small {
  font-size: 13px;
}

.message {
  min-height: 28px;
  margin: 18px 0 0;
  font-weight: 800;
}

.message.success {
  color: var(--green);
}

.message.error {
  color: var(--red);
}

.back-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--ice);
  font-weight: 900;
}

.command-card pre,
pre {
  overflow: auto;
  margin: 18px 0 0;
  border: 1px solid rgba(217, 184, 108, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: #05080d;
  color: var(--gold-strong);
  font-size: 16px;
  line-height: 1.5;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-badge.online {
  border-color: rgba(98, 230, 162, 0.36);
  background: rgba(98, 230, 162, 0.12);
  color: var(--green);
}

.status-badge.offline,
.status-badge.muted {
  border-color: rgba(255, 117, 117, 0.34);
  background: rgba(255, 117, 117, 0.12);
  color: var(--red);
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.status-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

dt {
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .hero-shell,
  .two-column,
  .status-layout,
  .split-flow,
  .section-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .realm-panel {
    align-self: stretch;
  }
}

@media (max-width: 680px) {
  body {
    background-size: auto 520px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-shell,
  .page-wrap {
    padding-top: 34px;
  }

  .actions,
  .button,
  button {
    width: 100%;
  }

  .status-topline,
  .status-list div {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .status-topline {
    flex-direction: column;
  }
}
