/* Lançamento A01 — shared styles (design tokens copied from Antigravity/index.html) */

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

:root {
  --black:    #000000;
  --white:    #ffffff;
  --gray:     #8A8A8A;
  --purple:   #674BFE;
  --purple-d: #32237C;
  --blue:     #18A4FF;
  --cyan:     #18E4FF;
  --pink:     #EF1CDB;
  --green:    #3BFFDD;
  --border:   rgba(255,255,255,0.08);
  --text:     rgba(255,255,255,0.85);
  --muted:    rgba(255,255,255,0.35);
  --font-primary:   'Manrope', sans-serif;
  --font-secondary: 'Times New Roman', Times, serif;
}

/* A01 usa kerning -6 globalmente em tudo — mesmo padrão aqui */
* { letter-spacing: -0.06em; }

.font-times { font-family: var(--font-secondary); font-style: italic; font-weight: 400; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 2px; }

/* ─── AEROLITO SYMBOL (outline branco, igual ao logo real da A01) ─── */

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px) saturate(1.3);
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid var(--border);
  transition: padding .35s;
}
.nav-brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.nav-wordmark {
  font-size: .8rem; font-weight: 300; letter-spacing: .3em;
  color: var(--white); text-transform: uppercase;
}
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.lang-toggle { display: flex; gap: 0; border: 1px solid var(--border); }
.lang-btn {
  font-family: 'Manrope', sans-serif;
  font-size: .65rem; font-weight: 300; letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted); background: transparent; border: none;
  padding: .35rem .75rem; cursor: pointer;
  transition: color .2s, background .2s;
}
.lang-btn.active { color: var(--black); background: var(--white); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 2.5rem; position: relative; overflow: hidden;
}
.hero-bgvideo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.78);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 1rem; text-align: left; }
.hero-tag {
  font-size: .68rem; font-weight: 300; letter-spacing: .3em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: .8rem;
}
.hero-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--muted); }
.hero-logo-row {
  display: flex; align-items: center; gap: 1.6rem;
  margin-bottom: 3rem;
}
.hero-logo { width: 84px; height: auto; flex-shrink: 0; }
.hero-wordmark {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 200; letter-spacing: -.02em;
  color: var(--white); line-height: 1.1;
}

/* ─── GERAL HERO (vídeo + headline) ─── */
.geral-hero { justify-content: center; }
.geral-wrap {
  position: relative; z-index: 1;
  max-width: 1700px; margin: 0 auto;
  display: grid; grid-template-columns: auto clamp(11.9rem, 27.8vw, 36.2rem);
  justify-content: center;
  gap: 110px; align-items: center;
  padding: 0 1rem;
}
.hero-logo-slot { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.hero-logo-crossfade {
  position: relative;
  width: 346px; /* = largura da fileira dos 3 botões (3x110px + 2x8px de gap): o logo mais horizontal (n1) preenche exatamente essa largura */
  aspect-ratio: 925 / 233;
}
.hero-logo-crossfade .logo-frame {
  position: absolute;
  top: 0;
  left: 26.37px; /* desloca todos igualmente para que o a01.psd (o mais estreito) fique centralizado no botão do meio; os demais mantêm o diamante+/ alinhado a essa mesma marca */
  height: 100%;
  width: auto;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-logo-crossfade .logo-frame.active { opacity: 1; }
.geral-copy {}
.geral-headline {
  font-family: 'Manrope', 'Noto Sans JP', 'Noto Sans Ethiopic', sans-serif;
  font-size: clamp(1.445rem, 3.4vw, 4.42rem);
  font-weight: 800; letter-spacing: -.06em; line-height: 0.87;
  color: var(--white);
  margin-bottom: 0.1rem;
  text-align: left;
  min-height: 7em; /* reserva espaço p/ até 8 linhas: idiomas mais longos (ex. guarani) nunca empurram os botões */
  will-change: opacity;
  transition: opacity .6s ease;
}
.geral-subline {
  font-family: 'Manrope', 'Noto Sans JP', 'Noto Sans Ethiopic', sans-serif;
  font-size: clamp(0.76rem, 1.51vw, 1.16rem);
  font-weight: 800; letter-spacing: -.06em; line-height: 1.15;
  color: #8A7CFA;
  margin-bottom: 3.2rem;
  text-align: left;
  transform: translateY(-1.8rem); /* puxa só o texto lilás pra cima visualmente, sem mexer no fluxo (headline e botões ficam parados) */
  will-change: opacity, transform;
  transition: opacity .6s ease;
}
.geral-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── COVER BUTTON GRID (specs exatas tiradas do botão real em a01.aerolito.ai) ─── */
.cover-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-btn {
  display: inline-block;
  width: 110px; height: 29px;
  font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 800; letter-spacing: -0.6px; line-height: 15px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  color: var(--white); background: transparent;
  border: 1px solid var(--white);
  border-radius: 2px;
  padding: 6px 0; text-align: center; cursor: pointer;
  text-decoration: none;
  transition: background .25s;
}
.cover-btn:hover { background: rgba(255,255,255,0.1); }

/* ─── VIDEO MODAL ─── */
.video-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.video-modal[hidden] { display: none; }
.video-modal-inner { position: relative; width: 100%; max-width: 960px; }
.video-modal-close {
  position: absolute; top: -2.6rem; right: 0;
  background: none; border: none; color: var(--white);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.video-modal-body {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #050505;
}
.video-modal-placeholder {
  font-size: .82rem; font-weight: 300; letter-spacing: .04em; color: var(--muted);
}

/* ─── INFO MODAL (linha → caixa → texto, mesma animação 4 fases da A01) ─── */
.info-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 0 1.5rem;
  opacity: 1; transition: opacity 500ms ease-out;
}
.info-modal[hidden] { display: none; }
.info-modal.closing { opacity: 0; pointer-events: none; }
.info-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 1200ms ease-out;
}
.info-modal[data-phase="1"] .info-modal-backdrop,
.info-modal[data-phase="2"] .info-modal-backdrop,
.info-modal[data-phase="3"] .info-modal-backdrop,
.info-modal[data-phase="4"] .info-modal-backdrop { opacity: 1; }

.info-modal-box {
  position: relative; margin: 0 auto;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px; overflow: hidden;
  width: 0; max-width: 0; height: 2px;
  transition: width 1600ms ease-out, max-width 1600ms ease-out, height 1600ms ease-out;
}
.info-modal[data-phase="2"] .info-modal-box,
.info-modal[data-phase="3"] .info-modal-box,
.info-modal[data-phase="4"] .info-modal-box { width: 100%; max-width: 42rem; }
.info-modal[data-phase="3"] .info-modal-box,
.info-modal[data-phase="4"] .info-modal-box { height: min(80vh, 672px); }

.info-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 1200ms ease-out; z-index: 5;
}
.info-modal-close:hover { color: var(--white); }
.info-modal-close svg { width: 14px; height: 14px; }
.info-modal[data-phase="4"] .info-modal-close { opacity: 1; pointer-events: auto; }

.info-modal-content {
  height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem 2rem;
  opacity: 0; transition: opacity 1200ms ease-out;
}
.info-modal[data-phase="4"] .info-modal-content { opacity: 1; }

.modal-panel { display: none; }
.modal-panel.active { display: block; will-change: opacity; transform: translateZ(0); }

.info-modal-title {
  font-family: var(--font-primary);
  font-weight: 800; color: var(--white);
  font-size: clamp(18px, 2.1vw, 28px); line-height: 0.95;
  margin-bottom: 1.5rem;
}
.info-modal-text {
  font-family: var(--font-secondary); font-style: italic; font-weight: 400;
  font-size: .95rem; color: var(--text); line-height: 1.6;
  margin-bottom: 1rem;
}
.info-modal-text:last-of-type { margin-bottom: 2rem; }
.info-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── WAITLIST FORM (specs exatas do form real da A01: 48px, rgba(255,255,255,.08), Times itálico) ─── */
.waitlist-form { position: relative; display: flex; flex-direction: column; gap: .75rem; max-width: 24rem; }
.cf-turnstile { position: absolute; width: 0; height: 0; overflow: hidden; }
.waitlist-input {
  width: 100%; height: 48px; padding: 0 1rem;
  font-family: var(--font-secondary); font-style: italic; font-size: .875rem;
  color: var(--white); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.4); border-radius: 2px;
}
.waitlist-input::placeholder { color: rgba(255,255,255,0.5); }
.waitlist-input:focus { outline: none; border-color: var(--white); }
.waitlist-error {
  font-family: var(--font-secondary); font-style: italic; font-size: .75rem;
  color: #FF8CC6;
}
.waitlist-error:empty { display: none; }
.waitlist-submit { width: 100%; height: 48px; }
.waitlist-privacy {
  font-family: var(--font-secondary); font-style: italic; font-size: .7rem;
  color: var(--muted); margin-top: 1rem; line-height: 1.4;
}
.waitlist-privacy a { color: inherit; text-decoration: underline; }
.waitlist-privacy a:hover { color: var(--white); }

@media (min-width: 768px) {
  .info-modal-content { padding: 2rem 4rem; }
}

/* ─── FOOTER (idêntico ao componente Footer.tsx real da A01) ─── */
.a01-footer { border-top: 1px solid var(--border); padding: 3rem 1.5rem 6rem; }
.a01-footer-inner { max-width: 1280px; margin: 0 auto; text-align: left; }
.a01-footer-inner p {
  font-size: 10px; font-weight: 800; letter-spacing: -0.06em;
  color: var(--muted); margin-bottom: 2px;
}
.a01-footer-inner a { color: inherit; text-decoration: none; transition: color .25s; }
.a01-footer-inner a:hover { color: var(--white); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  nav { padding: .8rem 1.5rem; }
  .hero { padding: 0 1.5rem; }
  .hero-logo-row { gap: 1rem; margin-bottom: 2.2rem; }
  .hero-logo { width: 56px; }
  .cover-grid { max-width: 320px; }
  .geral-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-logo-slot { max-width: 420px; margin: 0 auto; width: 100%; align-items: center; }
  .geral-headline { text-align: left; }
}
