:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #0b1017;
  --panel: #101822;
  --panel-2: #161b1f;
  --line: rgba(214, 235, 255, 0.18);
  --line-strong: rgba(214, 235, 255, 0.34);
  --text: #eef6ff;
  --muted: #a9b7c4;
  --cyan: #49d7ff;
  --amber: #ffb13b;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  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;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 16px 48px;
  background: rgba(5, 7, 11, 0.25);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 11, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 6px;
  color: rgba(238, 246, 255, 0.82);
  font-size: 15px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.language-option {
  min-width: 38px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.language-option.is-active {
  background: #eef6ff;
  color: #06111b;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px 48px 86px;
  border-bottom: 1px solid var(--line);
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.36) 0%, rgba(5, 7, 11, 0.18) 48%, rgba(5, 7, 11, 0.04) 100%),
    linear-gradient(0deg, rgba(5, 7, 11, 0.42) 0%, rgba(5, 7, 11, 0.03) 58%, rgba(5, 7, 11, 0.16) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(238, 246, 255, 0.9);
  font-size: 22px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-weight: 900;
  font-size: 15px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(255, 255, 255, 0.72);
}

.button-primary {
  background: #f4f8ff;
  color: #07101a;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.section {
  padding: 92px 48px;
}

.intro,
.ships,
.world {
  background: var(--bg);
}

.gallery,
.gadgets,
.privacy {
  background: var(--bg-2);
}

.contact {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.intro-copy,
.feature-grid,
.trailer-layout,
.gallery-grid,
.contact-layout,
.privacy-grid,
.privacy-note,
.world-layout,
.carousel-track {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 34px;
}

.heading-with-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  max-width: 820px;
  font-size: 46px;
  line-height: 1.05;
}

.intro-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-bottom: 34px;
  color: var(--muted);
}

.intro-copy p {
  margin: 0;
}

.trailer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000000;
  box-shadow: 0 24px 70px var(--shadow);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.trailer-copy h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.15;
}

.trailer-copy p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card,
.ship-card,
.item-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.feature-card {
  min-height: 220px;
  padding: 24px;
}

.feature-card span {
  color: var(--amber);
  font-weight: 900;
}

.feature-card h3,
.ship-card h3,
.item-card h3,
.threat-panel h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.feature-card p,
.ship-card p,
.item-card p,
.threat-panel p {
  margin: 0;
  color: var(--muted);
}

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

.gallery-item {
  position: relative;
  min-height: 222px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
  color: #ffffff;
  cursor: pointer;
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 458px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, opacity 260ms ease;
}

.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 7, 11, 0.74);
  font-size: 13px;
  font-weight: 900;
}

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

.gallery-item:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.carousel-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 310px;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1px;
  padding: 2px 0 16px;
  scrollbar-color: rgba(73, 215, 255, 0.55) rgba(255, 255, 255, 0.08);
}

.carousel-track > article {
  scroll-snap-align: start;
}

.ship-card {
  display: grid;
  grid-template-rows: 292px auto;
  min-height: 560px;
  overflow: hidden;
}

.ship-card img {
  width: 100%;
  height: 292px;
  object-fit: contain;
  padding: 18px;
  background: #18202a;
}

.ship-card:nth-child(2n) img {
  background: #20242a;
}

.ship-card:nth-child(3n) img {
  background: #1d261e;
}

.ship-card:nth-child(4n) img {
  background: #241f1a;
}

.ship-card div {
  padding: 20px;
}

.card-kicker {
  margin: 0;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gadget-carousel {
  grid-auto-columns: 238px;
}

.item-card {
  min-height: 300px;
  padding: 18px;
  text-align: center;
}

.item-card img {
  width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.item-card h3 {
  font-size: 18px;
}

.item-card p {
  font-size: 14px;
}

.world-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
}

.map-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.map-list span {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: rgba(238, 246, 255, 0.9);
  text-align: center;
  font-weight: 900;
  font-size: 14px;
}

.threat-panel {
  display: grid;
  grid-template-rows: 220px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}

.threat-panel img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 22px;
  background: #12191c;
}

.threat-panel div {
  padding: 22px;
}

.status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(73, 215, 255, 0.12), rgba(255, 177, 59, 0.08)),
    #071015;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-copy {
  width: min(760px, 100%);
  margin-left: auto;
}

.status-copy h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.status-copy p:last-child {
  color: var(--muted);
}

.status-actions {
  margin: 0 auto 0 0;
  padding-right: 48px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.contact-copy {
  max-width: 760px;
}

.contact-copy h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.contact-copy p:last-child {
  color: var(--muted);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f4f8ff;
  color: #07101a;
  font-weight: 900;
  text-align: center;
  word-break: break-word;
  transition: transform 160ms ease, border-color 160ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(255, 255, 255, 0.72);
}

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

.privacy-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.privacy-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.privacy-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 48px;
  color: var(--muted);
  background: #030508;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

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

.media-dialog {
  width: min(1100px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #05070b;
  color: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.media-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.media-dialog img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000000;
}

.media-dialog p {
  margin: 0;
  padding: 14px 18px;
  font-weight: 900;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .site-header {
    padding: 14px 24px;
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 9px;
  }

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

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

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

  .threat-panel {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .threat-panel img {
    height: 100%;
    min-height: 240px;
  }

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

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

  .status-copy {
    margin-left: 0;
  }

  .status-actions {
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 7, 11, 0.96);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

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

  .gallery-large {
    min-height: 380px;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 14px 20px;
  }

  .header-actions {
    gap: 8px;
  }

  .language-option {
    min-width: 34px;
  }

  .hero {
    min-height: 90vh;
    padding: 120px 22px 52px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .section {
    padding: 66px 22px;
  }

  .section-heading h2,
  .status-copy h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .heading-with-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-copy,
  .feature-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .gallery-item {
    min-height: 240px;
  }

  .carousel-track {
    grid-auto-columns: minmax(250px, 82vw);
  }

  .gadget-carousel {
    grid-auto-columns: minmax(220px, 76vw);
  }

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

  .threat-panel {
    grid-template-columns: 1fr;
  }

  .ship-card {
    grid-template-rows: 260px auto;
  }

  .ship-card img {
    height: 260px;
  }

  .site-footer {
    padding: 24px 22px;
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
  }

  .contact-email {
    width: 100%;
  }

  .map-list {
    grid-template-columns: 1fr;
  }

  .item-card {
    min-height: 280px;
  }
}
