/* ══════════════════════════════════════════════════════════════
   ACTION LABS — Sovereign 3D Universe & Metallic Masterpiece
   ══════════════════════════════════════════════════════════════ */

/* ─── Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #010103;
  color: #e2e8f0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── 3D Universe Canvas ─── */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Cinematic Lighting Overlays ─── */
.cinematic-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 35%, rgba(1, 1, 3, 0.55) 75%, rgba(1, 1, 3, 0.95) 100%);
}

.cosmic-noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Event Horizon Accretion Glow ─── */
.event-horizon-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.16) 0%, rgba(124, 58, 237, 0.08) 40%, rgba(99, 102, 241, 0.02) 65%, transparent 80%);
  filter: blur(90px);
  z-index: 2;
  pointer-events: none;
  animation: cosmicBreathe 14s ease-in-out infinite alternate;
}

@keyframes cosmicBreathe {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; filter: blur(110px); }
  100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
}

/* ─── Stealth Header ─── */
.stealth-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #64748b;
  pointer-events: none;
}

.stealth-node {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 14px #c084fc;
  animation: beaconPulse 2.8s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); box-shadow: 0 0 4px #c084fc; }
  50% { opacity: 1; transform: scale(1.35); box-shadow: 0 0 18px #c084fc; }
}

.status-code {
  color: #475569;
  letter-spacing: 3px;
}

/* ─── Centerpiece Monolith Stage ─── */
.monolith-stage {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  perspective: 1200px;
}

.monolith-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* Accretion Plasma Aura behind Emblem */
.plasma-aura {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, rgba(147, 51, 234, 0.14) 45%, transparent 72%);
  filter: blur(55px);
  z-index: 1;
  pointer-events: none;
  animation: auraFloat 16s ease-in-out infinite alternate;
}

@keyframes auraFloat {
  0% { transform: translate(-50%, -50%) scale(0.9) rotate(0deg); }
  100% { transform: translate(-50%, -50%) scale(1.1) rotate(180deg); }
}

/* 3D Realistic Monolith Card */
.monolith-3d-card {
  position: relative;
  z-index: 5;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.2, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monolith-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 45px rgba(147, 51, 234, 0.35));
  pointer-events: none;
  transform: translateZ(30px);
  transition: filter 0.3s ease;
}

/* Dynamic Specular Sheen Beam */
.specular-sweep {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 12;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 65%
  );
  background-size: 300% 100%;
  animation: metalGleam 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  mix-blend-mode: color-dodge;
}

@keyframes metalGleam {
  0% { background-position: 250% 0; }
  50%, 100% { background-position: -150% 0; }
}

/* ─── Monolith Typography ─── */
.monolith-typography {
  position: relative;
  z-index: 5;
  margin-top: 24px;
  text-align: center;
}

.brand-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 14px;
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.chrome-word {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e2e8f0 20%,
    #94a3b8 38%,
    #ffffff 50%,
    #cbd5e1 65%,
    #475569 82%,
    #ffffff 100%
  );
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chromeShimmer 7s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.18));
}

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

.purple-word {
  background: linear-gradient(135deg, #f3e8ff 0%, #d8b4fe 30%, #a855f7 65%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 50px rgba(168, 85, 247, 0.55);
}

/* Enigmatic Metadata Line */
.enigmatic-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.meta-line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35));
}

.enigmatic-meta .meta-line:last-child {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.35), transparent);
}

.meta-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  color: #64748b;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

.monolith-wrapper:hover .meta-text {
  color: #c084fc;
}

/* ─── Stealth Footer ─── */
.stealth-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: #475569;
  pointer-events: none;
}

.system-pulse {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulsar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9333ea;
  box-shadow: 0 0 12px #9333ea;
  animation: pulsarBlink 3s infinite ease-in-out;
}

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

.stealth-domain {
  color: #334155;
  letter-spacing: 3px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .stealth-header, .stealth-footer {
    padding: 20px 24px;
    font-size: 9px;
  }

  .monolith-3d-card {
    width: 240px;
    height: 240px;
  }

  .plasma-aura {
    width: 320px;
    height: 320px;
  }

  .brand-title {
    font-size: 2.3rem;
    letter-spacing: 8px;
    gap: 10px;
  }

  .meta-text {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .meta-line {
    width: 24px;
  }
}

@media (max-width: 420px) {
  .monolith-3d-card {
    width: 190px;
    height: 190px;
  }

  .brand-title {
    font-size: 1.85rem;
    letter-spacing: 6px;
    flex-direction: column;
    gap: 4px;
  }

  .stealth-header .node-coords {
    display: none;
  }

  .stealth-footer .pulsar-text {
    font-size: 8px;
  }
}
