/* Bagagem Dev — base
   Reset, tipografia global, layout wrapper, nav, hero, seções compartilhadas. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><path d='M2 2 L2 17 L6 14 L9 20 L11.5 19 L8.5 13 L14 13 Z' fill='black' stroke='white' stroke-width='1.2'/></svg>") 2 2, auto;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250,250,248,0.85);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  max-width: 880px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover, .nav-links a.current { color: var(--text-primary); }

.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 8px;
  border: 2px solid #000; background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text-primary);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 2px solid #000;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    font-size: 14px;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    width: 100%; padding: 14px 24px; border-bottom: 0.5px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
}

.float-home-btn {
  position: fixed; bottom: 22px; right: 22px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border: 2.5px solid #000; box-shadow: 3px 3px 0 #000;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .15s ease;
}
.float-home-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000; }
.float-home-btn svg { width: 22px; height: 22px; stroke: #fff; }
@media (max-width: 640px) {
  .float-home-btn { bottom: 16px; right: 16px; width: 46px; height: 46px; }
  .float-home-btn svg { width: 19px; height: 19px; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
/* mancha de cor assimétrica, desfocada — substitui padrão tileado genérico */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 90%;
  background:
    radial-gradient(circle at 30% 30%, rgba(85, 44, 183, 0.10), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(251, 125, 168, 0.10), transparent 55%);
  filter: blur(40px);
  pointer-events: none;
}
/* palavra editorial gigante e apagada ao fundo — recurso de revista, não é grid repetido */
.hero .wrap {
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 720px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 560px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-visual {
  margin-top: 48px;
}

/* ---------- SECTION SHARED ---------- */
section {
  padding: 128px 0;
  border-top: 0.5px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-path {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}
.section-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--duration-micro) var(--ease-out);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-link:hover {
  color: var(--text-primary);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
/* fallback essencial: garante visibilidade mesmo se motion.css não carregar.
   motion.css pode sobrescrever com uma animação mais refinada, mas o
   conteúdo NUNCA deve depender de um segundo arquivo CSS pra aparecer. */
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}
/* se o JS não rodar por qualquer motivo, o conteúdo aparece assim mesmo
   depois de 1.2s — nunca fica preso em opacity:0 pra sempre */
.reveal {
  animation: revealFailsafe 0ms 1200ms forwards;
}
@keyframes revealFailsafe {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- FOOTER ---------- */
footer {
  padding: 30px 24px 50px; text-align: center; font-size: 12px;
  color: var(--text-muted); font-family: var(--font-mono); line-height: 1.6;
  border-top: 0.5px solid var(--border);
}
footer a { color: var(--text-secondary); transition: color .15s ease; }
footer a:hover { color: var(--text-primary); }

/* ---------- CTA FINAL ---------- */
.section-cta-final {
  padding: 128px 0;
  border-top: 0.5px solid var(--border);
  background: var(--bg);
}

.cta-final {
  text-align: center;
  padding: 60px 48px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-purple);
  border-radius: 4px;
  background: var(--surface);
  transition:
    transform var(--duration-fast) var(--ease-premium),
    box-shadow var(--duration-fast) var(--ease-out);
}

.cta-final:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(17, 17, 16, 0.08);
}

.cta-final-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.cta-final-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-final-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .section-cta-final { padding: 96px 0; }
  .cta-final { padding: 40px 24px; }
  .cta-final-title { font-size: 32px; }
  .cta-final-sub { font-size: 14px; }
  .cta-final-buttons { flex-direction: column; }
  .cta-final-buttons button { width: 100%; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero { padding: 72px 0 56px; }
  h1.hero-title { font-size: clamp(32px, 9vw, 44px); line-height: 1.05; margin-bottom: 20px; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 36px; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 12px; }
  .hero-ctas button { width: 100%; padding: 16px 24px; font-size: 15px; justify-content: center; }
  section { padding: 96px 0; }
  .section-title { font-size: 28px; }
}

@media (max-width: 520px) {
  .hero { padding: 56px 0 44px; }
  h1.hero-title { font-size: clamp(30px, 10vw, 36px); line-height: 1.08; margin-bottom: 18px; }
  .eyebrow { font-size: 11px; margin-bottom: 18px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 36px; max-width: 100%; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 12px; }
  .hero-ctas button { width: 100%; padding: 16px 22px; font-size: 14.5px; justify-content: center; }
  section { padding: 64px 0; }
  .section-head { flex-direction: column; margin-bottom: 32px; gap: 16px; }
  .section-link { align-self: flex-start; }
  .section-title { font-size: 24px; }
  .section-desc { font-size: 14px; }
}
