/* Lemon Lime — hype page
   Palette taken from the logo: navy ink, lemon yellow, lime green. */

:root {
  --navy-900: #070E1A;
  --navy-800: #0A1320;
  --navy-700: #101B2D;
  --lemon:    #FFD215;
  --lime:     #97CB24;
  --ink:      #F2F6FA;
  --muted:    #8FA0B8;

  --shell: min(1080px, 88vw);
  --font: "Montserrat", "Avenir Next", "Futura", "Helvetica Neue", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) 1.25rem;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 0%, #12203A 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  -webkit-font-smoothing: antialiased;
}

/* Fine citrus-pulp grain over the whole backdrop */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  opacity: .035;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 4px 4px;
}

/* ---------- ambient glows ---------- */

.glow {
  position: fixed;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow--lemon {
  top: -26vmax;
  left: -18vmax;
  background: radial-gradient(circle, rgba(255, 210, 21, .30) 0%, rgba(255, 210, 21, 0) 68%);
  animation: drift 22s ease-in-out infinite alternate;
}

.glow--lime {
  bottom: -30vmax;
  right: -20vmax;
  background: radial-gradient(circle, rgba(151, 203, 36, .26) 0%, rgba(151, 203, 36, 0) 68%);
  animation: drift 27s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 5vh, 0) scale(1.14); }
}

/* ---------- rising bubbles ---------- */

.bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  bottom: -12vh;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: rise linear infinite;
}

@keyframes rise {
  0%   { opacity: 0;   transform: translate3d(0, 0, 0) scale(.7); }
  12%  { opacity: .55; }
  85%  { opacity: .28; }
  100% { opacity: 0;   transform: translate3d(var(--sway, 3vw), -118vh, 0) scale(1.15); }
}

/* ---------- stage ---------- */

.stage {
  position: relative;
  z-index: 1;
  width: var(--shell);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.75rem, 4.5vw, 3rem);
}

.logo {
  width: min(520px, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 46px rgba(255, 210, 21, .16));
  animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) both;
}

.slogan {
  margin: 0;
  font-size: clamp(1.25rem, 4.6vw, 2.35rem);
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--lemon) 0%, #DDD41C 42%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) .12s both;
}

/* ---------- countdown ---------- */

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(.35rem, 1.6vw, 1.1rem);
  animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) .24s both;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  min-width: clamp(4.1rem, 15vw, 7.5rem);
  padding: clamp(.9rem, 2.4vw, 1.5rem) clamp(.5rem, 1.6vw, 1.1rem);
  border: 1px solid rgba(242, 246, 250, .10);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(242, 246, 250, .06), rgba(242, 246, 250, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -28px rgba(0, 0, 0, .9);
  backdrop-filter: blur(6px);
}

.unit__value {
  font-size: clamp(2.1rem, 8.5vw, 4.4rem);
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .01em;
}

.unit:first-child .unit__value {
  background: linear-gradient(180deg, var(--lemon), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.unit__value.is-ticking { animation: tick .5s cubic-bezier(.22, 1, .36, 1); }

.unit__label {
  font-size: clamp(.55rem, 1.7vw, .7rem);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.sep {
  align-self: center;
  margin-top: -1.6rem;
  font-size: clamp(1.4rem, 4.5vw, 2.4rem);
  font-weight: 200;
  color: rgba(242, 246, 250, .18);
}

.date {
  margin: 0;
  font-size: clamp(.65rem, 2vw, .8rem);
  font-weight: 400;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--muted);
  animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) .36s both;
}

/* ---------- compact countdown (subpages) ---------- */

.countdown--sm { gap: clamp(.3rem, 1.2vw, .6rem); }

.countdown--sm .unit {
  gap: .45rem;
  min-width: clamp(3.4rem, 12vw, 4.8rem);
  padding: clamp(.6rem, 1.6vw, .85rem) clamp(.4rem, 1vw, .6rem);
  border-radius: 14px;
}

.countdown--sm .unit__value { font-size: clamp(1.5rem, 5.5vw, 2.4rem); }

.countdown--sm .unit__label { font-size: clamp(.5rem, 1.4vw, .6rem); letter-spacing: .18em; }

.countdown--sm .sep { margin-top: -1.1rem; font-size: clamp(1rem, 3vw, 1.5rem); }

/* ---------- diagnóstico ---------- */

.stage--narrow { width: min(640px, 100%); gap: clamp(1.25rem, 3.5vw, 2rem); }

.logo--sm { width: min(260px, 60vw); }

.lead {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) .12s both;
}

.lead strong {
  font-weight: 500;
  background: linear-gradient(100deg, var(--lemon), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  margin: 0;
  font-size: clamp(.65rem, 2vw, .78rem);
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(242, 246, 250, .10);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(242, 246, 250, .06), rgba(242, 246, 250, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -40px rgba(0, 0, 0, .9);
  backdrop-filter: blur(6px);
  text-align: left;
  animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) .36s both;
}

.panel__title {
  margin: 0 0 .35rem;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 500;
}

.panel__text {
  margin: 0 0 1.4rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: .8rem .95rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: rgba(7, 14, 26, .55);
  border: 1px solid rgba(242, 246, 250, .14);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - .8rem) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field select option { color: #0A1320; }

.field input::placeholder { color: rgba(143, 160, 184, .55); }

.field input:focus,
.field select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(151, 203, 36, .18);
}

.check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}

.check input { margin: .2rem 0 0; accent-color: var(--lime); flex: none; }

.check a, .legal a, .footer a { color: var(--ink); text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  grid-column: 1 / -1;
  padding: .95rem 1.2rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #0A1320;
  background: linear-gradient(100deg, var(--lemon), var(--lime));
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s, filter .2s, opacity .2s;
}

.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.form__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
}

.form__status.is-error { color: #FF8A7A; }
.form__status.is-ok { color: var(--lime); }

.footer {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--muted);
}

@media (max-width: 520px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- legal ---------- */

body.page-legal { display: block; }

.legal {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  line-height: 1.7;
  font-size: .95rem;
}

.legal .logo--sm { display: block; width: min(180px, 45vw); margin-bottom: 2.5rem; animation: none; }

.legal h1 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 300; letter-spacing: .02em; }
.legal h2 { margin: 2.4rem 0 .6rem; font-size: 1.15rem; font-weight: 500; color: var(--lemon); }
.legal h3 { margin: 1.6rem 0 .4rem; font-size: .98rem; font-weight: 500; }
.legal p, .legal ul { margin: 0 0 .9rem; color: #D3DCE7; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .updated { color: var(--muted); font-size: .85rem; }
.legal .back { display: inline-block; margin-top: 2.5rem; font-size: .85rem; }

/* ---------- motion ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes tick {
  0%   { opacity: .35; transform: translate3d(0, -6px, 0); }
  100% { opacity: 1;   transform: none; }
}

@media (max-width: 380px) {
  .sep { display: none; }
  .countdown { flex-wrap: wrap; gap: .5rem; }
  .unit { min-width: calc(50% - .25rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bubbles { display: none; }
}
