/**
 * page-animations.css — Drop Cars
 * Shared animation utilities for all dedicated pages
 * Uses IntersectionObserver-based scroll reveal (no external dependency)
 */

/* ─── Scroll Reveal Base ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }

/* ─── Page Hero Banner ─── */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite alternate;
}
.page-hero__orb--1 {
  width: 400px; height: 400px;
  background: #3b82f6;
  top: -100px; right: 10%;
}
.page-hero__orb--2 {
  width: 300px; height: 300px;
  background: #f59e0b;
  bottom: -80px; left: 5%;
  animation-delay: 2s;
}
@keyframes orbPulse {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.15) translateY(-20px); }
}

.page-hero__badge,
.policy-badge,
.dev-hero__badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.page-hero__title .accent {
  color: #fbbf24 !important;
  -webkit-text-fill-color: #fbbf24 !important;
  background: none !important;
  text-shadow: 0 2px 16px rgba(251, 191, 36, 0.5) !important;
  filter: none !important;
}

.page-hero__desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.page-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.btn-hero-primary:hover::after { opacity: 1; }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.page-hero__image {
  position: relative;
  flex-shrink: 0;
}
.page-hero__image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: heroImgFloat 5s ease-in-out infinite alternate;
}
@keyframes heroImgFloat {
  from { transform: translateY(0) rotate(-1deg); }
  to   { transform: translateY(-12px) rotate(0deg); }
}

.page-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .page-hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-hero__image { display: none; }
  .page-hero__ctas { justify-content: center; }
  .page-hero__badge { justify-content: center; }
}

/* ─── Stats Bar ─── */
.stats-bar {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}
[data-theme="dark"] .stats-bar,
.dark-mode .stats-bar {
  background: #1e293b;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.stat-item {
  text-align: center;
  border-right: 1px solid #e2e8f0;
  padding-right: 1.5rem;
}
.stat-item:last-child { border-right: none; padding-right: 0; }
.stat-item__number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .stat-item__number,
.dark-mode .stat-item__number { color: #60a5fa; }
.stat-item__label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}
@media (max-width: 640px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-right: 1px solid #e2e8f0; padding-right: 0.75rem; }
}

/* ─── Section Heading ─── */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
[data-theme="dark"] .section-title,
.dark-mode .section-title { color: #f1f5f9; }

.section-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 600px;
}

/* ─── Feature Cards ─── */
.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .feature-card,
.dark-mode .feature-card {
  background: #1e293b;
  border-color: #334155;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #2563eb, #f59e0b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #c7d2fe;
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-card__icon { transform: scale(1.1) rotate(-5deg); }

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .feature-card__title,
.dark-mode .feature-card__title { color: #f1f5f9; }

.feature-card__desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ─── Timeline Steps ─── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #2563eb, #f59e0b);
  border-radius: 2px;
}
.timeline-step {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step__dot {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 2rem; height: 2rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  border: 3px solid #ffffff;
}
.timeline-step__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
[data-theme="dark"] .timeline-step__title,
.dark-mode .timeline-step__title { color: #f1f5f9; }
.timeline-step__desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ─── Gradient CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.cta-banner__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.cta-banner__desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}
.cta-banner__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-white {
  background: #ffffff;
  color: #1e3a8a;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.btn-cta-outline-white {
  background: transparent;
  color: #ffffff;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
}
.btn-cta-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ─── Shimmer Loading Placeholder ─── */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
.shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
}

/* ─── Counter Number ─── */
.count-up { font-variant-numeric: tabular-nums; }

/* ─── Floating Badge ─── */
.floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: badgePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes badgePop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ─── Route Card ─── */
.route-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
[data-theme="dark"] .route-pill,
.dark-mode .route-pill {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}
.route-pill:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb__current { color: #ffffff; font-weight: 500; }

/* ─── FAQ Accordion ─── */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.25s ease;
}
[data-theme="dark"] .faq-item,
.dark-mode .faq-item {
  border-color: #334155;
  background: #1e293b;
}
.faq-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  gap: 1rem;
}
[data-theme="dark"] .faq-question,
.dark-mode .faq-question { color: #f1f5f9; }
.faq-question__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 700;
}
.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
  background: #2563eb;
  color: #ffffff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* ─── Responsive Section Padding ─── */
.page-section {
  padding: 5rem 0;
}
.page-section--sm {
  padding: 3rem 0;
}
@media (max-width: 768px) {
  .page-section { padding: 3rem 0; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cta-banner { padding: 2rem 1.5rem; }
}
