/* ============================================================
   LAUNCH MULE - VISUAL ENHANCEMENTS
   Glassmorphism depth/textures + scroll animations
   ============================================================ */

/* ============================================================
   GLOBAL TYPOGRAPHY
   ============================================================ */

*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   1. HERO SECTION ENHANCEMENTS
   ============================================================ */

.hero-section {
  position: relative;
  overflow: hidden;
}

/* Hero content z-index */
.hero-section > .max-w-6xl,
.hero-section > div {
  position: relative;
  z-index: 3;
}

/* Glowing validation box */
.validation-box {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(37, 99, 235, 0.15),
    0 0 80px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: validation-glow 4s ease-in-out infinite;
}

@keyframes validation-glow {
  0%, 100% {
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.15),
      0 0 40px rgba(37, 99, 235, 0.12),
      0 0 80px rgba(37, 99, 235, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  50% {
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.15),
      0 0 50px rgba(37, 99, 235, 0.25),
      0 0 100px rgba(37, 99, 235, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

/* Hero heading glow */


/* ============================================================
   2. GLASSMORPHISM & VISUAL DEPTH
   ============================================================ */

/* --- Noise texture overlay for sections --- */
.texture-bg {
  position: relative;
}

.texture-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.texture-bg > * {
  position: relative;
  z-index: 1;
}

/* --- Glass Card Effect --- */
.glass-card {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-4px);
}

/* --- Glass Stat Card (green tint) --- */
.glass-stat {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  box-shadow:
    0 8px 32px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-stat:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
  box-shadow:
    0 20px 48px rgba(37, 99, 235, 0.12),
    0 0 40px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-6px);
}

/* --- Glass Mission Card --- */
/* --- Animated white hero with flowing green wave lines --- */
.hero-wave-animated {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero-wave-animated > canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-wave-animated > *:not(canvas) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave-animated > canvas {
    display: none;
  }
}

/* Legacy support - keep orb class but hide */
.hero-white-animated {
  background: #fff;
  position: relative;
  overflow: hidden;
}

.hero-white-animated > * {
  position: relative;
  z-index: 1;
}

/* --- Mission box: solid white card on dark bg --- */
.mission-box {
  background: #fff;
  border-radius: 1.5rem;
  padding: 3.5rem;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.mission-box h2 {
  color: #1e3a8a !important;
}

.mission-box p {
  color: #374151 !important;
}

/* --- Fancy script for "Mission" --- */
.mission-script {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 1.4em;
  letter-spacing: -0.02em;
  color: #1d4ed8 !important;
  -webkit-text-fill-color: #1d4ed8;
  display: inline-block;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1;
}

.glass-mission {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* --- How It Works step cards (dark glass for dark bg) --- */
.glass-step {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-step:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

/* Step number circles — bright on dark */
.glass-step .w-20 {
  background: linear-gradient(135deg, #2563eb, #60a5fa) !important;
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.4),
    0 0 0 4px rgba(37, 99, 235, 0.15);
}


/* ============================================================
   3. SECTION BACKGROUND ENHANCEMENTS
   ============================================================ */

/* Stats section */
.stats-section {
  background: #eff6ff !important;
}

/* Features section */
.features-section {
  background: #eff6ff !important;
}

/* Mission section */
.mission-section {
  background: #eff6ff !important;
}

/* CTA section */
.cta-section {
  background: #eff6ff !important;
  position: relative;
}

/* Testimonials section */
.testimonials-section {
  background: #f9fafb !important;
}

/* --- Floating orbs for sections (subtle decoration) --- */
.orb-decoration {
  position: relative;
  overflow: hidden;
}

.orb-decoration::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.orb-decoration > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   4. TESTIMONIAL CARD DEPTH
   ============================================================ */

.testimonial-track > div {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.testimonial-track > div:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(37, 99, 235, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


/* ============================================================
   5. CTA BUTTON GLOW
   ============================================================ */

.glow-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-btn::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8, #60a5fa, #1d4ed8);
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  animation: btn-glow-rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-btn:hover::before {
  opacity: 1;
}

@keyframes btn-glow-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.glow-btn:hover {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), 0 0 60px rgba(37, 99, 235, 0.1);
}

/* ============================================================
   6. SUBTLE DIVIDER LINES BETWEEN SECTIONS
   ============================================================ */

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.2), transparent);
  margin: 0;
}


/* ============================================================
   7. DARK GREEN STAT CARDS
   ============================================================ */

.dark-stat {
  background: linear-gradient(135deg, #0f1e4a, #1e3a8a) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-stat:hover {
  background: linear-gradient(135deg, #1e3a8a, #1e40af) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}


/* ============================================================
   8. DARK GREEN FOOTER (all pages)
   ============================================================ */

footer {
  background: #0f1e4a !important;
  color: #e2e8f0 !important;
  border-top: none !important;
}

footer h4,
footer h3 {
  color: #60a5fa !important;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #60a5fa !important;
}

footer ul,
footer li,
footer p,
footer span {
  color: rgba(255, 255, 255, 0.6) !important;
}

footer .border-t,
footer .border-gray-200 {
  border-color: rgba(37, 99, 235, 0.15) !important;
}

footer .text-gray-500,
footer .text-gray-600,
footer .text-gray-900 {
  color: rgba(255, 255, 255, 0.6) !important;
}


/* ============================================================
   9. DARKER GREEN VARIANCE ACROSS SITE
   ============================================================ */

/* --- Deep green section backgrounds --- */

/* Trust/logos section — dark forest */
.dark-green-section {
  background: linear-gradient(135deg, #1e3a8a, #1e3a8a) !important;
  color: #fff;
}

.dark-green-section h2,
.dark-green-section h3 {
  color: #fff !important;
}

.dark-green-section p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Medium dark green — for alternating sections */
.mid-green-section {
  background: linear-gradient(135deg, #1e3a8a, #1e40af) !important;
  color: #fff;
}

.mid-green-section h2,
.mid-green-section h3 {
  color: #fff !important;
}

.mid-green-section p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Rich emerald for CTA sections */
.emerald-section {
  background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
  color: #fff;
}

.emerald-section h2,
.emerald-section h3 {
  color: #fff !important;
}

.emerald-section p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Override existing section backgrounds with richer greens --- */

/* Stats section — flat */
.stats-section {
  background: #eff6ff !important;
}

/* Mission section — flat */
.mission-section {
  background: #eff6ff !important;
}

/* Features section — flat */
.features-section {
  background: #eff6ff !important;
}

/* --- Darker nav border accent --- */
nav {
  border-bottom-color: rgba(5, 150, 105, 0.15) !important;
}

/* --- Deeper green accents on hover states globally --- */
a:hover,
button:hover {
  --tw-text-opacity: 1;
}

/* --- Section-level bg-green-50 → flat --- */
section.bg-green-50 {
  background: #eff6ff !important;
}

/* --- Section-level bg-gradient green-50 → flat --- */
section[class*="from-green-50"][class*="to-emerald-50"] {
  background: #dbeafe !important;
}

section[class*="from-gray-50"][class*="to-green-50"] {
  background: #f3f4f6 !important;
}

/* --- Pre-footer featured-in carousel: always dark green bg --- */
section.py-4 + footer,
section.py-4:has(+ footer) {
  /* Handled by adjacent selector */
}

/* Force all featured-in carousels right before footer to be dark */
footer ~ section,
section:last-of-type:has(.featured-in-carousel) {
  /* Fallback - CSS can't do prev-sibling, handled via adjacent approach */
}

/* --- Featured-in carousel: always white background --- */
.featured-in-carousel {
  background: #fff;
}

.featured-in-carousel img {
  filter: none !important;
  opacity: 1 !important;
}

/* Force all carousel/scroll containers to white */
.logo-scroll {
  background: #fff !important;
}

.testimonial-scroll {
  background: transparent;
}

/* --- Page hero banners across industry/guide pages — richer greens --- */
section[class*="bg-gradient-to-br"][class*="from-green-600"] {
  background: linear-gradient(135deg, #1e3a8a, #1e40af, #1d4ed8) !important;
}

section[class*="bg-green-700"],
section[class*="bg-green-800"],
section[class*="bg-green-900"] {
  background: linear-gradient(135deg, #1e3a8a, #1e3a8a) !important;
}

/* --- Accent color adjustments for deeper green --- */
.text-green-600 {
  color: #1d4ed8 !important;
}

/* Pricing card popular badge / green accents */
.bg-green-500 {
  background-color: #1d4ed8 !important;
}

.border-green-500 {
  border-color: #1d4ed8 !important;
}

/* Green gradient buttons — deeper green spectrum */
.from-green-500.to-emerald-500,
[class*="from-green-500"][class*="to-emerald-500"] {
  background-image: linear-gradient(to right, #1d4ed8, #1d4ed8) !important;
}

[class*="from-green-500"][class*="to-emerald-500"]:hover {
  background-image: linear-gradient(to right, #2563eb, #1d4ed8) !important;
}


/* ============================================================
   10. MOBILE ADJUSTMENTS FOR ENHANCEMENTS
   ============================================================ */

@media (max-width: 767px) {
  .glass-mission,
  .mission-box {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  /* Reduce glow intensity on mobile for performance */
  .validation-box {
    animation: none;
    box-shadow:
      0 15px 40px rgba(0, 0, 0, 0.1),
      0 0 20px rgba(37, 99, 235, 0.1);
  }
}

/* ============================================================
   11. GLOBAL DARK GREEN HEADINGS
   ============================================================ */

h1, h2, h3 {
  color: #1e3a8a !important;
}

/* Exceptions: headings inside dark sections stay white */
.dark-green-section h1,
.dark-green-section h2,
.dark-green-section h3,
.mid-green-section h1,
.mid-green-section h2,
.mid-green-section h3,
.emerald-section h1,
.emerald-section h2,
.emerald-section h3,
footer h1, footer h2, footer h3, footer h4,
nav h1, nav h2, nav h3,
[class*="bg-gray-900"] h1,
[class*="bg-gray-900"] h2,
[class*="bg-gray-900"] h3,
[class*="bg-gray-800"] h1,
[class*="bg-gray-800"] h2,
[class*="bg-gray-800"] h3,
[class*="bg-blue-600"] h1,
[class*="bg-blue-600"] h2,
[class*="bg-blue-600"] h3,
[class*="bg-blue-700"] h1,
[class*="bg-blue-700"] h2,
[class*="bg-blue-700"] h3,
[class*="bg-blue-800"] h1,
[class*="bg-blue-800"] h2,
[class*="bg-blue-800"] h3,
[class*="bg-blue-900"] h1,
[class*="bg-blue-900"] h2,
[class*="bg-blue-900"] h3,
[class*="from-blue-"] h1,
[class*="from-blue-"] h2,
[class*="from-blue-"] h3,
[class*="dark-stat"] h1,
[class*="dark-stat"] h2,
[class*="dark-stat"] h3,
[class*="from-gray-900"] h1,
[class*="from-gray-900"] h2,
[class*="from-gray-900"] h3,
[class*="from-red-"] h1,
[class*="from-red-"] h2,
[class*="from-red-"] h3,
[class*="from-purple-"] h1,
[class*="from-purple-"] h2,
[class*="from-purple-"] h3,
[class*="from-green-800"] h1,
[class*="from-green-800"] h2,
[class*="from-green-800"] h3,
[class*="from-green-900"] h1,
[class*="from-green-900"] h2,
[class*="from-green-900"] h3,
[class*="via-green-800"] h1,
[class*="via-green-800"] h2,
[class*="via-green-800"] h3,
.hero-section h1,
.hero-section h2,
.hero-section h3,
h1[class*="text-white"],
h2[class*="text-white"],
h3[class*="text-white"] {
  color: #fff !important;
}

/* Headings with gradient text-transparent should keep their gradient */
h1[class*="text-transparent"],
h2[class*="text-transparent"],
h3[class*="text-transparent"] {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* h4 in footer handled separately */
footer h4 {
  color: #60a5fa !important;
}


/* ============================================================
   12. SCROLL REVEAL ANIMATIONS
   ============================================================ */

/* Base reveal state — hidden */
.reveal {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal-up {
  transform: translateY(40px);
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

.reveal.reveal-scale {
  transform: scale(0.92);
}

/* Revealed state */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Counter pulse on finish */
.counter-done {
  animation: counter-pop 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes counter-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Demo report section slide-in */
.demo-section {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-section.demo-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .demo-section {
    opacity: 1 !important;
    transform: none !important;
  }
  .counter-done {
    animation: none !important;
  }
}


/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .validation-box,
  .glow-btn::before {
    animation: none !important;
  }
}

/* ============================================================
   COMPREHENSIVE VISUAL POLISH - LaunchMule Upgrade
   ============================================================ */

/* --- Smooth scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Better link transitions sitewide --- */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* --- Improved button styles --- */
button, .btn, [type="submit"] {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

/* --- Hero heading refinement --- */
h1 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  letter-spacing: -0.01em;
}

/* --- Glass card refined --- */
.glass-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(219, 234, 254, 0.8) !important;
  box-shadow: 0 4px 24px rgba(30, 58, 138, 0.07), 0 1px 4px rgba(30, 58, 138, 0.04) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.12), 0 2px 8px rgba(30, 58, 138, 0.06) !important;
  transform: translateY(-6px) !important;
  border-color: rgba(147, 197, 253, 0.9) !important;
}

/* --- Tool cards refined --- */
.tool-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #2563eb, #1e3a8a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(30, 58, 138, 0.25) !important;
}

.tool-card:hover::before {
  opacity: 1;
}

/* --- Resource cards --- */
.resource-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.resource-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 48px rgba(30, 58, 138, 0.3) !important;
}

/* --- Better input focus states --- */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  transition: all 0.2s ease;
}

/* --- Nav dropdown polish --- */
.dropdown-content {
  border-radius: 12px !important;
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.15), 0 2px 8px rgba(30, 58, 138, 0.08) !important;
  border: 1px solid rgba(219, 234, 254, 0.8) !important;
  overflow: hidden;
}

.dropdown-content a {
  transition: all 0.15s ease !important;
  padding: 10px 18px !important;
}

.dropdown-content a:hover {
  background: #eff6ff !important;
  color: #1e3a8a !important;
  padding-left: 24px !important;
}

/* --- Testimonial cards --- */
.testimonial-track > div {
  border: 1px solid rgba(219, 234, 254, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-track > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.12) !important;
}

/* --- Footer refinement --- */
/* footer background set via inline style on each page */

footer h4 {
  color: #60a5fa !important;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

footer a {
  color: #94a3b8;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

footer a:hover {
  color: #ffffff !important;
  padding-left: 4px;
}

/* --- Section dividers --- */
section + section {
  position: relative;
}

/* --- Scroll reveal refined --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Pricing cards if present --- */
.pricing-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.25rem !important;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(30, 58, 138, 0.2) !important;
}

/* --- CTA sections --- */
.emerald-section, .dark-green-section, .mid-green-section {
  position: relative;
  overflow: hidden;
}

.emerald-section::before, .dark-green-section::before, .mid-green-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

/* --- Nav sticky shadow --- */
nav {
  box-shadow: 0 2px 16px rgba(30, 58, 138, 0.08) !important;
  transition: box-shadow 0.3s ease;
}

/* --- Better badge/pill styles --- */
.inline-block.rounded-full {
  letter-spacing: 0.05em;
}

/* --- How It Works step numbers --- */
.step-number {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* --- Logo scroll refined --- */
.logo-scroll {
  background: #fff !important;
}

/* --- Stat counter section --- */
.stats-section {
  background: #0f1e4a !important;
}

/* --- Ideas page card hover --- */
.idea-card:hover {
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.15), 0 2px 8px rgba(30, 58, 138, 0.08) !important;
}

/* --- Better mobile menu --- */
.mobile-menu {
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.15) !important;
}

/* --- Remove green from stat-card hover --- */
.stat-card:hover {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2) !important;
}

/* --- Scrollbar styling (webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #bfdbfe;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* --- Better selection color --- */
::selection {
  background: #bfdbfe;
  color: #1e3a8a;
}

/* ============================================================
   FINAL POLISH PASS
   ============================================================ */

/* Light blue page backgrounds keep white cards floating */
body.bg-blue-50, body[class*="bg-blue"] {
  background-color: #eff6ff !important;
}

/* Keep white cards crisp on blue backgrounds */
.bg-white.rounded-xl, .bg-white.rounded-2xl, .bg-white.rounded-lg {
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.08), 0 1px 4px rgba(30, 58, 138, 0.04);
}

/* Improve section headings consistency */
section h2.text-gray-900 {
  color: #111827;
}

/* Better table styles */
table {
  border-collapse: collapse;
}

thead th {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

tbody tr {
  transition: background-color 0.2s ease;
}

/* Better form elements */
input[type="text"], input[type="email"], textarea {
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

/* Sticky nav shadow on scroll */
nav.scrolled {
  box-shadow: 0 4px 24px rgba(30, 58, 138, 0.12) !important;
}

/* Better hero wave bg */
.hero-wave-animated {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%) !important;
}

/* Improve all-tools page calculator section header */
.py-16 h2.text-3xl {
  font-size: 2rem;
}

/* Better badge styling */
span.rounded-full[class*="bg-blue"] {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.04em;
}

/* Animate nav dropdown appearance */
.dropdown-content {
  animation: dropFade 0.18s ease forwards;
  transform-origin: top center;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Back-to-top feel for long pages */
html {
  scroll-padding-top: 120px;
}

/* ============================================================
   BIGGER, BOLDER HEADINGS SITEWIDE
   ============================================================ */

h1 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h4, h5, h6 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

/* Scale up Tailwind heading sizes */
.text-3xl { font-size: 2rem !important; }
.text-4xl { font-size: 2.5rem !important; }
.text-5xl { font-size: 3.25rem !important; }
.text-6xl { font-size: 4rem !important; }
.text-7xl { font-size: 5rem !important; }

/* Ensure font-black and font-bold use Plus Jakarta Sans */
.font-black, .font-bold, .font-semibold {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}


/* Ensure nav dropdowns always appear above hero sections */
nav {
  z-index: 100 !important;
}

.dropdown-content {
  z-index: 200 !important;
}

.hero-section,
.hero-wave-animated,
section {
  z-index: 1;
  position: relative;
}
