@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
  --primary: #279AF1;
  --secondary: #355771;
  --neutral-light: #F5F7FA;
  --neutral-medium: #6B7280;
  --neutral-dark: #1F2937;
  --neutral-black: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--neutral-black);
  line-height: 1.6;
  overflow-x: hidden;
}

.font-body {
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Hero h1 color override - changes from rgb(17, 24, 39) to rgba(53, 87, 113, 1) */
section h1.text-5xl.text-neutral-black {
  color: rgba(53, 87, 113, 1) !important;
}

/* Fix gradient text - ensure transparency and background-clip work */
.bg-gradient-to-r.from-primary.to-secondary.bg-clip-text.text-transparent,
span.bg-gradient-to-r.from-primary.to-secondary.bg-clip-text.text-transparent,
.bg-clip-text.text-transparent {
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  background-image: linear-gradient(to right, var(--primary), var(--secondary)) !important;
  display: inline;
}

/* Override the h1 and h2 color rules for spans with gradient text */
section h1.text-5xl.text-neutral-black span.bg-clip-text,
section h1 span.bg-clip-text.text-transparent,
section h2 span.bg-clip-text.text-transparent,
h2 span.bg-gradient-to-r.bg-clip-text.text-transparent,
h2.text-3xl span.bg-clip-text.text-transparent,
h2.text-4xl span.bg-clip-text.text-transparent {
  color: transparent !important;
  background-image: linear-gradient(to right, var(--primary), var(--secondary)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  display: inline !important;
  position: relative;
}

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

/* Wave Background Pattern */
.wave-bg {
  position: absolute;
  bottom: 0;
  left: 3px;
  top: 973px;
  width: 100%;
  height: 100px;
  background: none;
  color: rgba(255, 255, 255, 1);
  clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0% 100%);
}

.wave-bg-2 {
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, rgba(53, 87, 113, 0.05), transparent);
}

/* Underwater Glow Effect */
.underwater-glow {
  position: relative;
}

.underwater-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.underwater-glow:hover::before {
  opacity: 0.6;
}

/* Flowing Animation */
@keyframes flowing {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.flowing-gradient {
  background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 200%;
  animation: flowing 4s ease infinite;
}

/* Bubble Effect */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(39, 154, 241, 0.2);
  animation: bubble-float 3s ease-in-out infinite;
}

@keyframes bubble-float {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure badge gradients are visible even when parent has slide-up */
.slide-up .bg-gradient-to-r:not(.bg-clip-text),
.slide-up .inline-flex[class*="bg-gradient"] {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Stats Grid Spacing - Add padding above stats widget */
.stats-grid-spacing {
  margin-top: 1rem !important;
  padding-top: 1rem !important;
}

/* Grid padding for stats widgets */
div.grid.fade-in.stagger-5 {
  padding-top: 31px;
  padding-bottom: 31px;
}

@media (min-width: 640px) {
  .stats-grid-spacing {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
  }
}

@media (min-width: 768px) {
  .stats-grid-spacing {
    margin-top: 2rem !important;
    padding-top: 2rem !important;
  }
}

/* Scroll reveal animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating image animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating-image {
  animation: float 6s ease-in-out infinite;
}

.hero-splash-column {
  overflow: visible;
}

.hero-splash-wrapper {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.hero-splash-art {
  display: block;
  width: 100%;
  max-width: 38rem;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Shared soft elliptical glow behind images and icons */
.image-glow,
.hero-splash-glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.image-glow {
  inset: 6%;
}

.hero-splash-glow {
  inset: 5%;
}

.image-glow--icon {
  inset: -18%;
}

.image-glow-wrapper {
  overflow: visible;
}

@media (min-width: 640px) {
  .hero-splash-art {
    max-width: 42rem;
  }
}

@media (min-width: 1024px) {
  .hero-splash-wrapper {
    width: 115%;
    max-width: none;
    margin-right: -7.5%;
    margin-left: auto;
  }

  .hero-splash-art {
    width: 100%;
    max-width: none;
  }

  .hero-splash-glow {
    inset: 3%;
  }
}

/* Parallax effect */
.parallax-image {
  transition: transform 0.3s ease-out;
}

/* Fade in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Card Hover Effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(39, 154, 241, 0.3);
}

/* Core Features - Fix text scrolling out of view */
.interactive-grid-item,
.feature-showcase-item > div {
  overflow: visible !important;
}

.interactive-grid-item p,
.interactive-grid-item h3,
.interactive-grid-item a {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  max-height: none !important;
}

/* Fix alignment of Core Features and other title icons */
.interactive-grid-item .w-20,
.interactive-grid-item .w-16,
.interactive-grid-item .w-24,
.feature-showcase-item .w-12,
.feature-showcase-item .w-16,
.feature-showcase-item .w-20 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.interactive-grid-item h3,
.feature-showcase-item h3 {
  display: flex !important;
  align-items: center !important;
  min-height: 2.5rem;
}

/* Button Styles */
.btn-primary {
  background: var(--secondary);
  color: white;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  min-height: 44px; /* Touch-friendly minimum height */
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 25px rgba(39, 154, 241, 0.4);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  padding: 12px 32px;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(53, 87, 113, 0.3);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid var(--secondary);
  cursor: pointer;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 25px rgba(39, 154, 241, 0.3);
}

.btn-outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.3);
}

.btn-outline:active {
  transform: scale(0.98);
}

/* Smaller height for header CTAs only */
.btn-primary.btn-header,
.btn-outline.btn-header {
  min-height: 36px;
  padding: 8px 16px;
}

/* Input Styles */
input, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid var(--neutral-light);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  min-height: 44px; /* Touch-friendly minimum height */
}

textarea {
  min-height: 120px; /* Larger minimum for textarea */
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.1);
}

/* Header Styles */
header {
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

/* New updates announcement bar */
:root {
  --announcement-bar-height: 0px;
}

#blenny-20-announcement {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.4;
}

#blenny-20-announcement .announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.625rem 2.75rem 0.625rem 1rem;
  position: relative;
}

#blenny-20-announcement .announcement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--secondary);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

#blenny-20-announcement .announcement-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #fff;
  flex-shrink: 0;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#blenny-20-announcement .announcement-text {
  font-weight: 500;
  text-align: center;
}

#blenny-20-announcement .announcement-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

#blenny-20-announcement .announcement-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#blenny-20-announcement .announcement-link-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--secondary);
}

#blenny-20-announcement .announcement-link-primary:hover {
  background: #fff;
}

#blenny-20-announcement .announcement-link-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

#blenny-20-announcement .announcement-link-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

#blenny-20-announcement .announcement-dismiss {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.2s ease, color 0.2s ease;
}

#blenny-20-announcement .announcement-dismiss:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

body.has-blenny-20-banner {
  --announcement-bar-height: 2.75rem;
}

body.has-blenny-20-banner header + section {
  padding-top: calc(5rem + var(--announcement-bar-height));
}

@media (min-width: 640px) {
  body.has-blenny-20-banner header + section {
    padding-top: calc(6rem + var(--announcement-bar-height));
  }
}

@media (min-width: 768px) {
  body.has-blenny-20-banner header + section {
    padding-top: calc(7rem + var(--announcement-bar-height));
  }
}

@media (min-width: 1024px) {
  body.has-blenny-20-banner header + section {
    padding-top: calc(8rem + var(--announcement-bar-height));
  }
}

/* Navigation Link Active State */
.nav-link.active {
  color: var(--primary) !important;
  position: relative;
  font-weight: 600;
}

/* Mobile menu active state */
.mobile-menu .nav-link.active {
  background-color: rgba(39, 154, 241, 0.1) !important;
  border-left: 3px solid var(--primary);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.active {
  max-height: 600px;
  opacity: 1;
}

/* Mobile menu touch targets */
.mobile-menu .nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Partner link removed from mobile nav markup on all pages */

/* Mobile menu button touch target */
#mobile-menu-button {
  min-height: 44px;
  min-width: 44px;
}

/* FAQ Accordion */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary svg {
  transform: rotate(180deg);
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Footer Styles - Match gradient pattern used throughout the site */
/* Use maximum specificity to override Tailwind CDN generated styles */
/* Pattern: from-primary/10 via-white to-secondary/10 (matching hero and other sections) */
html body footer,
body > footer,
footer.bg-gradient-to-br,
footer[class*="bg-gradient"],
footer[class*="from-primary"],
footer[class*="via-white"],
footer[class*="to-secondary"],
footer.relative.overflow-hidden {
  background: linear-gradient(to bottom right, rgba(39, 154, 241, 0.10), #ffffff, rgba(53, 87, 113, 0.10)) !important;
  background-image: linear-gradient(to bottom right, rgba(39, 154, 241, 0.10), #ffffff, rgba(53, 87, 113, 0.10)) !important;
}

/* Override any conflicting background rules with maximum specificity */
html body footer.bg-white,
body > footer.bg-white,
footer[class*="bg-white"] {
  background: linear-gradient(to bottom right, rgba(39, 154, 241, 0.10), #ffffff, rgba(53, 87, 113, 0.10)) !important;
  background-image: linear-gradient(to bottom right, rgba(39, 154, 241, 0.10), #ffffff, rgba(53, 87, 113, 0.10)) !important;
}

/* Remove any inline styles or other overrides */
footer[style*="background"] {
  background: linear-gradient(to bottom right, rgba(39, 154, 241, 0.10), #ffffff, rgba(53, 87, 113, 0.10)) !important;
  background-image: linear-gradient(to bottom right, rgba(39, 154, 241, 0.10), #ffffff, rgba(53, 87, 113, 0.10)) !important;
}

footer details summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

footer details summary::-webkit-details-marker {
  display: none;
}

footer details summary::marker {
  display: none;
}

footer details[open] summary svg {
  transform: rotate(180deg);
}

/* Smooth accordion animation for footer */
footer details {
  transition: all 0.3s ease;
}

footer details > div {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Section Styles - Override py-20 padding */
section.py-20.bg-neutral-black.text-white {
  padding-top: 71px !important;
  padding-bottom: 71px !important;
  text-align: center !important;
}

/* Container inside CTA section */
section.py-20.bg-neutral-black.text-white .container {
  color: rgba(0, 0, 0, 1) !important;
}

/* max-w-3xl div inside CTA section */
section.py-20.bg-neutral-black.text-white .max-w-3xl {
  width: 943px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
}

/* btn-outline in CTA section */
section.py-20.bg-neutral-black.text-white .btn-outline {
  color: var(--neutral-black) !important;
  border-color: var(--neutral-dark) !important;
}

/* Scroll to Top Button */
#scroll-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

#scroll-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

#scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(39, 154, 241, 0.4);
}

/* Mobile adjustments for scroll to top */
@media (max-width: 640px) {
  #scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* Gradient Text - only apply background-size to animated gradients */
.bg-gradient-to-r.animate-gradient {
  background-size: 200% auto;
}

/* Ensure gradient backgrounds work properly (not just text) - only if not already set by Tailwind */
.bg-gradient-to-r:not(.bg-clip-text):not([style*="background"]) {
  background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Image Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Enhanced Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth Transitions for All Interactive Elements */
a, button, input, textarea, select {
  transition: all 0.2s ease;
}

/* Custom Widget Styles */
.widget-rounded {
  border-radius: 1.5rem;
}

.widget-pill {
  border-radius: 9999px;
}

/* Animated Gradient Text */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% auto;
  animation: gradient-shift 3s ease infinite;
}

/* Float Animations */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(-10px) translateX(-10px);
  }
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* Custom Badge Widget */
.badge-widget {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid;
  transition: all 0.3s ease;
}

.badge-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Stats Counter Widget */
.counter {
  transition: all 0.3s ease;
}

/* Feature Showcase Widget */
.feature-showcase-item {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-showcase-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.feature-showcase-item:hover::before {
  left: 100%;
}

/* Progress Indicator Widget */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease;
}

/* Timeline Widget */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-dot {
  position: absolute;
  left: -0.375rem;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary);
}

/* Interactive Grid Widget */
.interactive-grid-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.interactive-grid-item:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
}

/* Gradient Mesh Widget */
.gradient-mesh {
  background: 
    radial-gradient(at 0% 0%, rgba(39, 154, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(53, 87, 113, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(39, 154, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(53, 87, 113, 0.1) 0px, transparent 50%);
  animation: gradient-mesh-shift 8s ease infinite;
  z-index: 0;
}

/* Ensure floating background shapes are visible */
section[class*="bg-gradient"] .absolute[class*="blur-3xl"],
section .absolute[class*="animate-float-slow"][class*="blur-3xl"] {
  z-index: 1 !important;
  pointer-events: none;
  opacity: 1 !important;
}

/* Fix for blur effects in py-24 section - ensure parent container has proper z-index */
section.py-24.bg-gradient-to-br .absolute.inset-0 {
  z-index: 0 !important;
}

section.py-24.bg-gradient-to-br .absolute.inset-0 > .absolute[class*="blur-3xl"] {
  z-index: 1 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Ensure container content is above floating shapes */
section[class*="bg-gradient"] .container[class*="z-10"],
section .container.relative.z-10 {
  z-index: 10 !important;
  position: relative;
}

@keyframes gradient-mesh-shift {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
  }
  50% {
    background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%;
  }
}

/* Testimonial Widget */
.testimonial-widget {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(39, 154, 241, 0.05) 0%, rgba(53, 87, 113, 0.05) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 1.5rem;
}

.testimonial-widget::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-size: 6rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

/* Hover Reveal Widget */
.hover-reveal {
  overflow: hidden !important;
  position: relative;
}

.hover-reveal-content {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  position: relative;
  z-index: 1;
}

.hover-reveal:hover .hover-reveal-content {
  transform: translateY(-100%);
}

.hover-reveal-hidden {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: inherit;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
  will-change: transform, opacity;
}

.hover-reveal:hover .hover-reveal-hidden {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Stagger visibility animation */
[class*="stagger-"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[class*="stagger-"].stagger-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Enhancements */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .floating-image {
    animation-duration: 4s;
  }
  
  /* Ensure buttons are touch-friendly on mobile */
  .btn-primary,
  .btn-outline,
  .btn-secondary {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  /* Optimize card padding on mobile */
  .interactive-grid-item,
  .step-card,
  .pricing-card {
    padding: 1rem !important;
  }
  
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }
  
  /* Optimize spacing on mobile */
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Touch-friendly interactive elements */
  button:not(.hidden),
  a.btn-primary:not(.hidden),
  a.btn-outline:not(.hidden),
  a.btn-secondary:not(.hidden) {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Global Icon Color - All SVG icons use secondary color (#355771) */
svg {
  color: var(--secondary) !important;
  stroke: currentColor !important;
}

/* Colored icon squares — white icons (overrides global svg rule) */
.bg-gradient-to-br[class*="to-primary/60"] > svg,
.bg-gradient-to-br[class*="to-secondary/60"] > svg {
  color: #fff !important;
  stroke: #fff !important;
}

/* Step carousel number badges — white numbers on colored squares */
.step-number-badge span {
  color: #fff !important;
}

/* Pricing carousel level badges — white numbers on colored squares */
#pricing-carousel span.bg-gradient-to-br {
  color: #fff !important;
}

/* Step Card SVG Icons - MUST come before global rule to prevent inheritance issues */
/* These rules override the global SVG rule AND Tailwind's .text-white utility */
/* Using maximum specificity and explicit stroke colors (not currentColor) */
#steps-scroll-container .step-card ul li svg[class*="text-primary"],
#steps-scroll-container .step-card ul li svg.text-primary,
#steps-scroll-container .step-card svg[class*="text-primary"],
#steps-scroll-container .step-card svg.text-primary,
.step-card ul li svg[class*="text-primary"],
.step-card ul li svg.text-primary,
.step-card svg[class*="text-primary"],
.step-card svg.text-primary,
.steps-scroll-container .step-card ul li svg[class*="text-primary"],
.steps-scroll-container .step-card ul li svg.text-primary,
.steps-scroll-container .step-card svg[class*="text-primary"],
.steps-scroll-container .step-card svg.text-primary,
/* Override when .text-white is also present on the SVG */
#steps-scroll-container .step-card ul li svg.text-primary.text-white,
#steps-scroll-container .step-card ul li svg[class*="text-primary"].text-white,
#steps-scroll-container .step-card svg.text-primary.text-white,
#steps-scroll-container .step-card svg[class*="text-primary"].text-white,
.step-card ul li svg.text-primary.text-white,
.step-card ul li svg[class*="text-primary"].text-white,
.step-card svg.text-primary.text-white,
.step-card svg[class*="text-primary"].text-white,
.steps-scroll-container .step-card ul li svg.text-primary.text-white,
.steps-scroll-container .step-card ul li svg[class*="text-primary"].text-white,
.steps-scroll-container .step-card svg.text-primary.text-white,
.steps-scroll-container .step-card svg[class*="text-primary"].text-white {
  --tw-text-opacity: 1 !important;
  color: rgb(39 154 241 / var(--tw-text-opacity, 1)) !important;
  stroke: rgb(39 154 241) !important; /* Explicit stroke - NOT currentColor */
  fill: none !important;
}

#steps-scroll-container .step-card ul li svg[class*="text-secondary"],
#steps-scroll-container .step-card ul li svg.text-secondary,
#steps-scroll-container .step-card svg[class*="text-secondary"],
#steps-scroll-container .step-card svg.text-secondary,
.step-card ul li svg[class*="text-secondary"],
.step-card ul li svg.text-secondary,
.step-card svg[class*="text-secondary"],
.step-card svg.text-secondary,
.steps-scroll-container .step-card ul li svg[class*="text-secondary"],
.steps-scroll-container .step-card ul li svg.text-secondary,
.steps-scroll-container .step-card svg[class*="text-secondary"],
.steps-scroll-container .step-card svg.text-secondary,
/* Override when .text-white is also present on the SVG */
#steps-scroll-container .step-card ul li svg.text-secondary.text-white,
#steps-scroll-container .step-card ul li svg[class*="text-secondary"].text-white,
#steps-scroll-container .step-card svg.text-secondary.text-white,
#steps-scroll-container .step-card svg[class*="text-secondary"].text-white,
.step-card ul li svg.text-secondary.text-white,
.step-card ul li svg[class*="text-secondary"].text-white,
.step-card svg.text-secondary.text-white,
.step-card svg[class*="text-secondary"].text-white,
.steps-scroll-container .step-card ul li svg.text-secondary.text-white,
.steps-scroll-container .step-card ul li svg[class*="text-secondary"].text-white,
.steps-scroll-container .step-card svg.text-secondary.text-white,
.steps-scroll-container .step-card svg[class*="text-secondary"].text-white {
  --tw-text-opacity: 1 !important;
  color: rgb(53 87 113 / var(--tw-text-opacity, 1)) !important;
  stroke: rgb(53 87 113) !important; /* Explicit stroke - NOT currentColor */
  fill: none !important;
}

/* Floating badge icons - use colored versions (primary/secondary) instead of solid secondary */
.absolute.bg-white.rounded-full[class*="border-primary"] svg,
.absolute[class*="bg-white"][class*="rounded-full"][class*="border-primary"] svg {
  color: var(--primary) !important;
}

.absolute.bg-white.rounded-full[class*="border-secondary"] svg,
.absolute[class*="bg-white"][class*="rounded-full"][class*="border-secondary"] svg {
  color: var(--secondary) !important;
}

/* Custom hero gradient background - soft blue elliptical glow */
.hero-gradient-bg-override {
  border-radius: 50% !important;
  background: radial-gradient(
    ellipse at center,
    rgba(39, 154, 241, 0.72) 0%,
    rgba(39, 154, 241, 0.45) 42%,
    rgba(39, 154, 241, 0.18) 68%,
    rgba(39, 154, 241, 0) 100%
  ) !important;
  filter: blur(24px) !important;
}

.image-glow--secondary.hero-gradient-bg-override {
  background: radial-gradient(
    ellipse at center,
    rgba(53, 87, 113, 0.65) 0%,
    rgba(53, 87, 113, 0.38) 42%,
    rgba(53, 87, 113, 0.15) 68%,
    rgba(53, 87, 113, 0) 100%
  ) !important;
}

.image-glow--icon.hero-gradient-bg-override {
  filter: blur(16px) !important;
  background: radial-gradient(
    ellipse at center,
    rgba(39, 154, 241, 0.58) 0%,
    rgba(39, 154, 241, 0.32) 48%,
    rgba(39, 154, 241, 0) 100%
  ) !important;
}

.image-glow--icon.image-glow--secondary.hero-gradient-bg-override {
  background: radial-gradient(
    ellipse at center,
    rgba(53, 87, 113, 0.52) 0%,
    rgba(53, 87, 113, 0.28) 48%,
    rgba(53, 87, 113, 0) 100%
  ) !important;
}

/* Horizontal Scroll Steps Container */
/* Override section overflow-hidden for steps section */
section.py-20 .steps-container-wrapper {
  overflow: visible !important;
}

.steps-container-wrapper {
  position: relative;
  padding: 2rem 4rem;
  overflow: visible;
}

@media (max-width: 768px) {
  .steps-container-wrapper {
    padding: 2rem 1rem;
  }
}

.steps-scroll-container {
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 1rem 0 3rem 0;
  margin: 0 -1rem;
}

.steps-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.steps-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem 2rem 1rem;
}

@media (min-width: 768px) {
  .steps-track {
    gap: 2rem;
  }
}

.step-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}


@media (max-width: 767px) {
  .step-card {
    width: 100% !important;
    min-width: 100%;
  }
}

.steps-nav-btn {
  display: none;
}

@media (min-width: 768px) {
  .steps-nav-btn {
    display: flex;
  }
}

.steps-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.step-indicator {
  transition: all 0.3s ease;
}

.step-indicator.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* Feature Accordion Styles */
.feature-accordion {
  margin-top: 1rem;
}

.feature-accordion summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

.feature-accordion summary::-webkit-details-marker {
  display: none;
}

.feature-accordion summary::-moz-list-bullet {
  list-style: none;
}

.feature-accordion summary::marker {
  display: none;
}

.feature-accordion summary svg {
  transition: transform 0.3s ease;
}

.feature-accordion[open] summary svg {
  transform: rotate(180deg);
}

.feature-accordion > div {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced accordion animation */
.feature-accordion[open] summary {
  border-bottom: 1px solid rgba(39, 154, 241, 0.1);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

/* Additional Step Card SVG Rules - Target by parent border class for maximum coverage */
/* These rules target SVGs based on their parent card's border class, ensuring correct colors */
/* MUST have higher specificity than global SVG rule and Tailwind utilities */
section.py-20 .steps-scroll-container .step-card[class*="border-primary"] ul li svg,
section.py-20 .step-card[class*="border-primary"] ul li svg,
#steps-scroll-container .step-card[class*="border-primary"] ul li svg,
.step-card[class*="border-primary"] ul li svg,
section.py-20 .steps-scroll-container .step-card[class*="border-primary"] svg,
section.py-20 .step-card[class*="border-primary"] svg,
#steps-scroll-container .step-card[class*="border-primary"] svg,
.step-card[class*="border-primary"] svg {
  --tw-text-opacity: 1 !important;
  color: rgb(39 154 241 / var(--tw-text-opacity, 1)) !important;
  stroke: rgb(39 154 241) !important;
  fill: none !important;
}

section.py-20 .steps-scroll-container .step-card[class*="border-secondary"] ul li svg,
section.py-20 .step-card[class*="border-secondary"] ul li svg,
#steps-scroll-container .step-card[class*="border-secondary"] ul li svg,
.step-card[class*="border-secondary"] ul li svg,
section.py-20 .steps-scroll-container .step-card[class*="border-secondary"] svg,
section.py-20 .step-card[class*="border-secondary"] svg,
#steps-scroll-container .step-card[class*="border-secondary"] svg,
.step-card[class*="border-secondary"] svg {
  --tw-text-opacity: 1 !important;
  color: rgb(53 87 113 / var(--tw-text-opacity, 1)) !important;
  stroke: rgb(53 87 113) !important;
  fill: none !important;
}

/* Pricing Calculator Styles */
/* Custom Slider Styling */
.slider-custom {
  -webkit-appearance: none;
  appearance: none;
  background: var(--neutral-light);
  outline: none;
  transition: all 0.3s ease;
}

.slider-custom:hover {
  background: rgba(39, 154, 241, 0.1);
}

.slider-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(39, 154, 241, 0.3);
  transition: all 0.3s ease;
}

.slider-custom::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(39, 154, 241, 0.5);
  background: var(--secondary);
}

.slider-custom::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(39, 154, 241, 0.3);
  transition: all 0.3s ease;
}

.slider-custom::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(39, 154, 241, 0.5);
  background: var(--secondary);
}

.slider-custom::-moz-range-track {
  background: var(--neutral-light);
  height: 12px;
  border-radius: 9999px;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--neutral-light);
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(39, 154, 241, 0.2);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Pricing Card Animation */
.pricing-card.show-level {
  animation: levelChange 0.5s ease-out;
}

@keyframes levelChange {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scrolling-text {
  animation: scrollText 2s ease-in-out;
  animation-play-state: paused;
}

@keyframes scrollText {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments for calculator */
@media (max-width: 640px) {
  .slider-custom {
    height: 8px;
  }
  
  .slider-custom::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
  
  .slider-custom::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }
  
  .switch {
    width: 48px;
    height: 28px;
  }
  
  .slider:before {
    height: 20px;
    width: 20px;
  }
  
  input:checked + .slider:before {
    transform: translateX(20px);
  }
}

/* Pricing Tables Styles */
.pricing-table table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto !important;
  width: 100% !important;
  min-width: max-content !important;
}

.pricing-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-left: 2rem !important; /* px-8 = 2rem */
  padding-right: 2rem !important;
  padding-top: 1.25rem !important; /* py-5 = 1.25rem */
  padding-bottom: 1.25rem !important;
  text-align: left !important;
  vertical-align: top !important;
}

.pricing-table td {
  padding-left: 2rem !important; /* px-8 = 2rem - must match th */
  padding-right: 2rem !important;
  padding-top: 1.5rem !important; /* py-6 = 1.5rem */
  padding-bottom: 1.5rem !important;
  text-align: left !important;
  vertical-align: top !important;
}

/* Prevent number wrapping in table cells */
.pricing-table td.text-right {
  white-space: nowrap !important;
  min-width: fit-content !important;
  width: auto !important;
}

.pricing-table th.text-right {
  white-space: nowrap !important;
  min-width: fit-content !important;
  width: auto !important;
}

/* Ensure pricing table container allows proper sizing */
.pricing-table {
  min-width: max-content !important;
}

.pricing-table tbody tr {
  transition: all 0.2s ease;
}

.pricing-table tbody tr:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 0 0 var(--primary);
}

/* Ensure level badge numbers are visible */
.pricing-table tbody td span[class*="rounded-2xl"] {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

/* Pricing Header Centering - Comprehensive Fix */
/* Fix 1: Ensure container takes full width and removes all constraints */
.pricing-header-container {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

/* Fix 2: Content container - full width with proper centering */
.pricing-header-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2rem 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
}

/* Fix 3: Title container - centered with fit-content */
.pricing-header-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  margin: 0 auto !important;
  width: fit-content !important;
  max-width: 100% !important;
  text-align: center !important;
  padding: 0 !important;
}

/* Fix 4: Heading text - ensure centered */
.pricing-header-content h3 {
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Fix 5: Paragraph - centered */
.pricing-header-content p {
  text-align: center !important;
  margin: 0.75rem auto 0 auto !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0 !important;
  display: block !important;
}

/* Fix 6: Override any parent constraints */
.mb-12.slide-up.stagger-1 > div,
.mb-12.slide-up.stagger-1 > div > div.pricing-header-container,
div.pricing-header-container {
  width: 100% !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Fix 7: Compensate for parent container padding to achieve true centering */
.container.mx-auto.px-4 .max-w-7xl .pricing-header-container,
.container.mx-auto.px-4 .max-w-7xl > div > div.pricing-header-container {
  margin-left: calc(-1rem - 1px) !important; /* Negative margin to offset px-4 (1rem) */
  margin-right: calc(-1rem - 1px) !important;
  width: calc(100% + 2rem + 2px) !important; /* Extend beyond parent padding */
  position: relative !important;
}

/* Fix 8: Ensure header content is truly centered using grid */
.pricing-header-content {
  display: grid !important;
  place-items: center !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

/* Fix 9: Override any rounded corner clipping and overflow */
.rounded-3xl .pricing-header-container,
div[class*="rounded"] .pricing-header-container,
.pricing-header-container[class*="overflow"] {
  border-radius: 0 !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Fix 10: Force remove overflow-hidden class if present */
.pricing-header-container.overflow-hidden,
.pricing-header-container[class*="overflow-hidden"] {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
  .pricing-table {
    font-size: 0.875rem;
  }
  
  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .pricing-table th:first-child,
  .pricing-table td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 5;
  }
}

/* Pricing Carousel Styles */
#pricing-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
}

#pricing-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  padding: 1.5rem 0;
}

.pricing-card {
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

/* Navigation Buttons */
#pricing-carousel-prev,
#pricing-carousel-next {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#pricing-carousel-prev:hover,
#pricing-carousel-next:hover {
  opacity: 1;
}

#pricing-carousel-prev:disabled,
#pricing-carousel-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Indicator Dots */
.carousel-indicator {
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background-color: var(--primary) !important;
  transform: scale(1.2);
}

.carousel-indicator:hover {
  transform: scale(1.1);
}

/* Responsive Carousel */
@media (max-width: 768px) {
  #pricing-carousel-prev,
  #pricing-carousel-next {
    display: none;
  }
  
  #pricing-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  #pricing-carousel::-webkit-scrollbar {
    display: none;
  }
  
  #pricing-carousel-track {
    scroll-snap-type: x mandatory;
  }
  
  .pricing-card {
    scroll-snap-align: start;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pricing-card {
    min-width: 50% !important;
  }
}

@media (min-width: 1025px) {
  .pricing-card {
    min-width: 33.333% !important;
  }
}

/* Smooth scrolling for carousel */
#pricing-carousel-track {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Features Carousel Styles */
/* Allow overflow for carousel section and containers */
section.py-20[class*="from-primary/10"][class*="to-secondary/10"] {
  overflow: visible !important;
}

section.py-20[class*="from-primary/10"][class*="to-secondary/10"] .container,
section.py-20[class*="from-primary/10"][class*="to-secondary/10"] .max-w-7xl {
  overflow: visible !important;
}

#features-carousel {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 2rem 0;
}

#features-theme-toggle .features-theme-label {
  transition: color 0.2s ease, font-weight 0.2s ease;
  user-select: none;
}

#features-carousel .features-slide-img-dark {
  display: none;
}

#features-carousel.is-dark-mode .features-slide-img-light {
  display: none;
}

#features-carousel.is-dark-mode .features-slide-img-dark {
  display: block;
}

#features-carousel-track {
  position: relative;
  width: 100%;
  overflow-x: visible;
  overflow-y: visible;
  padding: 1rem 0 3rem 0;
  margin: 0 -4rem;
  width: calc(100% + 8rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

#features-carousel-track > .flex {
  padding: 0.5rem 4rem;
  overflow: visible;
  display: flex;
  align-items: center;
}

.features-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  flex-direction: column;
  min-height: 100%;
}

.features-slide > .relative {
  overflow: visible;
}

.features-nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 9999px;
  border: 2px solid var(--secondary);
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(53, 87, 113, 0.35), 0 4px 6px -4px rgba(53, 87, 113, 0.2);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.features-nav-btn svg {
  color: #fff !important;
  stroke: #fff !important;
}

.features-nav-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 20px 25px -5px rgba(39, 154, 241, 0.35), 0 8px 10px -6px rgba(39, 154, 241, 0.2);
  transform: scale(1.1);
}

.features-nav-btn:hover:not(:disabled) svg {
  color: #fff !important;
  stroke: #fff !important;
}

.features-nav-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

#features-carousel.is-dark-mode .features-nav-btn {
  background: #fff;
  border-color: transparent;
  color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

#features-carousel.is-dark-mode .features-nav-btn svg {
  color: var(--primary) !important;
  stroke: var(--primary) !important;
}

#features-carousel.is-dark-mode .features-nav-btn:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(39, 154, 241, 0.25);
  color: var(--primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

#features-carousel.is-dark-mode .features-nav-btn:hover:not(:disabled) svg {
  color: var(--primary) !important;
  stroke: var(--primary) !important;
}

@media (min-width: 768px) {
  .features-nav-btn {
    display: flex;
  }
}

.features-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Feature Indicator Dots */
.feature-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(39, 154, 241, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.feature-indicator:hover {
  transform: scale(1.2);
  background-color: rgba(39, 154, 241, 0.5);
}

.feature-indicator.active {
  background-color: var(--primary);
  transform: scale(1.3);
  width: 14px;
  height: 14px;
}

/* Floating Text Bubble Styles */
.feature-bubble {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  width: 90%;
  max-width: 600px;
  animation: bubbleFadeIn 0.3s ease-out;
  pointer-events: auto;
}

@keyframes bubbleFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.feature-bubble-content {
  background: white !important;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(39, 154, 241, 0.1);
  position: relative;
  border: 2px solid rgba(39, 154, 241, 0.2);
  z-index: 51;
}

/* Speech bubble arrow/pointer */
.feature-bubble-content::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid white;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.feature-bubble-content::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 13px solid rgba(39, 154, 241, 0.2);
}

/* Close button */
.feature-bubble-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(39, 154, 241, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--primary);
  z-index: 10;
}

.feature-bubble-close:hover {
  background: rgba(39, 154, 241, 0.2);
  transform: scale(1.1);
}

.feature-bubble-close:active {
  transform: scale(0.95);
}

/* Mobile adjustments for text bubble */
@media (max-width: 768px) {
  .feature-bubble {
    position: fixed;
    width: 95%;
    max-width: none;
    top: auto;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    max-height: 60vh;
    overflow-y: auto;
    pointer-events: auto;
  }

  .feature-bubble-content {
    padding: 1.5rem;
    max-height: 100%;
  }

  /* Arrow points up on mobile */
  .feature-bubble-content::before {
    bottom: auto;
    top: -12px;
    border-top: none;
    border-bottom: 12px solid white;
  }

  .feature-bubble-content::after {
    bottom: auto;
    top: -14px;
    border-top: none;
    border-bottom: 13px solid rgba(39, 154, 241, 0.2);
  }
}

/* Overlay when bubble is open */
.feature-bubble-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 25;
  animation: overlayFadeIn 0.3s ease-out;
  pointer-events: auto;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive carousel adjustments */
@media (max-width: 768px) {
  #features-carousel {
    padding: 1rem 0;
  }

  .features-slide {
    padding: 0 1rem;
  }

  .features-nav-btn {
    display: none;
  }
}

/* Ensure images are responsive */
#features-carousel img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none !important;
  outline: none !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Allow payroll re-imagined section image to overflow upward */
section[class*="from-neutral-light"][class*="to-primary/5"] .relative.slide-up {
  overflow: visible !important;
  margin-top: -2rem;
  padding-top: 2rem;
}

section[class*="from-neutral-light"][class*="to-primary/5"] .relative.slide-up > .relative {
  overflow: visible !important;
}

/* Sandbox Warning Modal */
.sandbox-warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: auto;
}

.sandbox-warning-overlay.active {
  opacity: 1;
}

.sandbox-warning-modal {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.3s ease-out;
}

.sandbox-warning-overlay.active .sandbox-warning-modal {
  transform: scale(1);
}

.sandbox-warning-content {
  padding: 1.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .sandbox-warning-content {
    padding: 1rem;
  }
  
  .sandbox-warning-modal {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .sandbox-warning-title {
    font-size: 1.25rem;
  }
}

/* Security notice modal */
body.security-notice-open {
  overflow: hidden;
}

.security-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.security-notice-overlay.is-active {
  opacity: 1;
}

.security-notice-modal {
  width: 100%;
  max-width: 32rem;
  max-height: min(90dvh, 36rem);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 2px solid rgba(39, 154, 241, 0.25);
  box-shadow:
    0 24px 60px -12px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(39, 154, 241, 0.08);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.security-notice-overlay.is-active .security-notice-modal {
  transform: translateY(0) scale(1);
}

.security-notice-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(39, 154, 241, 0.12);
  background: linear-gradient(135deg, rgba(39, 154, 241, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  flex-shrink: 0;
}

.security-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(39, 154, 241, 0.75) 100%);
  color: #fff;
  flex-shrink: 0;
}

.security-notice-title {
  flex: 1;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.25;
}

.security-notice-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.security-notice-close:hover {
  background: rgba(39, 154, 241, 0.1);
  color: var(--primary);
}

.security-notice-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

.security-notice-body p {
  margin: 0 0 0.85rem;
}

.security-notice-body p:last-child {
  margin-bottom: 0;
}

.security-notice-signoff {
  margin-top: 0.25rem !important;
  color: var(--secondary);
}

.security-notice-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(39, 154, 241, 0.12);
  background: rgba(248, 250, 252, 0.9);
}

.security-notice-btn {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--secondary);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.security-notice-btn:hover {
  background: var(--primary);
}

.security-notice-btn:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .security-notice-overlay {
    padding: 0.75rem;
  }

  .security-notice-modal {
    max-height: 92dvh;
    border-radius: 1rem;
  }

  .security-notice-title {
    font-size: 1.05rem;
  }

  .security-notice-body {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .security-notice-overlay,
  .security-notice-modal,
  .security-notice-btn {
    transition: none;
  }
}

.sandbox-warning-icon {
  margin: 0 auto 1.5rem;
  color: var(--primary);
}

.sandbox-warning-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-black);
  margin-bottom: 1rem;
}

.sandbox-warning-message {
  color: var(--neutral-medium);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.sandbox-warning-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.sandbox-warning-cancel,
.sandbox-warning-proceed {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid;
}

.sandbox-warning-cancel {
  background: transparent;
  color: var(--neutral-dark);
  border-color: var(--neutral-light);
}

.sandbox-warning-cancel:hover {
  background: var(--neutral-light);
  border-color: var(--neutral-medium);
}

.sandbox-warning-proceed {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sandbox-warning-proceed:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(39, 154, 241, 0.3);
}

/* Header CTA Backdrop */
body.header-cta-backdrop-active {
  overflow: hidden;
}

.header-cta-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}

.header-cta-backdrop.active {
  opacity: 1;
}

.header-cta-backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-cta-backdrop-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta-backdrop-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.header-cta-backdrop-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .sandbox-warning-content {
    padding: 1.5rem;
  }
  
  .sandbox-warning-title {
    font-size: 1.25rem;
  }
  
  .sandbox-warning-buttons {
    flex-direction: column;
  }
  
  .sandbox-warning-cancel,
  .sandbox-warning-proceed {
    width: 100%;
  }
}
