/* ============================================================
   AAVA landing — custom CSS extracted verbatim from the original
   static page's inline <style> block. Loaded only on the front page.
   ============================================================ */

html, body { background:#ffffff; }
html.dark, html.dark body { background:#0b0d12; }
body { font-family:'Inter',ui-sans-serif,system-ui,sans-serif; -webkit-font-smoothing:antialiased; overflow-x:hidden; }

.grad-text {
  background: linear-gradient(120deg,#4f46e5 0%,#06b6d4 60%,#818cf8 100%);
  background-size: 200% 200%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation: gradMove 8s ease-in-out infinite;
}
.grad-ring { background: linear-gradient(120deg,#4f46e5,#06b6d4); }
.grad-ring-anim {
  background: linear-gradient(120deg,#4f46e5,#06b6d4,#4f46e5);
  background-size: 200% 200%;
  animation: gradMove 6s ease-in-out infinite;
}
@keyframes gradMove { 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.dark .bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
}

.spotlight {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(79,70,229,0.18), transparent 60%),
    radial-gradient(700px 400px at 80% 30%, rgba(6,182,212,0.18), transparent 60%);
}
.dark .spotlight {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(79,70,229,0.30), transparent 60%),
    radial-gradient(800px 500px at 80% 30%, rgba(6,182,212,0.25), transparent 60%);
}

.reveal { opacity:0; transform:translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity:1; transform:translateY(0); }

@keyframes wave { 0%,100%{transform:scaleY(0.35);} 50%{transform:scaleY(1);} }
.wave-bar { animation: wave 1.4s ease-in-out infinite; transform-origin:center; }

@keyframes pulseRing { 0%{transform:scale(0.7);opacity:0.6;} 80%{transform:scale(1.6);opacity:0;} 100%{transform:scale(1.6);opacity:0;} }
.pulse-ring { animation: pulseRing 2.6s cubic-bezier(.215,.61,.355,1) infinite; }

@keyframes pingOut { 0%{transform:scale(0.6);opacity:0.6;} 100%{transform:scale(2.6);opacity:0;} }
.ping-out { animation: pingOut 3.6s ease-out infinite; }

@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 30px 0 rgba(79,70,229,0.45), 0 0 60px 0 rgba(6,182,212,0.25), inset 0 0 22px rgba(255,255,255,0.18); }
  50%     { box-shadow: 0 0 55px 8px rgba(79,70,229,0.75), 0 0 95px 12px rgba(6,182,212,0.55), inset 0 0 28px rgba(255,255,255,0.25); }
}
.glow-pulse { animation: glowPulse 3.4s ease-in-out infinite; }

@keyframes badgePulse {
  0%,100% { transform:scale(1);   box-shadow:0 0 0 0 rgba(239,68,68,0.6); }
  50%     { transform:scale(1.1); box-shadow:0 0 0 8px rgba(239,68,68,0); }
}
.badge-pulse { animation: badgePulse 1.8s ease-out infinite; }

@keyframes floatY { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.floaty { animation: floatY 6s ease-in-out infinite; }

@keyframes liveDot { 0%,100%{opacity:1;} 50%{opacity:0.25;} }
.live-dot { animation: liveDot 1.6s ease-in-out infinite; }

@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes spinRev  { to { transform: rotate(-360deg); } }
.spin-slow   { animation: spinSlow 28s linear infinite; }
.spin-slower { animation: spinSlow 60s linear infinite; }
.spin-rev    { animation: spinRev  38s linear infinite; }

@keyframes shimmer { 0%{transform:translateX(-150%) skewX(-12deg);} 100%{transform:translateX(250%) skewX(-12deg);} }
.shimmer-layer { animation: shimmer 3.5s ease-in-out infinite; }

@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.06); }
  66%     { transform: translate(-30px,30px) scale(0.96); }
}
.blob { animation: blob 18s ease-in-out infinite; }

@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.marquee { animation: marquee 28s linear infinite; }
.marquee-mask {
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

@keyframes pathFlow { 0%{offset-distance:0%; opacity:0;} 8%{opacity:1;} 92%{opacity:1;} 100%{offset-distance:100%; opacity:0;} }
.path-flow { animation: pathFlow 3s linear infinite; }

@keyframes caret { 0%,50%{opacity:1;} 51%,100%{opacity:0;} }
.caret { animation: caret 1.1s steps(1) infinite; }

@keyframes sparkle { 0%,100%{opacity:0;transform:scale(0.4) rotate(0deg);} 50%{opacity:1;transform:scale(1) rotate(180deg);} }
.sparkle { animation: sparkle 4s ease-in-out infinite; }

/* Subtle "traveling highlight" around accent cards.
   Most of the conic is faint; a small bright arc travels around slowly. */
@property --angle { syntax:"<angle>"; inherits:false; initial-value:0deg; }
@keyframes conicTravel { from { --angle: 0deg; } to { --angle: 360deg; } }
.conic-border { position:relative; isolation:isolate; }
.conic-border::before {
  content:""; position:absolute; inset:-1px; border-radius:inherit; z-index:-1;
  background: conic-gradient(
    from var(--angle, 0deg),
    rgba(79,70,229,0.10) 0deg,
    rgba(79,70,229,0.08) 70deg,
    rgba(6,182,212,0.32) 100deg,
    rgba(79,70,229,0.34) 120deg,
    rgba(6,182,212,0.10) 150deg,
    rgba(79,70,229,0.08) 360deg
  );
  animation: conicTravel 16s linear infinite;
}
.dark .conic-border::before {
  background: conic-gradient(
    from var(--angle, 0deg),
    rgba(79,70,229,0.18) 0deg,
    rgba(79,70,229,0.15) 70deg,
    rgba(6,182,212,0.45) 100deg,
    rgba(79,70,229,0.48) 120deg,
    rgba(6,182,212,0.18) 150deg,
    rgba(79,70,229,0.15) 360deg
  );
}

.spot-card { position:relative; transition: transform .2s ease-out; }
.spot-card::after {
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background: radial-gradient(280px circle at var(--mx,50%) var(--my,50%), rgba(79,70,229,0.18), transparent 60%);
  opacity:0; transition: opacity .35s ease;
}
.spot-card:hover::after { opacity:1; }
.dark .spot-card::after {
  background: radial-gradient(280px circle at var(--mx,50%) var(--my,50%), rgba(6,182,212,0.22), transparent 60%);
}
.tilt { transition: transform .35s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }

@keyframes scan { 0%{transform:translateY(-20%);opacity:0;} 10%{opacity:0.6;} 90%{opacity:0.6;} 100%{transform:translateY(420%);opacity:0;} }
.scan-line { animation: scan 5s linear infinite; }

@keyframes barGrow { from{transform:scaleY(0);} to{transform:scaleY(1);} }
.bar-grow { transform-origin: bottom; animation: barGrow 1s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes tickBounce { 0%{transform:translateY(-3px);} 50%{transform:translateY(2px);} 100%{transform:translateY(0);} }
.tick-bounce { animation: tickBounce 0.5s ease-out; }

/* Custom slider */
.aava-slider {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; outline: none;
  background: linear-gradient(to right, #4f46e5 0%, #06b6d4 var(--pct, 50%), rgba(148,163,184,0.25) var(--pct, 50%), rgba(148,163,184,0.25) 100%);
}
.dark .aava-slider {
  background: linear-gradient(to right, #4f46e5 0%, #06b6d4 var(--pct, 50%), rgba(255,255,255,0.08) var(--pct, 50%), rgba(255,255,255,0.08) 100%);
}
.aava-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(120deg, #4f46e5, #06b6d4);
  border: 3px solid #ffffff;
  box-shadow: 0 0 16px rgba(79,70,229,0.55), 0 2px 6px rgba(0,0,0,0.15);
  cursor: grab; transition: transform 0.15s ease;
}
.dark .aava-slider::-webkit-slider-thumb { border-color: #10131b; }
.aava-slider::-webkit-slider-thumb:hover { transform: scale(1.18); }
.aava-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); }
.aava-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(120deg, #4f46e5, #06b6d4);
  border: 3px solid #ffffff; cursor: grab;
  box-shadow: 0 0 16px rgba(79,70,229,0.55), 0 2px 6px rgba(0,0,0,0.15);
}
.dark .aava-slider::-moz-range-thumb { border-color: #10131b; }
.aava-slider::-moz-range-track { background: transparent; }

/* ==== Global voice-wave page background ==== */
.voice-bg {
  position: fixed; inset: 0; z-index: -20;
  pointer-events: none; overflow: hidden;
}

@keyframes waveSlide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes waveSlideRev {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.voice-wave-svg {
  position: absolute; left: 0; top: 0;
  width: 200%; height: 100%;
  will-change: transform;
}
.voice-wave-svg.fwd { animation: waveSlide 60s linear infinite; }
.voice-wave-svg.rev { animation: waveSlideRev 90s linear infinite; }

@keyframes voiceParticle {
  0%   { transform: translate(0, 0)    scale(0.4); opacity: 0; }
  15%  { opacity: var(--max-op, 0.35); }
  85%  { opacity: var(--max-op, 0.35); }
  100% { transform: translate(var(--tx, 60px), var(--ty, -80px)) scale(1); opacity: 0; }
}
.voice-particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  animation: voiceParticle var(--dur, 16s) ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes ambientBreath {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.85; }
}
.ambient-breath {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(79,70,229,0.10), transparent 60%),
    radial-gradient(800px 500px at 85% 70%, rgba(6,182,212,0.08), transparent 60%);
  animation: ambientBreath 18s ease-in-out infinite;
}
.dark .ambient-breath {
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(79,70,229,0.16), transparent 60%),
    radial-gradient(800px 500px at 85% 70%, rgba(6,182,212,0.12), transparent 60%);
}

/* Slow-drifting aurora layer — distinctly visible but text-safe */
@keyframes auroraDrift {
  0%   { transform: translate(-15%, 0) scale(1); }
  50%  { transform: translate(10%, -30px) scale(1.05); }
  100% { transform: translate(-15%, 0) scale(1); }
}
.aurora-layer {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 600px 240px at 30% 40%, rgba(79,70,229,0.18), transparent 65%),
    radial-gradient(ellipse 700px 280px at 70% 60%, rgba(6,182,212,0.16), transparent 65%),
    radial-gradient(ellipse 500px 220px at 50% 80%, rgba(168,85,247,0.10), transparent 65%);
  filter: blur(30px);
  animation: auroraDrift 35s ease-in-out infinite;
  mix-blend-mode: screen;
}
.dark .aurora-layer { mix-blend-mode: screen; }

/* Page-wide voice equalizer at very bottom of viewport */
@keyframes eqBar {
  0%, 100% { transform: scaleY(0.2); }
  50%      { transform: scaleY(1); }
}
.eq-strip {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px; pointer-events: none; z-index: -19;
  display: flex; align-items: flex-end; justify-content: space-around;
  padding: 0 4%;
  opacity: 0.35;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}
.eq-bar {
  width: 3px; min-height: 4px;
  border-radius: 999px;
  transform-origin: bottom;
  animation: eqBar var(--dur, 1.6s) ease-in-out infinite;
  will-change: transform;
}

/* ==== Reusable VoiceWaveBackground — sits inside an accent card ==== */
.vwb-overlay {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
  z-index: -1;
  border-radius: inherit;
}
/* Parent of VoiceWaveBackground must create a stacking context so z:-1
   stays contained. .conic-border already sets isolation; .vwb-host is for
   cards without conic-border. */
.vwb-host { isolation: isolate; }

/* ==== Cursor spotlight — subtle glow following the mouse ==== */
.cursor-spotlight {
  position: fixed;
  width: 280px; height: 280px;
  left: -140px; top: -140px;
  pointer-events: none;
  z-index: 30;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.12), rgba(6,182,212,0.06) 40%, transparent 70%);
  filter: blur(20px);
  mix-blend-mode: screen;
  transform: translate3d(var(--cx, -300px), var(--cy, -300px), 0);
  transition: transform 0.12s ease-out;
  will-change: transform;
}
.dark .cursor-spotlight {
  background: radial-gradient(circle, rgba(79,70,229,0.22), rgba(6,182,212,0.14) 40%, transparent 70%);
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-spotlight { display: none !important; }
}

/* ==== 3D dot-sphere globe — for Global Connectivity card ==== */
.globe-scene {
  position: absolute; inset: 0;
  perspective: 1000px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.globe-sphere {
  position: relative; width: 0; height: 0;
  transform-style: preserve-3d;
  animation: globeSpin 50s linear infinite;
}
@keyframes globeSpin {
  from { transform: rotateX(14deg) rotateY(0deg); }
  to   { transform: rotateX(14deg) rotateY(360deg); }
}
.sphere-dot {
  position: absolute;
  width: 2px; height: 2px;
  margin: -1px;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
}
/* Slate-y dots for light mode so they read on white */
html:not(.dark) .sphere-dot { background: rgba(79,70,229,0.45); }

.sphere-pin {
  position: absolute; width: 0; height: 0;
  pointer-events: none;
}
.sphere-pin-dot {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px;
  background: #fb923c;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(251,146,60,0.85), 0 0 24px rgba(251,146,60,0.35);
}
.sphere-pin-ping {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px;
  border: 1.5px solid #fb923c;
  border-radius: 50%;
  animation: pinPing 2.4s ease-out infinite;
}
@keyframes pinPing {
  0%   { transform: scale(1);   opacity: 0.8; }
  80%  { transform: scale(3.5); opacity: 0; }
  100% { opacity: 0; }
}
/* Tilted orbital ring around the sphere */
.globe-orbit {
  position: absolute;
  width: 320px; height: 90px;
  border: 1px solid rgba(129,140,248,0.25);
  border-radius: 50%;
  transform: rotateX(72deg);
  animation: orbitDrift 14s ease-in-out infinite alternate;
}
html:not(.dark) .globe-orbit { border-color: rgba(79,70,229,0.20); }
@keyframes orbitDrift {
  from { transform: rotateX(68deg) rotateZ(-6deg); }
  to   { transform: rotateX(76deg) rotateZ( 8deg); }
}
/* Soft globe halo behind the dots */
.globe-halo {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(79,70,229,0.28), rgba(6,182,212,0.10) 50%, transparent 75%);
  filter: blur(8px);
}
html:not(.dark) .globe-halo {
  background: radial-gradient(circle at 30% 30%, rgba(79,70,229,0.18), rgba(6,182,212,0.08) 50%, transparent 75%);
}
/* Background star dots (subtle starfield) */
.globe-stars span {
  position: absolute;
  width: 1.5px; height: 1.5px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: starTwinkle 4s ease-in-out infinite;
}
html:not(.dark) .globe-stars span { background: rgba(79,70,229,0.30); }
@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.7; }
}
.vwb-overlay svg {
  position: absolute; left: 0; top: 0;
  width: 200%; height: 100%;
  will-change: transform;
}
.vwb-overlay .vwb-glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle 280px at 25% 35%, rgba(79,70,229,0.14), transparent 70%),
    radial-gradient(circle 240px at 75% 65%, rgba(6,182,212,0.12), transparent 70%);
  filter: blur(20px);
}
.dark .vwb-overlay .vwb-glow {
  background:
    radial-gradient(circle 280px at 25% 35%, rgba(79,70,229,0.22), transparent 70%),
    radial-gradient(circle 240px at 75% 65%, rgba(6,182,212,0.18), transparent 70%);
}
@keyframes vwbSlide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.vwb-svg-fwd { animation: vwbSlide 30s linear infinite; }
.vwb-svg-rev { animation: vwbSlide 42s linear infinite reverse; }
@media (max-width: 640px) {
  .vwb-overlay { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .vwb-svg-fwd, .vwb-svg-rev,
  .ambient-breath, .aurora-layer, .voice-particle, .voice-ring,
  .eq-bar, .conic-border::before, .blob, .wave-bar, .floaty,
  .live-dot, .pulse-ring, .ping-out, .glow-pulse, .badge-pulse,
  .sparkle, .shimmer-layer, .spin-slow, .spin-slower, .spin-rev,
  .marquee, .flow-dot, .scan-line, .grad-text, .grad-ring-anim {
    animation: none !important;
  }
}

/* Sonar voice rings — concentric circles emanating from page corners */
.voice-ring-src { position: absolute; }
.voice-ring {
  position: absolute;
  width: 180px; height: 180px;
  left: -90px; top: -90px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: voiceRing 9s ease-out infinite;
  will-change: transform, opacity;
}
@keyframes voiceRing {
  0%   { transform: scale(0.25); opacity: 0; }
  12%  { opacity: 0.45; }
  100% { transform: scale(4); opacity: 0; }
}

.no-scrollbar::-webkit-scrollbar { display:none; }
.no-scrollbar { -ms-overflow-style:none; scrollbar-width:none; }

.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15,23,42,0.06);
}
.dark .glass {
  background: rgba(20,22,30,0.55);
  border: 1px solid rgba(255,255,255,0.06);
}
