:root {
  --neon: #EEFF00;
  --neon-soft: rgba(238, 255, 0, .16);
  --bg: #050505;
  --ink: #f4f4ef;
  --mute: #9a9a92;
  --line: rgba(255, 255, 255, .12);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, a, label { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
button { font: inherit; color: inherit; }
em { font-style: normal; color: var(--neon); }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- botão ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.6rem 1.05rem 1.9rem;
  background: var(--neon); color: #000;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 0 0 0 var(--neon-soft), 0 10px 40px -8px rgba(238, 255, 0, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: pulse 2.6s infinite;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.btn__arrow {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: #000; color: var(--neon); font-size: 1rem;
  transition: transform .4s var(--ease);
}
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn__shine {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.4s infinite 1s;
}
.btn--big { padding: 1.3rem 2rem 1.3rem 2.4rem; font-size: .95rem; }
.btn--block { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .6; pointer-events: none; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px transparent, 0 10px 40px -8px rgba(238, 255, 0, .55); } 100% { box-shadow: 0 0 0 0 transparent, 0 10px 40px -8px rgba(238, 255, 0, .55); } }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  padding: max(1.5rem, env(safe-area-inset-top)) max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left));
  display: flex; flex-direction: column;
  overflow: hidden;
}
.topbar { display: flex; justify-content: space-between; gap: 1rem; position: relative; z-index: 5; }
.tag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px);
}
.tag i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); animation: blink 1.4s infinite; }
.brand { height: 26px; width: auto; align-self: center; }
.tag--ghost { color: var(--neon); border-color: rgba(238, 255, 0, .35); }
@keyframes blink { 50% { opacity: .2; } }

.hero__grid {
  flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem;
  max-width: 1300px; width: 100%; margin: 0 auto; position: relative; z-index: 4;
}
.eyebrow {
  margin: 0 0 1.4rem; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--neon); font-weight: 700;
}
.title {
  margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em;
}
.title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.w {
  display: inline-block; transform: translateY(110%) rotate(6deg);
  animation: rise 1s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .12s);
}
.w--neon { color: var(--neon); text-shadow: 0 0 40px rgba(238, 255, 0, .55); position: relative; }
.w--neon::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; color: #fff; mix-blend-mode: overlay;
  clip-path: inset(0 100% 0 0); animation: sweep 4s infinite 2.2s;
}
@keyframes rise { to { transform: none; } }
@keyframes sweep { 0% { clip-path: inset(0 100% 0 0); } 40% { clip-path: inset(0 0 0 0); } 60%, 100% { clip-path: inset(0 0 0 100%); } }

.lead { max-width: 30rem; margin: 1.4rem 0 2rem; font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.6; color: #d6d6cf; }
.lead strong { color: var(--neon); font-weight: 700; }
.lead--center { margin-inline: auto; text-align: center; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 1.6rem; }
.hint { font-size: .85rem; color: var(--mute); }

.reveal { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* palco do astronauta */
.hero__stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(78vh, 760px); }
.glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 255, 0, .35), rgba(238, 255, 0, .05) 55%, transparent 70%);
  filter: blur(30px); animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }

.year {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; white-space: nowrap; user-select: none;
  font-family: var(--display); font-weight: 900; font-size: min(8.6vw, 7.8rem); line-height: 1; letter-spacing: -.04em;
  filter: drop-shadow(0 0 28px rgba(238, 255, 0, .55));
}
.year__line { display: block; color: transparent; -webkit-text-stroke: 2px var(--neon); opacity: .85; }
.year__fill {
  position: absolute; inset: 0; color: var(--neon);
  clip-path: inset(100% -.3em 0 -.3em); animation: fillup 7s cubic-bezier(.5, 0, .2, 1) infinite;
}
.year.is-fast .year__fill { animation-duration: 2.2s; }
@keyframes fillup {
  0% { clip-path: inset(100% -.3em 0 -.3em); opacity: 1; }
  55% { clip-path: inset(-.2em -.3em -.2em -.3em); opacity: 1; }
  82% { clip-path: inset(-.2em -.3em -.2em -.3em); opacity: 1; }
  100% { clip-path: inset(-.2em -.3em -.2em -.3em); opacity: 0; }
}
.track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.track ellipse { fill: none; stroke: rgba(238, 255, 0, .28); stroke-width: 1.2; stroke-dasharray: 2 9; }
.orbiter { position: absolute; left: 50%; top: 50%; width: clamp(64px, 7vw, 110px); z-index: 2; will-change: transform; filter: drop-shadow(0 0 22px rgba(238, 255, 0, .7)); }
.orbiter img { width: 100%; }
#warp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }


/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__bg {
  position: absolute; inset: 0; background: #060606;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(238, 255, 0, .16), transparent 60%);
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path 1.2s var(--ease);
}
.modal.is-open .modal__bg { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.modal__close {
  position: absolute; top: max(1.2rem, env(safe-area-inset-top)); right: max(1.2rem, env(safe-area-inset-right)); z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(14, 14, 14, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; font-size: 1rem;
  opacity: 0; transition: opacity .4s .5s, background .3s, transform .4s var(--ease);
}
.modal.is-open .modal__close { opacity: 1; }
.modal__close:hover { background: var(--neon); color: #000; transform: rotate(90deg); }
.modal__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: grid; place-items: center; padding: 4.5rem 1.25rem max(2rem, env(safe-area-inset-bottom)); }

.panel { width: 100%; max-width: 760px; margin: auto; }
.panel[hidden] { display: none; }
.panel { transition: opacity .7s ease, transform .7s var(--ease); }
.panel.is-leaving, .panel.is-pre { opacity: 0; transform: translateY(-14px) scale(.985); pointer-events: none; }
.panel.is-pre { transform: translateY(14px) scale(.985); }
.panel__head, .field, .btn[style*="--s"] { opacity: 0; transform: translateY(30px); }
.modal.is-open .panel--form .panel__head,
.modal.is-open .panel--form .field,
.modal.is-open .panel--form .btn { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.45s + var(--s, -1) * .09s + .09s); }
.modal.is-open .panel--form .panel__head { transition-delay: .4s; }
.modal.is-open .panel--form .btn { transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .35s var(--ease); transition-delay: 1.05s, 1.05s, 0s; }
.modal.is-open .panel--form .btn:hover { transform: translateY(-3px) scale(1.01); transition-delay: 0s; }

.panel__title { margin: 0 0 2.2rem; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.3rem); text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }

.field { position: relative; display: block; margin-bottom: 1.5rem; }
.field input, .field textarea {
  width: 100%; padding: 1.7rem 0 .6rem; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: 500 1.15rem/1.4 var(--body); outline: none; resize: none; border-radius: 0;
}
.field textarea { padding-right: 3.5rem; }
.field--area { display: flex; flex-direction: column; }
.field--area .field__label { position: static; order: -1; transform: none !important; font-size: .95rem; line-height: 1.35; color: var(--ink); margin-bottom: .2rem; }
.field--area textarea { padding-top: .5rem; min-height: 5.6rem; overflow: hidden; }
.field--area textarea:focus + .field__label { color: var(--neon); }
.field__label {
  position: absolute; left: 0; top: 1.5rem; font-size: 1.05rem; color: var(--mute); pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease), color .3s; max-width: 100%;
}
.field input:focus + .field__label, .field input:not(:placeholder-shown) + .field__label,
.field textarea:focus + .field__label, .field textarea:not(:placeholder-shown) + .field__label {
  transform: translateY(-1.25rem) scale(.7); color: var(--neon);
}
.field__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--neon); box-shadow: 0 0 14px var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field input:focus ~ .field__bar, .field textarea:focus ~ .field__bar { transform: scaleX(1); }
.field__count { position: absolute; right: 0; bottom: .7rem; font-size: .72rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.field__err { display: none; margin-top: .4rem; font-size: .8rem; color: #ff6b6b; }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ff6b6b; }
.field.is-invalid { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid rgba(255, 107, 107, .5); border-radius: 12px; color: #ff9c9c; font-size: .9rem; }

/* lançamento */
.panel--launch { position: fixed; inset: 0; max-width: none; margin: 0; overflow: hidden; }
.launch { position: absolute; inset: 0; text-align: center; }
.launch__status { position: absolute; left: 0; right: 0; top: 16%; margin: 0; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--neon); font-weight: 700; }
.launch__num { position: absolute; left: 0; right: 0; top: 22%; font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 11vw, 7rem); color: var(--neon); text-shadow: 0 0 60px rgba(238, 255, 0, .6); line-height: 1; }
.launch__num.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { transform: scale(1.8); opacity: 0; } to { transform: none; opacity: 1; } }
.launch__rocket { position: absolute; left: 50%; bottom: 12%; margin-left: calc(clamp(110px, 20vw, 170px) / -2); width: clamp(110px, 20vw, 170px); }
.launch__rocket img { width: 100%; transform: rotate(-33deg); filter: drop-shadow(0 0 30px rgba(238, 255, 0, .55)); }
.launch__rocket.is-shaking { animation: rumble .09s infinite; }
.launch__rocket.is-flying { animation: liftoff 2.8s cubic-bezier(.55, 0, .75, .45) forwards; }
@keyframes rumble { 0% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -2px); } 100% { transform: translate(-1px, 2px); } }
@keyframes liftoff { 0% { transform: translateY(0) scale(1); } 15% { transform: translateY(14px) scale(1); } 100% { transform: translateY(-120vh) scale(1.35); } }
.launch__smoke { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 255, 255, .3), rgba(238, 255, 0, .14) 45%, transparent 75%); opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.launch.is-go .launch__smoke { opacity: 1; }

/* sucesso */
.panel--done { text-align: center; }
.done__astro { position: relative; height: min(30vh, 260px); margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center; }
.done__astro img { position: relative; height: 100%; width: auto; animation: drift 6s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(238, 255, 0, .3)); }
.done__halo { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(238, 255, 0, .4), transparent 65%); filter: blur(30px); }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.panel--done > * { opacity: 0; transform: translateY(24px) scale(.96); }
.panel--done.is-in > * { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.panel--done.is-in > :nth-child(2) { transition-delay: .25s; }
.panel--done.is-in > :nth-child(3) { transition-delay: .4s; }
.panel--done.is-in > :nth-child(4) { transition-delay: .55s; }
.panel--done.is-in > :nth-child(5) { transition-delay: .7s; }
.panel--done.is-in > :nth-child(6) { transition-delay: 1s; }
.done__brand { position: fixed; right: max(1.5rem, env(safe-area-inset-right)); bottom: max(1.5rem, env(safe-area-inset-bottom)); height: 24px; width: auto; }
.done__title { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.08; }
.panel--done .lead { margin-block: 1.2rem 2rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--ink); }

#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; padding-top: .5rem; align-content: center; }
  .hero__stage { transform: translateY(-4svh); margin-bottom: -6svh; }
  .hero__stage { order: -1; height: clamp(190px, 33svh, 320px); margin-bottom: .5rem; }
  .year { font-size: min(24.5vw, 7rem); }
  .orbiter { width: 62px; }
  .title { font-size: clamp(1.75rem, 8vw, 2.8rem); }
  .lead { font-size: 1rem; margin: 1rem 0 1.5rem; max-width: none; }
  .cta-row { flex-direction: column; align-items: stretch; gap: .9rem; }
  .cta-row .btn { justify-content: space-between; }
  .hint { text-align: center; }
  .row { grid-template-columns: 1fr; }
  .glow { width: 90%; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .hero__stage { transform: translateY(-2svh); margin-bottom: 0; }
}
@media (max-width: 480px) {
  .brand { height: 20px; }
  .btn { font-size: .78rem; padding-inline: 1.5rem 1rem; }
  .btn--big { padding: 1.1rem 1.2rem 1.1rem 1.5rem; }
  .field__label { font-size: .98rem; }
  .field input, .field textarea { font-size: 1.05rem; } /* >=16px evita zoom automático no iOS */
  .modal__scroll { padding-top: 4.75rem; padding-inline: 1.1rem; }
  .panel__title { margin-bottom: 1.4rem; }
  .field { margin-bottom: 1.15rem; }
  .done__astro { height: min(26svh, 200px); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__stage { order: 0; height: 70svh; transform: none; margin-bottom: 0; }
  .title { font-size: clamp(1.4rem, 4vw, 2rem); }
  .lead { margin: .7rem 0 1rem; }
  .year { font-size: min(9vw, 4.5rem); }
}
@media (hover: none) {
  .btn:hover { transform: none; }
}

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