/* home-v3.css — Cinematic hero scene: mini-globe + orbiting cards + floating dash + word-reveal headline */

/* ═══ SCENE WRAPPER ═══ */
.scene {
  position: relative;
  width: 100%;
  min-height: 620px;
  perspective: 1600px;
  transform-style: preserve-3d;
}

/* ═══ MINI-GLOBE (background of scene) ═══ */
.scene-globe {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
.scene-globe::before {
  content: '';
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--acc-rgb), 0.18), rgba(192, 132, 252, 0.06) 45%, transparent 70%);
  filter: blur(30px);
}
.sg-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(var(--acc-rgb), 0.2);
  animation: sgSpin 40s linear infinite;
}
.sg-ring.r2 { width: 340px; height: 340px; border-style: dashed; border-color: rgba(var(--acc-rgb), 0.18); animation-duration: 30s; animation-direction: reverse; }
.sg-ring.r3 { width: 260px; height: 260px; border-color: rgba(var(--acc-rgb), 0.25); animation-duration: 22s; }
.sg-ring.r4 { width: 480px; height: 120px; border-radius: 50%; border-color: rgba(var(--acc-rgb), 0.14); transform: rotate(-8deg); animation: sgTilt 18s ease-in-out infinite; }
.sg-ring.r5 { width: 520px; height: 90px; border-radius: 50%; border-color: rgba(192, 132, 252, 0.18); border-style: dashed; transform: rotate(12deg); animation: sgTiltRev 24s ease-in-out infinite; }
@keyframes sgSpin {
  to { transform: rotate(360deg); }
}
@keyframes sgTilt {
  0%, 100% { transform: rotate(-8deg) scaleX(1); }
  50% { transform: rotate(-8deg) scaleX(1.08); }
}
@keyframes sgTiltRev {
  0%, 100% { transform: rotate(12deg) scaleX(1); }
  50% { transform: rotate(12deg) scaleX(0.92); }
}
.sg-core {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.5), var(--acc) 30%, transparent 70%);
  filter: blur(4px);
  animation: sgCore 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(var(--acc-rgb), 0.6), 0 0 80px rgba(var(--acc-rgb), 0.3);
}
@keyframes sgCore {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ═══ ORBITING CARDS ═══ */
.scene-orbit {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.orbit-card {
  position: absolute;
  padding: 12px 16px;
  min-width: 132px;
  background: linear-gradient(180deg, rgba(18, 30, 48, 0.95), rgba(10, 18, 32, 0.98));
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(var(--acc-rgb), 0.22);
  border-radius: 14px;
  box-shadow:
    0 20px 50px -15px rgba(0,0,0,0.7),
    0 0 24px -8px rgba(var(--acc-rgb), 0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.08) inset;
  color: var(--fg);
  font-size: 12px;
  transform-style: preserve-3d;
}
.orbit-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(var(--acc-rgb), 0.18), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}
.oc-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  font-weight: 500;
}
.oc-val {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 500;
  margin-top: 4px;
  background: linear-gradient(180deg, #fff, var(--acc));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.oc-u { font-size: 13px; color: var(--fg-3); -webkit-text-fill-color: var(--fg-3); margin-left: 2px; }
.oc-spark { display: block; width: 60px; height: 18px; color: var(--acc); margin-top: 6px; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.oc-bars { display: flex; gap: 3px; margin-top: 8px; height: 14px; align-items: flex-end; }
.oc-bars i { flex: 1; background: linear-gradient(180deg, var(--acc), rgba(var(--acc-rgb),0.3)); border-radius: 1px; animation: ocBars 1.4s ease-in-out infinite; }
.oc-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.oc-bars i:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.oc-bars i:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.oc-bars i:nth-child(4) { height: 95%; animation-delay: 0.45s; }
.oc-bars i:nth-child(5) { height: 70%; animation-delay: 0.6s; }
@keyframes ocBars {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); }
}
.oc-ring-mini { width: 40px; height: 40px; margin-top: 6px; color: var(--acc); }
.oc-ring-mini svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(var(--acc-rgb), 0.5)); }
.oc-dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: 8px; }
.oc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); opacity: 0.8; animation: ocDot 2s ease-in-out infinite; }
.oc-dots i:nth-child(2n) { background: rgba(125, 211, 252, 0.8); animation-delay: 0.1s; }
.oc-dots i:nth-child(3n) { background: rgba(192, 132, 252, 0.7); animation-delay: 0.2s; }
.oc-dots i:nth-child(5n) { animation-delay: 0.3s; }
@keyframes ocDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(0.6); opacity: 0.3; }
}

/* Orbit positions — corners, outside dash footprint */
.oc-1 {
  top: 0;
  right: -8%;
  transform: rotate(2deg);
  animation: orbitFloat1 9s ease-in-out infinite;
}
.oc-2 {
  bottom: 2%;
  right: -10%;
  transform: rotate(-3deg);
  animation: orbitFloat2 11s ease-in-out infinite -3s;
}
.oc-3 {
  bottom: 0;
  left: -10%;
  transform: rotate(3deg);
  animation: orbitFloat3 10s ease-in-out infinite -1.5s;
}
.oc-4 {
  top: 2%;
  left: -12%;
  transform: rotate(-4deg);
  animation: orbitFloat4 13s ease-in-out infinite -5s;
}

@keyframes orbitFloat1 {
  0%, 100% { transform: rotate(2deg) translate(0, 0); }
  50% { transform: rotate(1deg) translate(-8px, -12px); }
}
@keyframes orbitFloat2 {
  0%, 100% { transform: rotate(-3deg) translate(0, 0); }
  50% { transform: rotate(-2deg) translate(-10px, 10px); }
}
@keyframes orbitFloat3 {
  0%, 100% { transform: rotate(3deg) translate(0, 0); }
  50% { transform: rotate(4deg) translate(10px, -8px); }
}
@keyframes orbitFloat4 {
  0%, 100% { transform: rotate(-4deg) translate(0, 0); }
  50% { transform: rotate(-3deg) translate(8px, 10px); }
}

/* ═══ SCENE FLOW — subtle vertical energy stream behind ═══ */
.scene-flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
}
.scene-flow::before, .scene-flow::after {
  content: '';
  position: absolute;
  top: -10%; bottom: -10%;
  width: 2px;
  background: linear-gradient(180deg,
    transparent,
    rgba(var(--acc-rgb), 0.4) 20%,
    rgba(var(--acc-rgb), 0.8) 50%,
    rgba(var(--acc-rgb), 0.4) 80%,
    transparent);
  filter: blur(1px);
  animation: flowSlide 6s linear infinite;
  opacity: 0.4;
}
.scene-flow::before { left: 20%; animation-delay: 0s; }
.scene-flow::after  { left: 75%; animation-delay: -2s; background: linear-gradient(180deg, transparent, rgba(192,132,252,0.35) 30%, rgba(192,132,252,0.7) 50%, rgba(192,132,252,0.35) 70%, transparent); }
@keyframes flowSlide {
  0% { transform: translateY(-30%); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(30%); opacity: 0; }
}

/* ═══ DASH — sits as focal, slightly smaller to let scene breathe ═══ */
.scene .dash {
  position: relative;
  z-index: 5;
  margin: 40px auto;
  max-width: 420px;
  transform: rotateY(-8deg) rotateX(5deg) translateZ(30px);
  animation: dashFloat 6s ease-in-out infinite;
}
@keyframes dashFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(5deg) translateZ(30px) translateY(0); }
  50% { transform: rotateY(-7deg) rotateX(4deg) translateZ(30px) translateY(-8px); }
}
.scene .dash:hover {
  animation-play-state: paused;
}

/* Hero right container — ensure scene has space */
.hero-right { gap: 0; min-height: 640px; }
.hero-right .dash-caption {
  margin-top: 24px;
  text-align: left;
}

/* ═══ WORD-BY-WORD HEADLINE REVEAL ═══ */
.hero-title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotateX(-40deg);
  filter: blur(8px);
  transform-origin: 50% 100%;
  animation: wordIn 0.9s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-title .w:nth-child(1) { animation-delay: 0.1s; }
.hero-title em .w:nth-child(1) { animation-delay: 0.55s; }
.hero-title em .w:nth-child(2) { animation-delay: 0.75s; }
.hero-title > .w:nth-child(2) { animation-delay: 0.25s; }
.hero-title > .w:nth-child(3) { animation-delay: 0.4s; }
@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

/* Nicer title tracking & size */
.hero-title {
  font-size: clamp(52px, 6.2vw, 92px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
  text-wrap: balance;
  perspective: 1000px;
}

/* Remove old float-chip artifact (if any still present) */
.float-chip { display: none !important; }

/* Responsive */
@media (max-width: 1200px) {
  .orbit-card { min-width: 108px; padding: 9px 11px; }
  .oc-val { font-size: 17px; }
  .oc-label { font-size: 9px; }
  .scene .dash { max-width: 380px; }
  .sg-ring { width: 360px; height: 360px; }
  .sg-ring.r2 { width: 290px; height: 290px; }
  .sg-ring.r3 { width: 220px; height: 220px; }
  .sg-ring.r4 { width: 400px; height: 100px; }
  .sg-ring.r5 { width: 440px; height: 80px; }
  .scene-globe::before { width: 440px; height: 440px; }
  .scene { min-height: 560px; }
  .hero-right { min-height: 580px; }
}
@media (max-width: 960px) {
  .orbit-card { min-width: 96px; padding: 8px 10px; }
  .oc-val { font-size: 15px; }
  .scene .dash { max-width: 340px; }
  .sg-ring { width: 300px; height: 300px; }
  .sg-ring.r2 { width: 240px; height: 240px; }
  .sg-ring.r3 { width: 180px; height: 180px; }
  .sg-ring.r4 { width: 340px; height: 85px; }
  .sg-ring.r5 { width: 380px; height: 70px; }
  .scene-globe::before { width: 380px; height: 380px; }
  .oc-1 { top: 2%; right: 2%; }
  .oc-2 { top: 44%; right: -2%; }
  .oc-3 { bottom: 4%; left: -2%; }
  .oc-4 { top: 14%; left: -4%; }
  .scene { min-height: 520px; }
  .hero-right { min-height: 540px; }
}
@media (max-width: 760px) {
  .orbit-card { display: none; }
  .scene-globe { opacity: 0.35; }
  .scene .dash { transform: none; animation: none; max-width: 100%; margin: 0 auto; }
  .scene { min-height: auto; }
  .hero-right { min-height: auto; }
}
