/* =============================================================
   main.css — "Sua Primeira Importação | China Simples"
   Uma única folha de estilo, direta e sem excesso decorativo.
   ============================================================= */
@import url('./tokens.css');

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--red);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--yellow); color: var(--red); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-deep); flex: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
em { font-style: italic; color: inherit; }

.lead { color: var(--ink-soft); font-size: 17px; max-width: 54ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.15s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--yellow); color: var(--red); }
.btn-primary:hover { background: var(--yellow-deep); }

.btn-dark { background: var(--red); color: var(--white); }
.btn-dark:hover { background: var(--red-deep); }

.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--red); }
.btn-outline:hover { border-color: var(--red); }

.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Reveal (sutil, sem exagero) ----------
   Visível por padrão: só fica oculto se JS confirmar suporte
   (classe .has-js aplicada de forma síncrona no <head>).
   Sem JS, ou se algo falhar, o conteúdo nunca some. */
html.has-js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Header ----------
   Fundo escuro de propósito: a logo real (logo-branca.png / logo.png)
   tem o "China" em branco — só funciona sobre fundo escuro. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 6, 6, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s var(--ease);
}
.site-header.scrolled { background: rgba(246, 6, 6, 0.97); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; align-items: center; gap: 12px; transition: opacity 0.2s var(--ease); }
.logo:hover { opacity: 0.75; }
.logo-img { height: 26px; width: auto; flex: none; }
.logo-name-full {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: rgba(255,255,255,0.65);
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 12px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow-deep); }

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; }
.hero h1 .mark { background: var(--yellow); padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.hero-lead { margin-top: 22px; font-size: 18px; }
.hero-lead strong { color: var(--red); }

.hero-cta-row { margin-top: 32px; }

.hero-trust {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 13px; color: var(--ink-faint);
}
.hero-trust .item { display: flex; align-items: center; gap: 7px; }
.hero-trust .item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); }

/* Cartão do produto — plano, sem 3D, sem glow */
.hero-card {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease);
}
.hero-card:hover { transform: translateY(-6px) scale(1.015); }
.hero-card-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-card-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.hero-card-logo { width: 62%; height: auto; }
.hero-card-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; line-height: 1.15;
}
.hero-card-foot { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---------- Seções — espaçamento comum ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 14px; line-height: 1.18; }
.section-head .lead { margin-top: 14px; }

.section-alt { background: var(--paper-2); }

/* ---------- Conteúdo (intro + o que você aprende) ---------- */
.intro-text { max-width: 640px; }
.intro-text p { font-size: 17px; color: var(--ink-soft); }
.intro-text p + p { margin-top: 14px; }
.intro-text strong { color: var(--red); }

.learn-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.learn-item {
  background: var(--paper);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.learn-item:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--white);
  box-shadow: 0 16px 32px -18px rgba(20,20,20,0.22);
  z-index: 2;
}
.learn-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-faint);
  flex: none;
  padding-top: 2px;
  transition: color 0.25s var(--ease), transform 0.3s var(--ease);
}
.learn-item:hover .num { color: var(--red); transform: scale(1.15); }

/* ---------- Para quem é / processo ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.audience-col h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 18px;
}
.audience-col .badge {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.audience-col.for .badge { background: var(--yellow); }
.audience-col.not .badge { background: var(--paper-2); border: 1px solid var(--line-strong); }
.audience-col .badge svg { width: 12px; height: 12px; }
.audience-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease), transform 0.25s var(--ease);
}
.audience-list li:last-child { border-bottom: 1px solid var(--line); }
.audience-list li:hover { color: var(--red); padding-left: 8px; transform: scale(1.01); }

.process { margin-top: 72px; }
.process-head { max-width: 640px; margin-bottom: 36px; }
.process-head h3 { font-size: 1.15rem; margin-top: 8px; }

.process-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.process-step {
  position: relative;
  padding: 22px 16px 0 0;
  border-top: 2px solid var(--line-strong);
  transition: transform 0.3s var(--ease);
  transform-origin: left top;
}
.process-step:hover { transform: translateY(-4px) scale(1.04); }
.process-step .star {
  position: absolute; top: -7px; left: 0; width: 12px; height: 12px; color: var(--yellow-deep);
  transform-origin: center;
}
.process-step:first-child .star { color: var(--red); }

/* As estrelinhas "crescem" ao entrar na tela e, depois, ficam pulsando
   (cresce/volta) em loop contínuo — respeita prefers-reduced-motion
   (regra global no topo do arquivo desliga a animação nesse caso). */
@keyframes starPop {
  0% { transform: scale(0) rotate(-20deg); }
  70% { transform: scale(1.3) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}
html.has-js .process-step .star { transform: scale(0); }
html.has-js .process.is-visible .process-step .star {
  animation: starPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             starPulse 2.6s ease-in-out infinite;
}
html.has-js .process.is-visible .process-step:nth-child(1) .star { animation-delay: 0.28s, 0.78s; }
html.has-js .process.is-visible .process-step:nth-child(2) .star { animation-delay: 0.36s, 0.86s; }
html.has-js .process.is-visible .process-step:nth-child(3) .star { animation-delay: 0.44s, 0.94s; }
html.has-js .process.is-visible .process-step:nth-child(4) .star { animation-delay: 0.52s, 1.02s; }
html.has-js .process.is-visible .process-step:nth-child(5) .star { animation-delay: 0.60s, 1.10s; }
html.has-js .process.is-visible .process-step:nth-child(6) .star { animation-delay: 0.68s, 1.18s; }
.process-step .n { font-size: 12px; color: var(--ink-faint); font-family: var(--font-display); font-weight: 700; }
.process-step .t { margin-top: 6px; font-size: 14.5px; font-weight: 600; transition: color 0.2s var(--ease); }
.process-step:hover .t { color: var(--red); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.faq-side .lead { margin-top: 14px; }
.faq-side .btn { margin-top: 24px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 15.5px; font-weight: 600;
  color: var(--red);
  text-align: left;
  transition: gap 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.faq-q:hover { gap: 22px; padding-left: 6px; }
.faq-q .icon { position: relative; width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }
.faq-q:hover .icon { transform: scale(1.2); }
.faq-q .icon::before, .faq-q .icon::after {
  content: ''; position: absolute; background: var(--red);
  transition: transform 0.2s var(--ease);
}
.faq-q .icon::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.faq-q .icon::after { top: 0; left: 7px; width: 1.5px; height: 16px; }
.faq-q[aria-expanded="true"] .icon::after { transform: scaleY(0); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); }
.faq-a-inner { padding-bottom: 18px; font-size: 15px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- CTA final ---------- */
.final-cta {
  background: var(--red);
  color: var(--white);
  text-align: center;
}
.final-cta-inner { max-width: 620px; margin: 0 auto; }
.final-cta .eyebrow { color: rgba(255,255,255,0.55); justify-content: center; }
.final-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 14px; line-height: 1.15; }
.final-cta .lead { color: rgba(255,255,255,0.65); margin: 16px auto 0; }
.final-cta .btn-row { justify-content: center; margin-top: 32px; }
.final-cta .btn-outline { border-color: rgba(255,255,255,0.28); color: var(--white); }
.final-cta .btn-outline:hover { border-color: var(--white); }

.final-cta .meta {
  margin-top: 30px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.final-cta .meta .item { display: flex; align-items: center; gap: 7px; }
.final-cta .meta svg { width: 14px; height: 14px; flex: none; }

/* ---------- Footer ----------
   Escuro de propósito (mesmo motivo do header: a logo real precisa
   de fundo escuro) — fecha a página no mesmo tom do CTA final. */
.site-footer {
  padding: 48px 0 28px;
  background: var(--red);
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .logo-name-full { color: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.18); }
.footer-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px;
}
.footer-brand { max-width: 340px; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: rgba(255,255,255,0.7); }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  display: inline-block;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-col a:hover { color: var(--white); transform: translateX(4px) scale(1.03); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a:hover { color: var(--white); }

.footer-fine {
  margin-top: 24px;
  font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.3);
  max-width: 78ch;
}

/* =============================================================
   Responsivo
   ============================================================= */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 40px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { aspect-ratio: 16 / 10; max-width: 380px; }
  .learn-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-flow { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .logo-img { height: 22px; }
  .logo-name-full { display: none; }
  .hero-tag { font-size: 12px; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .final-cta .meta { flex-direction: column; align-items: center; }
}
