:root {
  --ink: #edf7ff;
  --ink-soft: #b7c8d7;
  --muted: #748a9e;
  --bg: #04090f;
  --bg-blue: #07121e;
  --panel: #0a1724;
  --panel-2: #0d1e2d;
  --line: rgba(151, 214, 255, .14);
  --line-strong: rgba(151, 214, 255, .30);
  --ice: #83d8ff;
  --ice-soft: #c8efff;
  --green: #65e59b;
  --red: #ff7180;
  --amber: #f1c96c;
  --gold: #cfae64;
  --shadow: 0 28px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(70rem 34rem at 85% 2%, rgba(31, 115, 166, .18), transparent 62%),
    radial-gradient(55rem 30rem at 10% 26%, rgba(22, 73, 118, .12), transparent 60%),
    linear-gradient(180deg, #081521 0%, #040a11 42%, #03070b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .6;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.aurora {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  filter: blur(90px);
  border-radius: 50%;
  opacity: .23;
}

.aurora-a {
  width: 520px;
  height: 220px;
  top: 40px;
  right: -120px;
  transform: rotate(-20deg);
  background: #1b8ac3;
}

.aurora-b {
  width: 430px;
  height: 160px;
  top: 380px;
  left: -160px;
  transform: rotate(24deg);
  background: #164d87;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .26;
  background-image:
    radial-gradient(circle, rgba(213,240,255,.9) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(213,240,255,.55) 0 1px, transparent 1.2px);
  background-size: 137px 137px, 211px 211px;
  background-position: 10px 20px, 70px 92px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-rune {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ice-soft);
  background:
    linear-gradient(145deg, rgba(104, 203, 255, .16), rgba(5, 18, 30, .76));
  box-shadow: inset 0 0 28px rgba(89, 196, 255, .08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.brand-rune.small {
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
}

.brand-text,
.footer-brand > div {
  display: flex;
  flex-direction: column;
}

.brand-text strong,
.footer-brand strong {
  font-size: .9rem;
  letter-spacing: .18em;
}

.brand-text small,
.footer-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .61rem;
  letter-spacing: .22em;
}

nav {
  display: flex;
  gap: 30px;
  color: #a4b7c7;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

nav a {
  transition: color .18s ease;
}

nav a:hover {
  color: var(--ice-soft);
}

.hero {
  min-height: 675px;
  padding: 88px 0 100px;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 80px;
  align-items: center;
}

.hero-copy {
  max-width: 735px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--ice);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .22em;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(4.2rem, 8vw, 7.2rem);
  line-height: .91;
  letter-spacing: -.055em;
}

h1 span {
  color: var(--ice-soft);
  text-shadow: 0 0 38px rgba(74, 190, 250, .18);
}

.hero-body {
  max-width: 665px;
  margin-bottom: 0;
  color: #a6bac9;
  font-size: 1.03rem;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.btn {
  min-height: 49px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .15s ease, background .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  border-color: var(--ice);
  color: #05101a;
  background: linear-gradient(135deg, #d5f5ff, #77d1ff);
  box-shadow: 0 12px 34px rgba(73, 183, 242, .16);
}

.btn.secondary {
  color: var(--ink);
  background: rgba(9, 27, 43, .60);
}

.realm-command {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.realm-command span {
  color: var(--muted);
  font-size: .61rem;
  letter-spacing: .18em;
}

.realm-command code {
  color: #c9ecff;
  font-size: .78rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 34px 32px 30px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(14, 34, 52, .94), rgba(5, 14, 23, .94));
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -95px;
  border: 1px solid rgba(141, 217, 255, .12);
  transform: rotate(45deg);
}

.crest {
  width: 110px;
  height: 110px;
  margin-bottom: 28px;
  padding: 8px;
  transform: rotate(45deg);
  border: 1px solid var(--line-strong);
  background: rgba(62, 165, 221, .05);
  box-shadow: 0 0 45px rgba(60, 178, 239, .08);
}

.crest-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(140, 218, 255, .30);
  color: var(--ice-soft);
  background: rgba(8, 27, 43, .75);
  transform: rotate(-45deg);
  font-family: Georgia, serif;
  font-size: 3.4rem;
}

.panel-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.hero-panel h2 {
  margin-bottom: 28px;
  font-size: 2rem;
  line-height: 1.04;
}

.quick-facts {
  border-top: 1px solid var(--line);
}

.quick-facts > div {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.quick-facts span,
.quick-facts strong {
  font-size: .73rem;
}

.quick-facts span { color: var(--muted); }
.quick-facts strong { text-align: right; font-weight: 650; }

.section {
  padding: 94px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 43px;
}

.section-heading.compact {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin-bottom: 17px;
  font-size: clamp(2.65rem, 5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.035em;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.refresh-button {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: #a7bdcd;
  background: rgba(10, 25, 39, .55);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.refresh-button:hover {
  color: var(--ice-soft);
  border-color: var(--line-strong);
}

.refresh-button:disabled {
  cursor: default;
  opacity: .55;
}

.status-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(11, 28, 43, .88), rgba(6, 15, 24, .86));
  box-shadow: var(--shadow);
}

.status-summary {
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-summary > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.status-caption {
  color: var(--muted);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.status-summary strong {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.status-summary small {
  color: var(--muted);
  font-size: .73rem;
}

.status-orb {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.035), 0 0 26px currentColor;
}

.status-orb.online { color: var(--green); background: var(--green); }
.status-orb.offline { color: var(--red); background: var(--red); }
.status-orb.partial { color: var(--amber); background: var(--amber); }
.status-orb.checking {
  color: var(--ice);
  background: var(--ice);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .4; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

.status-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  padding: 23px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.service-card + .service-card {
  border-left: 1px solid var(--line);
}

.service-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.service-heading > div,
.service-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ice);
  background: rgba(92, 192, 247, .05);
  font-family: Georgia, serif;
}

.service-heading span:not(.service-icon) {
  font-size: .78rem;
  font-weight: 700;
}

.service-heading small,
.service-result small {
  color: var(--muted);
  font-size: .64rem;
}

.service-result { text-align: right; }
.service-result strong { font-size: .8rem; }

.status-footer {
  padding: 13px 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #70879a;
  font-size: .64rem;
}

.realm-card {
  border: 1px solid var(--line-strong);
  background: rgba(9, 22, 35, .64);
}

.realm-title {
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.realm-title h3,
.realm-title p {
  margin: 0;
}

.realm-title h3 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.realm-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .73rem;
}

.realm-badge {
  padding: 5px 7px;
  border: 1px solid rgba(101, 229, 155, .35);
  color: var(--green);
  background: rgba(101, 229, 155, .06);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.realm-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.realm-details > div {
  min-height: 105px;
  padding: 23px 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.realm-details > div + div {
  border-left: 1px solid var(--line);
}

.realm-details span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.realm-details strong,
.realm-details code {
  color: #d7e8f4;
  font-size: .76rem;
  line-height: 1.5;
}

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

.step {
  min-height: 270px;
  padding: 27px;
  border: 1px solid var(--line);
  background: rgba(7, 18, 29, .58);
}

.featured-step {
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(14, 35, 53, .79), rgba(8, 19, 31, .72));
}

.step-no {
  display: block;
  margin-bottom: 55px;
  color: var(--ice);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.step h3 {
  margin-bottom: 11px;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.step p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}

.step code { color: #ccecff; }

.code-box {
  margin-top: 15px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.20);
}

.code-box code {
  overflow: hidden;
  color: #d7f2ff;
  font-size: .71rem;
  text-overflow: ellipsis;
}

.code-box button {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 0;
  color: var(--ice);
  background: transparent;
  cursor: pointer;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-note {
  margin-top: 14px;
  padding: 19px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  color: #a9bdcc;
  background: rgba(10, 24, 37, .45);
}

.note-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ice);
  font-family: Georgia, serif;
  font-style: italic;
}

.account-note strong {
  display: block;
  margin-bottom: 4px;
  color: #d9e8f2;
  font-size: .78rem;
}

.account-note p {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.65;
}

.downloads-grid {
  display: grid;
  gap: 10px;
}

.download-card {
  min-height: 100px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(7, 19, 30, .55);
}

.download-card.available {
  transition: transform .15s ease, border-color .18s ease, background .18s ease;
}

.download-card.available:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(11, 29, 44, .70);
}

.file-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ice);
  background: rgba(87, 185, 241, .04);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .07em;
}

.download-type {
  color: var(--gold);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.download-card h3 {
  margin: 4px 0 3px;
  font-size: .91rem;
}

.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: .73rem;
}

.download-card code {
  color: #ccecff;
  font-size: .7rem;
}

.download-action,
.coming-soon {
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.download-action { color: var(--ice); }
.coming-soon { color: #748a9e; }

.disabled {
  opacity: .64;
}

.legal-downloads {
  max-width: 820px;
  margin: 19px 0 0;
  color: #667c8f;
  font-size: .67rem;
  line-height: 1.65;
}

.about-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
}

.about-section h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: .98;
}

.about-copy {
  max-width: 700px;
}

.about-copy p {
  color: var(--muted);
  line-height: 1.82;
}

.about-copy code { color: #cbeaff; }

footer {
  padding: 40px 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #a8bbca;
}

footer > p {
  max-width: 680px;
  margin: 0;
  color: #647a8c;
  font-size: .65rem;
  line-height: 1.65;
  text-align: right;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #0b1c2a;
  box-shadow: var(--shadow);
  font-size: .7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  nav { display: none; }

  .hero {
    min-height: auto;
    padding: 72px 0 85px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-panel { max-width: 650px; }

  .realm-details { grid-template-columns: 1fr 1fr; }
  .realm-details > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .realm-details > div:nth-child(4) { border-top: 1px solid var(--line); }

  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step-no { margin-bottom: 30px; }

  .about-section {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 650px) {
  .topbar,
  main,
  footer {
    width: calc(100% - 28px);
  }

  .topbar { min-height: 75px; }

  h1 { font-size: clamp(3.45rem, 19vw, 5.2rem); }

  .hero { padding-top: 55px; }

  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  .realm-command {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel { padding: 28px 22px 24px; }

  .section { padding: 76px 0; }

  .section-heading.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-services { grid-template-columns: 1fr; }
  .service-card + .service-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .status-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .realm-details { grid-template-columns: 1fr; }
  .realm-details > div + div { border-left: 0; border-top: 1px solid var(--line); }

  .download-card {
    grid-template-columns: auto 1fr;
  }

  .download-action,
  .coming-soon {
    grid-column: 2;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer > p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
