/* ═══════════════════════════════════════════════════════
   ZOREN LOGO CONTENT LOADER — loader.css
   Standalone, pure-logo loading component & overlay
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── Design Tokens ── */
:root {
  --navy:       #0A1628;
  --navy2:      #0D1E36;
  --navy3:      #12263F;
  --gold:       #E8792A;
  --gold2:      #F2A654;
  --gold-dk:    #C45E18;
  --white:      #FFFFFF;
  --grad:       linear-gradient(135deg, #E8792A, #F2A654);
  --glow-gold:  rgba(232, 121, 42, 0.45);
}

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

/* ── Logo loader active body lock ── */
body.logo-loader-active {
  overflow: hidden !important;
}

/* ═══════════════════════════════════════════════════════
   LOADER OVERLAY (FULLSCREEN OR CONTAINER)
   ═══════════════════════════════════════════════════════ */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s ease;
}

.loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

/* ── Ambient Particles Canvas ── */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Animated Background Grid ── */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
}

.grid-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 121, 42, 0.08) 50%,
    transparent 100%
  );
}

.gl-h {
  height: 1px;
  width: 100%;
  left: 0;
  animation: gridSlideH 8s linear infinite;
}

.gl-h1 { top: 30%; animation-delay: 0s; }
.gl-h2 { top: 70%; animation-delay: -4s; }

.gl-v {
  width: 1px;
  height: 100%;
  top: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(232, 121, 42, 0.08) 50%,
    transparent 100%
  );
  animation: gridSlideV 10s linear infinite;
}

.gl-v1 { left: 30%; animation-delay: 0s; }
.gl-v2 { left: 70%; animation-delay: -5s; }

@keyframes gridSlideH {
  0% { opacity: 0; transform: translateX(-50%); }
  30%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(50%); }
}

@keyframes gridSlideV {
  0% { opacity: 0; transform: translateY(-50%); }
  30%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(50%); }
}

/* ── Ambient Radial Glows ── */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 121, 42, 0.09) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 5s ease-in-out infinite;
}

.glow-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13, 30, 54, 0.6) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 7s ease-in-out infinite reverse;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════
   PURE ZOREN LOGO LOADER (CORE ANIMATION)
   ═══════════════════════════════════════════════════════ */
.zoren-logo-loader {
  position: relative;
  width: 280px;
  height: 280px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoLoaderEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoLoaderEntrance {
  0% { opacity: 0; transform: scale(0.65); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Morphing Backdrop Ring ── */
.morph-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(232, 121, 42, 0.08);
  animation: morphRotate 14s linear infinite, morphDistort 8s ease-in-out infinite;
}

@keyframes morphRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes morphDistort {
  0%, 100% { border-radius: 50%; }
  25% { border-radius: 46% 54% 48% 52%; }
  50% { border-radius: 52% 48% 54% 46%; }
  75% { border-radius: 54% 46% 52% 48%; }
}

/* ── Orbit Rings ── */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.o-1 {
  width: 140px;
  height: 140px;
  border: 1.5px solid rgba(232, 121, 42, 0.32);
  animation: orbitSpin 5s linear infinite;
}

.o-2 {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(232, 121, 42, 0.16);
  animation: orbitSpin 9s linear infinite reverse;
}

.o-3 {
  width: 260px;
  height: 260px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  animation: orbitSpin 16s linear infinite;
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Orbiting Spark Dots ── */
.spark {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
}

.sp-1 {
  width: 6px;
  height: 6px;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--glow-gold), 0 0 4px var(--gold);
  animation: sparkFlash 1.6s ease-in-out infinite;
}

.sp-2 {
  width: 4px;
  height: 4px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold2);
  box-shadow: 0 0 10px rgba(242, 166, 84, 0.6);
  animation: sparkFlash 2.2s ease-in-out infinite 0.4s;
}

.sp-3 {
  width: 7px;
  height: 7px;
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px var(--glow-gold), 0 0 6px var(--gold);
  animation: sparkFlash 1.3s ease-in-out infinite;
}

.sp-4 {
  width: 5px;
  height: 5px;
  right: -2.5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold2);
  box-shadow: 0 0 10px rgba(242, 166, 84, 0.5);
  animation: sparkFlashAlt 1.8s ease-in-out infinite 0.3s;
}

.sp-5 {
  width: 4px;
  height: 4px;
  bottom: 12px;
  left: -2px;
  background: var(--gold-dk);
  box-shadow: 0 0 8px rgba(196, 94, 24, 0.5);
  animation: sparkFlashAlt 2.4s ease-in-out infinite 0.8s;
}

@keyframes sparkFlash {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(0.8); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.4); }
}

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

/* ── SVG Light Trail Arcs ── */
.trail-svg {
  position: absolute;
  width: 280px;
  height: 280px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: trailSpin 6s linear infinite;
  pointer-events: none;
}

.trail-arc {
  stroke-dasharray: 90 660;
  stroke-linecap: round;
}

.trail-arc.t-1 {
  animation: trailDash1 3s linear infinite;
}

.trail-arc.t-2 {
  animation: trailDash2 4.2s linear infinite reverse;
  stroke-dasharray: 70 530;
}

@keyframes trailSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes trailDash1 {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -750; }
}

@keyframes trailDash2 {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -600; }
}

/* ═══════════════════════════════════════════════════════
   LOGO CORE & PULSE RINGS
   ═══════════════════════════════════════════════════════ */
.logo-core {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.7);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow:
    0 0 0 6px rgba(232, 121, 42, 0.08),
    0 0 35px rgba(232, 121, 42, 0.25),
    inset 0 0 20px rgba(232, 121, 42, 0.08);
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.logo-aura {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 121, 42, 0.22) 0%, transparent 70%);
  animation: auraPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.45; }
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(232, 121, 42, 0.6));
  animation: logoPop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoPop {
  0% { opacity: 0; transform: scale(0.5) rotate(-15deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Concentric Pulse Waves ── */
.pulse-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0;
  animation: wavePulse 3s ease-out infinite;
}

.pulse-ring.pr-2 { animation-delay: 1s; }
.pulse-ring.pr-3 { animation-delay: 2s; }

@keyframes wavePulse {
  0% { transform: scale(1); opacity: 0.6; border-width: 1.5px; }
  100% { transform: scale(2.8); opacity: 0; border-width: 0.5px; }
}

/* ═══════════════════════════════════════════════════════
   FLOATING CONSTELLATION NODES
   ═══════════════════════════════════════════════════════ */
.node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: nodeOrbit 4s ease-in-out infinite;
}

.node span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 121, 42, 0.35), transparent);
  transform-origin: 0 50%;
}

.n-1 { top: 10%; left: 56%; animation-delay: 0s; box-shadow: 0 0 10px rgba(232, 121, 42, 0.6); }
.n-1 span { transform: rotate(190deg); }

.n-2 { top: 32%; right: 6%; background: var(--gold2); animation-delay: 0.7s; box-shadow: 0 0 8px rgba(242, 166, 84, 0.5); }
.n-2 span { transform: rotate(220deg); }

.n-3 { bottom: 22%; right: 10%; animation-delay: 1.4s; box-shadow: 0 0 12px rgba(232, 121, 42, 0.6); }
.n-3 span { transform: rotate(150deg); }

.n-4 { bottom: 12%; left: 46%; background: var(--gold-dk); animation-delay: 2.1s; box-shadow: 0 0 6px rgba(196, 94, 24, 0.5); }
.n-4 span { transform: rotate(35deg); }

.n-5 { bottom: 32%; left: 4%; background: var(--gold2); animation-delay: 0.5s; box-shadow: 0 0 10px rgba(242, 166, 84, 0.5); }
.n-5 span { transform: rotate(-25deg); }

.n-6 { top: 22%; left: 10%; animation-delay: 1.2s; box-shadow: 0 0 8px rgba(232, 121, 42, 0.5); }
.n-6 span { transform: rotate(330deg); }

@keyframes nodeOrbit {
  0%, 100% { opacity: 0; transform: translateY(6px) scale(0.6); }
  25%, 75% { opacity: 0.85; }
  50% { opacity: 1; transform: translateY(-6px) scale(1.2); }
}

/* ═══════════════════════════════════════════════════════
   DEMO CONTENT PAGE
   ═══════════════════════════════════════════════════════ */
.demo-content {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  animation: demoFadeIn 0.8s ease;
  padding: 24px;
}

@keyframes demoFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-card {
  text-align: center;
  background: rgba(13, 30, 54, 0.6);
  border: 1px solid rgba(232, 121, 42, 0.2);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.demo-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(232, 121, 42, 0.1);
  border: 1px solid rgba(232, 121, 42, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.demo-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 20px rgba(232, 121, 42, 0.4));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.demo-card h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.demo-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 32px;
}

.demo-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232, 121, 42, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 121, 42, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .zoren-logo-loader {
    width: 220px;
    height: 220px;
  }

  .o-1 { width: 110px; height: 110px; }
  .o-2 { width: 160px; height: 160px; }
  .o-3 { width: 210px; height: 210px; }

  .trail-svg { width: 220px; height: 220px; }

  .logo-core { width: 72px; height: 72px; }
  .logo-img { width: 44px; height: 44px; }

  .node { display: none; }

  .demo-card { padding: 32px 24px; }
}
