/* ==========================================================================
   Hero Section
   Full-viewport landing with radial mesh background, centered CTA stack.
   Mobile-first: 375 px base, scale up.
   ========================================================================== */

/* --- radial mesh backdrop ------------------------------------------------ */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, var(--vc-accent) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 60%, var(--vc-purple) 0%, transparent 70%);
  opacity: 0.04;
}

/* --- section shell ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 160px var(--sp-6) var(--sp-16);
  background: var(--vc-bg-body);
  overflow: hidden;
}

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

/* --- eyebrow badge ------------------------------------------------------- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px 6px 12px;
  background: var(--vc-eyebrow-bg);
  border: 1px solid var(--vc-eyebrow-border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vc-accent);
  letter-spacing: 0.2px;
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vc-green);
  box-shadow: 0 0 8px rgba(62,207,142,0.5);
}

/* --- gradient text ------------------------------------------------------- */
.hero-gradient-text {
  background: var(--vc-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- headline ------------------------------------------------------------ */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--vc-text-primary);
  max-width: 900px;
  line-height: 1.15;
  margin: 0;
}

/* --- sub-headline -------------------------------------------------------- */
.hero-sub {
  font-size: 22px;
  color: var(--vc-text-secondary);
  max-width: 820px;
  margin: var(--sp-8) auto var(--sp-10);
  line-height: 1.6;
}

/* --- CTA row ------------------------------------------------------------- */
.hero-ctas {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- trust bar (matches app trust badge) --------------------------------- */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--sp-8);
  font-size: 18px;
  font-weight: 500;
  color: var(--vc-text-secondary);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-trust-item svg {
  width: 22px;
  height: 22px;
}

.hero-trust-dot {
  color: var(--vc-text-muted);
  font-size: 20px;
  line-height: 1;
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- use-case pills ------------------------------------------------------ */
.hero-pills {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-10);
}

.hero-pill {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(129,140,248,0.06) 0%, rgba(123,66,255,0.06) 100%);
  border: 1px solid rgba(129,140,248,0.15);
  border-radius: var(--r-full);
  color: var(--vc-text-secondary);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.hero-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(129,140,248,0.35);
  color: var(--vc-accent);
  background: linear-gradient(135deg, rgba(129,140,248,0.12) 0%, rgba(123,66,255,0.10) 100%);
  box-shadow: 0 4px 16px rgba(129,140,248,0.15), 0 0 1px rgba(129,140,248,0.3);
}

/* --- scroll indicator ---------------------------------------------------- */
.scroll-indicator {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease infinite;
  color: var(--vc-text-muted);
  transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* --- animations ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow-dot {
    animation: dotPulse 2s ease-in-out infinite;
  }
  @keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(62,207,142,0.5); }
    50% { box-shadow: 0 0 14px rgba(62,207,142,0.8); }
  }

  .hero-gradient-text {
    background-size: 200% auto;
    animation: gradientShimmer 4s ease-in-out infinite;
  }
  @keyframes gradientShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
  }
}

/* --- product showcase carousel ------------------------------------------- */
.hero-showcase {
  width: 100%;
  max-width: 860px;
  margin-top: var(--sp-12);
}

.hero-showcase-frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--vc-border-emphasis);
  overflow: hidden;
  background: var(--vc-bg-surface);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(129, 140, 248, 0.06);
}

.hero-showcase-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--vc-bg-base);
  border-bottom: 1px solid var(--vc-border-subtle);
}

.hero-showcase-chrome .hero-showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vc-border-emphasis);
}

.hero-showcase-chrome .hero-showcase-dot:first-child { background: #F87171; }
.hero-showcase-chrome .hero-showcase-dot:nth-child(2) { background: #F0B429; }
.hero-showcase-chrome .hero-showcase-dot:nth-child(3) { background: #3ECF8E; }

.hero-showcase-title {
  margin-left: 12px;
  font-size: 13px;
  color: var(--vc-text-muted);
  font-family: var(--font-body);
}

.hero-showcase-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--vc-bg-body);
}

.hero-showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-showcase-slide.active {
  opacity: 1;
}

/* --- dot navigation ------------------------------------------------------ */
.hero-showcase-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.hero-showcase-dot-nav {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--vc-border-emphasis);
  cursor: pointer;
  padding: 0;
  transition: all var(--t-fast);
}

.hero-showcase-dot-nav.active {
  background: var(--vc-accent);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.4);
  transform: scale(1.25);
}

.hero-showcase-dot-nav:hover:not(.active) {
  background: var(--vc-text-muted);
}

.hero-showcase-dot-nav:focus-visible {
  outline: 2px solid var(--vc-accent);
  outline-offset: 2px;
}

/* --- labels below dots --------------------------------------------------- */
.hero-showcase-labels {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  margin-top: var(--sp-2);
}

.hero-showcase-label {
  font-size: 13px;
  color: var(--vc-text-muted);
  transition: color var(--t-fast);
}

.hero-showcase-label.active {
  color: var(--vc-accent);
}

/* --- responsive ---------------------------------------------------------- */
@media (min-width: 769px) {
  .hero-sub {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
  }

  .hero-showcase {
    margin-top: var(--sp-8);
  }

  .hero-showcase-labels {
    display: none;
  }
}

/* --- showcase lightbox --------------------------------------------------- */
.showcase-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.showcase-lightbox.visible {
  opacity: 1;
}

.showcase-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.showcase-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
}

.showcase-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--r-lg);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.showcase-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--vc-bg-surface);
  color: var(--vc-text-primary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease;
}

.showcase-lightbox-close:hover {
  background: var(--vc-bg-surface-2);
}
