/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #04080f;
  --teal:      #2de8cf;
  --teal2:     #89efe4;
  --teal-glow: rgba(45, 232, 207, 0.38);
  --sub:       #7a9ab8;
  --white:     #e8f4f8;
}

/* ── No scroll ───────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: 'Manrope', sans-serif;
}

/* ── Character — fills left 65% of screen ────────── */
.char-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% center;
  z-index: 0;
  filter: saturate(1.15) brightness(0.9);
}

/* ── Overlay — keeps right side readable ─────────── */
.overlay-grad {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(4,8,15,0.08) 0%,
      rgba(4,8,15,0.12) 25%,
      rgba(4,8,15,0.72) 52%,
      rgba(4,8,15,0.95) 100%
    ),
    linear-gradient(to bottom,
      rgba(4,8,15,0.35) 0%,
      transparent       12%,
      transparent       80%,
      rgba(4,8,15,0.65) 100%
    );
}

/* ── Scanlines ───────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(45,232,207,0.012) 2px,
    rgba(45,232,207,0.012) 4px
  );
}

/* ── Particles ───────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ── Scene — full viewport ───────────────────────── */
.scene {
  position: relative;
  z-index: 4;
  width: 100vw;
  height: 100vh;
}

/* ── Logo — top-left, small ──────────────────────── */
.logo-wrap {
  position: absolute;
  top: clamp(14px, 2.8vh, 36px);
  left: clamp(18px, 3vw, 48px);
  z-index: 6;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.logo-wrap.visible {
  opacity: 1;
  transform: translateX(0);
}

.game-logo {
  height: clamp(75px, 5.2vh, 64px);
  width: auto;
  max-width: clamp(150px, 18vw, 250px);
  object-fit: contain;
  filter: drop-shadow(0 0 18px var(--teal-glow)) brightness(1.1);
}

/* ── Content — right side, full height spread ────── */
.content-side {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  top: clamp(16px, 4vh, 48px);
  bottom: clamp(16px, 4vh, 48px);
  width: clamp(280px, 42vw, 540px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(10px, 1.8vh, 22px);
  z-index: 5;
}

/* ── Title block ─────────────────────────────────── */
.title-block {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
  flex-shrink: 0;
  margin-top: clamp(24px, 5vh, 60px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.title-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Badge ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3.1rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
  border: 1px solid rgba(45,232,207,0.26);
  background: rgba(45,232,207,0.06);
  padding: clamp(3px, 0.6vh, 6px) clamp(8px, 1vw, 12px);
  width: fit-content;
  margin-bottom: clamp(2px, 0.4vh, 6px);
}

.badge-dot {
  width: clamp(4px, 0.55vw, 6px);
  height: clamp(4px, 0.55vw, 6px);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 7px var(--teal);
  animation: blink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 200px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  text-shadow: 0 2px 30px rgba(4,8,15,0.95);
}

.gradient-text {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal2) 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(45,232,207,0.44));
}

.subtitle {
  font-size: clamp(0.85rem, 1.15vw, 1rem);
  font-weight: 500;
  color: #b8cfe4;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(4,8,15,0.8);
  margin-top: clamp(6px, 1vh, 14px);
}

.subtitle strong {
  color: var(--teal2);
  font-weight: 700;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(4px, 0.6vh, 8px);
}

.sp-item { display: flex; align-items: baseline; gap: 5px; }

.sp-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 700;
  color: var(--teal2);
}

.sp-stars { font-size: clamp(0.6rem, 0.7vw, 0.68rem); color: #f5c842; letter-spacing: 1px; }
.sp-label { font-size: clamp(0.6rem, 0.7vw, 0.68rem); color: var(--sub); }

.sp-divider {
  width: 1px;
  height: clamp(16px, 2vh, 22px);
  background: rgba(45,232,207,0.2);
}

/* ── Video — centered between title and CTA ──────── */
.video-wrap {
  position: relative;
  width: 100%;
  flex: none;
  margin: auto 0;
  height: clamp(260px, 42vh, 460px);
  border: 1px solid rgba(45,232,207,0.18);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.8s ease, border-color 0.28s, box-shadow 0.28s;
  box-shadow: 0 0 36px rgba(4,8,15,0.55);
}

.video-wrap.visible { opacity: 1; }

.video-wrap:hover {
  border-color: rgba(45,232,207,0.48);
  box-shadow:
    0 0 0 1px rgba(45,232,207,0.1),
    0 0 48px rgba(45,232,207,0.14),
    0 0 70px rgba(4,8,15,0.5);
}

#hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vh, 10px);
  background: rgba(4,8,15,0.44);
  transition: background 0.28s;
}

.video-wrap:hover .play-overlay { background: rgba(4,8,15,0.26); }

.play-btn {
  width: clamp(46px, 6vh, 62px);
  height: clamp(46px, 6vh, 62px);
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: rgba(45,232,207,0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 0 22px rgba(45,232,207,0.34);
  transition: transform 0.22s, background 0.22s, box-shadow 0.22s;
}

.play-btn svg {
  width: clamp(14px, 2vh, 20px);
  height: clamp(14px, 2vh, 20px);
  margin-left: 3px;
}

.video-wrap:hover .play-btn {
  transform: scale(1.12);
  background: rgba(45,232,207,0.2);
  box-shadow: 0 0 42px rgba(45,232,207,0.58);
}

.play-label {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--teal2);
  text-transform: uppercase;
  opacity: 0.82;
}

.vid-corner {
  position: absolute;
  width: clamp(12px, 1.4vw, 18px);
  height: clamp(12px, 1.4vw, 18px);
  border-color: var(--teal);
  border-style: solid;
  z-index: 2;
  opacity: 0.7;
  transition: width 0.25s, height 0.25s, opacity 0.25s;
}
.vid-corner--tl { top:-1px;    left:-1px;  border-width: 2px 0 0 2px; }
.vid-corner--tr { top:-1px;    right:-1px; border-width: 2px 2px 0 0; }
.vid-corner--bl { bottom:-1px; left:-1px;  border-width: 0 0 2px 2px; }
.vid-corner--br { bottom:-1px; right:-1px; border-width: 0 2px 2px 0; }

.video-wrap:hover .vid-corner {
  width: clamp(18px, 2vw, 26px);
  height: clamp(18px, 2vw, 26px);
  opacity: 1;
}

.vid-beam {
  position: absolute;
  top: 0; left: -100%;
  width: 35%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(45,232,207,0.055) 50%, transparent 100%);
  animation: vidBeam 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes vidBeam {
  0%   { left: -100%; }
  40%  { left: 160%; }
  100% { left: 160%; }
}

/* ── CTA + trust group ───────────────────────────── */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.9vh, 10px);
  flex-shrink: 0;
}

/* ── CTA button ──────────────────────────────────── */
.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  padding: clamp(0.75em, 1.6vh, 1.1em) 2em;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #04080f;
  text-decoration: none;
  background: linear-gradient(90deg, var(--teal) 0%, #4af0dc 50%, var(--teal) 100%);
  background-size: 200% 100%;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.2s;
  animation: heartbeat 1.1s ease-in-out infinite, gradSlide 4s ease-in-out infinite;
}

.cta-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn:hover { filter: brightness(1.14) saturate(1.2); }

@keyframes heartbeat {
  0%   { transform: scale(1)    translateX(0px)  rotate(0deg);    box-shadow: 0 0 16px rgba(45,232,207,0.28), 0 4px 24px rgba(45,232,207,0.1); }
  3%   { transform: scale(1.09) translateX(-3px) rotate(-1.2deg); box-shadow: 0 0 65px rgba(45,232,207,1),    0 8px 60px rgba(45,232,207,0.55); }
  6%   { transform: scale(0.94) translateX(3px)  rotate(1deg);    box-shadow: 0 0 12px rgba(45,232,207,0.15); }
  9%   { transform: scale(1.07) translateX(-2px) rotate(-0.8deg); box-shadow: 0 0 50px rgba(45,232,207,0.85), 0 6px 44px rgba(45,232,207,0.4); }
  12%  { transform: scale(0.97) translateX(2px)  rotate(0.5deg);  box-shadow: 0 0 14px rgba(45,232,207,0.2); }
  15%  { transform: scale(1.04) translateX(-1px) rotate(-0.3deg); box-shadow: 0 0 38px rgba(45,232,207,0.6),  0 4px 32px rgba(45,232,207,0.25); }
  19%  { transform: scale(1)    translateX(0px)  rotate(0deg);    box-shadow: 0 0 16px rgba(45,232,207,0.28), 0 4px 24px rgba(45,232,207,0.1); }
  100% { transform: scale(1)    translateX(0px)  rotate(0deg);    box-shadow: 0 0 16px rgba(45,232,207,0.28), 0 4px 24px rgba(45,232,207,0.1); }
}

@keyframes gradSlide {
  0%   { background-position: 0%   0%; }
  50%  { background-position: 100% 0%; }
  100% { background-position: 0%   0%; }
}

.cta-ripple {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: rippleRing 1.1s ease-in-out infinite;
}

@keyframes rippleRing {
  0%   { box-shadow: 0 0 0 0    rgba(45,232,207,0.62); }
  13%  { box-shadow: 0 0 0 11px rgba(45,232,207,0);    }
  100% { box-shadow: 0 0 0 0    rgba(45,232,207,0);    }
}

.cta-shimmer {
  position: absolute;
  top: 0; left: -120%;
  width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { left: -120%; }
  40%  { left: 160%; }
  100% { left: 160%; }
}

.trust-copy {
  font-size: clamp(0.58rem, 0.7vw, 0.65rem);
  color: rgba(122,154,184,0.55);
  text-align: center;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.trust-copy.visible { opacity: 1; }

/* ── Large desktop 1920px+ ───────────────────────── */
@media (min-width: 1920px) {
  .content-side { width: min(38vw, 680px); }
  h1 { font-size: clamp(2.4rem, 3vw, 3.8rem); }
}

/* ── 1280px laptops ──────────────────────────────── */
@media (max-width: 1280px) {
  .content-side {
    right: clamp(16px, 3vw, 40px);
    width: clamp(280px, 46vw, 520px);
  }
}

/* ── 1024px ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-side {
    width: clamp(260px, 54vw, 500px);
    right: clamp(12px, 2vw, 28px);
  }
}

/* ── Short viewport height < 700px ──────────────── */
@media (max-height: 700px) {
  .content-side {
    top: clamp(8px, 1.5vh, 18px);
    bottom: clamp(8px, 1.5vh, 18px);
    gap: clamp(6px, 1vh, 12px);
  }
  h1 { font-size: clamp(1.3rem, 2.6vw, 2.2rem); }
  .subtitle { font-size: 0.78rem; line-height: 1.55; }
  .video-wrap { min-height: 80px; }
}

@media (max-height: 600px) {
  .content-side { gap: 5px; }
  h1 { font-size: clamp(3.1rem, 2.2vw, 1.8rem); }
  .subtitle { font-size: 0.72rem; line-height: 1.45; }
  .social-proof { display: none; }
  .video-wrap { min-height: 60px; }
}
