/* Elevva landing — tokens from the design handoff (dark mode, prioritario) */

:root {
  --noche: #0E0B18;
  --noche-elevada: #171226;
  --lavanda: #9D8AC7;
  --lavanda-clara: #C9B8E8;
  --durazno: #E3B8A8;
  --texto-primario: #EDE8F2;
  --texto-secundario: #9C91B6;
  --superficie: rgba(255, 255, 255, 0.07);
  --ok: #9FD0B0;
  --danger: #E39A9A;
  --t-scene: #F4EFF7;

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-text: "Albert Sans", -apple-system, "Helvetica Neue", sans-serif;

  --ease-quick: 0.25s ease-out;
  --ease-standard: 0.4s ease-in-out;
  --ease-gentle: 0.8s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--noche);
  color: var(--texto-primario);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 34svh;
  overflow: hidden;
  isolation: isolate;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(18px, 3svh, 28px);
}

.brand-bird {
  width: 18px;
  height: 18px;
}

.brand-bird path {
  fill: var(--lavanda-clara);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--texto-primario);
  opacity: 0.9;
}

/* ---- Retrato: Emma se funde con la noche, sin recorte duro ---- */

.retrato {
  position: relative;
  width: clamp(170px, 50vw, 230px);
  aspect-ratio: 1;
  margin: 0 auto calc(-1 * clamp(10px, 2.5svh, 18px));
}

.retrato::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle at 50% 45%, rgba(157, 138, 199, 0.16), transparent 58%);
  pointer-events: none;
}

.retrato-foto {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 34%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 44%, #000 34%, transparent 68%);
}

.hero-copy .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavanda);
  margin-bottom: 16px;
}

.hero-copy .eyebrow strong {
  font-weight: 600;
  color: var(--lavanda-clara);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.15;
  color: var(--texto-primario);
  margin-bottom: 16px;
}

.hero-copy .sub {
  color: var(--texto-secundario);
  font-size: 17px;
  max-width: 34em;
  margin: 0 auto;
}

/* ---- Waitlist form ---- */

.waitlist {
  width: 100%;
  max-width: 440px;
  margin: 40px auto 0;
}

.field-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--superficie);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  transition: border-color var(--ease-quick);
}

.field-row:focus-within {
  border-color: var(--lavanda);
}

.field-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--texto-primario);
  font-family: var(--font-text);
  font-size: 16px;
  padding: 12px 12px 12px 18px;
}

.field-row input::placeholder {
  color: var(--texto-secundario);
  opacity: 0.7;
}

.field-row button {
  border: none;
  border-radius: 999px;
  background: var(--lavanda);
  color: #14101F;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform var(--ease-quick), opacity var(--ease-quick), background var(--ease-quick);
}

.field-row button:hover { background: var(--lavanda-clara); }
.field-row button:active { transform: scale(0.96); }
.field-row button:disabled { opacity: 0.55; cursor: default; transform: none; }

.device-question {
  margin-top: 20px;
  font-size: 13px;
  color: var(--texto-secundario);
}

.device-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.device-pill {
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto-secundario);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  min-height: 44px;
  cursor: pointer;
  transition: background var(--ease-quick), border-color var(--ease-quick),
    color var(--ease-quick), transform var(--ease-quick);
}

.device-pill:active { transform: scale(0.96); }

.device-pill[aria-pressed="true"] {
  background: rgba(157, 138, 199, 0.2);
  border-color: var(--lavanda);
  color: var(--texto-primario);
}

.form-error {
  margin-top: 10px;
  font-size: 13px;
  color: var(--danger);
}

/* ---- Success state ---- */

.success {
  padding: 28px 24px;
  background: var(--superficie);
  border: 1px solid rgba(201, 184, 232, 0.35);
  border-radius: 18px;
  animation: fade-rise 0.8s ease-in-out both;
}

.success-badge {
  display: inline-block;
  font-size: 22px;
  color: var(--lavanda-clara);
  margin-bottom: 8px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--texto-primario);
}

.success-sub {
  margin-top: 6px;
  font-size: 15px;
  color: var(--texto-secundario);
}

/* ---- Scene: El ascenso (la racha como planta, semilla → florecimiento) ---- */

.scene {
  position: absolute;
  inset: auto 0 0 0;
  height: 52svh;
  z-index: -1;
  pointer-events: none;
}

.scene .ascenso {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 52%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 52%);
}

.asc-twinkle {
  animation: asc-twinkle 5s ease-in-out infinite;
}

.asc-drift {
  animation: asc-drift 8s ease-in-out infinite;
}

@keyframes asc-twinkle {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.75; }
}

@keyframes asc-drift {
  0%, 100% { transform: translateY(0); opacity: 0.18; }
  50%      { transform: translateY(-11px); opacity: 0.7; }
}

/* ---- Footer ---- */

.footer {
  padding: 32px 24px 40px;
  background: #120E20;
  text-align: center;
  font-size: 13px;
  color: var(--texto-secundario);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--texto-secundario);
  text-decoration: none;
  padding: 6px 2px; /* comfortable tap target without visual bulk */
  transition: color var(--ease-quick);
}

.footer-links a:hover { color: var(--lavanda-clara); }

/* ---- Motion (gentle, no springs) ---- */

.rise {
  opacity: 0;
  animation: fade-rise 0.8s ease-in-out both;
  animation-delay: var(--d, 0s);
}

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: fade-only 0.25s ease-out both; }
  .scene .ascenso * { animation: none !important; }
  .success { animation: fade-only 0.25s ease-out both; }
  @keyframes fade-only {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}
