/* ============================================================
   CERTYNEO — Modern Design Enhancements (2025+)
   Layered on top of styles.css + fixes.css
   ============================================================ */

/* ============================================================
   1. ENHANCED DESIGN TOKENS
   ============================================================ */
:root {
  /* Glow / colored shadows */
  --glow-blue: 0 0 20px rgba(37, 99, 235, 0.15), 0 0 40px rgba(37, 99, 235, 0.05);
  --glow-teal: 0 0 20px rgba(20, 184, 166, 0.15), 0 0 40px rgba(20, 184, 166, 0.05);
  --glow-card: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.08);
  --glow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.06);

  /* Gradient meshes */
  --mesh-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
               radial-gradient(ellipse 60% 40% at 80% 50%, rgba(20, 184, 166, 0.06) 0%, transparent 60%),
               radial-gradient(ellipse 50% 50% at 10% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  --mesh-cta: radial-gradient(ellipse 60% 50% at 20% 100%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 80% 0%, rgba(20, 184, 166, 0.2) 0%, transparent 50%),
              linear-gradient(135deg, var(--navy-900), #0d1f3c);
  --mesh-auth: radial-gradient(ellipse 70% 60% at 30% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 60%),
               radial-gradient(ellipse 50% 50% at 70% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
               linear-gradient(135deg, var(--navy-900), #0d1f3c);

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);
}

body.dark {
  --glow-card: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 1px rgba(255, 255, 255, 0.05);
  --glow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.15);
  --mesh-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
               radial-gradient(ellipse 60% 40% at 80% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 60%),
               radial-gradient(ellipse 50% 50% at 10% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}

/* ============================================================
   2. MODERN CARD HOVER EFFECTS
   ============================================================ */

/* Universal card upgrade: subtle border glow + scale on hover */
.card,
.compliance-card,
.integration-item,
.step-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.card:hover,
.compliance-card:hover,
.integration-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--glow-card-hover);
  border-color: rgba(37, 99, 235, 0.12);
}

/* Feature cards: icon glow on hover */
.card:hover .feature-icon,
.compliance-card:hover .compliance-icon {
  box-shadow: var(--glow-blue);
  transform: scale(1.08);
}

.feature-icon,
.compliance-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Step cards: number pulse on hover */
.step-card:hover .step-number,
.step-card:hover .step-icon {
  transform: scale(1.1);
  box-shadow: var(--glow-blue);
}

.step-number,
.step-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Stat card: value color shift on hover */
.stat-value {
  transition: color 0.3s ease;
}

.card:hover .stat-value,
.section-stats .card:hover .stat-value {
  color: var(--blue-600);
}

/* ============================================================
   3. MODERN HERO BACKGROUND (mesh gradient replaces dots)
   ============================================================ */

/* Override the dated dot pattern with modern mesh gradient */
.hero-bg-dots {
  background-image: none !important;
  background: var(--mesh-hero);
  opacity: 1;
}

/* Add animated floating orbs behind hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 300px at 70% 30%, rgba(37, 99, 235, 0.07) 0%, transparent 100%),
    radial-gradient(circle 200px at 20% 70%, rgba(20, 184, 166, 0.05) 0%, transparent 100%);
  pointer-events: none;
  animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10px, -15px) scale(1.02); }
  50% { transform: translate(-5px, 10px) scale(0.98); }
  75% { transform: translate(8px, 5px) scale(1.01); }
}

/* Hero badge: gradient border + glow */
.hero-badge {
  background: linear-gradient(135deg, var(--blue-50), rgba(20, 184, 166, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

/* Hero title gradient text accent */
.hero-title strong,
.hero-title b {
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   4. TRUST BADGES UPGRADE
   ============================================================ */
.trust-logo {
  padding: var(--space-2) var(--space-3);
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-full);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.trust-logo:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.trust-logo .icon {
  color: var(--blue-500);
}

/* Footer trust badges */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-300);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   5. MODERN BUTTONS
   ============================================================ */

/* Primary CTA: gradient + glow */
.btn-primary,
.nav-btn-start,
.pricing-card-btn[style*="background"] {
  background: linear-gradient(135deg, var(--blue-600), #1d4ed8) !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease,
              filter 0.2s ease !important;
}

.btn-primary:hover,
.nav-btn-start:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  filter: brightness(1.05);
}

.btn-primary:active,
.nav-btn-start:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
}

/* Secondary/ghost buttons: subtle border reveal */
.btn-secondary,
.btn-ghost,
.nav-btn-signin {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
}

.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

/* Teal accent buttons (used in hero actions) */
.btn[style*="teal"],
.btn[style*="accent"] {
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

/* Pricing CTA button glow */
.pricing-card-featured .pricing-card-btn {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.pricing-card-featured .pricing-card-btn:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* ============================================================
   6. FORM INPUTS — MODERN GLOW FOCUS
   ============================================================ */

/* Enhanced focus ring with glow */
.form-input,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--blue-500) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 0 12px rgba(37, 99, 235, 0.06) !important;
  background: var(--white);
  outline: none;
}

/* Password strength bar: gradient smoothing */
.password-strength-bar {
  transition: background 0.4s ease, width 0.3s ease;
}

.password-strength-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  border-radius: var(--radius-full);
}

/* ============================================================
   7. NAVIGATION — GLASSMORPHISM + SCROLL EFFECTS
   ============================================================ */

/* Enhanced glassmorphism nav */
.nav-container {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.nav-container.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

/* Dark mode nav */
body.dark .nav-container {
  background: rgba(11, 18, 32, 0.85) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark .nav-container.scrolled {
  background: rgba(11, 18, 32, 0.95) !important;
}

/* Nav link hover: gradient underline */
.nav-link::after {
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500)) !important;
  height: 2.5px !important;
  border-radius: var(--radius-full);
}

/* Nav link: subtle hover background */
.nav-link:hover {
  color: var(--color-text) !important;
  background: rgba(37, 99, 235, 0.04) !important;
}

/* ============================================================
   8. MOBILE NAV — SLIDE-IN + STAGGER ANIMATION
   ============================================================ */

/* Slide-in from right instead of instant show */
.nav-mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
  display: flex !important;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

.nav-mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

body.dark .nav-mobile-menu {
  background: rgba(11, 18, 32, 0.98) !important;
}

/* Staggered entrance for mobile nav items */
.nav-mobile-menu.open .nav-mobile-link {
  animation: slideInRight 0.3s ease forwards;
  opacity: 0;
}

.nav-mobile-menu.open .nav-mobile-link:nth-child(1) { animation-delay: 0.05s; }
.nav-mobile-menu.open .nav-mobile-link:nth-child(2) { animation-delay: 0.1s; }
.nav-mobile-menu.open .nav-mobile-link:nth-child(3) { animation-delay: 0.15s; }
.nav-mobile-menu.open .nav-mobile-link:nth-child(4) { animation-delay: 0.2s; }
.nav-mobile-menu.open .nav-mobile-link:nth-child(5) { animation-delay: 0.25s; }
.nav-mobile-menu.open .nav-mobile-link:nth-child(6) { animation-delay: 0.3s; }

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

/* Mobile nav link hover */
.nav-mobile-link {
  border-radius: var(--radius-lg);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-mobile-link:hover {
  background: rgba(37, 99, 235, 0.06);
}

/* ============================================================
   9. TESTIMONIALS — DECORATIVE QUOTES + BETTER CARDS
   ============================================================ */

/* Testimonial card: glass + gradient border */
.testimonial-card,
.card:has(.testimonial-name) {
  position: relative;
  border: 1px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(20, 184, 166, 0.15)) border-box;
  overflow: visible;
}

/* Large decorative quote mark */
.testimonial-card::before,
.card:has(.testimonial-name)::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 56px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  pointer-events: none;
}

body.dark .testimonial-card,
body.dark .card:has(.testimonial-name) {
  background: linear-gradient(var(--navy-800), var(--navy-800)) padding-box,
              linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(20, 184, 166, 0.2)) border-box;
}

/* Star rating: golden glow */
.testimonial-stars {
  filter: drop-shadow(0 1px 3px rgba(251, 191, 36, 0.3));
}

/* Testimonial avatar: gradient ring */
.testimonial-avatar {
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, var(--blue-500), var(--teal-500)) border-box;
}

/* ============================================================
   10. PRICING TABLE — COLUMN HIGHLIGHT + ANIMATED CHECKS
   ============================================================ */

/* Featured pricing card: floating glow */
.pricing-card-featured,
.card[style*="border-color: var(--blue-500)"],
.card[style*="border-color: var(--blue-600)"] {
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.15);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card-featured:hover,
.card[style*="border-color: var(--blue-500)"]:hover,
.card[style*="border-color: var(--blue-600)"]:hover {
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.2);
  transform: scale(1.05);
}

/* Comparison table: highlighted column */
.comparison-highlight {
  background: rgba(37, 99, 235, 0.04) !important;
  position: relative;
}

.comparison-table th.comparison-highlight {
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--blue-600);
}

/* Table row hover: smooth slide */
.comparison-table tr {
  transition: background 0.15s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.03);
}

/* Check marks: appear with subtle bounce */
.comparison-check .icon {
  color: var(--teal-500);
}

/* Pricing toggle: smooth knob */
.pricing-toggle {
  background: linear-gradient(135deg, var(--slate-100), var(--slate-50));
  border: 1px solid var(--color-border-light);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pricing-toggle-knob {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Pricing amount: number transition feel */
.pricing-amount {
  transition: color 0.2s ease;
}

/* ============================================================
   11. AUTH PAGES — GLASSMORPHISM + MESH GRADIENT
   ============================================================ */

/* Replace dot pattern with mesh gradient */
.auth-right {
  background: var(--mesh-auth) !important;
}

.auth-right::before {
  background-image: none !important;
  background:
    radial-gradient(circle 250px at 30% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 100%),
    radial-gradient(circle 200px at 70% 70%, rgba(20, 184, 166, 0.06) 0%, transparent 100%) !important;
  animation: meshFloat 25s ease-in-out infinite;
}

/* Auth form container: glass card */
.auth-form-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* Auth right content glass card */
.auth-right-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Auth SSO buttons: hover with brand hint */
.auth-sso-btn {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-sso-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Auth inputs on dark panel: better contrast */
.auth-right .form-input,
.auth-right input[type="text"],
.auth-right input[type="email"],
.auth-right input[type="password"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.auth-right .form-input:focus,
.auth-right input[type="text"]:focus,
.auth-right input[type="email"]:focus,
.auth-right input[type="password"]:focus {
  border-color: var(--blue-400) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 0 16px rgba(37, 99, 235, 0.08) !important;
  background: rgba(255, 255, 255, 0.1);
}

.auth-right .form-input::placeholder,
.auth-right input::placeholder {
  color: var(--slate-400);
}

.auth-right .form-label {
  color: var(--slate-300);
}

/* ============================================================
   12. SECTION CTA — MODERN MESH + GLASS BUTTONS
   ============================================================ */

/* CTA section: mesh gradient bg */
.section-cta {
  background: var(--mesh-cta) !important;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 300px at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 100%),
    radial-gradient(circle 200px at 20% 80%, rgba(20, 184, 166, 0.08) 0%, transparent 100%);
  pointer-events: none;
  animation: meshFloat 30s ease-in-out infinite reverse;
}

.section-cta-inner {
  position: relative;
  z-index: 1;
}

/* CTA button on dark bg: glow */
.section-cta .btn-primary,
.section-cta .btn[style*="blue"] {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.section-cta .btn-primary:hover,
.section-cta .btn[style*="blue"]:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

/* ============================================================
   13. FAQ — SMOOTH HEIGHT ANIMATION
   ============================================================ */

/* FAQ answer: animated height */
.faq-answer {
  display: block !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 var(--space-5) var(--space-5);
}

/* FAQ item: gradient border on open */
.faq-item.open {
  border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(20, 184, 166, 0.15)) border-box;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}

body.dark .faq-item.open {
  background: linear-gradient(var(--navy-800), var(--navy-800)) padding-box,
              linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(20, 184, 166, 0.2)) border-box;
}

/* FAQ toggle: smooth rotate with color */
.faq-toggle {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease;
}

.faq-item.open .faq-toggle {
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  color: var(--white);
}

/* ============================================================
   14. FOOTER — GRADIENT + MODERN HOVER
   ============================================================ */

/* Footer: subtle top gradient border */
.footer-container {
  position: relative;
}

.footer-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(20, 184, 166, 0.3), transparent);
}

/* Footer links: slide underline on hover */
.footer-links a,
.footer-link {
  position: relative;
}

.footer-links a::after,
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-400), var(--teal-400));
  transition: width 0.25s ease;
}

.footer-links a:hover::after,
.footer-link:hover::after {
  width: 100%;
}

/* Footer social: glow on hover */
.footer-social-link:hover {
  background: rgba(37, 99, 235, 0.15) !important;
  color: var(--blue-400) !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

.footer-social-link {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

/* Footer heading: gradient accent */
.footer-heading::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
  margin-top: var(--space-2);
  border-radius: var(--radius-full);
}

/* ============================================================
   15. SECTION BADGES & TITLES — GRADIENT ACCENTS
   ============================================================ */

/* Section badge: subtle gradient */
.section-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.12);
}

/* Section title underline: gradient */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500));
  margin: var(--space-3) auto 0;
  border-radius: var(--radius-full);
}

/* Feature detail badge: gradient bg */
.feature-detail-badge {
  border: 1px solid transparent;
  background: linear-gradient(var(--blue-50), var(--blue-50)) padding-box,
              linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(20, 184, 166, 0.15)) border-box;
}

/* ============================================================
   16. FEATURE DETAIL VISUAL — MODERN GLASS CARD
   ============================================================ */

.feature-detail-visual {
  background: linear-gradient(135deg, var(--slate-50), rgba(37, 99, 235, 0.02));
  border: 1px solid rgba(37, 99, 235, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-detail:hover .feature-detail-visual {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* ============================================================
   17. INTEGRATION GRID — HOVER GLOW
   ============================================================ */

.integration-item:hover {
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: var(--glow-card-hover);
}

.integration-item .icon {
  transition: transform 0.3s ease;
}

.integration-item:hover .icon {
  transform: scale(1.15);
}

/* ============================================================
   18. API CODE BLOCK — MODERN STYLING
   ============================================================ */

.api-code-block {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.api-code-header {
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================================
   19. SCROLL-TRIGGERED ANIMATIONS
   ============================================================ */

/* Subtle fade-in for sections (activated via IntersectionObserver in JS) */
.section-container,
.feature-detail,
.section-cta {
  opacity: 1;
}

/* ============================================================
   20. PREFERS-REDUCED-MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero::after,
  .auth-right::before,
  .section-cta::before {
    animation: none !important;
  }

  .nav-mobile-menu.open .nav-mobile-link {
    animation: none !important;
    opacity: 1 !important;
  }

  .card:hover,
  .compliance-card:hover,
  .integration-item:hover,
  .btn-primary:hover,
  .nav-btn-start:hover {
    transform: none !important;
  }
}

/* ============================================================
   21. DARK MODE OVERRIDES FOR MODERN ELEMENTS
   ============================================================ */

body.dark .trust-logo {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
}

body.dark .trust-logo .icon {
  color: var(--blue-400);
}

body.dark .section-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(20, 184, 166, 0.1));
  border-color: rgba(37, 99, 235, 0.2);
}

body.dark .testimonial-card::before,
body.dark .card:has(.testimonial-name)::before {
  opacity: 0.3;
}

body.dark .pricing-toggle {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .feature-detail-visual {
  background: linear-gradient(135deg, var(--navy-800), rgba(37, 99, 235, 0.05));
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark .feature-detail-badge {
  background: linear-gradient(rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.1)) padding-box,
              linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(20, 184, 166, 0.2)) border-box;
}

body.dark .comparison-highlight {
  background: rgba(37, 99, 235, 0.08) !important;
}

body.dark .comparison-table th.comparison-highlight {
  background: rgba(37, 99, 235, 0.12) !important;
}

/* ============================================================
   22. SMOOTH SCROLL BEHAVIOR
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================================
   23. SELECTION COLOR
   ============================================================ */

::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-text);
}

body.dark ::selection {
  background: rgba(37, 99, 235, 0.3);
}
