/**
 * Waiting List Page Styles
 * Dedicated early-access sign-up page
 */

/* ============================
   Hero
   ============================ */
.waitlist-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-20) var(--space-6);
  background: var(--color-bg-dark, #0b0b14);
}

.waitlist-hero__background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.45), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(45, 212, 191, 0.35), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(59, 130, 246, 0.35), transparent 50%),
    linear-gradient(135deg, #0b0b14 0%, #15122b 55%, #0b0b14 100%);
  z-index: 1;
}

.waitlist-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 14, 0.35);
  z-index: 1;
}

.waitlist-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.waitlist-hero__text {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.waitlist-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  color: #d8ccff;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-6);
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.waitlist-hero__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: waitlist-pulse 2s infinite;
}

@keyframes waitlist-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.waitlist-hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: var(--weight-light);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.waitlist-hero__subheading {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0 auto var(--space-8);
}

.waitlist-hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.waitlist-hero__actions .btn--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.waitlist-hero__actions .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.waitlist-hero__trust {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.waitlist-hero__trust strong {
  color: #ffffff;
}

/* ============================
   How It Works Steps
   ============================ */
.waitlist-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.waitlist-step {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.waitlist-step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.waitlist-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #2dd4bf);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-5);
}

.waitlist-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.waitlist-step__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ============================
   Why Webgentic Features
   ============================ */
.waitlist-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.waitlist-feature {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.waitlist-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.waitlist-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(45, 212, 191, 0.12));
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.waitlist-feature__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.waitlist-feature__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================
   FAQ
   ============================ */
.container--narrow {
  max-width: 820px;
}

.waitlist-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.waitlist-faq__item {
  padding: var(--space-6) var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--color-surface, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.waitlist-faq__question {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.waitlist-faq__answer {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

.waitlist-faq__cta {
  text-align: center;
  margin-top: var(--space-10);
}

.waitlist-faq__cta p {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
  .waitlist-steps,
  .waitlist-features {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .waitlist-hero {
    min-height: 56vh;
    padding: var(--space-16) var(--space-4);
  }

  .waitlist-hero__actions .btn {
    width: 100%;
  }
}

/* ================================
   NAVIGATION OVERRIDE - WHITE ELEMENTS
   ================================ */
/* Make logo, navigation, contact button, and hamburger white on the
   waiting-list page ONLY when header is NOT scrolled (transparent background)
   AND mobile menu is NOT open — matches the Magento landing page treatment */

/* Logo - invert to white when NOT scrolled */
.site-header:not(.site-header--scrolled) .site-header__logo-img {
    filter: brightness(0) invert(1) !important;
}

/* Override: Remove white invert when menu is open */
body.menu-open .site-header:not(.site-header--scrolled) .site-header__logo-img {
    filter: brightness(0) saturate(1) !important;
}

/* Logo normal on desktop when menu is open */
@media (min-width: 768px) {
    body.menu-open .site-header:not(.site-header--scrolled) .site-header__logo-img {
        filter: none !important;
    }
}

/* Navigation links to white when NOT scrolled - desktop only */
@media (min-width: 768px) {
    .site-header:not(.site-header--scrolled) .site-nav__link {
        color: #ffffff !important;
    }

    .site-header:not(.site-header--scrolled) .site-nav__link::after {
        background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%) !important;
    }
}

/* Mobile menu toggle (hamburger) to white when NOT scrolled and menu NOT open */
.site-header:not(.site-header--scrolled) .menu-toggle:not(.menu-toggle--active) .menu-toggle__line {
    background: #ffffff !important;
}

/* "Talk to us" outline button to white when NOT scrolled AND menu NOT open
   (exclude the primary Waiting List CTA so it keeps its gradient) */
.site-header:not(.site-header--scrolled) .btn--nav:not(.btn--nav-primary) {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.site-header:not(.site-header--scrolled) .btn--nav:not(.btn--nav-primary):hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Override for dropdown arrows in mega menu */
@media (min-width: 768px) {
    .site-header:not(.site-header--scrolled) .dropdown-arrow {
        stroke: #ffffff !important;
    }
}

/* ================================
   SOCIAL ICONS - WHITE WHEN NOT SCROLLED
   ================================ */
.site-header:not(.site-header--scrolled) .social-links__link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header:not(.site-header--scrolled) .social-links__link:hover {
    background: #ffffff !important;
    color: #16213e !important;
    border-color: #ffffff;
}

/* Lighten the nav divider while the header is transparent over the dark hero
   (the base spacing + dark divider now live in components.css for all pages) */
@media (min-width: 768px) {
    .site-header:not(.site-header--scrolled) .site-nav__contact {
        border-left-color: rgba(255, 255, 255, 0.15);
    }
}

/* ================================
   WAITING LIST CTA - DARK HERO STATE
   ================================ */
.site-header:not(.site-header--scrolled) .btn--nav-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #2dd4bf 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.site-header:not(.site-header--scrolled) .btn--nav-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #14b8a6 100%) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
    transform: translateY(-1px);
}
