@use "abstracts";

.hero-section {
  position: relative;
  min-height: calc(100vh + var(--nav-height));
  margin-top: var(--neg-nav-height);
  overflow: hidden;
  display: flex;
  align-items: center;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-video-overlay);
    z-index: -1;
  }

  &__wrapper {
    @include abstracts.container-wrapper;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  &__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
  }

  &__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: oklch(from var(--accent) l c h / 0.1);
    border: 1px solid oklch(from var(--accent) l c h / 0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    animation: badge-pulse 2s ease-in-out infinite;
  }

  &__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    animation: dot-pulse 1.5s ease-in-out infinite;
  }

  &__header {
    color: var(--text-main);
    font-size: var(--font-size-xxl);
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    max-width: 14ch;
  }

  &__header-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  &__claim {
    color: var(--text-main);
    font-size: var(--font-size-lg);
    max-width: 55ch;
    line-height: 1.6;
  }

  &__links {
    display: flex;
    flex-direction: row;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
  }

  &__social-proof {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    justify-content: center;
  }

  &__avatars {
    display: flex;
    margin-right: calc(var(--space-2) * -1);
  }

  &__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: 2px solid var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-on-accent);
    margin-left: -10px;

    &:first-child {
      margin-left: 0;
    }
  }

  &__proof-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  &__stars {
    color: oklch(75% 0.18 45);
    font-size: 0.875rem;
    letter-spacing: 1px;
  }

  &__proof-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  }
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
