@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  background-color: #0a0e1a;
}

#faq .faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0d1220;
}

::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2dd4bf;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.6);
  }
}

@keyframes materialize {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
  }
  50% {
    opacity: 0.5;
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.visible {
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
}

.slide-in-left.visible {
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
}

.slide-in-right.visible {
  animation: slideInRight 0.8s ease-out forwards;
}

.pulse-glow {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes attractorPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.04);
  }
}

@keyframes ghostConverge {
  0% {
    opacity: 0;
    transform: translate(var(--ghost-x), var(--ghost-y)) scale(0.9);
  }
  12% {
    opacity: 0.95;
  }
  72% {
    opacity: 0.82;
    transform: translate(calc(var(--ghost-x) * 0.28), calc(var(--ghost-y) * 0.28)) scale(0.72);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
}

.zeitgeist-attractor-scene {
  position: relative;
  height: 220px;
  margin: 0 auto 2rem;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.zeitgeist-attractor-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.zeitgeist-attractor-panel {
  fill: rgba(8, 15, 31, 0.72);
  stroke: rgba(153, 246, 228, 0.18);
  stroke-width: 1.25;
}

.zeitgeist-attractor-glow {
  fill: url(#zeitgeistGlow);
}

.zeitgeist-attractor-rings circle {
  fill: none;
  stroke: rgba(45, 212, 191, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 10 12;
  transform-box: fill-box;
  transform-origin: center;
  animation: attractorPulse 3.2s ease-in-out infinite;
}

.zeitgeist-attractor-rings circle:nth-child(2) {
  animation-delay: 0.7s;
}

.zeitgeist-attractor-rings circle:nth-child(3) {
  animation-delay: 1.4s;
}

.zeitgeist-attractor-box rect {
  filter: drop-shadow(0 0 18px rgba(45, 212, 191, 0.2));
}

.zeitgeist-attractor-box .zeitgeist-attractor-frame {
  fill: url(#zeitgeistFrameFill);
  stroke: rgba(148, 163, 184, 0.42);
  stroke-width: 1.6;
}

.zeitgeist-attractor-box .zeitgeist-attractor-surface {
  fill: url(#zeitgeistBoxFill);
  stroke: rgba(186, 230, 253, 0.55);
  stroke-width: 1.4;
}

.zeitgeist-attractor-box .zeitgeist-attractor-inner {
  fill: rgba(8, 47, 73, 0.82);
  stroke: rgba(153, 246, 228, 0.38);
  stroke-width: 1.2;
}

.zeitgeist-attractor-box .zeitgeist-attractor-core-glow {
  fill: url(#zeitgeistCoreGlow);
  opacity: 0.9;
}

.zeitgeist-attractor-box .zeitgeist-attractor-core-shell {
  fill: rgba(15, 23, 42, 0.92);
  stroke: rgba(186, 230, 253, 0.65);
  stroke-width: 1.4;
}

.zeitgeist-attractor-box .zeitgeist-attractor-label {
  fill: rgba(236, 254, 255, 0.96);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 2px;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: "Inter", sans-serif;
  filter: drop-shadow(0 0 6px rgba(236, 254, 255, 0.45));
}

.zeitgeist-attractor-box .zeitgeist-attractor-bracket {
  fill: none;
  stroke: rgba(125, 211, 252, 0.5);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.8;
}

.zeitgeist-ghost-sprite {
  --ghost-x: 0px;
  --ghost-y: 0px;
  --ghost-duration: 5.4s;
  --ghost-delay: 0s;
  transform-box: fill-box;
  transform-origin: center;
  animation: ghostConverge var(--ghost-duration) ease-in infinite;
  animation-delay: var(--ghost-delay);
}

.zeitgeist-ghost-sprite path {
  fill: url(#zeitgeistGhostFill);
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.zeitgeist-ghost-sprite circle {
  fill: #0f172a;
}

@media (max-width: 768px) {
  .zeitgeist-attractor-scene {
    height: 190px;
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zeitgeist-attractor-rings circle,
  .zeitgeist-ghost-sprite {
    animation: none;
  }
}

/* Smooth transitions */
* {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

img,
a,
button {
  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    box-shadow 0.3s ease;
}

img:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

a:hover,
button:hover {
  transform: translateY(-2px);
}

/* Feature card animations */
.feature-card {
  opacity: 0;
  transform: scale(0.8);
  filter: blur(10px);
}

.feature-card.visible {
  animation: materialize 1.2s ease-out forwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.15s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.45s;
}

.feature-card:nth-child(5) {
  animation-delay: 0.6s;
}

.feature-card:nth-child(6) {
  animation-delay: 0.75s;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02) rotate(-1deg);
  box-shadow: 0 20px 40px rgba(45, 212, 191, 0.3);
}

/* Demo video halo */
.video-halo {
  position: relative;
}

.video-halo::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 26px;
  border: 2px solid rgba(45, 212, 191, 0.55);
  box-shadow:
    0 0 0 2px rgba(45, 212, 191, 0.25),
    0 0 24px rgba(45, 212, 191, 0.55),
    0 0 60px rgba(45, 212, 191, 0.45);
  filter: blur(2px);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.video-halo::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  box-shadow: inset 0 0 24px rgba(45, 212, 191, 0.35);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.video-halo > div {
  position: relative;
  z-index: 1;
}

.video-wrapper {
  position: relative;
}

.video-play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.45);
  border: 0;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    background 0.3s ease;
  z-index: 2;
}

.video-play-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
  position: relative;
  display: inline-block;
}

.play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #ffffff;
}

.video-play-button:hover {
  background: rgba(2, 6, 23, 0.6);
}

.video-play-button:hover .play-icon {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.65);
}

.hero-video video {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Parallax effect */
.parallax {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Document float animation */
@keyframes documentFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
  75% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.document-float {
  animation: documentFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.document-float:hover {
  transform: scale(1.1) translateY(-5px) !important;
  filter: brightness(1.2);
}

/* Gradient animation for backgrounds */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
