/* ==========================================================================
   VYRO SCANNER - PREMIUM MOTION VARIANT
   Loaded after style.css. Refined micro-motion, softer blues, no harsh neon.
   ========================================================================== */

/* ---------- Softer body, less busy chroma ---------- */
body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.45s ease;
}

/* ---------- Main canvas more restrained ---------- */
#cyber-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  transition: opacity 0.4s ease;
}

/* ---------- Background overlay more subtle ---------- */
.cyber-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0, -1px -1px, -1px -1px;
  transition: opacity 0.4s ease;
}

/* ---------- Nav: glassier, quieter entrance ---------- */
.site-header {
  transition: background 0.32s ease, border-color 0.32s ease, backdrop-filter 0.32s ease, box-shadow 0.32s ease;
}

.site-header.scrolled {
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ---------- Nav link style ---------- */
.nav-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.22s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- Nav login pill slightly refined ---------- */
.nav-login-btn {
  border-color: rgba(59, 130, 246, 0.22);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.nav-login-btn:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.16);
  box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.4);
}

/* ---------- Buttons: premium motion, softer glow ---------- */
.btn-primary,
.btn-cyan,
.btn-solid,
.btn-outline {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn-primary::after,
.btn-cyan::after,
.btn-solid::after,
.btn-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--btn-x, 50%) var(--btn-y, 50%), rgba(255, 255, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-cyan:hover::after,
.btn-solid:hover::after,
.btn-outline:hover::after {
  opacity: 1;
}

.btn-primary:hover,
.btn-cyan:hover {
  box-shadow: var(--glow-soft), 0 0 0 1px rgba(59, 130, 246, 0.4) inset;
}

.btn-cyan:hover {
  box-shadow: var(--glow-soft), 0 0 0 1px rgba(14, 155, 176, 0.5) inset;
}

.btn-outline {
  border-color: rgba(59, 130, 246, 0.4);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.4);
}

/* ---------- Hero: cleaner motion ---------- */
.hero-wrap {
  position: relative;
  z-index: 1;
  transition: filter 0.4s ease;
}

.hero-title-wrap .gradient-hero {
  background: linear-gradient(135deg, #ffffff 22%, #93c5fd 58%, #3b82f6 82%, #0e9bb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Feature cards: quiet punch ---------- */
.feature-card {
  box-shadow: var(--glow-card-soft);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.95), 0 0 22px -8px rgba(59, 130, 246, 0.25);
}

.feature-icon-box {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.feature-card:hover .feature-icon-box {
  box-shadow: 0 0 20px -4px rgba(59, 130, 246, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* ---------- Pricing cards: quiet upgrade ---------- */
.pricing-card {
  box-shadow: var(--glow-card-soft);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  box-shadow: 0 0 26px -6px rgba(59, 130, 246, 0.3), var(--glow-card-soft);
}

.pricing-card.featured:hover {
  box-shadow: 0 0 36px -4px rgba(59, 130, 246, 0.4), 0 26px 56px -14px rgba(0, 0, 0, 0.95);
}

/* ---------- Workflow steps: subtle badge ring ---------- */
.step-badge {
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  animation: stepBadgeGlow 5s ease-in-out infinite;
}

@keyframes stepBadgeGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3), 0 8px 22px -8px rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.02), 0 10px 26px -8px rgba(37, 99, 235, 0.5);
  }
}

/* ---------- Live indicator ---------- */
.live-dot,
.pulse-dot,
.app-live-dot {
  animation: softPulse 2.4s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

/* ---------- Section entrance hint via will-change ---------- */
.feature-card,
.pricing-card,
.workflow-step-card,
.forensic-pillar-item,
.testimonial-card,
.faq-item {
  will-change: transform, background, border-color, box-shadow;
}

/* ---------- Refine horizontal rule ---------- */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  opacity: 0.7;
}

/* ---------- Softer focus ring ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* ---------- Interactive hover contrast scoped ---------- */
button, a {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}

/* ---------- Hero quick-scan highlight ---------- */
.hero-quick-scan {
  border-color: rgba(59, 130, 246, 0.25);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.hero-quick-scan:hover {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 30px -6px rgba(59, 130, 246, 0.35);
}

/* ---------- Smooth hover on nav social pills ---------- */
.social-pill {
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.social-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(59, 130, 246, 0.4);
}
