@font-face {
  font-family: Cinzel;
  src: url("../assets/fonts/Cinzel-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url("../assets/fonts/Cinzel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Cinzel;
  src: url("../assets/fonts/Cinzel-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink: #f4f1e8;
  --muted: #b7c4c8;
  --navy: #07121a;
  --navy-2: #0c1c26;
  --panel: #10232c;
  --line: #2a4a52;
  --gold: #d9ae62;
  --gold-2: #f0d7a0;
  --cyan: #55d7c4;
  --cyan-2: #1f8f83;
  --orange: #db8b3c;
  --purple: #a875d6;
  --green: #67b278;
  --blue: #5799d7;
  --shadow: 0 28px 70px #0008;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background: var(--navy);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, #1b4a58 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 20%, #3a2a14 0%, transparent 50%),
    linear-gradient(180deg, #09151c 0%, #071018 40%, #0a1820 100%);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.skip {
  position: absolute; left: 12px; top: -40px; z-index: 20;
  padding: 8px 12px; background: var(--gold); color: #1a1208; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  letter-spacing: .22em;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Cinzel, Georgia, serif; font-weight: 700; letter-spacing: .04em; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.lede { max-width: 62ch; color: var(--muted); line-height: 1.65; font-size: 17px; }

.site-header {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: 18px;
  min-height: 72px; padding: 0 22px;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .2s, border-color .2s, backdrop-filter .2s;
}
.site-header.is-scrolled {
  background: #07121ae8;
  border-color: #ffffff14;
  backdrop-filter: blur(16px);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
}
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Cinzel, Georgia, serif; font-size: 14px; letter-spacing: .12em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a:focus { color: var(--ink); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #10232c; border-radius: 8px;
}
.header-play { margin-left: 8px; }

.app-store-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 168px; height: 52px; padding: 0 16px 0 12px;
  color: #fff; text-decoration: none;
  background: #000; border: 1px solid #fff; border-radius: 8px;
  box-shadow: 0 8px 24px #0006;
}
.app-store-badge svg { height: 34px; width: auto; }
.app-store-badge:hover { filter: brightness(1.12); }
.app-store-badge:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; place-items: end stretch; overflow: hidden;
  border-bottom: 1px solid #ffffff14;
}
.hero-video, .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #07121a88 0%, #07121a22 30%, #07121acc 78%, #07121a 100%),
    radial-gradient(circle at 20% 80%, #d9ae6233, transparent 42%);
}
.hero-copy { position: relative; z-index: 1; padding: 48px 0 72px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 8vw, 86px);
  font-weight: 900;
  line-height: .95;
  text-shadow: 0 8px 40px #000a;
}
.hero h1 span { display: block; color: var(--gold-2); }
.hero .lede { font-size: 18px; color: #dce7ea; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.ghost-link {
  color: var(--gold-2); letter-spacing: .08em; text-transform: uppercase;
  font-size: 13px; font-weight: 700;
}

section { padding: 88px 0; scroll-margin-top: 88px; }
.section-head { margin-bottom: 32px; }

.phone-row {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 900px) {
  .phone-row { grid-template-columns: 1fr; }
}
.phone {
  margin: 0 auto;
  width: min(100%, 820px);
  aspect-ratio: 19.4 / 9;
  padding: 10px 14px;
  border-radius: 32px;
  background: linear-gradient(160deg, #2c3338, #111417);
  box-shadow: var(--shadow), inset 0 0 0 1px #ffffff22;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  border-radius: 22px; background: #0b1a22;
}
.phone figcaption {
  margin-top: 14px; text-align: center; color: var(--muted);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.gallery button {
  margin: 0; padding: 0; border: 0; background: #0b1a22; cursor: pointer;
  overflow: hidden; border-radius: 16px; position: relative;
}
.gallery button:first-child { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; transition: transform .45s; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); }
.shot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px;
}
.shot-grid button {
  margin: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: #0b1a22; cursor: pointer;
}
.shot-grid img { width: 100%; height: 210px; object-fit: cover; }

.fleet {
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.2fr);
  gap: 36px; align-items: center;
}
.hull-list { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.hull-list button {
  text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #0f222a;
}
.hull-list button.is-active {
  border-color: var(--gold);
  background: linear-gradient(90deg, #2a2418, #132228);
}
.hull-list strong { display: block; font-family: Cinzel, Georgia, serif; }
.hull-list small { color: var(--muted); }
.ship-stage {
  min-height: 420px; border-radius: 20px; padding: 12px 12px 28px;
  background:
    radial-gradient(circle at 50% 30%, #1f4a55, transparent 55%),
    linear-gradient(180deg, #102831, #0a171d);
  border: 1px solid #ffffff14;
  box-shadow: var(--shadow);
}
sky-ship-profile { display: block; width: 100%; height: 400px; }
.ship-canvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
.ship-canvas:active { cursor: grabbing; }
.ship-hint {
  display: block; margin-top: -8px; text-align: center;
  color: #7f9794; letter-spacing: .14em; font-size: 10px;
}

.trailer-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #000; box-shadow: var(--shadow); border: 1px solid #ffffff14;
}
.trailer-frame video { width: 100%; aspect-ratio: 16 / 9; }

.missions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.card {
  padding: 22px; border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, black);
  border: 1px solid #ffffff12;
}
.card strong { display: block; margin-bottom: 8px; color: var(--gold-2); font-family: Cinzel, Georgia, serif; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.crew {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.crew figure { margin: 0; }
.crew img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px;
  border: 1px solid #ffffff18;
}
.crew figcaption { margin-top: 10px; }
.crew strong { display: block; font-family: Cinzel, Georgia, serif; font-size: 14px; }
.crew small { color: var(--muted); }

.squads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.squad { padding: 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--squad) 55%, #20343a); background: color-mix(in srgb, var(--squad) 12%, #102029); }
.squad h3 { margin: 0 0 6px; font-size: 18px; color: var(--squad); }
.squad p { margin: 0; color: var(--muted); font-size: 14px; }
.squad-orange { --squad: var(--orange); }
.squad-purple { --squad: var(--purple); }
.squad-green { --squad: var(--green); }
.squad-blue { --squad: var(--blue); }

.play-panel {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
  padding: 36px; border-radius: 22px;
  background:
    radial-gradient(circle at 80% 20%, #d9ae6233, transparent 40%),
    linear-gradient(135deg, #16323a, #0d1c24);
  border: 1px solid #d9ae6255;
  box-shadow: var(--shadow);
}
.play-panel .lede { margin-bottom: 22px; }
#store-note { margin-top: 14px; color: var(--muted); font-size: 13px; }

.site-footer {
  padding: 28px 0 48px; color: var(--muted); font-size: 13px;
  border-top: 1px solid #ffffff12;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

#lightbox { width: min(1100px, calc(100% - 32px)); padding: 0; border: 0; background: transparent; }
#lightbox::backdrop { background: #04080ccc; }
#lightbox figure { margin: 0; }
#lightbox img { width: 100%; border-radius: 12px; }
#lightbox figcaption { padding: 10px 4px 0; color: var(--muted); }

@media (max-width: 980px) {
  .missions, .squads, .crew { grid-template-columns: 1fr 1fr; }
  .fleet, .play-panel, .gallery { grid-template-columns: 1fr; }
  .gallery button:first-child { grid-row: auto; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 72px;
    padding: 16px; flex-direction: column; align-items: stretch;
    background: #0c1c26f0; border: 1px solid var(--line); border-radius: 12px;
  }
  .site-nav.is-open { display: flex; }
  .header-play { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: min(1160px, calc(100% - 24px)); }
  .missions, .squads, .crew, .shot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
