:root {
  --bg-primary: #07030f;
  --bg-secondary: #0f0a1e;
  --neon-purple: #a855f7;
  --neon-blue: #38bdf8;
  --text-main: #f3f4f6;
  --text-soft: #a3a3b8;
  --card-border: rgba(168, 85, 247, 0.45);
  --glow: 0 0 24px rgba(56, 189, 248, 0.25), 0 0 40px rgba(168, 85, 247, 0.2);

  /*
   * === POSIÇÃO NO TOPO (distância “pra cima”) ===
   * --header-pull-up  → sobe o CABEÇALHO INTEIRO (logo + botão). SEMPRE com unidade.
   *   Ex.: -10px, -16px, -0.5rem   (mais negativo = mais perto do topo da página)
   * --logo-nudge-y    → sobe SÓ o bloco logo + slogan, relativo ao botão.
   *   OBRIGATÓRIO usar unidade: -8px ou -0.35rem   (NUNCA só -30 — isso é ignorado pelo CSS)
   * --hero-padding-top → espaço entre o fim do header e o começo do “PLAYBOX”
   */
  --header-pull-up: -50px;
  --logo-nudge-y: 10px;
  --hero-padding-top: 0.15rem;

  /*
   * === TAMANHO da PNG + slogan ===
   * --logo-height-min tem que ser MENOR que --logo-height-max, senão o clamp quebra.
   * Maior logo: aumente --logo-height-max e/ou --logo-height-vw.
   */
  --logo-height-min: 10.85rem;
  --logo-height-vw: 13vw;
  --logo-height-max: 5rem;
  --logo-max-width: 520px;
  --logo-width-cap: 88vw;
  --logo-stack-gap: 0.45rem;
  --logo-slogan-min: 0.72rem;
  --logo-slogan-vw: 2.35vw;
  --logo-slogan-max: 1.05rem;
  --logo-glow-blur: 14px;
  --logo-glow-opacity: 0.35;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.18), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(168, 85, 247, 0.22), transparent 40%),
    linear-gradient(160deg, var(--bg-primary), var(--bg-secondary));
  overflow-x: hidden;
}

.hud-overlay,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hud-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.2;
}

.scanlines {
  background: linear-gradient(transparent 92%, rgba(56, 189, 248, 0.08) 100%);
  background-size: 100% 5px;
  opacity: 0.35;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0 0.75rem;
  margin-top: var(--header-pull-up);
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--logo-stack-gap);
  transform: translateY(var(--logo-nudge-y, 0px));
}

.logo-image {
  height: clamp(var(--logo-height-min), var(--logo-height-vw), var(--logo-height-max));
  width: auto;
  max-width: min(var(--logo-max-width), var(--logo-width-cap));
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 var(--logo-glow-blur) rgba(56, 189, 248, var(--logo-glow-opacity)));
}

.logo-tagline {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.12em;
  font-size: clamp(var(--logo-slogan-min), var(--logo-slogan-vw), var(--logo-slogan-max));
  color: var(--text-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  padding: var(--hero-padding-top) 0 2.6rem;
  align-items: stretch;
}

.eyebrow {
  color: var(--neon-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.subtitle {
  margin: 0.45rem 0 0.8rem;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: #c084fc;
}

.description {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  color: #07030f;
  background: linear-gradient(100deg, var(--neon-blue), #c084fc);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.5);
}

.btn-outline,
.btn-ghost {
  color: var(--text-main);
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(17, 10, 30, 0.45);
}

.btn-outline:hover,
.btn-ghost:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.neon-card {
  background: linear-gradient(160deg, rgba(14, 8, 26, 0.85), rgba(9, 5, 18, 0.86));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--glow);
  position: relative;
  overflow: hidden;
}

.neon-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(56, 189, 248, 0.38),
    transparent 30%,
    transparent 60%,
    rgba(168, 85, 247, 0.42)
  );
  pointer-events: none;
}

.hero-visual,
.gallery-item {
  min-height: 280px;
}

.hero-visual img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual {
  cursor: pointer;
}

.hero-visual img {
  transition: filter 260ms ease;
}

.hero-visual:hover img {
  filter: brightness(1.05);
}

.image-fallback {
  display: grid;
  place-items: center;
  text-align: center;
}

.fallback-message {
  display: none;
  padding: 1rem;
  color: var(--text-soft);
}

.image-fallback .fallback-message {
  display: block;
}

section {
  margin: 2.2rem auto;
}

.video-section h2,
.features h2,
.gallery h2,
.cta h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 0.75rem;
}

.video-section p,
.gallery p,
.cta p {
  color: var(--text-soft);
  margin-top: 0;
}

.video-frame {
  padding: 0.4rem;
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 14px;
  background: #0a0614;
}

.video-fallback-msg {
  margin: 0.75rem auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: 0.88rem;
  color: #f9a8d4;
  line-height: 1.45;
}

.features .grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  padding: 1rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(transparent, rgba(5, 3, 10, 0.88));
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cta {
  text-align: center;
  padding: 1.4rem;
}

.site-footer {
  padding: 1.6rem 0 2.4rem;
  color: var(--text-soft);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 8, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 1rem;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease;
}

.lightbox.open .lightbox-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.lightbox-fill {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(14px) saturate(1.15) brightness(0.45);
  transform: scale(1.08);
}

.lightbox-content img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
  transform: scale(var(--focus-zoom, 1.2));
  transform-origin: center;
  border-radius: 16px;
  transition: transform 320ms ease;
}

.lightbox-close {
  position: absolute;
  top: 1.3rem;
  right: 2.8rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.72);
  background: rgba(7, 3, 15, 0.85);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.42);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .features .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-direction: column;
    gap: 0.9rem;
  }

  .features .grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: var(--hero-padding-top);
  }

  .btn {
    width: 100%;
  }

  .lightbox-content {
    padding: 0.5rem;
  }
}
