/* Kariev Ultra-Luxury Intro & Cinematic Entrance Styles */

.kariev-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #02050e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s ease;
  perspective: 1200px;
}

.kariev-intro-overlay.dismissed {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  pointer-events: none;
}

/* Cosmic Atmospheric Mesh */
.intro-cosmic-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro-nebula-glow {
  position: absolute;
  width: min(120vw, 750px);
  height: min(120vw, 750px);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(56, 189, 248, 0.22) 0deg, rgba(99, 102, 241, 0.26) 90deg, rgba(168, 85, 247, 0.18) 180deg, rgba(14, 165, 233, 0.25) 270deg, rgba(56, 189, 248, 0.22) 360deg);
  border-radius: 50%;
  filter: blur(80px);
  animation: cosmicSpin 22s linear infinite;
}

@keyframes cosmicSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.intro-grid-stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(255, 255, 255, 0.8) 100%, transparent),
    radial-gradient(1px 1px at 35% 80%, rgba(56, 189, 248, 0.7) 100%, transparent),
    radial-gradient(2px 2px at 75% 25%, rgba(255, 255, 255, 0.9) 100%, transparent),
    radial-gradient(1.5px 1.5px at 85% 75%, rgba(129, 140, 248, 0.7) 100%, transparent),
    radial-gradient(1px 1px at 50% 15%, rgba(255, 255, 255, 0.6) 100%, transparent),
    radial-gradient(1.5px 1.5px at 65% 90%, rgba(56, 189, 248, 0.8) 100%, transparent);
  background-size: 550px 550px;
  opacity: 0.55;
  animation: starsBreathe 4s ease-in-out infinite alternate;
}

@keyframes starsBreathe {
  0% { opacity: 0.35; transform: scale(0.98); }
  100% { opacity: 0.75; transform: scale(1.02); }
}

/* Sacred Astrolabe Gyroscopic Instrument */
.intro-astrolabe-stage {
  position: relative;
  width: min(86vw, 440px);
  height: min(86vw, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.astrolabe-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform-origin: center center;
}

/* Outer Meridian Ring */
.ring-outer-meridian {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.12), inset 0 0 30px rgba(56, 189, 248, 0.06);
  animation: orbitClockwise 36s linear infinite, ringPopIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ring-tick {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}
.tick-0 { top: -4px; left: 50%; translate: -50% 0; }
.tick-90 { top: 50%; right: -4px; translate: 0 -50%; }
.tick-180 { bottom: -4px; left: 50%; translate: -50% 0; }
.tick-270 { top: 50%; left: -4px; translate: 0 -50%; }

/* Mid Geometry Ring */
.ring-mid-geometry {
  width: 78%;
  height: 78%;
  border: 1px dashed rgba(129, 140, 248, 0.35);
  animation: orbitCounter 28s linear infinite, ringPopIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
}

/* Inner Photon Ring */
.ring-inner-photon {
  width: 58%;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: orbitClockwise 20s linear infinite, ringPopIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.photon-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #38bdf8, 0 0 20px #818cf8;
}
.node-1 { top: -3px; left: 50%; translate: -50% 0; }
.node-2 { top: 50%; right: -3px; translate: 0 -50%; }
.node-3 { bottom: -3px; left: 50%; translate: -50% 0; }
.node-4 { top: 50%; left: -3px; translate: 0 -50%; }

@keyframes orbitClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbitCounter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes ringPopIn {
  0% { transform: scale(0.4) rotate(-35deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Calligraphic Monogram Core */
.intro-emblem-core {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(52vw, 240px);
  height: min(52vw, 240px);
  border-radius: 50%;
  animation: coreAscend 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
  opacity: 0;
  transform: scale(0.6) translateY(24px);
}

@keyframes coreAscend {
  0% { opacity: 0; transform: scale(0.6) translateY(24px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.emblem-liquid-aura {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(99, 102, 241, 0.3) 50%, transparent 75%);
  filter: blur(24px);
  animation: auraThrob 4s ease-in-out infinite alternate;
}

@keyframes auraThrob {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.85; }
}

.emblem-svg-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 15px 35px rgba(56, 189, 248, 0.45)) drop-shadow(0 0 18px rgba(129, 140, 248, 0.5));
  overflow: hidden;
  border-radius: 40px;
}

.intro-logo-svg {
  width: 88%;
  height: 88%;
  object-fit: contain;
  animation: logoLevitate 5s ease-in-out infinite alternate;
}

@keyframes logoLevitate {
  0% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
  100% { transform: translateY(0) rotate(-0.5deg); }
}

/* Prismatic Laser Sheen */
.intro-laser-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(56, 189, 248, 0.8), transparent);
  filter: blur(4px);
  transform: skewX(-20deg) translateX(-250%);
  animation: laserSweep 3.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s infinite;
  pointer-events: none;
}

@keyframes laserSweep {
  0% { transform: skewX(-20deg) translateX(-250%); opacity: 0; }
  15% { opacity: 1; }
  45% { transform: skewX(-20deg) translateX(550%); opacity: 1; }
  50%, 100% { transform: skewX(-20deg) translateX(550%); opacity: 0; }
}

/* Royal Brand Manifesto */
.intro-brand-manifesto {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 580px;
  animation: manifestoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes manifestoReveal {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.intro-tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 99px;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.intro-royal-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 7vw, 54px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 12px;
  text-indent: 12px;
  margin-bottom: 8px;
  animation: wordmarkKerning 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  background: linear-gradient(135deg, #ffffff 20%, #e0f2fe 55%, #38bdf8 80%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(56, 189, 248, 0.35));
}

@keyframes wordmarkKerning {
  0% { letter-spacing: 18px; text-indent: 18px; opacity: 0; filter: blur(6px); }
  100% { letter-spacing: 8px; text-indent: 8px; opacity: 1; filter: blur(0px); }
}

.intro-royal-wordmark .brand-suffix {
  color: #38bdf8;
  -webkit-text-fill-color: #38bdf8;
}

.intro-philosophic-line {
  color: #94a3b8;
  font-size: clamp(13px, 2.5vw, 15px);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: 0.2px;
  max-width: 460px;
  line-height: 1.5;
}

/* Progress Chassis */
.intro-progress-chassis {
  width: clamp(180px, 45vw, 260px);
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.intro-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  border-radius: 99px;
  position: relative;
  box-shadow: 0 0 12px #38bdf8;
  transition: width 0.15s linear;
}

.progress-photon-spark {
  position: absolute;
  right: -2px;
  top: 50%;
  translate: 0 -50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 18px #38bdf8;
}

.intro-progress-meta {
  display: flex;
  justify-content: space-between;
  width: clamp(180px, 45vw, 260px);
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.intro-meta-val {
  color: #38bdf8;
  font-family: monospace;
}

/* Skip / Enter Button */
.intro-skip-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.intro-skip-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}
