/* ==========================================================================
   JUST KING - Luxury Minimalist Fullscreen Landing Page
   Aesthetic: 100% Fullscreen Cinematic Video, Ultra-Minimal English HUD
   Palette: Dark Void (#050608), Radioactive Neon Lime (#a6ff00)
   ========================================================================== */

:root {
  --bg-dark: #050608;
  --neon-lime: #a6ff00;
  --neon-glow: rgba(166, 255, 0, 0.45);
  --neon-subtle: rgba(166, 255, 0, 0.15);
  
  --text-pure: #ffffff;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  
  --glass-bg: rgba(10, 14, 18, 0.65);
  --glass-border: rgba(255, 255, 255, 0.12);
  
  --font-brand: 'Syne', sans-serif;
  --font-title: 'Orbitron', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --radius-full: 9999px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Branded Neon Preloader Overlay
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.preloader-overlay.is-loaded {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.preloader-logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(166, 255, 0, 0.6));
  animation: preloader-pulse 2s infinite ease-in-out;
}

@keyframes preloader-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(166, 255, 0, 0.45));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 24px rgba(166, 255, 0, 0.75));
  }
}

.preloader-counter-wrap {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-title);
  color: var(--neon-lime);
  text-shadow: 0 0 25px rgba(166, 255, 0, 0.55);
}

.preloader-num {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

.preloader-unit {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-left: 0.25rem;
  opacity: 0.85;
}

.preloader-track {
  width: 220px;
  max-width: 75vw;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: var(--neon-lime);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--neon-lime);
  transition: width 0.12s ease-out;
}

.preloader-label {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-faint);
  text-transform: uppercase;
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-pure);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 1. Fullscreen Video Canvas (Original 100% Brightness & Vibrant Contrast) */
.video-canvas-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  overflow: hidden;
}

.fullscreen-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  /* 100% Pure, vivid video brightness - no darkening filter */
  filter: none;
}

/* Cinematic Vignette - Transparent center, subtle edge framing only */
.cinema-vignette {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, transparent 55%, rgba(5, 6, 8, 0.35) 100%),
    linear-gradient(
      to bottom,
      rgba(5, 6, 8, 0.4) 0%,
      transparent 15%,
      transparent 70%,
      rgba(5, 6, 8, 0.65) 100%
    );
  pointer-events: none;
  z-index: 2;
}

/* 2. Floating Minimal UI Layer */
.ui-layer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: max(2rem, env(safe-area-inset-top)) max(2.5rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(2.5rem, env(safe-area-inset-left));
}

/* Top Navigation */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 12;
}

.brand-emblem {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(166, 255, 0, 0.45));
  transition: transform var(--transition);
}

.nav-logo:hover {
  transform: scale(1.04);
}

.header-right {
  display: flex;
  align-items: center;
}

/* Sound Button (Default Active / Glowing) */
.sound-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  background: var(--glass-bg);
  border: 1px solid var(--neon-lime);
  color: var(--neon-lime);
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 20px var(--neon-glow);
  transition: all var(--transition);
  touch-action: manipulation;
}

.sound-chip:hover {
  background: rgba(166, 255, 0, 0.15);
  box-shadow: 0 0 28px rgba(166, 255, 0, 0.6);
  transform: translateY(-1px);
}

.sound-chip.is-muted {
  border-color: var(--glass-border);
  color: var(--text-pure);
  box-shadow: none;
}

.sound-chip.is-muted:hover {
  border-color: var(--neon-lime);
  color: var(--neon-lime);
}

/* Lower-Third Stage (Positioned Lower on Screen to Avoid Covering Center Visuals) */
.bottom-stage {
  margin-top: auto;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 11;
}

.title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  /* Translucent backdrop vignette for razor-sharp legibility */
  background: radial-gradient(ellipse at center, rgba(5, 6, 8, 0.75) 0%, rgba(5, 6, 8, 0.35) 60%, transparent 100%);
  padding: 1.25rem 2.5rem;
  border-radius: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.coming-soon-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  font-weight: 900;
  letter-spacing: clamp(6px, 1.2vw, 16px);
  color: #ffffff;
  text-transform: uppercase;
  margin-left: clamp(6px, 1.2vw, 16px); /* offset for letter-spacing balance */
  /* High contrast shadow to guarantee 100% readability over any video background */
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 1),
    0 4px 18px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(166, 255, 0, 0.45);
  animation: breathe-glow 4s ease-in-out infinite alternate;
  white-space: nowrap;
}

@keyframes breathe-glow {
  0% {
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 1),
      0 4px 18px rgba(0, 0, 0, 0.95),
      0 0 25px rgba(166, 255, 0, 0.3);
  }
  100% {
    text-shadow: 
      0 2px 4px rgba(0, 0, 0, 1),
      0 4px 22px rgba(0, 0, 0, 1),
      0 0 45px rgba(166, 255, 0, 0.6);
  }
}

.brand-tagline {
  font-family: var(--font-title);
  font-size: clamp(0.72rem, 1.1vw, 0.92rem);
  font-weight: 600;
  letter-spacing: clamp(3px, 0.5vw, 6px);
  color: var(--neon-lime);
  text-transform: uppercase;
  opacity: 0.95;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 1),
    0 0 15px rgba(166, 255, 0, 0.6);
  white-space: nowrap;
}

/* Bottom Bar */
.bottom-bar {
  width: 100%;
  z-index: 12;
  padding-bottom: max(0.625rem, env(safe-area-inset-bottom, 0px));
}

@media (display-mode: standalone) {
  .bottom-bar {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }
}

.bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

/* ==========================================================================
   Apex Team Canonical Signature Suite (Khan Signature v0.5.0 - Minimal Archetype)
   Sleek Minimalist Attribution for Landing Pages & Product Teasers
   ========================================================================== */
.apex-signature-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  line-height: 1.5;
  transition: color var(--transition);
}

.sig-copy {
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.apex-signature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  color: var(--text-pure);
  text-decoration: none;
  transition: color var(--transition), filter var(--transition), transform var(--transition);
  will-change: filter, transform;
}

.apex-crest-icon {
  width: 13px;
  height: 13px;
  color: currentColor;
  display: inline-block;
  vertical-align: middle;
  transition: transform var(--transition), color var(--transition);
}

.apex-signature-link:hover {
  color: var(--neon-lime);
  filter: drop-shadow(0 0 8px rgba(166, 255, 0, 0.75));
}

.apex-signature-link:hover .apex-crest-icon {
  transform: scale(1.18);
  color: var(--neon-lime);
}

.apex-signature-link:hover .sig-brand {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-icon {
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), transform var(--transition);
  padding: 0.25rem;
}

.social-icon:hover {
  color: var(--neon-lime);
  transform: scale(1.15);
}

/* ==========================================================================
   Mobile Optimization (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .ui-layer {
    padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom)) 1.25rem;
  }

  .nav-logo {
    height: 32px;
  }

  .sound-chip {
    padding: 0.45rem 0.9rem;
    font-size: 0.72rem;
    min-height: 38px;
  }

  /* Lower positioning on mobile to keep video visible above */
  .bottom-stage {
    margin-bottom: 1.25rem;
  }

  .title-wrap {
    padding: 0.85rem 1.25rem;
    border-radius: 18px;
    gap: 0.5rem;
    max-width: 95vw;
  }

  .coming-soon-title {
    font-size: clamp(1.5rem, 6.5vw, 2.4rem);
    letter-spacing: clamp(3px, 1.2vw, 8px);
    margin-left: clamp(3px, 1.2vw, 8px);
    white-space: normal;
  }

  .brand-tagline {
    font-size: clamp(0.6rem, 2.4vw, 0.75rem);
    letter-spacing: clamp(1.5px, 0.4vw, 3px);
    white-space: normal;
    line-height: 1.4;
  }

  .bottom-inner {
    flex-direction: column-reverse;
    gap: 0.75rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .apex-signature-wrap {
    order: 1;
    font-size: 0.72rem;
  }

  .meta-socials {
    order: 2;
    gap: 1.5rem;
  }

  .social-icon {
    padding: 0.35rem;
  }
}
