/* ------------------------------------------------------------------
   FLOW landing page — styles
   Only ambient animation: background drift. Everything else is static
   with simple hover/transition states.
   ------------------------------------------------------------------ */

.lp, .lp *, .lp *::before, .lp *::after { box-sizing: border-box; }

.lp {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a1416;
  color: #f4f3ee;
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-normal);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* ==========================================================
   Media layer — background image with slow drift
   ========================================================== */
.lp__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
/* Wrapper carries the ambient drift; image inside takes cursor parallax */
.lp__media-drift {
  position: absolute;
  inset: 0;
  animation: lp-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}
.lp__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 400ms var(--ease-default);
  will-change: transform;
}
@keyframes lp-drift {
  0%   { transform: translate3d(-1%, 0%, 0); }
  100% { transform: translate3d(2%, -1.5%, 0); }
}

.lp__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 20, 22, 0.55) 0%,
      rgba(10, 20, 22, 0.25) 38%,
      rgba(10, 20, 22, 0.55) 78%,
      rgba(10, 20, 22, 0.85) 100%);
}
.lp__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
/* Soft cursor-following highlight (desktop only) */
.lp__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 35%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: var(--mo, 0);
  transition: opacity 350ms var(--ease-default);
}

/* ==========================================================
   Top chrome
   ========================================================== */
.lp__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lp__top-spacer { flex: 1; }
.lp__logo {
  display: block;
  height: auto;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.45));
}
.lp__hero-logo {
  display: block;
  width: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.55));
}
.lp__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(244, 243, 238, 0.22);
  border-radius: 9999px;
  background: rgba(10, 20, 22, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(244, 243, 238, 0.92);
}
.lp__dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--color-teal);
}

/* ==========================================================
   Hero
   ========================================================== */
.lp__hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.lp__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.75);
  margin-bottom: 24px;
}
.lp__eyebrow-dash {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(244, 243, 238, 0.5);
}

.lp__title {
  font-weight: 500;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}
.lp__title-line { display: block; }
.lp__period { color: var(--color-teal); }

.lp__lede {
  margin: 28px auto 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(244, 243, 238, 0.78);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lp__lede--cta {
  margin-top: 10px;
  color: rgba(244, 243, 238, 0.92);
}

/* ==========================================================
   Form
   ========================================================== */
.lp__form {
  margin: 36px auto 0;
  width: 100%;
  max-width: 460px;
}

.lp__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(10, 20, 22, 0.45);
  border: 1px solid rgba(244, 243, 238, 0.22);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 200ms var(--ease-default),
    background 200ms var(--ease-default);
}
.lp__field:focus-within {
  border-color: rgba(0, 165, 178, 0.85);
  background: rgba(10, 20, 22, 0.6);
}
.lp__field.is-error {
  border-color: rgba(220, 53, 69, 0.85);
}

.lp__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #f4f3ee;
  font: inherit;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 10px 8px 10px 18px;
  min-width: 0;
}
.lp__input::placeholder { color: rgba(244, 243, 238, 0.5); }
.lp__input:disabled { opacity: 0.6; cursor: progress; }

.lp__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-teal);
  color: #ffffff;
  border: 0;
  border-radius: 9999px;
  padding: 11px 18px 11px 20px;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 200ms var(--ease-default);
}
.lp__submit:hover  { background: var(--brand-hover); }
.lp__submit:disabled { cursor: progress; opacity: 0.85; }

/* Spinner — only visible during loading state */
.lp__spinner {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: lp-spin 700ms linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp__meta {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(244, 243, 238, 0.55);
  min-height: 1.2em;
}
.lp__error { color: #ffb4ba; }

/* Success state */
.lp__success {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 14px;
  border-radius: 9999px;
  background: rgba(0, 165, 178, 0.16);
  border: 1px solid rgba(0, 165, 178, 0.5);
  color: #e3f7f9;
  font-size: 14px;
}
.lp__success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--color-teal);
  color: #fff;
  flex-shrink: 0;
}
.lp__success-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}
.lp__success-text strong { font-weight: 500; color: #f4f3ee; }
.lp__success-text > span:last-child {
  color: rgba(244, 243, 238, 0.65);
  font-size: 12px;
}

/* ==========================================================
   Footer
   ========================================================== */
.lp__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 243, 238, 0.55);
}
.lp__foot-spacer { flex: 1; }
.lp__foot-meta { display: inline-flex; align-items: center; gap: 10px; }
.lp__foot-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms var(--ease-default);
}
.lp__foot-meta a:hover { color: rgba(244, 243, 238, 0.95); }
.lp__sep { opacity: 0.4; }

/* ==========================================================
   Desktop sizing (1440 × 900)
   ========================================================== */
.lp--desktop {
  padding: 40px 64px 32px;
}
.lp--desktop .lp__logo { height: 45px; }
.lp--desktop .lp__hero-logo { height: 64px; }
.lp--desktop .lp__title { font-size: 126px; }

/* ==========================================================
   Mobile sizing (390 × 844)
   ========================================================== */
.lp--mobile {
  padding: 56px 24px 28px;
}
.lp--mobile .lp__top { justify-content: flex-start; }
.lp--mobile .lp__logo { height: 30px; }
.lp--mobile .lp__hero-logo { height: 44px; margin-bottom: 24px; }
.lp--mobile .lp__hero { max-width: 100%; padding-top: 8px; }
.lp--mobile .lp__title { font-size: 44px; line-height: 1; }
.lp--mobile .lp__title-line { display: inline; }
.lp--mobile .lp__lede { font-size: 15px; margin-top: 20px; }
.lp--mobile .lp__form { margin-top: 28px; }
.lp--mobile .lp__eyebrow {
  font-size: 10px;
  display: block;
  max-width: 220px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.7;
}
.lp--mobile .lp__field { padding: 5px; }
.lp--mobile .lp__input { font-size: 14px; padding: 9px 6px 9px 16px; }
.lp--mobile .lp__submit { padding: 9px 14px; font-size: 13px; }
.lp--mobile .lp__foot { font-size: 10px; letter-spacing: 0.08em; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lp__media-drift, .lp__spinner {
    animation-duration: 0.01ms !important;
  }
  .lp__video { transition-duration: 0.01ms !important; }
}
