/* ==============================================================================
 * Modern Landing Page Theme Override
 * Palette: Tech Emerald, Deep Slate & Teal
 * Font: Inter
 * ============================================================================== */

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

:root,
[data-bs-theme="light"] {
  --bs-primary: #059669 !important;
  --bs-primary-rgb: 5, 150, 105 !important;
  --bs-primary-text-emphasis: #064e3b !important;
  --bs-primary-bg-subtle: #ecfdf5 !important;
  --bs-primary-border-subtle: #a7f3d0 !important;

  --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  --bs-body-font-family: var(--bs-font-sans-serif) !important;
  --bs-body-bg: #ffffff !important;
  --bs-heading-color: #0f172a !important;
}

[data-bs-theme="dark"] {
  --bs-primary: #10b981 !important;
  --bs-primary-rgb: 16, 185, 129 !important;
  --bs-primary-text-emphasis: #6ee7b7 !important;
  --bs-primary-bg-subtle: rgba(16, 185, 129, 0.15) !important;

  --bs-body-bg: #0b1120 !important;
  --bs-heading-color: #f8fafc !important;
}

body {
  font-family: var(--bs-body-font-family) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--bs-body-font-family) !important;
  letter-spacing: -0.025em;
  color: var(--bs-heading-color);
}

.text-primary {
  color: var(--bs-primary) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.bg-label-primary {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
  font-weight: 600 !important;
}

.landing-hero {
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0) 70%) !important;
}

.hero-title {
  background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none !important;
}

/* Brand Logo Styling */
.brand-logo-container {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  text-decoration: none !important;
  vertical-align: middle !important;
}

svg.brand-logo-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.brand-name-text {
  font-family: var(--bs-body-font-family) !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.025em !important;
  color: var(--bs-heading-color) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

/* ==============================================================================
 * Full-Width Modern Header Navigation
 * ============================================================================== */
.landing-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1060 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.25s ease !important;
}

[data-bs-theme="dark"] .landing-header {
  background: rgba(15, 23, 42, 0.94) !important;
  border-bottom-color: rgba(51, 65, 85, 0.7) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3) !important;
}

.landing-navbar {
  padding: 0.8rem 0 !important;
  width: 100% !important;
}

/* Nav Menu Links in Full Header */
.landing-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.landing-nav-links .nav-item {
  list-style: none !important;
}

.landing-nav-link {
  font-family: var(--bs-body-font-family) !important;
  font-size: 0.925rem !important;
  font-weight: 500 !important;
  color: #475569 !important;
  padding: 0.45rem 1rem !important;
  border-radius: 9999px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
}

[data-bs-theme="dark"] .landing-nav-link {
  color: #94a3b8 !important;
}

.landing-nav-link:hover {
  color: #059669 !important;
  background-color: rgba(16, 185, 129, 0.08) !important;
}

.landing-nav-link.active {
  color: #059669 !important;
  background-color: rgba(16, 185, 129, 0.14) !important;
  font-weight: 600 !important;
}

[data-bs-theme="dark"] .landing-nav-link:hover {
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.12) !important;
}

[data-bs-theme="dark"] .landing-nav-link.active {
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.22) !important;
  font-weight: 600 !important;
}

/* Language and Theme Pill Buttons */
.landing-pill-btn {
  border-radius: 9999px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(248, 250, 252, 0.85) !important;
  color: #334155 !important;
  padding: 0.42rem 0.85rem !important;
  font-weight: 600 !important;
  font-size: 0.825rem !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease !important;
}

[data-bs-theme="dark"] .landing-pill-btn {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(51, 65, 85, 0.75) !important;
  color: #e2e8f0 !important;
}

.landing-pill-btn:hover {
  background: #ffffff !important;
  border-color: #059669 !important;
  color: #059669 !important;
}

[data-bs-theme="dark"] .landing-pill-btn:hover {
  background: #1e293b !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.landing-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(248, 250, 252, 0.85) !important;
  color: #475569 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
}

[data-bs-theme="dark"] .landing-icon-btn {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(51, 65, 85, 0.75) !important;
  color: #94a3b8 !important;
}

.landing-icon-btn:hover {
  background: #ffffff !important;
  border-color: #059669 !important;
  color: #059669 !important;
  transform: rotate(15deg);
}

[data-bs-theme="dark"] .landing-icon-btn:hover {
  background: #1e293b !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
}

/* Primary Call to Action Button */
.btn-landing-cta {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 0.48rem 1.25rem !important;
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.btn-landing-cta:hover,
.btn-landing-cta:focus {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.48) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Landing Hero Section Padding Alignment */
.landing-hero {
  padding-block-start: 7.5rem !important;
}

/* Mobile responsive menu */
@media (max-width: 991.98px) {
  .landing-nav-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    margin-top: 0.75rem !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
  }
  [data-bs-theme="dark"] .landing-nav-menu {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
  }
  .landing-nav-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0.25rem !important;
  }
  .landing-nav-link {
    width: 100% !important;
    padding: 0.6rem 1rem !important;
    border-radius: 0.5rem !important;
  }
}
/* Hero Dashboard Showcase (Clean flat layout with subtle floating animation, no 3D tilt) */
.landing-hero .hero-animation-img {
  perspective: none !important;
  transform-style: flat !important;
}

.landing-hero .hero-animation-img .hero-dashboard-img {
  inline-size: 88% !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
  filter: drop-shadow(0 25px 45px rgba(2, 44, 34, 0.14));
  transform-style: flat !important;
}

/* ========================================================
   LANDING PAGE LAYOUT & TEXT ANIMATIONS
   ======================================================== */

/* Keyframe Definitions */
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPopIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroDashboardEntrance {
  0% {
    opacity: 0;
    transform: translateY(45px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroFloatBreathing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-5px) translateX(-3px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
}

/* Hero Section Entrance Animations */
.animate-hero-title {
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.12s;
}

.animate-hero-subtitle {
  animation: heroFadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.28s;
}

.animate-hero-btn {
  animation: heroPopIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.42s;
}

.animate-doodle-arrow {
  animation: heroFadeInUp 0.85s ease both 0.5s, arrowBounce 3.2s ease-in-out infinite 1.35s;
}

.animate-hero-showcase {
  animation: heroDashboardEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
}

.animate-hero-showcase .hero-dashboard-img {
  animation: heroFloatBreathing 6s ease-in-out infinite;
  animation-delay: 1.6s;
  will-change: transform;
}

/* Scroll-Triggered Layout Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.animate-fade-left {
  transform: translateX(-40px);
}

.animate-on-scroll.animate-fade-right {
  transform: translateX(40px);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

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

/* Interactive Feature Box Cards */
.features-icon-box {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 1.25rem !important;
  padding: 2.5rem 1.75rem !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  position: relative !important;
}

.features-icon-box:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(5, 150, 105, 0.35) !important;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(5, 150, 105, 0.2) !important;
}

.features-icon-box .features-icon-svg-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 1.25rem !important;
  background: rgba(5, 150, 105, 0.08) !important;
  margin-bottom: 1.5rem !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease !important;
}

.features-icon-box:hover .features-icon-svg-wrapper {
  transform: scale(1.08) translateY(-2px) !important;
  background: rgba(5, 150, 105, 0.14) !important;
}

.features-icon-box svg {
  width: 44px !important;
  height: 44px !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease !important;
}

.features-icon-box:hover svg {
  transform: scale(1.08) translateY(-1px) !important;
}

.features-icon-box h5 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0.75rem !important;
}

.features-icon-box .features-icon-description {
  color: #64748b !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
}

/* Dark Mode Support for Feature Boxes */
[data-bs-theme="dark"] .features-icon-box,
.dark-style .features-icon-box {
  background: #1e293b !important;
  border-color: rgba(51, 65, 85, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .features-icon-box:hover,
.dark-style .features-icon-box:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(16, 185, 129, 0.25) !important;
}

[data-bs-theme="dark"] .features-icon-box .features-icon-svg-wrapper,
.dark-style .features-icon-box .features-icon-svg-wrapper {
  background: rgba(16, 185, 129, 0.12) !important;
}

[data-bs-theme="dark"] .features-icon-box:hover .features-icon-svg-wrapper,
.dark-style .features-icon-box:hover .features-icon-svg-wrapper {
  background: rgba(16, 185, 129, 0.22) !important;
}

[data-bs-theme="dark"] .features-icon-box h5,
.dark-style .features-icon-box h5 {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .features-icon-box .features-icon-description,
.dark-style .features-icon-box .features-icon-description {
  color: #94a3b8 !important;
}

/* Pricing Card Animation & Hover */
.pricing-card-animated {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  border-radius: 1rem !important;
}

.pricing-card-animated:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12) !important;
}

.pricing-card-animated.is-recommended {
  border-color: rgba(16, 185, 129, 0.5) !important;
}

.pricing-card-animated.is-recommended:hover {
  border-color: #10b981 !important;
  box-shadow: 0 22px 45px rgba(16, 185, 129, 0.2) !important;
}

/* CTA Section Elements */
.btn-cta-animated {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.btn-cta-animated:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4) !important;
}

.cta-dashboard-img-animated {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1rem;
}

.cta-dashboard-img-animated:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Contact Us Cards */
.contact-card-animated {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  border-radius: 1rem !important;
}

.contact-card-animated:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.contact-form-card-animated {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  border-radius: 1rem !important;
}

.contact-form-card-animated:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* Form input focus animation */
.contact-form-card-animated .form-control {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.contact-form-card-animated .form-control:focus {
  transform: translateY(-1px);
}

/* Accessibility: Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .animate-hero-title,
  .animate-hero-subtitle,
  .animate-hero-btn,
  .animate-doodle-arrow,
  .animate-hero-showcase,
  .animate-hero-showcase .hero-dashboard-img,
  .animate-on-scroll,
  .features-icon-box,
  .pricing-card-animated,
  .btn-cta-animated,
  .cta-dashboard-img-animated,
  .contact-card-animated,
  .contact-form-card-animated {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Icon fallback alias */
.tabler-login {
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M9 8V6a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2'/%3E%3Cpath d='M3 12h13l-3-3m0 6l3-3'/%3E%3C/g%3E%3C/svg%3E") !important;
}



/* Footer Legal Links */
.footer-legal-links .footer-link {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}

.footer-legal-links .footer-link:hover {
  color: #10b981 !important;
  text-decoration: underline !important;
  transform: translateY(-1px) !important;
}

[data-bs-theme="dark"] .footer-legal-links .footer-link {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .footer-legal-links .footer-link:hover {
  color: #34d399 !important;
}

/* Policy & Legal Pages Styling */
.policy-page-wrapper {
  padding-top: 5rem;
  padding-bottom: 5rem;
  min-height: 80vh;
}

.policy-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 1.25rem !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

[data-bs-theme="dark"] .policy-card,
.dark-style .policy-card {
  background: #1e293b !important;
  border-color: rgba(51, 65, 85, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35) !important;
}

.policy-toc-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 1.25rem !important;
  position: sticky;
  top: 100px;
}

[data-bs-theme="dark"] .policy-toc-card,
.dark-style .policy-toc-card {
  background: #1e293b !important;
  border-color: rgba(51, 65, 85, 0.8) !important;
}

.policy-toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #64748b !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.policy-toc-link:hover {
  color: #059669 !important;
  background-color: rgba(5, 150, 105, 0.08);
  transform: translateX(3px);
}

[data-bs-theme="dark"] .policy-toc-link {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .policy-toc-link:hover {
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.12);
}

.policy-section-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(5, 150, 105, 0.12);
  color: #059669;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

[data-bs-theme="dark"] .policy-section-badge {
  background-color: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.policy-content p, .policy-content li {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.75;
}

[data-bs-theme="dark"] .policy-content p,
[data-bs-theme="dark"] .policy-content li {
  color: #cbd5e1;
}

.policy-content h4, .policy-content h5 {
  color: #0f172a;
}

[data-bs-theme="dark"] .policy-content h4,
[data-bs-theme="dark"] .policy-content h5 {
  color: #f8fafc;
}