/* ─── Design System: Academic Singularity (captura meteórico) ─── */
:root {
  --bg: #0e0e13;
  --surface: #0e0e13;
  --surface-low: #131319;
  --surface-mid: #19191f;
  --surface-high: #1f1f26;
  --surface-highest: #25252d;
  --on-surface: #f9f5fd;
  --on-surface-variant: #acaab1;
  --primary: #8ff5ff;
  --primary-dim: #00deec;
  --primary-container: #00eefc;
  --on-primary: #005d63;
  --secondary: #c47fff;
  --error: #ff716c;
  --outline-ghost: rgba(72, 71, 77, 0.25);
  --font-headline: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 0.25rem;
  --glow: 0 0 40px rgba(143, 245, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--on-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

/* ─── Atmosphere ─── */
#bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 245, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 245, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.data-line {
  position: fixed;
  top: -20vh;
  width: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(143, 245, 255, 0.22), transparent);
  animation: data-fall linear infinite;
  opacity: 0.35;
}

@keyframes data-fall {
  from { transform: translateY(-10vh); opacity: 0; }
  20% { opacity: 0.4; }
  to { transform: translateY(120vh); opacity: 0; }
}

.cursor-orb {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 30% 20%, rgba(143, 245, 255, 0.28), transparent 65%),
    radial-gradient(circle at 70% 80%, rgba(0, 238, 252, 0.16), transparent 70%);
  transition: opacity 0.3s ease;
}

.cursor-orb.is-active {
  opacity: 1;
}

.click-burst {
  position: fixed;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1px solid rgba(143, 245, 255, 0.7);
  pointer-events: none;
  z-index: 50;
  animation: burst 0.55s ease-out forwards;
}

@keyframes burst {
  to {
    transform: scale(8);
    opacity: 0;
  }
}

.scanline {
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(143, 245, 255, 0.015) 2px,
    rgba(143, 245, 255, 0.015) 4px
  );
}

/* ─── Layout ─── */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Ticker ─── */
.launch-ticker {
  display: block;
  background: linear-gradient(90deg, #0b6d77 0%, #0a8fa0 42%, #0b6d77 100%);
  border-bottom: 1px solid rgba(143, 245, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 70, 80, 0.35);
  overflow: hidden;
}

.launch-ticker__viewport {
  overflow: hidden;
}

.launch-ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.launch-ticker__group {
  display: flex;
}

.launch-ticker__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.25rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.launch-ticker__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9fbff;
}

.launch-ticker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ff5ff;
  box-shadow: 0 0 8px #8ff5ff;
  animation: pulse-dot 1.6s ease-out infinite;
}

.launch-ticker__msg strong {
  color: #fff;
  font-weight: 700;
}

.launch-ticker__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.5rem 1.25rem 3.5rem;
}

.hero__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 90vw);
  height: min(800px, 90vw);
  background: rgba(143, 245, 255, 0.05);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

/*
  Mobile: badge + título → formulário → subtítulo / trust / selo MEC.
  display: contents deixa lead e proof participarem do grid do hero.
*/
.hero__copy {
  display: contents;
}

.hero__lead {
  order: 1;
}

.hero__lead .headline {
  margin-bottom: 0;
}

.capture-card {
  order: 2;
}

.hero__proof {
  order: 3;
}

@media (min-width: 960px) {
  .hero {
    padding: 3rem 2rem 4rem;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }

  .hero__copy {
    display: block;
    order: 1;
  }

  .hero__lead,
  .hero__proof,
  .capture-card {
    order: initial;
  }

  .capture-card {
    order: 2;
  }
}

.logo {
  height: 2.35rem;
  width: auto;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.logo--mobile {
  margin-left: auto;
  margin-right: auto;
}

.mobile-intro {
  text-align: center;
  margin-bottom: 0.75rem;
}

/* Mobile: logo só no card; badge + título ficam acima do formulário */
.logo--desktop {
  display: none;
}

.badge--desktop {
  display: inline-flex;
}

@media (min-width: 960px) {
  .mobile-intro {
    display: none;
  }

  .logo--desktop {
    display: block;
  }
}

@media (min-width: 768px) {
  .logo {
    height: 3rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(143, 245, 255, 0.25);
  background: rgba(143, 245, 255, 0.06);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-dot 1.6s ease-out infinite;
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-headline);
  font-size: clamp(1.85rem, 4.8vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-shadow: 0 0 40px rgba(143, 245, 255, 0.18);
}

.headline span {
  color: var(--primary);
}

.headline__pct {
  display: inline-block;
  color: #ffb24a !important;
  text-shadow:
    0 0 24px rgba(255, 160, 60, 0.55),
    0 0 48px rgba(255, 120, 40, 0.35);
  font-size: 1.12em;
  letter-spacing: -0.04em;
}

.subhead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-surface-variant);
}

.subhead strong {
  color: var(--on-surface);
  font-weight: 600;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-bottom: 0.25rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

.trust-item svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-item strong {
  color: var(--primary);
  font-weight: 600;
}

/* ─── Card / Form ─── */
.capture-card {
  position: relative;
  background: linear-gradient(160deg, #ff9a45 0%, #ff7a28 48%, #f05e14 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 220, 170, 0.45);
  box-shadow:
    0 0 48px rgba(255, 120, 40, 0.38),
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  padding: 1.5rem 1.25rem 1.35rem;
  overflow: hidden;
  color: #1a1008;
}

@media (min-width: 640px) {
  .capture-card {
    padding: 1.75rem 1.75rem 1.5rem;
  }
}

.capture-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 220, 0.9), transparent);
  opacity: 0.9;
}

.capture-card .card-title {
  color: #1a1008;
}

.capture-card .card-sub,
.capture-card .form-hint,
.capture-card .microcopy {
  color: rgba(40, 22, 10, 0.82);
}

.capture-card .field label {
  color: rgba(40, 22, 10, 0.78);
}

.capture-card .field input {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(120, 50, 10, 0.18);
  color: #1a1008;
}

.capture-card .field input::placeholder {
  color: rgba(80, 45, 20, 0.45);
}

.capture-card .field input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 18px rgba(255, 220, 160, 0.45);
}

.capture-card .experts__label {
  background: rgba(26, 16, 8, 0.78);
  border-color: rgba(255, 220, 170, 0.35);
  color: #ffd9a8;
}

.capture-card .mobile-intro__title {
  color: #1a1008;
}

.capture-card .mobile-intro__title span {
  color: #6b2800;
}

.capture-card .badge {
  border-color: rgba(80, 30, 0, 0.28);
  background: rgba(255, 255, 255, 0.22);
  color: #5a2200;
}

.capture-card .badge__pulse {
  background: #5a2200;
  box-shadow: 0 0 10px rgba(90, 34, 0, 0.45);
}

.capture-card .btn-cta {
  background: linear-gradient(135deg, #1a1008 0%, #3a1a08 100%);
  color: #ffd9a8;
  box-shadow: 0 0 28px rgba(40, 16, 0, 0.35);
  animation: none;
}

.capture-card .btn-cta:hover:not(:disabled) {
  box-shadow: 0 0 36px rgba(40, 16, 0, 0.5);
  filter: brightness(1.12);
}

.capture-card .form-status.is-success {
  color: #3d1800;
  font-weight: 600;
}

.capture-card .form-status.is-error,
.capture-card .field-error {
  color: #8b1010;
}

.experts {
  position: relative;
  margin: -0.25rem auto 1.1rem;
  width: min(100%, 340px);
  display: flex;
  justify-content: center;
}

.experts img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.experts__label {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  padding: 0.25rem 0.65rem;
  background: rgba(14, 14, 19, 0.82);
  border: 1px solid rgba(143, 245, 255, 0.2);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}

.card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.card-sub {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--on-surface-variant);
}

.form {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.field input {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #000;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: rgba(172, 170, 177, 0.55);
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(143, 245, 255, 0.35), 0 0 16px rgba(143, 245, 255, 0.12);
}

.field input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 1px rgba(255, 113, 108, 0.35);
}

.field-error {
  min-height: 1em;
  font-size: 0.75rem;
  color: var(--error);
}

.form-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--on-surface-variant);
  text-align: center;
}

.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 1.05rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(143, 245, 255, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.btn-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(143, 245, 255, 0.42);
  filter: brightness(1.05);
}

.btn-cta:disabled {
  opacity: 0.75;
  cursor: wait;
  animation: none;
}

.btn-cta svg {
  width: 1.15rem;
  height: 1.15rem;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(143, 245, 255, 0.22); }
  50% { box-shadow: 0 0 36px rgba(143, 245, 255, 0.4); }
}

.microcopy {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(172, 170, 177, 0.85);
}

.form-status {
  margin: 0.65rem 0 0;
  min-height: 1.25em;
  font-size: 0.8125rem;
  text-align: center;
}

.form-status.is-error {
  color: var(--error);
}

.form-status.is-success {
  color: var(--primary);
}

/* ─── MEC strip ─── */
.mec-strip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
  max-width: 32rem;
}

.mec-strip img {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.mec-strip p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--on-surface-variant);
}

.mec-strip strong {
  color: var(--on-surface);
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.25rem 1.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(172, 170, 177, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.site-footer a {
  color: var(--primary);
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.32s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .launch-ticker__track,
  .btn-cta,
  .data-line,
  .launch-ticker__dot,
  .badge__pulse {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 900px) {
  #particles-canvas,
  .cursor-orb,
  .data-line {
    display: none;
  }
}
