/* =========================================================
   Vaurex — custom styles
   Tailwind handles utilities; this file owns the
   atmosphere: gradients, glow, glass, noise, motion.
   ========================================================= */

html { scroll-behavior: smooth; }
body { background: #050505; }

/* ---------- Background layers ---------- */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a {
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, #7c3aed, transparent 70%);
  top: -180px; left: -160px;
  animation: drift 22s ease-in-out infinite;
}
.orb-b {
  width: 540px; height: 540px;
  background: radial-gradient(circle at 70% 30%, #3b82f6, transparent 70%);
  top: 20%; right: -160px;
  animation: drift 26s ease-in-out infinite reverse;
}
.orb-c {
  width: 480px; height: 480px;
  background: radial-gradient(circle at 50% 50%, #5eead4, transparent 70%);
  bottom: -180px; left: 30%;
  opacity: 0.25;
  animation: drift 30s ease-in-out infinite;
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}

.noise-overlay {
  position: absolute; inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}

/* Above-bg z-index so content stays on top */
header, main, footer { position: relative; z-index: 10; }

/* ---------- Glass cards ---------- */
.glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 30px 60px -30px rgba(0,0,0,0.6);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 40px 70px -25px rgba(0,0,0,0.7);
}

/* ---------- Feature card icon ---------- */
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(59,130,246,0.12));
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.feature-icon svg { width: 22px; height: 22px; }

/* ---------- Step number ---------- */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #fff;
  position: relative;
}
.step-num::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .6;
}

/* ---------- Check bullet ---------- */
.check {
  flex: 0 0 auto;
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: #fff; font-size: 12px; font-weight: 600;
  box-shadow: 0 0 16px -4px rgba(124,58,237,0.6);
}

/* ---------- CTA glow (extra hover ring) ---------- */
.cta-glow {
  position: relative;
  transition: transform .25s ease;
}
.cta-glow:hover { transform: translateY(-2px); }
.cta-glow::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 9999px;
  background: linear-gradient(120deg, #7c3aed, #3b82f6, #5eead4, #7c3aed);
  background-size: 200% 200%;
  z-index: -1;
  filter: blur(14px);
  opacity: .55;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---------- Parallax cards ---------- */
.parallax-card { will-change: transform; transition: transform .25s ease-out; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .orb { filter: blur(80px); }
  .grid-overlay { background-size: 40px 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
