:root {
  color-scheme: dark;
  --bg: #05070b;
  --panel: #0b1118;
  --panel-2: #071018;
  --line: #273849;
  --text: #eff7ff;
  --muted: #9aaabc;
  --cyan: #61e8da;
  --blue: #58b8ff;
  --gold: #f3c86a;
  --green: #74e6a0;
  --red: #ff6b6f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: absolute;
  z-index: 5;
  left: 50%;
  display: flex;
  width: min(100%, 1280px);
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.site-header.simple {
  position: static;
  transform: none;
  margin: 0 auto;
}

.brand img {
  width: 184px;
  height: auto;
}

.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-button {
  display: none;
}

nav {
  display: flex;
  gap: 22px;
  color: #c8d3df;
  font-size: 0.95rem;
}

nav a:hover,
.site-footer a:hover {
  color: var(--cyan);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  gap: 42px;
  align-items: end;
  overflow: hidden;
  padding: 144px max(28px, calc((100vw - 1280px) / 2 + 28px)) 72px;
}

.hero-art,
.hero-shade,
.scanlines {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.78) 43%, rgba(5, 7, 11, 0.36) 100%);
}

.scanlines {
  z-index: -1;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 5px, rgba(255, 255, 255, 0.035) 6px);
  pointer-events: none;
}

.eyebrow {
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 840px;
  margin-top: 18px;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-weight: 950;
  line-height: 0.94;
}

h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 950;
  line-height: 1;
}

h3 {
  margin-top: 18px;
  font-size: 1.16rem;
}

.hero-copy,
.section p,
.card p,
.policy-hero p,
.policy-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 690px;
  margin-top: 24px;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid #5c6e7d;
  padding: 0 20px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #041013;
}

.button.secondary {
  background: rgba(7, 16, 24, 0.64);
}

.brief-panel {
  border: 1px solid rgba(97, 232, 218, 0.34);
  background: rgba(6, 16, 24, 0.86);
  padding: 18px;
  box-shadow: 0 0 40px rgba(97, 232, 218, 0.12);
  backdrop-filter: blur(7px);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.brief-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #2b3b47;
  padding-bottom: 12px;
  color: var(--cyan);
  font-size: 0.8rem;
  text-transform: uppercase;
}

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

.brief-grid div,
.brief-panel p {
  border: 1px solid #263747;
  background: rgba(0, 0, 0, 0.28);
  padding: 12px;
}

.brief-grid span {
  display: block;
  color: #6e8293;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.brief-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.9rem;
}

.brief-panel p {
  margin-top: 10px;
  color: #c8d3df;
  line-height: 1.6;
}

.section {
  display: grid;
  gap: 42px;
  padding: 76px max(28px, calc((100vw - 1280px) / 2 + 28px));
}

.split {
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  border-top: 1px solid #172330;
  border-bottom: 1px solid #172330;
  background: #080d12;
}

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

.card,
.feature-list li,
.roadmap div,
.policy-grid article,
.policy-hero {
  border: 1px solid #243544;
  background: var(--panel);
}

.card {
  padding: 22px;
}

.icon {
  display: inline-grid;
  min-width: 42px;
  min-height: 32px;
  place-items: center;
  border: 1px solid rgba(243, 200, 106, 0.5);
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.systems {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 16px 16px 16px 44px;
  color: #d6dee7;
}

.feature-list li::before {
  position: absolute;
  left: 17px;
  color: var(--cyan);
  content: "+";
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.pixel-scene {
  position: relative;
  isolation: isolate;
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid #273849;
  background:
    linear-gradient(90deg, rgba(98, 216, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(98, 216, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 42% 36%, rgba(98, 216, 255, 0.16), transparent 18rem),
    #060b12;
  background-size: 18px 18px, 18px 18px, auto, auto;
}

.ansi-frame {
  position: absolute;
  inset: 18px;
  overflow: hidden;
  border: 1px dashed rgba(98, 216, 255, 0.36);
  color: rgba(98, 216, 255, 0.7);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  pointer-events: none;
}

.ansi-frame::before {
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 0 6px;
  background: #060b12;
  content: "SECTOR SCAN // ACTIVE";
}

.pixel-port,
.pixel-stardock,
.pixel-planet,
.pixel-wormhole,
.ship-sprite {
  image-rendering: pixelated;
}

.pixel-port {
  --pixel-unit: clamp(18px, 4vw, 32px);
  position: absolute;
  top: 25%;
  left: 12%;
  width: calc(var(--pixel-unit) * 5.25);
  height: calc(var(--pixel-unit) * 4);
}

.pixel-port span {
  position: absolute;
  top: calc(var(--pixel-unit) * 1);
  left: calc(var(--pixel-unit) * 1.375);
  width: calc(var(--pixel-unit) * 2);
  height: calc(var(--pixel-unit) * 2);
  background: #f5d98c;
  box-shadow:
    0 0 0 4px #5f4820,
    calc(var(--pixel-unit) * 1.5) 0 0 0 #f0c76a,
    calc(var(--pixel-unit) * 3) 0 0 0 #f0c76a,
    calc(var(--pixel-unit) * 1.5) calc(var(--pixel-unit) * 1.5) 0 0 #d99b4a,
    0 calc(var(--pixel-unit) * 3) 0 0 #8f6830,
    calc(var(--pixel-unit) * 3) calc(var(--pixel-unit) * 3) 0 0 #8f6830;
}

.pixel-stardock {
  --pixel-unit: clamp(10px, 2vw, 16px);
  position: absolute;
  top: 22%;
  left: 14%;
  width: var(--pixel-unit);
  height: var(--pixel-unit);
  background: var(--cyan);
  box-shadow:
    calc(var(--pixel-unit) * -1) var(--pixel-unit) 0 #2b7288,
    var(--pixel-unit) var(--pixel-unit) 0 #2b7288,
    0 calc(var(--pixel-unit) * 2) 0 #edf7ff,
    calc(var(--pixel-unit) * -2) calc(var(--pixel-unit) * 3) 0 #17384b,
    calc(var(--pixel-unit) * 2) calc(var(--pixel-unit) * 3) 0 #17384b;
}

.pixel-planet {
  position: absolute;
  top: 18%;
  right: 13%;
  width: clamp(72px, 18%, 112px);
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent 0 16px, #74e6a0 16px 96px, transparent 96px),
    linear-gradient(0deg, transparent 0 16px, #2d8b78 16px 96px, transparent 96px);
  box-shadow:
    16px 16px 0 #74e6a0,
    32px 0 0 #b7fff0,
    64px 8px 0 #2d8b78,
    80px 32px 0 #0f564f,
    24px 80px 0 #1d6c61;
}

.pixel-wormhole {
  position: absolute;
  right: 24%;
  bottom: 18%;
  width: clamp(78px, 20%, 118px);
  aspect-ratio: 1;
  border: clamp(6px, 1.6vw, 10px) solid #a48cff;
  box-shadow:
    inset 0 0 0 10px #39266d,
    inset 0 0 0 22px #0b1019,
    0 0 22px rgba(164, 140, 255, 0.36);
  transform: rotate(45deg);
}

.ship-sprite {
  --pixel-unit: clamp(12px, 2.2vw, 16px);
  position: absolute;
  top: 55%;
  left: 48%;
  width: var(--pixel-unit);
  height: var(--pixel-unit);
  background: var(--cyan);
  box-shadow:
    calc(var(--pixel-unit) * -1) var(--pixel-unit) 0 #388c91,
    0 var(--pixel-unit) 0 var(--cyan),
    var(--pixel-unit) var(--pixel-unit) 0 #388c91,
    0 calc(var(--pixel-unit) * 2) 0 #ffffff,
    calc(var(--pixel-unit) * -2) calc(var(--pixel-unit) * 3) 0 #2a5869,
    calc(var(--pixel-unit) * 2) calc(var(--pixel-unit) * 3) 0 #2a5869;
}

.status {
  background: #0b1017;
}

.roadmap {
  display: grid;
  gap: 14px;
}

.roadmap div {
  display: grid;
  grid-template-columns: 5rem 1fr;
}

.roadmap strong {
  display: grid;
  place-items: center;
  border-right: 1px solid #243544;
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.25rem;
}

.roadmap span {
  padding: 20px;
  color: #d6dee7;
}

.site-footer {
  display: flex;
  width: min(100%, 1280px);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 28px;
  color: #8fa0b0;
  font-size: 0.92rem;
}

.site-footer img {
  width: 164px;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.policy-page {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: 54px 28px 80px;
}

.policy-hero {
  padding: 32px;
}

.policy-hero h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.updated {
  margin-top: 18px;
  color: #718292;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
}

.policy-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.policy-grid article {
  padding: 26px;
}

.policy-grid h2 {
  margin: 0;
  font-size: 1.55rem;
}

.policy-grid p {
  margin-top: 12px;
}

.guide-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 54px 28px 80px;
}

.guide-hero {
  border: 1px solid #243544;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.94), rgba(7, 16, 24, 0.72)),
    radial-gradient(circle at 80% 16%, rgba(97, 232, 218, 0.14), transparent 24rem);
  padding: 32px;
}

.guide-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.guide-hero p:not(.eyebrow) {
  max-width: 58rem;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.guide-nav {
  position: sticky;
  top: 18px;
  display: grid;
  align-self: start;
  border: 1px solid #243544;
  background: #071018;
}

.guide-nav a {
  border-bottom: 1px solid #172330;
  padding: 12px 14px;
  color: #c8d3df;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-nav a:last-child {
  border-bottom: 0;
}

.guide-nav a:hover {
  color: var(--cyan);
}

.guide-content {
  display: grid;
  gap: 18px;
}

.guide-section {
  border: 1px solid #243544;
  background: rgba(11, 17, 24, 0.92);
  padding: 28px;
}

.guide-section h2 {
  font-size: clamp(1.9rem, 3vw, 3.25rem);
}

.guide-section > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.guide-grid article {
  border: 1px solid #243544;
  background: #071018;
  padding: 18px;
}

.guide-grid h3 {
  margin-top: 0;
}

.guide-grid p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.step-list li {
  position: relative;
  border: 1px solid #243544;
  background: #071018;
  padding: 15px 16px 15px 58px;
  color: #d6dee7;
  line-height: 1.6;
}

.step-list li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(97, 232, 218, 0.45);
  color: var(--cyan);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.data-table {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.data-table div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  border: 1px solid #243544;
  background: #071018;
}

.data-table strong {
  display: flex;
  align-items: center;
  border-right: 1px solid #243544;
  padding: 14px;
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.data-table span {
  padding: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.data-table.compact div {
  grid-template-columns: 12rem 1fr;
}

.callout {
  margin-top: 20px;
  border: 1px solid rgba(243, 200, 106, 0.36);
  background: rgba(243, 200, 106, 0.08);
  padding: 16px;
  color: #d6dee7;
  line-height: 1.65;
}

.callout strong {
  color: var(--gold);
}

.guide-tips {
  margin-top: 22px;
}

.ship-catalog,
.planet-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ship-card,
.planet-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid #243544;
  background: #071018;
  padding: 16px;
}

.ship-card img,
.planet-card img {
  width: 128px;
  aspect-ratio: 1;
  border: 1px solid rgba(97, 232, 218, 0.24);
  background: #02070c;
  object-fit: cover;
}

.planet-card img {
  width: 144px;
}

.ship-card h3,
.planet-card h3 {
  margin-top: 0;
}

.ship-card p,
.planet-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.ship-stats,
.planet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 0;
}

.ship-stats div,
.planet-stats div {
  border: 1px solid #1d2c39;
  background: rgba(0, 0, 0, 0.18);
  padding: 7px 8px;
}

.ship-stats dt,
.ship-stats dd,
.planet-stats dt,
.planet-stats dd {
  margin: 0;
}

.ship-stats dt,
.planet-stats dt {
  color: #6f8496;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ship-stats dd,
.planet-stats dd {
  margin-top: 3px;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 900;
}

.changelog-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  max-width: 980px;
}

.changelog-entry {
  border: 1px solid #243544;
  background: rgba(11, 17, 24, 0.92);
  padding: 26px;
}

.changelog-page .guide-hero {
  max-width: 980px;
}

.changelog-page .guide-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
}

.changelog-page .guide-hero p:not(.eyebrow) {
  max-width: 46rem;
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.changelog-meta time {
  color: #7e91a2;
}

.changelog-entry h2 {
  margin-top: 12px;
  max-width: 22ch;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.04;
}

.changelog-entry ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.changelog-entry li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.changelog-entry li::before {
  position: absolute;
  left: 0;
  color: var(--cyan);
  content: "+";
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.changelog-entry strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    transform: none;
    margin: 0 auto;
    background: #05070b;
  }

  .hero,
  .split,
  .systems {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .brief-panel {
    max-width: 620px;
  }

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

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-nav a {
    border-right: 1px solid #172330;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .ship-catalog,
  .planet-catalog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
  }

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

  .brand img,
  .site-footer img {
    width: 150px;
  }

  .nav-button {
    display: flex;
    width: 44px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(97, 232, 218, 0.42);
    background: rgba(7, 16, 24, 0.82);
    cursor: pointer;
  }

  .nav-toggle:focus-visible + .nav-button {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }

  .nav-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cyan);
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }

  .nav-toggle:checked + .nav-button span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-button span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-button span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid #243544;
    background: #071018;
    font-size: 0.86rem;
  }

  .nav-toggle:checked ~ nav {
    display: grid;
  }

  nav a {
    border-bottom: 1px solid #172330;
    padding: 13px 14px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-weight: 800;
    text-transform: uppercase;
  }

  nav a:last-child {
    border-bottom: 0;
  }

  .hero,
  .section,
  .policy-page,
  .guide-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .guide-hero,
  .guide-section {
    padding: 22px;
  }

  .changelog-list {
    gap: 16px;
  }

  .changelog-page .guide-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 14vw, 3.6rem);
  }

  .changelog-entry {
    padding: 22px;
  }

  .changelog-entry h2 {
    max-width: 14ch;
    font-size: 1.6rem;
  }

  .changelog-entry li {
    padding-left: 20px;
    line-height: 1.55;
  }

  .guide-nav {
    grid-template-columns: 1fr;
  }

  .data-table div,
  .data-table.compact div {
    grid-template-columns: 1fr;
  }

  .data-table strong {
    border-right: 0;
    border-bottom: 1px solid #243544;
  }

  .ship-card,
  .planet-card {
    grid-template-columns: 1fr;
  }

  .ship-card img,
  .planet-card img {
    width: min(100%, 180px);
  }

  .ship-stats,
  .planet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .roadmap div {
    grid-template-columns: 4rem 1fr;
  }
}
