:root {
  --bg: #071014;
  --panel: #0d1b20;
  --panel-2: #12252a;
  --ink: #eef8f7;
  --muted: #a9c0bf;
  --line: rgba(142, 205, 209, 0.24);
  --cyan: #73d7e8;
  --green: #71d68a;
  --amber: #e4b567;
  --red: #e06b5f;
  --violet: #aa8dff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(5, 12, 16, 0.74);
  border-bottom: 1px solid rgba(180, 230, 229, 0.14);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, rgba(115, 215, 232, 0.22), rgba(228, 181, 103, 0.16));
  border: 1px solid rgba(115, 215, 232, 0.62);
  color: var(--cyan);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 34px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.language-switch {
  border: 1px solid rgba(180, 230, 229, 0.22);
  display: flex;
  margin-left: 18px;
}

.language-button {
  background: rgba(5, 14, 18, 0.62);
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
  height: 34px;
  min-width: 42px;
}

.language-button + .language-button {
  border-left: 1px solid rgba(180, 230, 229, 0.22);
}

.language-button.active {
  background: var(--ink);
  color: #071014;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 6px 0;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.92) 0%, rgba(5, 12, 16, 0.62) 37%, rgba(5, 10, 13, 0.1) 74%),
    linear-gradient(0deg, rgba(7, 16, 20, 0.96) 0%, rgba(7, 16, 20, 0.12) 34%);
  inset: 0;
  position: absolute;
}

.hero-copy {
  max-width: 760px;
  padding: clamp(136px, 17vh, 190px) clamp(22px, 6vw, 86px) 128px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(4.4rem, 13vw, 11rem);
  letter-spacing: 0;
  line-height: 0.82;
  margin-bottom: 28px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 22px;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero-lede {
  color: #d7e4e3;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 620px;
}

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

.release-note {
  border-left: 2px solid var(--amber);
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 22px 0 0;
  padding-left: 12px;
  text-transform: uppercase;
}

.button {
  align-items: center;
  border: 1px solid rgba(225, 245, 246, 0.3);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-transform: uppercase;
}

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

.button-secondary {
  background: rgba(8, 23, 28, 0.56);
}

.hero-status {
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  left: clamp(22px, 6vw, 86px);
  position: absolute;
  right: clamp(22px, 6vw, 86px);
  z-index: 1;
}

.hero-status span {
  background: rgba(8, 22, 27, 0.74);
  border: 1px solid rgba(115, 215, 232, 0.24);
  color: #d7eeef;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 12px;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 9vw, 132px) clamp(18px, 5vw, 72px);
}

.section-head {
  max-width: 960px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.compact {
  max-width: 760px;
}

.war-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  overflow: hidden;
}

.feature-wide {
  grid-row: span 2;
}

.feature img {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.feature-wide img {
  min-height: 390px;
}

.feature div {
  padding: clamp(22px, 4vw, 36px);
}

.feature p:not(.label),
.system-card p,
.intel-list p,
.blueprint-copy p {
  color: var(--muted);
}

.base-showcase {
  background:
    linear-gradient(180deg, rgba(8, 20, 24, 0.96), rgba(10, 25, 30, 0.88)),
    radial-gradient(circle at 18% 24%, rgba(110, 225, 238, 0.13), transparent 32%);
}

.base-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.base-card {
  background: rgba(5, 13, 17, 0.72);
  border: 1px solid rgba(126, 232, 242, 0.22);
  display: grid;
  grid-template-rows: minmax(160px, 1fr) auto;
  min-height: 278px;
  overflow: hidden;
  position: relative;
}

.base-card::before {
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
  height: 2px;
  left: 0;
  opacity: 0.85;
  position: absolute;
  right: 42%;
  top: 0;
}

.base-card-wide {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 572px;
}

.base-card img {
  align-self: stretch;
  aspect-ratio: 4 / 3;
  background: rgba(2, 8, 11, 0.68);
  height: 100%;
  object-fit: contain;
  padding: clamp(12px, 2vw, 24px);
  width: 100%;
}

.base-card-wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  padding: 0;
}

.base-card div {
  border-top: 1px solid rgba(126, 232, 242, 0.16);
  padding: 18px;
}

.base-card h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.factions {
  background:
    linear-gradient(90deg, rgba(18, 37, 42, 0.72), rgba(11, 22, 27, 0.92)),
    radial-gradient(circle at 85% 10%, rgba(228, 181, 103, 0.12), transparent 28%);
}

.faction-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 18px;
}

.tab {
  background: rgba(5, 14, 18, 0.62);
  border: 1px solid rgba(180, 230, 229, 0.22);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  min-height: 42px;
  padding: 0 16px;
  text-transform: uppercase;
}

.tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #071014;
}

.faction-panel {
  align-items: center;
  background: rgba(5, 14, 18, 0.56);
  border: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 6vw, 70px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  min-height: 470px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 54px);
}

.faction-panel img {
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.46));
  justify-self: center;
  max-height: 430px;
  object-fit: contain;
}

.stat-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
}

.stat-list div {
  border-left: 2px solid var(--cyan);
  padding-left: 13px;
}

.stat-list dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-list dd {
  font-weight: 850;
  margin: 4px 0 0;
}

.systems-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.system-card {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 270px;
  padding: 26px;
}

.system-number {
  color: var(--amber);
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 42px;
}

.blueprint {
  display: grid;
  min-height: 620px;
  overflow: hidden;
  place-items: end start;
  position: relative;
}

.blueprint > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.blueprint::after {
  background: linear-gradient(90deg, rgba(5, 12, 15, 0.88), rgba(5, 12, 15, 0.42), rgba(5, 12, 15, 0.2));
  content: "";
  inset: 0;
  position: absolute;
}

.blueprint-copy {
  max-width: 590px;
  padding: clamp(34px, 6vw, 78px);
  position: relative;
  z-index: 1;
}

.intel-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  margin-top: 28px;
}

.intel-list {
  display: grid;
  gap: 14px;
}

.intel-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}

.intel-list span {
  color: var(--green);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.intel-list strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 9px;
}

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

.gallery-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  cursor: zoom-in;
  min-height: 220px;
  overflow: hidden;
  padding: 0;
}

.gallery-item.active {
  border-color: var(--amber);
}

.gallery-item img {
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 180ms ease;
  width: 100%;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.release-band {
  background:
    linear-gradient(90deg, rgba(115, 215, 232, 0.14), rgba(228, 181, 103, 0.14)),
    var(--panel);
  border-block: 1px solid var(--line);
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.release-band h2 {
  max-width: 880px;
}

.release-band p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 660px;
}

.lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-height: 88vh;
  max-width: min(980px, 92vw);
}

.lightbox img {
  background: #071014;
  border: 1px solid rgba(215, 244, 245, 0.24);
  max-height: 78vh;
  object-fit: contain;
  width: 100%;
}

.lightbox figcaption {
  color: var(--ink);
  font-weight: 850;
  margin-top: 12px;
  text-align: center;
}

.lightbox-close {
  background: transparent;
  border: 1px solid rgba(238, 248, 247, 0.44);
  cursor: pointer;
  height: 44px;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 44px;
}

.lightbox-close::before,
.lightbox-close::after {
  background: var(--ink);
  content: "";
  height: 2px;
  left: 10px;
  position: absolute;
  right: 10px;
  top: 20px;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 30px clamp(18px, 5vw, 72px);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.copyright {
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 850;
}

@media (max-width: 980px) {
  .war-grid,
  .base-grid,
  .faction-panel,
  .systems-grid,
  .intel-layout {
    grid-template-columns: 1fr;
  }

  .feature-wide {
    grid-row: auto;
  }

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

  .base-card-wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: 420px;
  }

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

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    height: 64px;
  }

  .nav-toggle {
    display: block;
    left: min(calc(100vw - 58px), 330px);
    position: fixed;
    right: auto;
    top: 11px;
  }

  .site-nav {
    align-items: stretch;
    background: rgba(5, 12, 16, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 8px 18px 18px;
    position: fixed;
    right: 0;
    top: 64px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
  }

  .language-switch {
    left: min(calc(100vw - 142px), 248px);
    margin: 0;
    position: fixed;
    right: auto;
    top: 15px;
  }

  .language-button {
    height: 32px;
    min-width: 38px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-copy {
    max-width: 100vw;
    padding-top: 116px;
  }

  .hero .eyebrow,
  .hero-lede {
    max-width: min(312px, calc(100vw - 58px));
  }

  .hero .eyebrow {
    line-height: 1.45;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.55rem);
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .button {
    width: 100%;
  }

  .hero-status {
    bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    right: auto;
    width: min(334px, calc(100vw - 56px));
  }

  .hero-status span {
    font-size: 0.72rem;
    min-width: 0;
    padding-inline: 6px;
    text-align: center;
  }

  .feature-wide img {
    min-height: 260px;
  }

  .faction-panel {
    min-height: 0;
  }

  .stat-list,
  .base-grid,
  .systems-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .base-card,
  .base-card-wide {
    grid-column: auto;
    min-height: 260px;
  }

  .base-card-wide img {
    aspect-ratio: 4 / 3;
  }

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