/* Hero */
.hero-section {
  position: relative;
  padding-block: clamp(1rem, 2.5vw, 2rem);
  padding-top: calc(clamp(0.75rem, 1.2vw, 1.5rem) + var(--hero-top-offset, 72px) * 0.2);
  background: radial-gradient(circle at 15% 10%, rgb(108 60 251 / 0.08) 0%, transparent 55%), radial-gradient(circle at 80% 0%, rgb(16 185 129 / 0.08) 0%, transparent 55%), var(--color-surface);
}

.hero-section .container {
  min-height: auto;
  display: grid;
  align-items: center;
  padding-top: clamp(0.5rem, 1vw, 1.25rem);
  padding-bottom: clamp(0.5rem, 1.5vw, 1.5rem);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.9) 0%, rgb(246 247 251 / 0.96) 85%, rgb(246 247 251 / 1) 100%);
  z-index: 0;
}

.hero-background,
.hero-bg-overlay,
.ornament {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 2.2vw, 2rem);
  align-items: center;
  width: 100%;
}

/* Ensure proper stacking order */
.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-media {
  position: relative;
  z-index: 1;
}

/* Desktop optimizations */
@media (width >= 1024px) {
  .hero-grid {
    gap: clamp(0.75rem, 1.6vw, 1.5rem);
    align-items: start;
  }
  
  .hero-after-video .hero-highlights {
    display: none;
  }

  /* Ensure buttons are clickable on desktop */
  .hero-copy {
    z-index: 10;
  }
  
  .hero-media {
    z-index: 1;
  }
}

.hero-copy {
  display: grid;
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
  max-width: 640px;
  align-content: flex-start;
  position: relative;
  z-index: 2;
}

.hero-support {
  display: grid;
  gap: var(--space-2);
  max-width: min(540px, 100%);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  color: var(--color-primary);
  font-weight: 600;
}

.hero-meta-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(16 185 129 / 0.2);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin: 0;
  color: var(--color-body);
}

.hero-subheadline {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  line-height: 1.4;
  color: var(--color-muted);
  max-width: 50ch;
}

.hero-headline-group {
  display: grid;
  gap: var(--space-2);
  max-width: 56ch;
}

.hero-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-items: start;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  color: var(--color-muted);
}

.hero-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.85rem;
  border-radius: 50%;
  background: rgb(16 185 129 / 0.08);
  color: var(--color-accent);
  font-weight: 700;
}

/* CTA microcopy under buttons */
.cta-microcopy {
  margin: 0;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: var(--color-muted-soft);
}

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  padding: clamp(0.5rem, 1vw, 0.75rem);
  background: linear-gradient(135deg, rgb(108 60 251 / 0.06), rgb(108 60 251 / 0.14));
  border-radius: var(--radius-lg);
  border: 1px solid rgb(108 60 251 / 0.18);
  box-shadow: var(--shadow-xs);
  color: var(--color-body);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
}

.guarantee-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.guarantee-text > strong {
  display: block;
  font-size: var(--text-base);
}

/* Hero Left Actions (CTAs + Trust Badges) */
.hero-left-actions {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(0.5rem, 1vw, 0.9rem);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.75rem);
}

/* Hero After Video Section */
.hero-after-video {
  display: grid;
  row-gap: var(--space-3);
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.25rem, 0.8vw, 0.5rem);
  align-items: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.25rem, 0.5vw, 0.5rem);
  padding: clamp(0.25rem, 0.5vw, 0.4rem) clamp(0.4rem, 0.8vw, 0.6rem);
  border-radius: var(--radius-pill);
  background: rgb(108 60 251 / 0.06);
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
  color: var(--color-muted);
  font-size: clamp(0.75rem, 0.95vw, 0.85rem);
  white-space: nowrap;
}

.trust-badge svg {
  width: 1.65rem;
  height: 1.65rem;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted-soft);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

.scroll-mouse {
  width: 18px;
  height: 28px;
  border: 2px solid currentcolor;
  border-radius: 999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}

.scroll-wheel {
  width: 4px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: currentcolor;
  animation: scrollPulse 1.8s infinite;
}

@keyframes scrollPulse {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(6px);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.hero-cta-block {
  display: grid;
  gap: var(--space-2);
  max-width: min(540px, 100%);
}

.hero-assurances {
  display: grid;
  gap: var(--space-2);
  align-items: stretch;
}

@media (width >= 1024px) {
  .hero-assurances {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-self: flex-start;
  justify-self: end;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 100%;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgb(108 60 251 / 0.18), rgb(108 60 251 / 0.08));
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-media-card {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgb(255 255 255 / 0.92);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: grid;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
  max-width: 70%;
  font-size: var(--text-sm);
}

.hero-media-card-eyebrow {
  font-size: max(0.75rem, var(--text-xs));
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
}

.hero-media-card-title {
  font-weight: 600;
  color: var(--color-body);
}

.hero-media-card-meta {
  color: var(--color-muted);
}


.hero-video-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: var(--hero-media-vh);
  background: rgb(15 23 42 / 0.12);
}

.hero-video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition);
}

.hero-video.active {
  opacity: 1;
}

.hero-video-contact-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  background: rgb(255 255 255 / 0.9);
  color: var(--color-body);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.mobile-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid rgb(15 23 42 / 0.1);
  color: var(--color-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.mobile-video-play-btn:hover {
  background: rgb(255 255 255 / 1);
  transform: translate(-50%, -50%) scale(1.1);
}

@media (width <= 1024px) {
  .hero-section .container {
    min-height: auto;
    display: block;
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero-copy {
    max-width: none;
  }

  .hero-assurances {
    grid-template-columns: 1fr;
  }
}

/* Desktop: 2 columns. Left (copy) | Right (media) */
@media (width >= 1024px) {
  .hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }

  .hero-highlight {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

@media (width <= 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media { 
    order: -1; /* video first on mobile */
  }

  .hero-copy { 
    order: 0; /* copy second on mobile */
  }
}

@media (width <= 768px) {
  .mobile-video-play-btn {
    display: none;
  }

  .hero-copy {
    order: 1; /* copy first on mobile */
  }

  .hero-media {
    order: 2; /* video at the end on mobile */
    align-self: stretch;
  }

  .hero-media-card {
    position: static;
    max-width: none;
  }

  .hero-video-wrapper {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .scroll-indicator {
    display: none;
  }

  /* Tablet optimizations for hero-after-video section */
  .hero-after-video {
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    margin-top: clamp(1rem, 2vw, 1.5rem);
  }

  .hero-guarantee {
    flex-direction: column;
    text-align: center;
    gap: clamp(0.5rem, 0.8vw, 0.75rem);
  }

  .hero-trust-badges {
    justify-content: center;
    gap: clamp(0.3rem, 0.6vw, 0.5rem);
  }

  .trust-badge {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}

@media (width <= 640px) {
  .hero-meta-pill {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    text-align: center;
    white-space: normal;
  }

  .hero-headline {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    line-height: 1.2;
  }

  .hero-subheadline {
    font-size: clamp(0.9rem, 3.2vw, 0.98rem);
    line-height: 1.35;
  }

  .hero-copy {
    gap: clamp(0.35rem, 1.2vw, 0.75rem);
  }

  .hero-left-actions {
    gap: clamp(0.4rem, 0.8vw, 0.6rem);
    margin-top: clamp(0.4rem, 0.8vw, 0.6rem);
  }

  .hero-ctas {
    gap: clamp(0.4rem, 0.8vw, 0.6rem);
  }

  /* Mobile optimizations for hero-after-video section */
  .hero-after-video {
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin-top: clamp(0.75rem, 2vw, 1.25rem);
  }

  .hero-guarantee {
    padding: clamp(0.4rem, 0.8vw, 0.6rem);
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    flex-direction: column;
    text-align: center;
    gap: clamp(0.25rem, 0.5vw, 0.5rem);
  }

  .hero-trust-badges {
    gap: clamp(0.2rem, 0.5vw, 0.4rem);
    justify-content: center;
    flex-wrap: wrap;
  }

  .trust-badge {
    padding: clamp(0.2rem, 0.4vw, 0.3rem) clamp(0.3rem, 0.6vw, 0.5rem);
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
    gap: clamp(0.5rem, 2.5vw, 0.75rem);
  }

.hero-actions {
  flex-direction: column;
  align-items: stretch;
}

/* Ensure hero buttons are clickable */
.hero-actions .btn {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.hero-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
}
