@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Sora:wght@400;600;700;800&display=swap");

:root {
  --fg-bg-0: #02050c;
  --fg-bg-1: #060e1d;
  --fg-bg-2: #09192f;
  --fg-cyan: #22d3ee;
  --fg-cyan-soft: rgba(34, 211, 238, 0.34);
  --fg-border: rgba(34, 211, 238, 0.26);
}

@keyframes gridScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(0,183,255,0.34); }
  50% { box-shadow: 0 0 36px rgba(0,183,255,0.66); }
}

@keyframes circuitSweep {
  0% { transform: translateX(-110%); opacity: 0; }
  10% { opacity: 0.5; }
  50% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateX(110%); opacity: 0; }
}

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

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

html {
  scroll-behavior: smooth;
}

body.vantage-figma {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: white;
  background:
    radial-gradient(45rem 30rem at 8% -12%, rgba(60, 135, 255, 0.34), transparent 72%),
    radial-gradient(50rem 34rem at 90% 102%, rgba(39, 163, 255, 0.2), transparent 70%),
    linear-gradient(155deg, var(--fg-bg-0) 0%, var(--fg-bg-1) 55%, var(--fg-bg-2) 100%);
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

.bg-grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 183, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 183, 255, 0.12) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridScroll 20s linear infinite;
}

body.vantage-figma::before,
body.vantage-figma::after {
  content: "";
  position: fixed;
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  filter: blur(54px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

body.vantage-figma::before {
  top: 5rem;
  left: 2rem;
  background: rgba(59, 130, 246, 0.22);
}

body.vantage-figma::after {
  bottom: 5rem;
  right: 2rem;
  background: rgba(34, 211, 238, 0.2);
  animation-delay: 1s;
}

.vf-layer {
  position: relative;
  z-index: 1;
}

.vf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fg-border);
  background: rgba(0, 0, 0, 0.78);
}

.nav-enter,
.hero-enter {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}

.nav-enter {
  transform: translateY(-16px);
}

body.ready .nav-enter,
body.ready .hero-enter {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .22s; }
.d3 { transition-delay: .36s; }

.vf-mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

.vf-mobile-menu.open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}

.reveal-left {
  transform: translateX(-36px) scale(0.985);
}

.reveal-right {
  transform: translateX(36px) scale(0.985);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.circuit-line {
  overflow: hidden;
}

.circuit-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.95), transparent);
  animation: circuitSweep 4.6s linear infinite;
}

.circuit-line.delay-1::after { animation-delay: .8s; }
.circuit-line.delay-2::after { animation-delay: 1.6s; }
.circuit-line.delay-3::after { animation-delay: 2.4s; }

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 180ms ease, box-shadow 220ms ease;
  will-change: transform;
  animation: cardFloat 7s ease-in-out infinite;
}

.tilt-card:hover {
  border-color: rgba(113, 226, 255, 0.8) !important;
  box-shadow: 0 0 0 1px rgba(121, 212, 255, 0.24) inset, 0 0 28px rgba(78, 170, 255, 0.3);
}

.icon-pop {
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  transform: translateZ(0);
}

.tilt-card:hover .icon-pop,
.icon-pop:hover {
  transform: translateY(-6px) scale(1.1) rotate(4deg);
  box-shadow: 0 0 0 1px rgba(133, 236, 255, 0.38) inset, 0 0 26px rgba(34, 211, 238, 0.4);
  filter: saturate(1.2);
}

.holo-orb {
  animation: holoFloat 6s ease-in-out infinite;
}

@keyframes holoFloat {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(10deg); }
}

.inspect-anchor {
  scroll-margin-top: 7rem;
}

.cta-shimmer {
  background-size: 180% 180%;
  animation: shimmerShift 6s linear infinite;
}

.orbit-wrap {
  width: min(26rem, 90vw);
  height: min(26rem, 90vw);
  position: relative;
  margin-inline: auto;
}

.orbit-track {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  animation: orbitSpin 22s linear infinite;
}

.orbit-track .orbit-node {
  position: absolute;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 9999px;
  border: 2px solid rgba(34, 211, 238, 0.5);
  background: linear-gradient(145deg, rgba(8,10,14,0.95), rgba(22, 36, 58, 0.9));
  display: grid;
  place-items: center;
  color: #22d3ee;
  animation: orbitCounter 22s linear infinite;
  transition: transform 180ms ease, border-color 180ms ease;
  box-shadow: 0 0 14px rgba(0,183,255,0.28);
}

.orbit-track .orbit-node:hover {
  transform: scale(1.14);
  border-color: rgba(103, 232, 249, 0.95);
  box-shadow: 0 0 24px rgba(0,183,255,0.62);
}

.orbit-track .orbit-node.active {
  border-color: rgba(154, 239, 255, 0.95);
  box-shadow: 0 0 26px rgba(88, 205, 255, 0.8);
}

.orbit-node.n1 { top: -0.1rem; left: 50%; transform: translateX(-50%); }
.orbit-node.n2 { top: 22%; right: -0.2rem; }
.orbit-node.n3 { bottom: 22%; right: -0.2rem; }
.orbit-node.n4 { bottom: -0.1rem; left: 50%; transform: translateX(-50%); }
.orbit-node.n5 { bottom: 22%; left: -0.2rem; }
.orbit-node.n6 { top: 22%; left: -0.2rem; }

.orbit-node .node-label {
  position: absolute;
  white-space: nowrap;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: rgba(3,8,18,0.95);
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: #b6f2ff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  box-shadow: 0 0 16px rgba(0,183,255,0.25);
}

.orbit-node:hover .node-label {
  opacity: 1;
  transform: translateY(0);
}

.orbit-node.n1 .node-label,
.orbit-node.n6 .node-label,
.orbit-node.n2 .node-label { top: -2.1rem; }

.orbit-node.n3 .node-label,
.orbit-node.n4 .node-label,
.orbit-node.n5 .node-label { bottom: -2.1rem; }

.orbit-core {
  position: absolute;
  inset: 22%;
  border-radius: 9999px;
  border: 2px solid rgba(34, 211, 238, 0.45);
  background: radial-gradient(circle at center, rgba(14, 38, 78, 0.72), rgba(2, 8, 18, 0.95));
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.45rem;
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 2;
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
