:root {
  --bg: #05070d;
  --bg-soft: #0a1020;
  --card: rgba(15, 23, 42, 0.58);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --grad-primary: linear-gradient(
    135deg,
    #6c63ff 0%,
    #8b5cf6 45%,
    #3b82f6 100%
  );
  --grad-accent: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --glow: 0 0 24px rgba(108, 99, 255, 0.24);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(108, 99, 255, 0.18),
      transparent 25%
    ),
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.2), transparent 30%),
    linear-gradient(180deg, #05070d 0%, #070b14 40%, #090f1f 100%);
  color: var(--text);
  overflow-x: hidden;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

.glass {
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.gradient-border {
  position: relative;
  background:
    linear-gradient(#0c1326, #0c1326) padding-box,
    var(--grad-primary) border-box;
  border: 1px solid transparent;
}

.shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.1) 40%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.shine:hover::before {
  transform: translateX(120%);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow-ring {
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.4),
    var(--glow);
}

.floating {
  animation: floatY 7.5s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.flow-line {
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.8),
    rgba(37, 99, 235, 0.8)
  );
  position: relative;
  overflow: hidden;
}

.flow-line::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 40%;
  top: -40%;
  left: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
  animation: pulseFlow 2.8s linear infinite;
}

@keyframes pulseFlow {
  to {
    top: 130%;
  }
}

.mouse-glow {
  pointer-events: none;
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(108, 99, 255, 0.16),
    rgba(59, 130, 246, 0.08) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.2s ease;
}

.tilt-card {
  transform-style: preserve-3d;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.ripple {
  position: absolute;
  border-radius: 999px;
  transform: scale(0);
  animation: ripple 550ms linear;
  background: rgba(255, 255, 255, 0.35);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.2);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: 999px;
  animation: exportProgress 5.5s ease-in-out infinite;
}

@keyframes exportProgress {
  0% {
    width: 6%;
  }
  30% {
    width: 38%;
  }
  60% {
    width: 74%;
  }
  100% {
    width: 96%;
  }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.9);
  animation: drift 7.5s linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) translateX(40px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
