@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: #ffffff;
  overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.35), 0 0 80px rgba(37, 99, 235, 0.1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

/* ===== HERO ===== */
.hero-gradient {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
  background-size: 200% 200%;
  color: white;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-cta {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  animation: pulse-glow 2s infinite;
  font-size: 1.25rem;
  padding: 20px 48px;
}

.btn-cta:hover {
  box-shadow: 0 10px 50px rgba(37, 99, 235, 0.4);
}

/* ===== CARDS ===== */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
  border-color: #93c5fd;
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.1);
}

/* ===== PRICING CARD ===== */
.pricing-card {
  background: #ffffff;
  border: 2px solid #bfdbfe;
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #1d4ed8);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ===== NAV ===== */
.nav-blur {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.nav-blur.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* ===== WISTIA VIDEO ===== */
.video-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ===== STEPS ===== */
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #bfdbfe, transparent);
  margin-left: 27px;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #ffffff;
}

.faq-item:hover {
  border-color: #93c5fd;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: #f8fafc;
  transition: background 0.3s;
  user-select: none;
  color: #1e293b;
}

.faq-question:hover {
  background: #f0f7ff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: #64748b;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: #2563eb;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ===== GLASS (light) ===== */
.glass {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.glass-light {
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  animation: fadeInUp 0.4s ease-out;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

/* ===== FORM ===== */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-label {
  font-weight: 500;
  color: #475569;
  font-size: 0.875rem;
  margin-bottom: 6px;
  display: block;
}

/* ===== CALENDAR ===== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.875rem;
  cursor: default;
  transition: all 0.2s;
  color: #cbd5e1;
}

.calendar-day.available {
  cursor: pointer;
  color: #1e293b;
  background: #f0f7ff;
  border: 1px solid #dbeafe;
}

.calendar-day.available:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.calendar-day.selected {
  background: #2563eb !important;
  color: white !important;
  border-color: #1d4ed8 !important;
  font-weight: 700;
}

.slot-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  background: #f0f7ff;
  color: #1d4ed8;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.slot-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.slot-btn.selected {
  background: #2563eb;
  color: white;
  border-color: #1d4ed8;
}

/* ===== TRUST BADGES ===== */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.trust-badge svg {
  color: #16a34a;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .btn-cta {
    font-size: 1.1rem;
    padding: 16px 32px;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .pricing-card {
    padding: 2rem;
  }
}

/* ===== THEME TOGGLE BUTTON ===== */
#themeToggle {
  transition: all 0.3s ease;
}

#themeToggle:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   DARK THEME — body.dark overrides
   ========================================================================== */
body.dark {
  background: #0f172a;
  color: #e2e8f0;
}

/* --- Hero --- */
body.dark .hero-gradient {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* --- Nav --- */
body.dark .nav-blur {
  background: rgba(15, 23, 42, 0.85);
  border-bottom-color: #1e293b;
}

body.dark .nav-blur.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body.dark .nav-link {
  color: #94a3b8;
}

body.dark .nav-link:hover {
  color: #60a5fa;
}

/* --- Logo --- */
body.dark .group span.text-slate-800 {
  color: #f1f5f9;
}

body.dark .group:hover span.text-slate-800 {
  color: #60a5fa;
}

/* --- Toggle button --- */
body.dark #themeToggle {
  background: transparent;
}

body.dark #themeToggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Headings --- */
body.dark .text-slate-800 {
  color: #f1f5f9 !important;
}

/* --- Body text --- */
body.dark .text-slate-500 {
  color: #94a3b8 !important;
}

body.dark .text-slate-600 {
  color: #94a3b8 !important;
}

body.dark .text-slate-400 {
  color: #64748b !important;
}

/* --- Badges / Pills --- */
body.dark .bg-blue-50 {
  background: rgba(37, 99, 235, 0.15) !important;
}

body.dark .border-blue-200 {
  border-color: rgba(37, 99, 235, 0.3) !important;
}

body.dark .text-blue-600 {
  color: #60a5fa !important;
}

/* --- Cards --- */
body.dark .card {
  background: #1e293b;
  border-color: #334155;
}

body.dark .card:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

/* --- Pricing card --- */
body.dark .pricing-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* --- Green checks --- */
body.dark .text-green-600 {
  color: #4ade80 !important;
}

/* --- Section divider --- */
body.dark .section-divider {
  background: linear-gradient(90deg, transparent, #334155, transparent);
}

/* --- FAQ --- */
body.dark .faq-item {
  background: #1e293b;
  border-color: #334155;
}

body.dark .faq-item:hover {
  border-color: #3b82f6;
}

body.dark .faq-question {
  background: #1e293b;
  color: #f1f5f9;
}

body.dark .faq-question:hover {
  background: #334155;
}

body.dark .faq-answer {
  color: #94a3b8;
}

body.dark .faq-icon {
  color: #60a5fa;
}

body.dark .glass-light {
  background: #1e293b !important;
  border-color: #334155 !important;
}

/* --- Glass --- */
body.dark .glass {
  background: #1e293b;
  border-color: #334155;
}

/* --- Modal --- */
body.dark .modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

body.dark .modal-content {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

body.dark .modal-content button.bg-slate-100 {
  background: #334155;
}

body.dark .modal-content button.bg-slate-100:hover {
  background: #475569;
}

/* --- Form --- */
body.dark .form-input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

body.dark .form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body.dark .form-input::placeholder {
  color: #64748b;
}

body.dark .form-label {
  color: #94a3b8;
}

/* --- Calendar --- */
body.dark .calendar-day {
  color: #475569;
}

body.dark .calendar-day.available {
  color: #e2e8f0;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

body.dark .calendar-day.available:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #3b82f6;
}

body.dark .slot-btn {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

body.dark .slot-btn:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #3b82f6;
}

/* --- Step indicators --- */
body.dark .bg-slate-200 {
  background: #334155 !important;
}

/* --- Nav buttons (calendar) --- */
body.dark button.bg-slate-100 {
  background: #1e293b;
}

body.dark button.bg-slate-100:hover {
  background: #334155;
}

/* --- Summary borders --- */
body.dark .border-slate-200 {
  border-color: #334155 !important;
}

body.dark hr.border-slate-200 {
  border-color: #334155 !important;
}

/* --- Trust badge --- */
body.dark .trust-badge {
  color: #94a3b8;
}

body.dark .trust-badge svg {
  color: #4ade80;
}

/* --- Footer --- */
body.dark footer {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

body.dark footer .text-blue-600 {
  color: #60a5fa !important;
}

/* --- Video wrapper dark --- */
body.dark .video-wrapper {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark .from-slate-100 {
  --tw-gradient-from: #1e293b !important;
}

body.dark .to-slate-200 {
  --tw-gradient-to: #334155 !important;
}

/* --- Scrollbar --- */
body.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

body.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

body.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* --- Transition --- */
body,
.nav-blur,
.card,
.faq-item,
.faq-question,
.modal-content,
.form-input,
.glass,
.glass-light,
.pricing-card,
footer,
.hero-gradient,
.section-divider,
.trust-badge,
.video-wrapper,
#themeToggle {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}