/* ============================================
   AI Built By You - Marketing Website
   Custom styles beyond Tailwind
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-bg: #050505;
  --color-surface: #0f0f0f;
  --color-surface-2: #1a1a1a;
  --color-border: #2a2a2a;
  --color-text: #f0f0f0;
  --color-text-muted: #888888;
  --color-accent-cyan: #06b6d4;
  --color-accent-blue: #3b82f6;
  --color-accent-amber: #f59e0b;
  --color-accent-orange: #f97316;
  --gradient-primary: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-cta: linear-gradient(135deg, #f59e0b, #f97316);
  --gradient-hero: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
}

/* ---------- Base Overrides ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(6, 182, 212, 0.3);
  color: #fff;
}

/* Better focus outlines for accessibility */
:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Global link improvements */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  text-decoration: none;
}

/* Footer link styles */
footer a:not(.btn-primary):not(.btn-cta):not(.btn-outline) {
  position: relative;
}

footer a:not(.btn-primary):not(.btn-cta):not(.btn-outline):hover {
  color: #fff !important;
}

/* LinkedIn icon hover effect */
footer a[aria-label="LinkedIn"]:hover svg {
  transform: translateY(-2px);
  opacity: 0.8;
}

footer a[aria-label="LinkedIn"] svg {
  transition: all 0.25s ease;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.gradient-text-cta {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  font-weight: 900;
}

/* ---------- Glass Morphism ---------- */
.glass {
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.glass-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 24px 72px rgba(6, 182, 212, 0.12), 0 8px 24px rgba(0, 0, 0, 0.4);
  background: rgba(26, 26, 26, 0.7);
}

/* ---------- Hero Background ---------- */
.hero-bg {
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.07) 0%, transparent 40%),
              radial-gradient(circle at 20% 70%, rgba(167, 139, 250, 0.05) 0%, transparent 45%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, -1%) scale(1.02); }
  100% { transform: translate(1%, 2%) scale(0.98); }
}

/* ---------- Grid Pattern Overlay ---------- */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ---------- Terminal Animation ---------- */
.terminal {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.08);
  transition: all 0.35s ease;
}

.terminal:hover {
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(6, 182, 212, 0.15);
  transform: translateY(-4px);
}

.terminal-header {
  background: #1a1a1a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2a2a2a;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.terminal:hover .terminal-dot-red {
  box-shadow: 0 0 8px #ff5f57;
}

.terminal:hover .terminal-dot-yellow {
  box-shadow: 0 0 8px #ffbd2e;
}

.terminal:hover .terminal-dot-green {
  box-shadow: 0 0 8px #28ca41;
}

.terminal-dot-red { background: #ff5f57; }
.terminal-dot-yellow { background: #ffbd2e; }
.terminal-dot-green { background: #28ca41; }

.terminal-body {
  padding: 24px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 260px;
}

.terminal-line {
  opacity: 0;
  transform: translateY(4px);
}

.terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.terminal-prompt {
  color: #06b6d4;
}

.terminal-command {
  color: #f0f0f0;
}

.terminal-output {
  color: #28ca41;
}

.terminal-comment {
  color: #555;
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #06b6d4;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ---------- Counter Animation ---------- */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ---------- CTA Buttons ---------- */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(6, 182, 212, 0.35), 0 4px 16px rgba(6, 182, 212, 0.15);
}

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
}

.btn-cta {
  background: var(--gradient-cta);
  color: #0a0a0a;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 10px;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 56px rgba(249, 115, 22, 0.4), 0 6px 24px rgba(245, 158, 11, 0.25);
}

.btn-cta:hover::after {
  opacity: 1;
}

.btn-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.35);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #f0f0f0;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 182, 212, 0.08);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-outline:hover {
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

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

.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.1);
}

/* ---------- Ghost Button ---------- */
.btn-ghost {
  color: #999;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 10px;
  transition: all 0.25s ease;
  background: transparent;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost:hover {
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost svg {
  transition: transform 0.2s ease;
}

.btn-ghost:hover svg {
  transform: translateX(2px);
}

/* ---------- Section Divider ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* ---------- Glow Effects ---------- */
.glow-cyan {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

.glow-text {
  text-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

/* ---------- Floating Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #06b6d4;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* ---------- Comparison Table ---------- */
.comparison-old {
  background: rgba(239, 68, 68, 0.05);
  border: 1.5px solid rgba(239, 68, 68, 0.2);
  transition: all 0.35s ease;
}

.comparison-old:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.comparison-new {
  background: rgba(6, 182, 212, 0.06);
  border: 1.5px solid rgba(6, 182, 212, 0.2);
  transition: all 0.35s ease;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.08);
}

.comparison-new:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 12px 48px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(6, 182, 212, 0.14), 0 12px 32px rgba(0, 0, 0, 0.5);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -12px;
  left: 18px;
  font-size: 100px;
  font-family: Georgia, serif;
  color: rgba(6, 182, 212, 0.12);
  line-height: 1;
  transition: color 0.35s ease;
  pointer-events: none;
}

.testimonial-card:hover::before {
  color: rgba(6, 182, 212, 0.22);
}

/* Accent glow bar at the top of testimonial cards */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.testimonial-card:hover::after {
  opacity: 1;
}

/* Stat text items in the stats bar (non-counter) */
.stat-text {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Intro price strikethrough display */
.price-original {
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.5);
  text-decoration-thickness: 2px;
  color: #6b7280;
  font-weight: 700;
}

.price-intro {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Intro badge for Build Weekend */
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Service card hover (about page, resources page) */
.service-link-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-link-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1);
}

/* ---------- Nav Active State ---------- */
.nav-link {
  position: relative;
  color: #999;
  transition: color 0.2s ease;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: #f0f0f0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .terminal-body {
    font-size: 11px;
    padding: 16px;
  }

  .hero-headline {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }

  .btn-primary,
  .btn-cta,
  .btn-outline {
    padding: 12px 24px;
    font-size: 15px;
  }

  .glass-card {
    padding: 1.5rem !important;
  }

  .nav-link {
    font-size: 15px !important;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem !important;
  }

  .badge {
    font-size: 11px;
    padding: 5px 12px;
  }
}

/* ---------- Smooth Page Transitions ---------- */
.page-enter {
  animation: pageEnter 0.6s ease forwards;
}

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

/* ---------- Email Input Styling ---------- */
.email-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px 20px;
  color: #f0f0f0;
  font-size: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.email-input:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12), 0 4px 16px rgba(6, 182, 212, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.email-input::placeholder {
  color: #666;
  font-weight: 400;
}

/* ---------- Pricing Card Highlight ---------- */
.pricing-highlight {
  position: relative;
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.15);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.15), 0 0 100px rgba(6, 182, 212, 0.05);
  }
  50% {
    box-shadow: 0 0 80px rgba(6, 182, 212, 0.25), 0 0 120px rgba(6, 182, 212, 0.1);
  }
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 17px;
  padding: 1.5px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ---------- Process Step Connector ---------- */
.step-connector {
  position: absolute;
  top: 50%;
  right: -40px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.3), transparent);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 300px;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

/* ---------- Mobile Hamburger Menu ---------- */
#mobile-nav-toggle {
  cursor: pointer;
  transition: all 0.2s ease;
}

#mobile-nav-toggle:hover {
  opacity: 0.8;
}

#mobile-menu {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

#mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

#mobile-menu a:hover {
  transform: translateX(4px);
}

/* ---------- Hamburger → X animation ---------- */
.hamburger-bar {
  display: block;
  transform-origin: center;
}

#mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Comparison Table Polish ---------- */
.comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Section heading accent line ---------- */
.section-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-badge-row::before,
.section-badge-row::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3));
}

.section-badge-row::after {
  background: linear-gradient(270deg, transparent, rgba(6, 182, 212, 0.3));
}

/* ---------- Timeline chapter connector ---------- */
.timeline-chapter {
  position: relative;
}

.timeline-chapter:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: -40px;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

/* ---------- Proof card (about page) ---------- */
.proof-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.proof-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ---------- Responsive: Table on mobile ---------- */
@media (max-width: 640px) {
  .comparison-table th,
  .comparison-table td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 12px;
  }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.active {
    opacity: 1;
    transform: none;
  }

  .terminal-line {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Rotating Hero Text ---------- */
.rotating-text-wrapper {
  display: block;
  line-height: 1.1;
}

.rotating-text {
  display: inline-block;
  background: linear-gradient(to right, var(--color-accent-amber), var(--color-accent-orange), var(--color-accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.rotating-text.fade-out {
  opacity: 0;
  transform: translateY(12px);
}

.rotating-text.fade-in {
  opacity: 0;
  transform: translateY(-12px);
}

/* ---------- Testimonial Carousel ---------- */
.testimonial-carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 0 0 60px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

@media (min-width: 768px) {
  .carousel-prev { left: -8px; }
  .carousel-next { right: -8px; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-dot.active {
  background: var(--color-accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
  width: 28px;
  border-radius: 5px;
}

/* ---------- How It Works Timeline ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(6, 182, 212, 0.4) 0%,
    rgba(59, 130, 246, 0.4) 33%,
    rgba(139, 92, 246, 0.4) 66%,
    rgba(245, 158, 11, 0.4) 100%
  );
}

.timeline-step {
  position: relative;
  padding-left: 72px;
  padding-bottom: 48px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  z-index: 2;
  border: 2px solid transparent;
  transition: all 0.35s ease;
}

.timeline-step-dot.dot-cyan {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #06b6d4;
}

.timeline-step-dot.dot-blue {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.timeline-step-dot.dot-purple {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #8b5cf6;
}

.timeline-step-dot.dot-amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.timeline-step:hover .timeline-step-dot {
  transform: scale(1.15);
  box-shadow: 0 0 20px currentColor;
}

.timeline-step-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-step-content p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .timeline::before {
    left: 24px;
  }

  .timeline-step {
    padding-left: 72px;
  }

  .timeline-step-dot {
    left: 10px;
  }
}

/* ---------- Wavy Stats Section ---------- */
.wavy-stats-section {
  position: relative;
  margin-top: -80px;
  padding: 0;
  overflow: hidden;
  z-index: 5;
}

@media (min-width: 768px) {
  .wavy-stats-section {
    margin-top: -120px;
  }
}

.wavy-stats-wave {
  display: block;
  width: 100%;
  line-height: 0;
}

.wavy-stats-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}

@media (min-width: 768px) {
  .wavy-stats-wave svg {
    height: 140px;
  }
}

.wavy-stats-wave-top {
  margin-bottom: -1px;
}

.wavy-stats-wave-bottom {
  margin-top: -1px;
}

.wavy-stats-content {
  background: linear-gradient(135deg, #0a1628 0%, #0c1a2e 50%, #0a1628 100%);
  padding: 48px 0;
  position: relative;
}

.wavy-stats-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.wavy-stat {
  position: relative;
  padding: 16px 0;
}

.wavy-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wavy-stat-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.wavy-stat:hover .wavy-stat-glow {
  opacity: 0.4;
}

.wavy-stat-glow-cyan { background: #06b6d4; }
.wavy-stat-glow-blue { background: #3b82f6; }
.wavy-stat-glow-purple { background: #8b5cf6; }
.wavy-stat-glow-amber { background: #f59e0b; }

/* Separators between stats on desktop */
@media (min-width: 768px) {
  .wavy-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  }
}

/* ---------- Skip to main content (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: #06b6d4;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Checkout Pages (Dedicated /checkout/* pages) ---------- */

/* Back navigation link */
.checkout-back-link {
  color: #555;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.checkout-back-link:hover {
  color: #ccc;
}

.checkout-back-arrow {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-back-link:hover .checkout-back-arrow {
  transform: translateX(-3px);
}

/* Guarantee card */
.checkout-guarantee-card {
  background: rgba(22, 163, 74, 0.05);
  border: 1px solid rgba(22, 163, 74, 0.15);
  transition: border-color 0.25s ease;
}

.checkout-guarantee-card:hover {
  border-color: rgba(22, 163, 74, 0.25);
}

.checkout-guarantee-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Testimonial card in checkout sidebar */
.checkout-testimonial-card {
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease;
}

.checkout-testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Stripe checkout wrapper — gives the white card an intentional dark frame */
.checkout-stripe-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(6, 182, 212, 0.04);
  transition: box-shadow 0.4s ease;
}

.checkout-stripe-wrapper:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(6, 182, 212, 0.07);
}

/* Dark header bar above the white Stripe card */
.checkout-stripe-header {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* White card area that holds the Stripe iframe */
.checkout-stripe-card {
  /* bg-white is applied via Tailwind on the element */
  min-height: 400px;
}

/* Loading state inside the white card */
.checkout-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: 400px;
}

/* Trust line beneath Stripe card */
.checkout-trust-line {
  font-size: 11px;
  color: #444;
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.01em;
}

/* Spinner override for dark loading text in the white card */
.checkout-spinner-dark {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(0, 0, 0, 0.08);
  border-top-color: #9ca3af;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto;
}

/* ---------- Success Page ---------- */

/* Outer ring animation wrapper */
.checkout-success-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulsing halo rings */
.checkout-success-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 182, 212, 0.25);
  animation: successRingPulse 2.5s ease-out infinite;
}

.checkout-success-ring-2 {
  animation-delay: 0.8s;
}

@keyframes successRingPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Inner circle */
.checkout-success-icon-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: successIconEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successIconEnter {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Booking summary card on success page */
.checkout-success-summary {
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

/* Animated status dot */
.checkout-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Checkout Modal ---------- */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 16px;
  overflow-y: auto;
}

.checkout-modal.hidden {
  display: none !important;
}

.checkout-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
}

.checkout-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
}

.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0f0f0f;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 3;
}

.checkout-modal-close {
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

.checkout-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.checkout-modal-body {
  min-height: 500px;
}

.checkout-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(6, 182, 212, 0.2);
  border-top-color: #06b6d4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.checkout-spinner-dark {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* Mobile checkout modal - full screen */
@media (max-width: 640px) {
  .checkout-modal {
    padding: 0;
    align-items: stretch;
  }

  .checkout-modal-container {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
  }
}
