/**
 * Early Access Gate — Evident Technologies
 *
 * Full visual stack: inherits depth-scene (starfield, Metatron's Cube,
 * Flower of Life, nebula, constellation), atmosphere (sirens-to-scales
 * glow, scales watermark), and glassmorphism from landing.njk layout.
 *
 * This file provides early-access-specific layout, form styling,
 * and animation choreography.
 */

/* ── Hero ──────────────────────────────────────────────────────────── */

.ea-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2rem);
  overflow: hidden;
}

.ea-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg, 2rem);
}

/* ── Brand ─────────────────────────────────────────────────────────── */

.ea-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgb(163 188 246 / 80%);
  margin-bottom: var(--space-sm, 0.5rem);
}

.ea-brand__mark {
  filter: drop-shadow(0 0 16px rgb(151 197 253 / 25%));
}

.ea-brand__wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(163 188 246 / 70%);
}

/* ── Headline ───────────────────────────────────────────────────────── */

.ea-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(200 140 0 / 70%);
  margin: 0;
}

.ea-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.236rem); /* φ³ scale */
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.ea-hero__title-line {
  display: block;
  color: #e8f0fc;
}

.ea-hero__title--strong {
  background: linear-gradient(135deg, rgb(151 197 253), rgb(126 217 191));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.ea-hero__body {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: rgb(200 215 245 / 70%);
  max-width: 560px;
  margin: 0;
  text-wrap: pretty;
}

/* ── Panels ─────────────────────────────────────────────────────────── */

.ea-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md, 1rem);
  width: 100%;
  max-width: 680px;
}

@media (min-width: 640px) {
  .ea-panels {
    grid-template-columns: 1fr 1fr;
  }
}

.ea-panel {
  padding: var(--space-lg, 2rem);
  border-radius: 16px;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 1rem);
}

.ea-panel__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ea-panel__icon {
  color: rgb(151 197 253 / 60%);
  flex-shrink: 0;
}

.ea-panel__heading {
  font-size: 1rem;
  font-weight: 600;
  color: #e8f0fc;
  margin: 0;
}

.ea-panel__success {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(126 217 191 / 80%);
  margin: 0;
}

/* ── Form ───────────────────────────────────────────────────────────── */

.ea-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
}

.ea-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ea-field__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(163 188 246 / 60%);
}

.ea-field__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #e8f0fc;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.ea-field__input::placeholder {
  color: rgb(163 188 246 / 30%);
}

.ea-field__input:focus {
  border-color: rgb(151 197 253 / 50%);
  box-shadow: 0 0 0 2px rgb(151 197 253 / 15%);
}

.ea-field__input:focus-visible {
  border-color: rgb(151 197 253 / 60%);
  box-shadow: 0 0 0 3px rgb(151 197 253 / 20%);
}

/* Invite code input — monospace for code readability */
#invite-code {
  font-family: "SF Mono", "Cascadia Code", "Fira Code", "Consolas", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ea-field__help {
  font-size: 0.75rem;
  color: rgb(163 188 246 / 40%);
  margin: 0;
}

.ea-field__error {
  font-size: 0.8125rem;
  color: rgb(251 146 146 / 90%);
  margin: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.ea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
  text-decoration: none;
  line-height: 1.4;
}

.ea-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ea-btn--primary {
  background: linear-gradient(135deg, rgb(31 58 153), rgb(45 120 255));
  color: #fff;
  box-shadow: 0 4px 16px rgb(45 120 255 / 25%);
}

.ea-btn--primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgb(45 120 255 / 35%);
}

.ea-btn--primary:not(:disabled):active {
  transform: translateY(0);
}

/* Glow effect on primary button */
.ea-btn--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgb(45 120 255), rgb(126 217 191));
  border-radius: inherit;
  filter: blur(12px);
  opacity: 0.4;
  z-index: -1;
  transition: opacity 300ms ease;
}

.ea-btn--primary:not(:disabled):hover::before {
  opacity: 0.65;
}

.ea-btn--outline {
  background: transparent;
  color: rgb(163 188 246 / 80%);
  border: 1px solid rgb(163 188 246 / 25%);
}

.ea-btn--outline:not(:disabled):hover {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(163 188 246 / 40%);
  transform: translateY(-1px);
}

.ea-btn__icon {
  flex-shrink: 0;
}

/* ── Credibility Signals ────────────────────────────────────────────── */

.ea-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md, 1rem) var(--space-lg, 2rem);
  margin-top: var(--space-md, 1rem);
}

.ea-signal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgb(163 188 246 / 45%);
  white-space: nowrap;
}

.ea-signal__icon {
  flex-shrink: 0;
  color: rgb(151 197 253 / 35%);
}

/* ── Animations ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .ea-hero__inner > * {
    opacity: 0;
    transform: translateY(16px);
    animation: ea-fade-up 600ms ease-out forwards;
  }

  .ea-hero__inner > *:nth-child(1) {
    animation-delay: 100ms;
  }
  .ea-hero__inner > *:nth-child(2) {
    animation-delay: 200ms;
  }
  .ea-hero__inner > *:nth-child(3) {
    animation-delay: 350ms;
  }
  .ea-hero__inner > *:nth-child(4) {
    animation-delay: 500ms;
  }
  .ea-hero__inner > *:nth-child(5) {
    animation-delay: 650ms;
  }

  @keyframes ea-fade-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ea-hero__inner > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .ea-btn--primary::before {
    display: none;
  }
}
