/* ==========================================================================
   ZETRA ELECTRIC MOBILITY — MINIMALIST BLACK SCREEN LOADER
   ========================================================================== */

:root {
  --bg-pure-black: #000000;
  --text-white: #ffffff;
  --text-dim: #71717a;
  --font-brand: 'Syne', sans-serif;
  --font-text: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

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

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

/* ==========================================================================
   CENTER STAGE CONTAINER
   ========================================================================== */

.loader-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  padding: 2rem;
  background-color: var(--bg-pure-black);
  position: relative;
  user-select: none;
}

/* --------------------------------------------------------------------------
   TOP BRAND MARK
   -------------------------------------------------------------------------- */

.brand-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-group:hover .brand-logo-icon {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.7));
}

.brand-logo-icon svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.45em;
  color: #ffffff;
  text-indent: 0.45em; /* Compensate for trailing letter-spacing */
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.brand-caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-dim);
  text-indent: 0.35em;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   BATTERY VIDEO CONTAINER & SEAMLESS BLACK BLEND
   -------------------------------------------------------------------------- */

.battery-video-container {
  position: relative;
  width: min(440px, 85vw);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-pure-black);
  overflow: hidden;

  /* Blend mode to make black background of video completely transparent */
  mix-blend-mode: screen;

  /* Soft feathered edge so video blends 100% borderless into black */
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 96%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 96%);

  /* Subtle ambient contrast for battery luminosity */
  filter: contrast(1.15) brightness(1.05);
}

.battery-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  pointer-events: none;
}

/* Secondary feather vignette overlay to guarantee zero visible borders */
.video-blend-feather {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 50%, #000000 95%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   WHITE COMING SOON TEXT & MINIMAL PULSE
   -------------------------------------------------------------------------- */

.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  text-align: center;
}

.coming-soon-text {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #ffffff;
  text-transform: uppercase;
  text-indent: 0.35em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  animation: textBreathe 3s ease-in-out infinite alternate;
}

@keyframes textBreathe {
  0% {
    opacity: 0.7;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
  }
}

/* Minimalist Loading Pulse Line — Hidden in dark, only shining beam emerges */
.loader-pulse-track {
  width: 140px;
  height: 2px;
  background: transparent;
  border-radius: 9999px;
  margin-top: 1.5rem;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.loader-pulse-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  );
  box-shadow: 0 0 12px #ffffff, 0 0 20px rgba(255, 255, 255, 0.8);
  animation: pulseSlide 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulseSlide {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(340%);
  }
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */

@media (max-width: 600px) {
  .brand-title {
    font-size: 1.35rem;
    letter-spacing: 0.35em;
  }

  .battery-video-container {
    width: 90vw;
  }

  .coming-soon-text {
    font-size: 0.88rem;
    letter-spacing: 0.25em;
  }

  .loader-pulse-track {
    width: 110px;
  }
}
