/*
 * AIMPLIFY — split landing + sign-in (static, no Vite CSS required).
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #030712;
}

body.lp {
  margin: 0;
  min-height: 100dvh;
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
  color: #e8eef8;
  background:
    linear-gradient(165deg, #06101f 0%, #04091a 42%, #02060f 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Background: particles only ── */
.lp-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}

.lp-ambient__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* ── Split layout ── */
.lp-split {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-inline: auto;
  padding: 2rem 1.25rem;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .lp-split {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    padding: 2.5rem 2rem;
  }
}

.lp-split__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 0 0.5rem;
  min-height: 0;
  overflow: visible;
}

@media (min-width: 900px) {
  .lp-split__visual {
    padding: 0;
  }
}

.lp-split__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 28px;
  padding: 0.5rem;
  margin: 0;
  will-change: transform;
  gap: 0;
  overflow: visible;
}

.lp-speech {
  position: relative;
  z-index: 3;
  width: min(100%, 260px);
  margin: 0 auto 1.15rem;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 18px 18px 18px 18px;
  border: 1px solid rgba(57, 161, 133, 0.4);
  background: #0b1428;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: lp-speech-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Classic speech-bubble tip pointing down at Ami's head */
.lp-speech::before,
.lp-speech::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.lp-speech::before {
  bottom: -11px;
  border-width: 11px 9px 0 9px;
  border-color: rgba(57, 161, 133, 0.4) transparent transparent transparent;
}

.lp-speech::after {
  bottom: -9px;
  border-width: 9px 7px 0 7px;
  border-color: #0b1428 transparent transparent transparent;
}

.lp-speech__hi {
  margin: 0 0 0.3rem;
  font-family: "Syne", "Figtree", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f7fc;
}

.lp-speech__body {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #c5d0e0;
}

.lp-speech__body strong {
  color: #63b8a3;
  font-weight: 700;
}

.lp-speech__cta {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #39a185;
  min-height: 1.15em;
}

.lp-speech__hi,
.lp-speech__body {
  min-height: 1.35em;
}

.lp-speech__hi.is-muted,
.lp-speech__body.is-muted,
.lp-speech__cta.is-muted {
  opacity: 0.25;
}

.lp-speech__caret {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.12em;
  vertical-align: -0.12em;
  background: #63b8a3;
  border-radius: 1px;
  animation: lp-caret-blink 0.75s steps(1, end) infinite;
}

.lp-speech.is-typing .lp-speech__cta:empty {
  min-height: 1.15em;
}

@keyframes lp-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes lp-speech-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 900px) {
  .lp-split__stage {
    padding-top: 5.75rem; /* clear space for speech bubble above Ami */
  }

  .lp-speech {
    position: absolute;
    top: 0;
    left: calc(50% - 42px);
    right: auto;
    margin: 0;
    width: 236px;
    text-align: left;
  }

  .lp-speech::before,
  .lp-speech::after {
    left: 36%;
    transform: none;
  }

  .lp-speech::before {
    bottom: -11px;
  }

  .lp-speech::after {
    bottom: -9px;
  }
}

.lp-split__image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 340px);
  height: auto;
  max-height: min(48vh, 360px);
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.35s ease;
}

.lp-split__stage:hover .lp-split__image {
  transform: scale(1.04);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.lp-split__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  padding: 1rem 0 0;
}

@media (min-width: 900px) {
  .lp-split__panel {
    width: 400px;
    padding: 0;
  }
}

.lp-split__panel-inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
}

.lp-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lp-card:hover {
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

/* Navy band keeps the light-on-dark wordmark readable */
.lp-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: #04091a;
  border-bottom: 1px solid rgba(57, 161, 133, 0.28);
}

.lp-gate__word {
  height: 22px;
  width: auto;
  display: block;
}

.lp-card__body {
  padding: 1.5rem 1.5rem 1.6rem;
}

.lp-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(185, 28, 28, 0.3);
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.lp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lp-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
}

.lp-field:focus-within .lp-label {
  color: #0f766e;
}

.lp-input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.lp-input::placeholder {
  color: #94a3b8;
}

.lp-input:hover {
  border-color: #94a3b8;
  background: #fff;
}

.lp-input:focus {
  border-color: #1e856c;
  box-shadow: 0 0 0 3px rgba(30, 133, 108, 0.18);
  background: #fff;
}

.lp-input--invalid {
  border-color: #dc2626;
}

.lp-input-wrap {
  position: relative;
}

.lp-input--with-toggle {
  padding-inline-end: 4.25rem;
}

.lp-toggle {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0.35rem;
  margin: auto 0;
  height: 2rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lp-toggle:hover {
  color: #0f766e;
  background: rgba(30, 133, 108, 0.1);
}

.lp-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.lp-check:hover {
  color: #0f172a;
}

.lp-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #1e856c;
}

.lp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a9a7d 0%, #1e856c 100%);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 133, 108, 0.28);
  transition:
    background 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lp-submit:hover {
  background: linear-gradient(180deg, #39a185 0%, #2a9a7d 100%);
  box-shadow: 0 12px 28px rgba(30, 133, 108, 0.35);
  transform: translateY(-2px);
}

.lp-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(30, 133, 108, 0.28);
}

.lp-submit:focus-visible {
  outline: 2px solid #1e856c;
  outline-offset: 2px;
}

.lp-gate__foot {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7c94;
  transition: color 0.2s ease;
}

.lp-gate__foot:hover {
  color: #9aabc4;
}

@media (prefers-reduced-motion: reduce) {
  .lp-ambient__particles {
    display: none;
  }

  .lp-speech,
  .lp-speech__caret,
  .lp-split__stage,
  .lp-split__image,
  .lp-card,
  .lp-submit,
  .lp-input,
  .lp-toggle {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .lp-split__stage:hover .lp-split__image,
  .lp-card:hover,
  .lp-submit:hover {
    transform: none;
  }
}
