:root {
  --font-head: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Colors */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --amber-400: #fbbf24;

  /* Custom colors */
  --bg-gradient: linear-gradient(to right, var(--indigo-600), var(--cyan-400));
}

/* Base styles */
body {
  font-family: var(--font-body);
  color: var(--slate-900);
  scroll-behavior: smooth;
  padding-top: 70px;
  /* Add padding to account for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-head {
  font-family: var(--font-head);
  font-weight: 700;
}

/* Utility classes */
.bg-gradient-to-r {
  background: var(--bg-gradient);
}

.from-indigo-600 {
  --gradient-from: var(--indigo-600);
}

.to-cyan-400 {
  --gradient-to: var(--cyan-400);
}

.text-slate-900 {
  color: var(--slate-900);
}

.text-slate-700 {
  color: var(--slate-700);
}

.text-slate-600 {
  color: var(--slate-600);
}

.text-slate-500 {
  color: var(--slate-500);
}

.text-indigo-600 {
  color: var(--indigo-600);
}

.text-indigo-700 {
  color: var(--indigo-700);
}

.text-green-600 {
  color: var(--green-600);
}

.text-amber {
  color: var(--amber-400);
}

.bg-slate-50 {
  background-color: var(--slate-50);
}

.bg-slate-100 {
  background-color: var(--slate-100);
}

.bg-indigo {
  background-color: var(--indigo-500);
}

.bg-cyan {
  background-color: var(--cyan-400);
}

.bg-green {
  background-color: var(--green-500);
}

.bg-slate {
  background-color: var(--slate-100);
}

.border-slate-100 {
  border-color: var(--slate-100);
}

.border-slate-200 {
  border-color: var(--slate-200);
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-3 {
  border-radius: 0.5rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.opacity-20 {
  opacity: 0.2;
}

.blur-3xl {
  filter: blur(60px);
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.fs-7 {
  font-size: 0.875rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.h-10 {
  height: 3.0rem;
}

.w-10 {
  width: 3.5rem;
}

.h-40 {
  height: 10rem;
}

.w-40 {
  width: 10rem;
}

.h-64 {
  height: 16rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.cursor-pointer {
  cursor: pointer;
}

.hover\:text-slate-900:hover {
  color: var(--slate-900);
}

.hover\:text-slate-700:hover {
  color: var(--slate-700);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn:focus {
  outline: 2px solid var(--indigo-500);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--bg-gradient);
  color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--indigo-500), var(--cyan-300));
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  background: white;
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
}

.btn-outline-primary:hover {
  border-color: var(--indigo-200);
  background: var(--indigo-50);
}

.btn-indigo {
  background: var(--bg-gradient);
  color: white !important;
}

.btn-outline-indigo {
  background: var(--slate-100);
  color: var(--slate-700);
}

.btn-outline-indigo:hover {
  background: var(--slate-200);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.bg-indigo {
  background-color: var(--indigo-500);
  color: white;
}

.badge.bg-cyan {
  background-color: var(--cyan-400);
  color: white;
}

.badge.bg-green {
  background-color: var(--green-500);
  color: white;
}

.badge.bg-slate {
  background-color: var(--slate-100);
  color: var(--slate-700);
}

/* Cards */
.card {
  border-radius: 1rem;
  border: 1px solid var(--slate-100);
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Chat Widget */
.chat-widget {
  border-radius: 1rem;
  border: 1px solid var(--slate-100);
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.chat-messages {
  max-height: 16rem;
  overflow-y: auto;
}

/* Mobile responsive chat widget */
@media (max-width: 767.98px) {
  .chat-messages {
    max-height: 12rem;
  }

  .message-bubble {
    max-width: 100%;
  }

  .fs-7 {
    font-size: 0.75rem;
  }
}

/* Audience selector responsive improvements */
@media (max-width: 767.98px) {
  .audience-selector {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  .audience-selector>span {
    align-self: flex-start;
  }
}

.message-bubble {
  max-width: 14rem;
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Section titles */
.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

/* Animations */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* Backdrop blur */
.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Enhanced header styling with more pronounced blurred transparency */
header.sticky-top {
  background-color: rgba(255, 255, 255, 0) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Additional enhancement for better visual effect on scroll */
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  header.sticky-top {
    background-color: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.bg-opacity-80 {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .py-7 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .display-5 {
    font-size: 3rem;
  }

  .display-6 {
    font-size: 2.25rem;
  }
}

@media (max-width: 767px) {
  .order-2 {
    order: 2;
  }

  .order-1 {
    order: 1;
  }
}

/* Form controls */
.form-control {
  border-radius: 9999px;
  border: 1px solid var(--slate-200);
  padding: 0.5rem 1rem;
}

.form-control:focus {
  outline: 2px solid var(--indigo-500);
  outline-offset: 2px;
  border-color: var(--indigo-300);
}

/* Position utilities */
.start-50 {
  left: 50%;
}

.translate-middle {
  transform: translateX(-50%) translateY(-50%);
}

.top-0 {
  top: 0;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

/* Modal adjustments */
.modal-content {
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Sign In Modal */
#signInModal .btn-light {
  background-color: #f8f9fa;
  border-color: #e2e8f0;
}

#signInModal .btn-light:hover {
  background-color: #e2e8f0;
}

#signInModal .form-label {
  font-weight: 500;
  color: #64748b;
}

#signInModal .form-control {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
}

#signInModal .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#signInModal .form-check-label {
  color: #64748b;
}

#signInModal .fs-7 {
  font-size: 0.875rem;
}

/* Create Account Modal */
#createAccountModal .btn-light {
  background-color: #f8f9fa;
  border-color: #e2e8f0;
}

#createAccountModal .btn-light:hover {
  background-color: #e2e8f0;
}

#createAccountModal .form-label {
  font-weight: 500;
  color: #64748b;
}

#createAccountModal .form-control {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
}

#createAccountModal .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#createAccountModal .form-check-label {
  color: #64748b;
}

#createAccountModal .fs-7 {
  font-size: 0.875rem;
}

/* Custom scrollbar for chat */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--slate-50);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

/* Pricing Section Alignment */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-card .feature-list {
  flex: 1;
}

.pricing-card .price-amount {
  min-height: 2.5rem;
  display: flex;
  align-items: flex-end;
}

.pricing-card .btn {
  margin-top: auto;
}

/* Improved Pricing Section Responsiveness */
.pricing-tiers {
  margin: 0 -10px;
}

.pricing-tier {
  padding: 0 10px;
}

.pricing-tier .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-tier .card .list-unstyled {
  flex: 1;
}

.pricing-tier .card .btn {
  margin-top: auto;
}

@media (min-width: 992px) and (max-width: 1200px) {
  .pricing-tier .display-5 {
    font-size: 1.75rem;
  }

  .pricing-tier .fs-4 {
    font-size: 1.25rem;
  }

  .pricing-tier .fs-6 {
    font-size: 0.875rem;
  }

  .pricing-tier .card {
    padding: 1.25rem;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
  .pricing-tier .display-5 {
    font-size: 2rem;
  }
}

@media (min-width: 1400px) {
  .pricing-tier .display-5 {
    font-size: 2.5rem;
  }
}

/* Background clip text */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  color: transparent;
}

/* Ensure sticky header works properly */
.sticky-top {
  position: fixed !important;
  top: 0;
  width: 100%;
}

/* Custom colors */
.bg-amber {
  background-color: #f59e0b;
}

/* Mobile menu styling */
.offcanvas {
  border-left: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.offcanvas.offcanvas-end {
  background-color: rgb(255, 255, 255) !important;
}

/* Enhancement for better visual effect on offcanvas - following project specifications */
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .offcanvas {
    background-color: rgba(255, 255, 255, 0.75) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
  }

  .offcanvas.offcanvas-end {
    background-color: rgb(255, 255, 255) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
  }
}

.offcanvas-header {
  border-bottom: 1px solid #e2e8f0;
}

.offcanvas-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: #0f172a;
}

/* Responsive adjustments for logo */
@media (max-width: 767.98px) {
  .h-10 {
    height: 2.5rem;
    /* 40px */
  }

  .w-14 {
    width: 9.5rem;
    /* 56px */
  }
}

/* Ensure proper spacing on mobile */
@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* Tablet and mobile header adjustments */
@media (max-width: 991.98px) {
  body {
    padding-top: 70px;
    /* Ensure proper spacing for fixed header */
  }

  .offcanvas {
    max-width: 300px;
    height: 100vh;
  }
}

/* CSS Grid support */
.grid {
  display: grid;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

/* Additional responsive breakpoints */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .sm\:text-5xl {
    font-size: 3rem !important;
  }

  .sm\:py-24 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .md\:py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .md\:flex {
    display: flex !important;
  }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 767.98px) {
  .grid {
    display: block !important;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .lg\:order-1 {
    order: 1 !important;
  }

  .lg\:order-2 {
    order: 2 !important;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .xxl\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Audio Player Styles */
.audio-player-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--slate-50);
}

.audio-player-container:hover {
  border-color: var(--indigo-300) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-2px);
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-100);
  transition: all 0.2s ease;
}

.hover-scale:hover {
  transform: scale(1.1);
  background-color: var(--indigo-50) !important;
}

.play-pulse-container {
  width: 24px;
  height: 24px;
}

.play-pulse-container .pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--indigo-400);
  opacity: 0;
  pointer-events: none;
}

.playing .play-pulse-container .pulse-ring {
  animation: audio-pulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.playing .fa-volume-up {
  color: var(--indigo-600) !important;
  animation: volume-bounce 1s ease infinite;
}

@keyframes audio-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes volume-bounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}