/* ============================================================
   Levitar 3D — showcase site
   Theme mirrors the in-game HUD palette: gold titles, cyan
   labels, green accents, on a deep-space background.
   ============================================================ */

:root {
  --bg:        #070a12;
  --bg-2:      #0b101d;
  --panel:     #111829;
  --panel-2:   #18203400;
  --ink:       #e7ecf5;
  --ink-dim:   #9aa6bd;
  --gold:      #ffd23d;
  --cyan:      #3fe0ff;
  --green:     #5cff9b;
  --yellow:    #ffe14d;
  --red:       #ff5d6c;
  --line:      rgba(63, 224, 255, 0.16);
  --glow-cyan: 0 0 24px rgba(63, 224, 255, 0.35);
  --maxw:      1180px;
  --radius:    14px;
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Rajdhani", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
em { color: var(--cyan); font-style: normal; }

/* ---------- Starfield backdrop ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
}
body::before {
  /* nebula wash behind the stars */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(63,224,255,0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(92,255,155,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 2px;
}
.nav__brand-mark { color: var(--cyan); transform: rotate(0deg); text-shadow: var(--glow-cyan); }
.nav__brand b { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ink-dim);
  transition: color .2s ease;
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 8px 18px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan) !important;
  box-shadow: var(--glow-cyan);
}
.nav__cta:hover { background: var(--cyan); color: #04121a !important; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #1aa6d6);
  color: #04121a;
  box-shadow: 0 8px 30px rgba(63,224,255,0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(63,224,255,0.5); }
.btn--ghost { border-color: rgba(231,236,245,0.3); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero__content { max-width: 820px; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(54px, 12vw, 132px);
  line-height: .95;
  letter-spacing: 4px;
  text-shadow: 0 0 40px rgba(63,224,255,0.25);
}
.hero__title span { color: var(--gold); }
.hero__tagline {
  margin: 24px auto 36px;
  max-width: 620px;
  color: var(--ink-dim);
  font-size: 21px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__meta {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: center;
  margin-top: 48px;
}
.hero__meta li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-dim);
  font-weight: 600;
  letter-spacing: .5px;
}
.hero__meta li::before {
  content: "◆";
  position: absolute; left: 0;
  color: var(--green);
  font-size: 12px;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  font-size: 34px;
  color: var(--ink-dim);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Section scaffolding ---------- */
.section { padding: 110px 24px; max-width: var(--maxw); margin: 0 auto; }
.section--alt {
  max-width: none;
  background: linear-gradient(180deg, rgba(17,24,41,0.55), rgba(11,16,29,0.55));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 1px;
}
.section__sub { color: var(--ink-dim); margin-top: 14px; max-width: 640px; margin-inline: auto; }

/* ---------- About ---------- */
.about { max-width: 760px; margin: 0 auto; }
.about p { margin-bottom: 20px; color: #cfd7e8; font-size: 20px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.feature {
  background: linear-gradient(180deg, rgba(17,24,41,0.85), rgba(13,18,32,0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(63,224,255,0.45);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.feature__icon { font-size: 26px; margin-bottom: 12px; display: block; }
.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .5px;
  margin-bottom: 8px;
  color: var(--gold);
}
.feature__body { color: var(--ink-dim); font-size: 16px; line-height: 1.5; }

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: var(--panel);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.06); }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(4,8,16,0.92), transparent);
  font-weight: 600;
  letter-spacing: .4px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.shot:hover .shot__cap { opacity: 1; transform: translateY(0); }
.shot__zoom {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(7,10,18,0.7);
  color: var(--cyan);
  opacity: 0;
  transition: opacity .25s ease;
}
.shot:hover .shot__zoom { opacity: 1; }

/* ---------- Videos ---------- */
.videos {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
}
.video {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.video:hover { transform: translateY(-4px); border-color: rgba(63,224,255,0.45); }
.video__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: #0a0f1c;
}
.video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.video__play span {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(63,224,255,0.9);
  color: #04121a;
  display: grid; place-items: center;
  font-size: 26px;
  padding-left: 4px;
  box-shadow: 0 6px 30px rgba(63,224,255,0.5);
  transition: transform .2s ease;
}
.video__thumb:hover .video__play span { transform: scale(1.1); }
.video__body { padding: 18px 20px 22px; }
.video__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .5px; color: var(--gold); margin-bottom: 6px; }
.video__desc { color: var(--ink-dim); font-size: 15px; }

/* ---------- Arsenal ---------- */
.arsenal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.weapon {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13,18,32,0.6);
  transition: border-color .2s ease, background .2s ease;
}
.weapon:hover { border-color: rgba(255,210,61,0.4); background: rgba(20,27,46,0.7); }
.weapon__dot { color: var(--green); margin-top: 4px; font-size: 12px; }
.weapon__name { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .5px; color: var(--ink); }
.weapon__desc { color: var(--ink-dim); font-size: 14px; line-height: 1.45; }
.arsenal__class {
  grid-column: 1 / -1;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.arsenal__class:first-child { margin-top: 0; }

/* ---------- CTA ---------- */
.cta { padding: 120px 24px; text-align: center; }
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-family: var(--font-display); font-size: clamp(32px, 6vw, 56px); letter-spacing: 1px; }
.cta p { color: var(--ink-dim); margin: 16px 0 32px; font-size: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 24px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__brand { font-family: var(--font-display); font-weight: 900; letter-spacing: 2px; }
.footer__brand b { color: var(--gold); }
.footer__note { color: var(--ink-dim); font-size: 15px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(3, 6, 12, 0.94);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox__stage img { max-width: 90vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,0.7); }
.lightbox__stage figcaption { margin-top: 14px; color: var(--ink-dim); font-weight: 600; letter-spacing: .5px; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(17,24,41,0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.lightbox__close { top: 24px; right: 24px; width: 46px; height: 46px; font-size: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 70px; font-size: 36px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--cyan); color: #04121a; }

/* ---------- Video modal ---------- */
.vmodal {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(3, 6, 12, 0.95);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.vmodal.is-open { display: flex; }
.vmodal__frame {
  width: min(1000px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0,0,0,0.8);
}
.vmodal__frame iframe, .vmodal__frame video { width: 100%; height: 100%; border: 0; display: block; }
.vmodal__msg { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: var(--ink-dim); padding: 30px; }
.vmodal__close {
  position: absolute; top: 24px; right: 24px;
  width: 46px; height: 46px; font-size: 20px;
  background: rgba(17,24,41,0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
}
.vmodal__close:hover { background: var(--cyan); color: #04121a; }

/* ---------- Placeholder media tile (no asset present yet) ---------- */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(63,224,255,0.04) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, #0c1322, #0a0f1c);
  color: var(--ink-dim);
}
.ph__inner { padding: 18px; }
.ph__icon { font-size: 30px; color: var(--cyan); display: block; margin-bottom: 8px; }
.ph__label { font-family: var(--font-display); font-weight: 700; letter-spacing: 1px; font-size: 14px; color: var(--ink); }
.ph__hint { font-size: 13px; margin-top: 6px; opacity: .8; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 64px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(7,10,18,0.97);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    width: 240px;
    transform: translateX(110%);
    transition: transform .3s ease;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { width: 100%; padding: 12px 24px; }
  .nav__cta { margin: 8px 24px; }
  .section { padding: 80px 20px; }
  .lightbox, .vmodal { padding: 20px; }
  .lightbox__nav { width: 40px; height: 56px; font-size: 28px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero__scroll { animation: none; }
}
