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

/* ---------- CSS Custom Properties ----------
   Token definitions moved to tokens.css (single source of truth).
   See DESIGN.md for the warm-dark palette spec and amber rules.
   Legacy aliases (--color-bg, --color-text, etc.) are mapped in tokens.css
   so existing references in this file continue to work.
*/

/* ---------- Base Overrides ---------- */
html {
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--amber-soft);
  color: var(--ink-primary);
}

/* Better focus outlines for accessibility */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  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, 17, 23, 0.78);  /* matches --bg with backdrop blur */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.glass-card {
  background: rgba(26, 29, 36, 0.6);   /* matches --surface */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  transition: all 0.35s var(--ease-emphasized);
}

.glass-card:hover {
  border-color: rgba(232, 163, 58, 0.28);   /* amber hairline on hover */
  transform: translateY(-4px);
  box-shadow: 0 24px 72px rgba(232, 163, 58, 0.10), 0 8px 24px rgba(0, 0, 0, 0.5);
  background: rgba(26, 29, 36, 0.72);
}

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

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* Amber-only glow — replaced the cyan/blue/purple rainbow */
  background: radial-gradient(circle at 30% 40%, rgba(232, 163, 58, 0.14) 0%, transparent 55%),
              radial-gradient(circle at 70% 65%, rgba(232, 163, 58, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(74, 149, 104, 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: var(--surface-deep);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.30),
    0 0 40px rgba(232, 163, 58, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.35s ease;
}

.terminal:hover {
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(232, 163, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  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: var(--font-mono);
  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: #94A3B8;   /* warm slate — matches DESIGN.md terminal spec */
}

.terminal-command {
  color: #93C5FD;   /* sky — for command name */
}

.terminal-output {
  color: #6EE7B7;   /* warm green for ✓ lines */
}

.terminal-comment {
  color: var(--ink-faint);
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #FBBF24;   /* amber cursor — matches DESIGN.md terminal spec */
  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: amber on dark — ENFORCES the amber-must-have-dark-text rule
   (gradient-primary now resolves to the amber gradient via tokens.css) */
.btn-primary {
  background: var(--gradient-cta);
  color: var(--amber-on);          /* dark text on amber — required */
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;            /* pill per DESIGN.md */
  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.18), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(232, 163, 58, 0.30), 0 4px 12px rgba(232, 163, 58, 0.18);
}

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

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(232, 163, 58, 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(232, 163, 58, 0.08);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

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

.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 163, 58, 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 {   /* legacy class name — now moss/build-green glow */
  box-shadow: 0 0 30px var(--moss-soft);
}

.glow-amber {
  box-shadow: 0 0 30px var(--amber-soft);
}

.glow-text {
  text-shadow: 0 0 40px rgba(232, 163, 58, 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 legacy class — now uses moss/build-green for "proof / live" semantics */
.badge-cyan {
  background: rgba(74, 149, 104, 0.14);
  border: 1px solid rgba(74, 149, 104, 0.32);
  color: #6EE7B7;
  box-shadow: 0 4px 12px rgba(74, 149, 104, 0.18);
}

.badge-amber {
  background: var(--amber-faint);
  border: 1px solid rgba(232, 163, 58, 0.32);
  color: var(--amber);
  box-shadow: 0 4px 12px rgba(232, 163, 58, 0.18);
}

/* ---------- 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: shifted from cyan to moss/build-green — signals "the better way" */
.comparison-new {
  background: rgba(74, 149, 104, 0.06);
  border: 1.5px solid rgba(74, 149, 104, 0.22);
  transition: all 0.35s ease;
  box-shadow: 0 8px 32px rgba(74, 149, 104, 0.08);
}

.comparison-new:hover {
  background: rgba(74, 149, 104, 0.10);
  border-color: rgba(74, 149, 104, 0.36);
  box-shadow: 0 12px 48px rgba(74, 149, 104, 0.16);
  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(232, 163, 58, 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(232, 163, 58, 0.12);
  line-height: 1;
  transition: color 0.35s ease;
  pointer-events: none;
}

.testimonial-card:hover::before {
  color: rgba(232, 163, 58, 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: var(--amber);
  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(232, 163, 58, 0.3);
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(232, 163, 58, 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(232, 163, 58, 0.5);
  box-shadow: 0 0 0 4px rgba(232, 163, 58, 0.12), 0 4px 16px rgba(232, 163, 58, 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(232, 163, 58, 0.15);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 60px rgba(232, 163, 58, 0.15), 0 0 100px rgba(232, 163, 58, 0.05);
  }
  50% {
    box-shadow: 0 0 80px rgba(232, 163, 58, 0.25), 0 0 120px rgba(232, 163, 58, 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(232, 163, 58, 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(232, 163, 58, 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(232, 163, 58, 0.3));
}

.section-badge-row::after {
  background: linear-gradient(270deg, transparent, rgba(232, 163, 58, 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;
  /* Amber-only — no more cyan rainbow */
  color: var(--amber);
  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: var(--ink-primary);
  border-color: rgba(232, 163, 58, 0.4);
  background: rgba(232, 163, 58, 0.10);
  box-shadow: 0 8px 24px rgba(232, 163, 58, 0.16);
}

.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(--amber);
  box-shadow: 0 0 12px rgba(232, 163, 58, 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;
  /* Moss → amber progression: foundation to value */
  background: linear-gradient(
    180deg,
    rgba(74, 149, 104, 0.4) 0%,
    rgba(232, 163, 58, 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: var(--font-mono);
  z-index: 2;
  border: 2px solid transparent;
  transition: all 0.35s ease;
}

/* Timeline dots progress moss → amber-dim → amber → bright-amber
   (foundation through to shipped). Legacy names kept for HTML compat. */
.timeline-step-dot.dot-cyan {
  background: rgba(74, 149, 104, 0.15);
  border-color: rgba(74, 149, 104, 0.4);
  color: #6EE7B7;
}

.timeline-step-dot.dot-blue {
  background: rgba(107, 143, 176, 0.15);
  border-color: rgba(107, 143, 176, 0.4);
  color: #A8C0DA;
}

.timeline-step-dot.dot-purple {
  background: rgba(232, 163, 58, 0.12);
  border-color: rgba(232, 163, 58, 0.35);
  color: var(--amber);
}

.timeline-step-dot.dot-amber {
  background: rgba(232, 163, 58, 0.18);
  border-color: rgba(232, 163, 58, 0.5);
  color: var(--amber);
}

.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(232, 163, 58, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(232, 163, 58, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(232, 163, 58, 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: var(--amber); }
.wavy-stat-glow-blue { background: var(--amber-d); }
.wavy-stat-glow-purple { background: var(--amber); }
.wavy-stat-glow-amber { background: var(--amber); }

/* 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: var(--amber);
  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(232, 163, 58, 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(232, 163, 58, 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(232, 163, 58, 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(232, 163, 58, 0.1);
  border: 1.5px solid rgba(232, 163, 58, 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: var(--amber);
  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(232, 163, 58, 0.2);
  border-top-color: var(--amber);
  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;
  }
}

/* ============================================
   HERO — Concept Final 1 (Morph + Build)
   Styling for the Stimulus hero_controller.
   See DESIGN.md "x-interactive" section.
   ============================================ */

.hero-frame {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  padding: 64px 32px 96px;
  display: flex;
  align-items: center;
}

.hero-frame-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  .hero-frame-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ---- Editorial framing lines ---- */
.hero-frame-line {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.04;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  margin: 0;
  display: block;
}
.hero-frame-pre  { margin-top: 20px; opacity: 0; animation: hero-fade-in 0.8s ease 0.15s forwards; }
.hero-frame-post { opacity: 0; animation: hero-fade-in 0.8s ease 0.55s forwards; }

@keyframes hero-fade-in { to { opacity: 1; } }

/* ---- Morphing word ---- */
.hero-word-zone {
  position: relative;
  height: clamp(96px, 11.5vw, 158px);
  display: flex;
  align-items: center;
  margin: 6px 0 6px;
}

.hero-word {
  font-family: var(--font-display);
  font-size: clamp(80px, 10.5vw, 152px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--amber);
  display: inline-flex;
  position: relative;
}

.hero-morph-letter {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.hero-morph-letter.exit {
  animation: hero-letter-exit 0.55s var(--ease-exit) forwards;
}
.hero-morph-letter.enter {
  animation: hero-letter-enter 0.65s var(--ease-emphasized) backwards;
}
@keyframes hero-letter-exit {
  0%   { transform: translateY(0) rotateX(0);     opacity: 1; filter: blur(0); }
  100% { transform: translateY(-28px) rotateX(70deg); opacity: 0; filter: blur(4px); }
}
@keyframes hero-letter-enter {
  0%   { transform: translateY(46px) rotateX(-70deg); opacity: 0; filter: blur(6px); }
  100% { transform: translateY(0) rotateX(0);     opacity: 1; filter: blur(0); }
}

.hero-word-underline {
  position: absolute;
  bottom: 6px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amber) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: width 0.55s var(--ease-emphasized), transform 0.55s var(--ease-emphasized);
  width: 0;
  border-radius: 2px;
}
.hero-word-underline.active { transform: scaleX(1); }

/* ---- Hero copy + CTAs ---- */
.hero-sub {
  color: var(--ink-secondary);
  font-size: 18px;
  line-height: 1.6;
  margin: 28px 0 32px;
  max-width: 540px;
  opacity: 0;
  animation: hero-fade-in 0.8s ease 0.9s forwards;
}

.hero-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: hero-fade-in 0.8s ease 1.1s forwards;
}

.hero-eyebrow {
  opacity: 0;
  animation: hero-fade-in 0.6s ease 0s forwards;
}

/* ---- Hero terminal (Concept Final 1 right column) ---- */
.hero-term-side {
  opacity: 0;
  animation: hero-fade-in 0.9s ease 0.5s forwards;
}

.hero-terminal {
  background: var(--surface-deep);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 6px 18px rgba(0, 0, 0, 0.30),
    0 0 40px rgba(232, 163, 58, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
}

.hero-terminal-bar {
  background: rgba(255, 255, 255, 0.04);
  padding: 11px 16px;
  display: flex;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
}
.hero-term-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hero-term-title {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11.5px;
  margin-left: 10px;
}

.hero-term-body {
  padding: 22px 22px 8px;
  height: 320px;
  color: var(--ink-primary);
  font-size: 14px;
  line-height: 1.75;
  overflow: hidden;
}

.hero-term-prompt { color: #94A3B8; margin-right: 4px; }
.hero-term-cmd    { color: #93C5FD; }
.hero-term-quote  { color: #FBBF24; }
.hero-term-arrow  { color: #FBBF24; margin-right: 8px; }
.hero-term-check  { color: #6EE7B7; margin-right: 8px; }
.hero-term-final  { color: #FBBF24; }

.hero-term-log {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s, transform 0.35s;
  margin-bottom: 2px;
}
.hero-term-log.show { opacity: 1; transform: translateX(0); }

.hero-term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #FBBF24;
  margin-left: 2px;
  vertical-align: -2px;
  animation: hero-cursor-blink 1s steps(2, jump-none) infinite;
}
@keyframes hero-cursor-blink {
  0%, 50%        { opacity: 1; }
  50.01%, 100%   { opacity: 0; }
}

.hero-term-status {
  border-top: 1px solid var(--hairline);
  padding: 11px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}
.hero-term-status .meta-left { display: flex; gap: 10px; align-items: center; }
.hero-term-status .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--moss-soft);
  color: var(--moss-light);
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}
.hero-term-status .pill .dot-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss-light);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2);
  animation: hero-pulse-live 1.6s ease-in-out infinite;
}
@keyframes hero-pulse-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.06); }
}

/* ---- Reduced motion fallback ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-frame-pre,
  .hero-frame-post,
  .hero-sub,
  .hero-cta-row,
  .hero-eyebrow,
  .hero-term-side {
    opacity: 1;
    animation: none;
  }
  .hero-morph-letter.exit,
  .hero-morph-letter.enter {
    animation: none;
  }
  .hero-term-cursor {
    animation: none;
    opacity: 1;
  }
}
