.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: var(--space-16);
}

/* Two-column grid: text left, form right */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-16);
}

.hero__content {
  justify-self: start;
  max-width: 640px;
}

.hero__tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* ========== Glassmorphic Multi-step Form ========== */

.hero-form {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  width: 340px;
  transform: translateX(clamp(0px, calc(100vw - 1000px), 240px));
  justify-content: space-between;
}

.hero-form__step {
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  animation: formFadeIn 0.3s ease;
}

.hero-form__step.active {
  display: flex;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-form__label {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

.hero-form__input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.0625rem;
  font-family: inherit;
  padding: var(--space-3) 0;
  outline: none;
  transition: border-color var(--transition);
}

.hero-form__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.hero-form__input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.6);
  outline: none;
  box-shadow: none;
}

.hero-form__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.hero-form__input--error {
  border-bottom-color: #ef4444;
}

.hero-form__error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: -4px;
}

.hero-form__next,
.hero-form__submit {
  background: #fff;
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  align-self: flex-start;
  margin-top: var(--space-2);
}

.hero-form__next:hover,
.hero-form__submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hero-form__choices {
  display: flex;
  gap: var(--space-3);
}

.hero-form__choice {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.hero-form__choice:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.hero-form__choice.selected {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.hero-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  padding: var(--space-6) 0;
}

.hero-form__success p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.5;
}

/* Progress dots */
.hero-form__progress {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-6);
}

.hero-form__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
}

.hero-form__dot.active {
  background: rgba(255, 255, 255, 0.9);
  width: 18px;
  border-radius: 3px;
}

.hero-form__dot.done {
  background: rgba(255, 255, 255, 0.5);
}

.hero-form__privacy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: var(--space-1);
  text-align: center;
  grid-column: 2;
  max-width: 340px;
  transform: translateX(clamp(0px, calc(100vw - 1000px), 240px));
}

/* ========== Features bar ========== */

.hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding-top: var(--space-12);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__feature-number {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__feature-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Responsive ========== */

@media (max-width: 810px) {
  .hero__video {
    object-position: 70% center;
  }

  .hero__container {
    padding-top: 100px;
    padding-bottom: var(--space-12);
  }

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

  .hero-form {
    max-width: 100%;
    width: 100%;
    margin-right: 0;
    transform: none;
  }

  .hero-form__privacy {
    transform: none;
    max-width: none;
    grid-column: auto;
  }

  .hero__features {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 480px) {
  .hero__container {
    padding-top: 80px;
    padding-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .hero__features {
    order: -1;
    margin-top: auto;
    margin-bottom: var(--space-4);
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0;
    padding-bottom: var(--space-6);
  }

  .hero__grid {
    display: contents;
  }

  .hero-form__privacy {
    order: 2;
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
  }

  .hero-form {
    order: 3;
    margin-bottom: auto;
  }

  .hero__tag {
    font-size: 0.75rem;
    margin-bottom: var(--space-2);
  }

  .hero h1 {
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
  }

  .hero__subtitle {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .hero__grid {
    gap: var(--space-3);
  }

  .hero-form {
    width: 100%;
    padding: var(--space-3);
    min-height: 140px;
  }

  .hero-form__label {
    font-size: 0.8125rem;
  }

  .hero-form__input {
    font-size: 0.875rem;
    padding: var(--space-2) 0;
  }

  .hero-form__next,
  .hero-form__submit {
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
  }

  .hero-form__step {
    gap: var(--space-2);
  }

  .hero-form__choices {
    flex-direction: column;
  }

  .hero__feature-number {
    font-size: 1.5rem;
  }
}
