/* Voidpath marketing site — warm relay UI (mirrors src/theme.lua + menu plates) */
:root {
  --void: #080704;
  --sky: #0f0d0a;
  --panel: rgba(13, 11, 8, 0.96);
  --panel-inner: rgba(17, 14, 11, 0.92);
  --copper: #e0913c;
  --gold: #ffdf57;
  --amber: #ffb454;
  --cream: #f5ead2;
  --dim: #a89c86;
  --muted: #706853;
  --danger: #ff4f75;
  --ok: #6effb0;
  --cyan: #6eedff;
  --frame: #e0b357;
  --ink: #0d0a08;
  --edge: rgba(224, 145, 60, 0.38);
  --plate-radius: 8px;
  --max: 1120px;
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", monospace;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: var(--void);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--amber);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Backdrop + CRT */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--void);
}

.site-bg__art {
  position: absolute;
  inset: -4%;
  background:
    url("assets/title_bg.png") center / cover no-repeat;
  opacity: 0.55;
  --px: 0px;
  --py: 0px;
  transform: translate3d(var(--px), var(--py), 0) scale(1.06);
  will-change: transform;
  animation: drift 48s ease-in-out infinite alternate;
}

.site-bg__tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 3, 2, 0.72) 0%, rgba(12, 7, 4, 0.42) 42%, rgba(8, 5, 3, 0.55) 100%),
    rgba(15, 8, 5, 0.58);
}

.site-bg__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.55) 3px,
    transparent 4px
  );
}

@keyframes drift {
  from { transform: translate3d(calc(-1.2% + var(--px)), calc(-0.6% + var(--py)), 0) scale(1.05); }
  to { transform: translate3d(calc(1.4% + var(--px)), calc(0.8% + var(--py)), 0) scale(1.08); }
}

/* Shell */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(8, 7, 4, 0.78);
  border-bottom: 1px solid rgba(224, 145, 60, 0.18);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-mark__studio {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.brand-mark__game {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: var(--copper);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  color: var(--dim);
}

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

/* Menu header language */
.overline {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.55rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  line-height: 1.05;
}

.filament {
  width: 336px;
  max-width: 100%;
  height: 1px;
  margin: 0.9rem 0 0.85rem;
  background: rgba(255, 223, 87, 0.45);
}

.lede {
  color: var(--dim);
  margin: 0;
  max-width: 36rem;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--plate-radius);
  border: 1.4px solid transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #f0c35a 0%, #e0913c 100%);
  color: var(--ink);
  border-color: rgba(255, 223, 87, 0.55);
  box-shadow: 0 0 0 0 rgba(255, 223, 87, 0);
}

.btn--primary:hover {
  color: var(--ink);
  box-shadow: 0 0 22px rgba(255, 223, 87, 0.35);
}

.btn--ghost {
  background: rgba(13, 11, 8, 0.72);
  color: var(--cream);
  border-color: var(--edge);
}

.btn--ghost:hover {
  border-color: rgba(255, 223, 87, 0.55);
  color: var(--gold);
}

/* Hero — one composition, brand-first, full-bleed art */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: end;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 7, 4, 0.88) 0%, rgba(8, 7, 4, 0.55) 38%, rgba(8, 7, 4, 0.25) 62%, rgba(8, 7, 4, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 7, 4, 0.35) 0%, rgba(8, 7, 4, 0.15) 40%, rgba(8, 7, 4, 0.92) 100%),
    url("assets/steam/library/library_hero_3840x1240.jpg") center / cover no-repeat;
}

.hero__content {
  max-width: 34rem;
}

.hero .display {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--cream);
  letter-spacing: 0.04em;
  margin: 0.2rem 0 0;
}

.hero__support {
  margin-top: 0.35rem;
}

.hero__ship {
  position: absolute;
  right: max(2%, calc((100% - var(--max)) / 2));
  bottom: 12%;
  width: min(42vw, 420px);
  opacity: 0.95;
  filter: drop-shadow(0 0 28px rgba(110, 237, 255, 0.25));
  pointer-events: none;
  animation: float-ship 7s ease-in-out infinite;
}

@keyframes float-ship {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding-top: 2.5rem;
}

.section__head {
  margin-bottom: 2rem;
}

.section .display {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

.pitch {
  max-width: 40rem;
  color: var(--cream);
  font-size: 1.12rem;
}

.pitch strong {
  color: var(--gold);
  font-weight: 600;
}

/* Warm plates */
.plate {
  background: rgba(14, 11, 8, 0.88);
  border: 1.4px solid var(--edge);
  border-radius: var(--plate-radius);
  padding: 1.25rem 1.35rem;
  position: relative;
}

.plate--focus {
  border-color: rgba(255, 223, 87, 0.45);
}

.plate--focus::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 2px;
  background: var(--gold);
}

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

.system {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 112px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.system:hover,
.system:focus-within {
  border-color: rgba(255, 223, 87, 0.55);
  background: rgba(255, 223, 87, 0.06);
}

.system:hover::before,
.system:focus-within::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 2px;
  background: var(--gold);
}

.system__art {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: auto;
}

.system h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.system p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery a {
  display: block;
  border-radius: var(--plate-radius);
  overflow: hidden;
  border: 1.4px solid rgba(224, 145, 60, 0.28);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.gallery a:hover {
  border-color: rgba(255, 223, 87, 0.55);
  transform: translateY(-2px);
}

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

/* Studio */
.studio {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.studio__logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.12));
}

.studio h2 {
  margin: 0 0 0.5rem;
}

.studio p {
  margin: 0 0 0.65rem;
  color: var(--dim);
  max-width: 38rem;
}

.credit {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Press strip / kit */
.press-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fact dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.25rem;
}

.fact dd {
  margin: 0;
  color: var(--cream);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.download-card img {
  width: 100%;
  border-radius: 4px;
  background: #000;
  object-fit: contain;
  max-height: 220px;
}

.download-card span {
  font-size: 0.82rem;
  color: var(--dim);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(224, 145, 60, 0.18);
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: end;
}

.footer__meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__meta p {
  margin: 0.2rem 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero .display {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

@media (max-width: 900px) {
  .systems,
  .gallery,
  .fact-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

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

  .hero__ship {
    opacity: 0.28;
    width: min(55vw, 280px);
    bottom: 8%;
  }

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

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding: 4rem 0 3rem;
    align-items: center;
  }

  .hero__ship {
    display: none;
  }

  .system {
    grid-template-columns: 56px 1fr;
  }

  .system__art {
    width: 56px;
    height: 56px;
  }
}

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

  .site-bg__art,
  .hero__ship {
    animation: none !important;
  }

  .gallery a:hover {
    transform: none;
  }
}
