/* ===== Fontes ===== */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Tokens (base = celular; RSP-01: degraus de 8px) ===== */
:root {
  --bg: #000;
  --surface: #07080a;
  --surface-2: #0b0c0e;
  --surface-3: #101114;
  --text: #f7f8f8;
  --text-2: #b4bac4;
  --text-3: #8a8f98;
  --border: rgba(255, 255, 255, 0.06);
  --fill: rgba(255, 255, 255, 0.05);
  --fill-hover: rgba(255, 255, 255, 0.08);
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.14);
  --accent-text: #4ade80;
  --on-accent: #03140a;

  --margem: 16px;
  --gutter: 16px;
  --hero-topo: 120px;
  --secao: 64px;
  --titulo-conteudo: 40px;
  --card: 20px;        /* raio do card */
  --card-pad: 16px;
  --painel: 12px;      /* raio dos passos */

  --display: 40px;
  --lead: 18px;
  --body: 16px;
  --h2: 32px;
  --h3: 22px;
  --h4: 18px;

  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);   /* entrada na rolagem (MOV-04) */
  --ease-ui: cubic-bezier(0.23, 1, 0.32, 1);        /* interface (MOV-16) */
  --rise: 8px;                                      /* MOV-04: 8px no celular */
}

@media (min-width: 641px) {
  :root {
    --margem: 40px;
    --gutter: 24px;
    --hero-topo: 128px;
    --secao: 96px;
    --titulo-conteudo: 48px;
    --card-pad: 24px;
    --display: 56px;
    --lead: 20px;
    --body: 18px;
    --h2: 48px;
    --h3: 24px;
    --h4: 20px;
    --rise: 12px;
  }
}

@media (min-width: 1025px) {
  :root {
    --margem: 80px;
    --hero-topo: 144px;
    --secao: 128px;
    --titulo-conteudo: 64px;
    --card: 28px;
    --painel: 20px;
    --display: 72px;
    --h2: 56px;
    --h3: 28px;
  }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 500; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; border-radius: 20px; font-weight: 500;
}
.skip:focus { top: 16px; }

/* ===== Tipografia ===== */
.display { font-size: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }
.h2 { font-size: var(--h2); font-weight: 500; line-height: 1.05; letter-spacing: -0.025em; }
.h3 { font-size: var(--h3); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.h4 { font-size: var(--h4); font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; }
.lead { font-size: var(--lead); line-height: 1.5; letter-spacing: -0.01em; color: var(--text-2); }
.small { font-size: 16px; line-height: 1.5; letter-spacing: -0.005em; color: var(--text-2); }
.legenda { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.legenda--3 { color: var(--text-3); }
.rotulo { font-size: 14px; font-weight: 500; line-height: 1; color: var(--text-3); }
.botao-txt { font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -0.005em; white-space: nowrap; }

.so-celular { display: inline; }
.so-desktop { display: none; }
@media (min-width: 641px) {
  .so-celular { display: none; }
  .so-desktop { display: inline; }
}

/* ===== Header (pílula de vidro) ===== */
.header {
  position: fixed; z-index: 50;
  top: 16px; left: var(--margem); right: var(--margem);
  display: flex; justify-content: center;
  pointer-events: none;
}
.header__bar {
  position: relative; pointer-events: auto;
  width: 100%; max-width: 1280px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 28px;
}
.header__marca { display: flex; flex: 1 1 0; align-items: center; min-width: 0; }
.monograma {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 20px;
  background: var(--surface-3);
  font-size: 14px; font-weight: 500; line-height: 1;
}
.header__nav { display: none; align-items: center; gap: 8px; }
.nav-link {
  display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px;
  font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -0.005em;
  color: var(--text-2);
  transition: color 180ms var(--ease-ui);
}
.nav-link[aria-current="true"] { color: var(--text); }
.header__acao { display: flex; flex: 1 1 0; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }

.btn-primario {
  display: none; align-items: center; gap: 12px;
  height: 40px; padding: 0 4px 0 16px; border-radius: 24px;
  background: var(--accent); color: var(--on-accent);
}
.btn-primario__rotulo { font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -0.005em; white-space: nowrap; }

/* chip com seta que atravessa (MOT-04 / resposta de botão MOT-01) */
.seta-chip, .seta-circ {
  position: relative; overflow: hidden; flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 16px;
  background: var(--on-accent);
}
.seta-circ { width: 40px; height: 40px; border-radius: 20px; background: var(--fill); }
.seta-chip img, .seta-circ img { grid-area: 1 / 1; }
.seta-chip__entrada { translate: -18px 18px; }
.seta-chip__saida, .seta-chip__entrada {
  transition: translate 180ms var(--ease-ui);
}

.btn-menu {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 20px; background: var(--fill);
  transition: background-color 180ms var(--ease-ui);
}

/* menu nasce do botão (MOV-17) */
.menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(260px, 100%);
  padding: 8px; border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; translate: 0 -8px; visibility: hidden;
  transition: opacity 140ms var(--ease-ui), translate 140ms var(--ease-ui), visibility 0s linear 140ms;
}
.menu[data-aberto="true"] {
  opacity: 1; translate: 0 0; visibility: visible;
  transition: opacity 180ms var(--ease-ui), translate 180ms var(--ease-ui), visibility 0s;
}
.menu__item {
  display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 14px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em; color: var(--text-2);
  transition: color 180ms var(--ease-ui), background-color 180ms var(--ease-ui);
}
.menu__item--cta { background: var(--accent); color: var(--on-accent); margin-top: 4px; }

@media (min-width: 641px) {
  .header { top: 24px; }
  .btn-primario { display: inline-flex; }
}
@media (min-width: 1025px) {
  .header { top: 32px; }
  .header__bar { height: 64px; }
  .monograma { width: 48px; height: 48px; border-radius: 24px; }
  .header__nav { display: flex; }
  .btn-menu, .menu { display: none; }
  .btn-primario { height: 48px; padding: 0 8px 0 20px; }
}

/* ===== Hero ===== */
.hero {
  padding: var(--hero-topo) var(--margem) 24px;
  display: flex; justify-content: center;
}
.hero__conteudo {
  width: 100%; max-width: 1280px;
  display: flex; flex-direction: column; gap: var(--gutter);
}
.hero__texto { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.selo {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 32px; padding: 4px 16px 4px 4px; border-radius: 16px;
  background: var(--surface-2);
  font-size: 14px; font-weight: 500; line-height: 1;
}
.selo__chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 24px; padding: 4px 8px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text);
}
.selo__texto { color: var(--text-2); }

.apresentacao { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.apresentacao__nome { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }

.redes { display: flex; gap: 12px; width: 100%; }
.redes li { flex: 1 1 0; min-width: 0; }
.btn-sec {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 20px; background: var(--fill);
  transition: background-color 180ms var(--ease-ui);
}
.btn-sec__rotulo {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.ficha { display: flex; gap: 24px; }
.ficha__item { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-width: 0; }
.ficha__item dt { font-size: 14px; line-height: 1.5; color: var(--text-3); }
.ficha__item dd { font-size: var(--body); line-height: 1.5; letter-spacing: -0.008em; }
.ficha__div { flex: none; width: 1px; align-self: stretch; background: var(--fill-hover); }
.ficha.ficha--hero { display: none; }

.foto {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 343 / 420;
  border-radius: var(--card);
  background: var(--surface-2);
}
.foto__img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.foto__vidro {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px; border-radius: 20px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 500; line-height: 1;
}

@media (min-width: 641px) {
  .hero { padding-bottom: 40px; }
  .hero__texto { gap: 48px; }
  .redes { width: auto; }
  .redes li { flex: none; }
  .btn-sec { padding: 0 16px 0 12px; }
  .btn-sec__rotulo {
    position: static; width: auto; height: auto; overflow: visible; clip-path: none;
    font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: -0.005em;
  }
  .ficha.ficha--hero { display: flex; padding-top: 24px; border-top: 1px solid var(--border); }
  .foto { aspect-ratio: 688 / 451; }
}

@media (min-width: 1025px) {
  .hero { min-height: 900px; padding-bottom: 80px; }
  .hero__conteudo { display: grid; grid-template-columns: minmax(0, 1fr) 540px; align-items: stretch; }
  .hero__texto { justify-content: space-between; }
  .apresentacao { }
  .foto { aspect-ratio: auto; height: 100%; min-height: 560px; }
  .ficha--hero .ficha__item:nth-child(3) { flex: none; width: 218px; }
}

/* ===== Projeto ===== */
.projeto {
  display: flex; flex-direction: column; align-items: center; gap: var(--titulo-conteudo);
  padding: var(--secao) var(--margem);
  border-top: 1px solid var(--border);
}
.projeto__cabecalho { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1280px; }
.projeto__cabecalho > * { max-width: 960px; }

.bento { display: flex; flex-direction: column; gap: var(--gutter); width: 100%; max-width: 1280px; }
.bento__linha { display: flex; flex-direction: column; gap: var(--gutter); }

.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--card-pad); border-radius: var(--card);
  background: var(--surface);
}

.card--processo { gap: 24px; }
.passos { display: flex; flex-direction: column; gap: 8px; }
.passo {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  grid-template-areas: "tile txt num";
  padding: 16px; border-radius: var(--painel);
  background: var(--surface-2);
}
.passo__tile {
  grid-area: tile; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px; background: var(--surface-3);
}
.passo__num { grid-area: num; font-size: 14px; line-height: 1.5; color: var(--text-3); white-space: nowrap; }
.passo__txt { grid-area: txt; display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.card--curso {
  justify-content: space-between;
  background-color: var(--surface);
  background-image:
    linear-gradient(180deg, rgba(33, 196, 94, 0.2) 0%, rgba(33, 196, 94, 0.03) 100%);
}
/* o fundo sobe um degrau; o card em si fica parado (MOV-02) */
.card--curso::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity 180ms var(--ease-ui);
}
.card--curso__topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.logo-curso { display: flex; align-items: center; gap: 8px; }
.logo-curso img { width: 24.857px; height: 24px; }
.card--curso__texto { display: flex; flex-direction: column; gap: 8px; padding-top: 40px; position: relative; z-index: 1; }

.card--dia { justify-content: space-between; min-height: 200px; }
.card--dia__numero { display: flex; flex-direction: column; gap: 8px; }

.card--endereco { gap: 24px; }
.card--endereco__topo { display: flex; align-items: center; justify-content: space-between; }
.chip-estado {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px 0 8px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 14px; font-weight: 500; line-height: 1;
}
.ficha--endereco { flex-direction: column; gap: 16px; }
.ficha--endereco .ficha__div { display: none; }

@media (min-width: 641px) {
  .passos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .passo {
    grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: start; gap: 16px;
    grid-template-areas: "tile num" "txt txt";
    padding: 20px; min-height: 145px;
  }
  .passo__txt { align-self: end; gap: 8px; }
  .card--curso__texto { padding-top: 48px; }
  .card--dia { min-height: 240px; }
  .card--endereco { gap: 32px; }
  .ficha--endereco { flex-direction: row; gap: 24px; }
  .ficha--endereco .ficha__div { display: block; }
}

@media (min-width: 1025px) {
  .bento__linha { display: grid; align-items: stretch; }
  .bento__linha--1 { grid-template-columns: 2fr 1fr; }
  .bento__linha--2 { grid-template-columns: 1fr 2fr; }
  .passos { grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1 1 auto; }
  .passo { min-height: 162px; }
  .card--curso__texto { padding-top: 64px; }
  .card--dia { min-height: 280px; }
  .card--endereco { justify-content: space-between; }
}

/* ===== Rodapé ===== */
.rodape {
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px max(var(--margem), calc((100% - 1280px) / 2));
  border-top: 1px solid var(--border);
}
.rodape__credito { display: flex; flex-direction: column; gap: 8px; }
.rodape__credito img { width: 227.333px; height: 11px; max-width: none; }
@media (min-width: 641px) {
  .rodape, .rodape__credito { flex-direction: row; align-items: center; justify-content: space-between; }
  .rodape__credito { gap: 8px; }
}

/* ===== Hover só com ponteiro fino (MOV-09) ===== */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--text); }
  .btn-sec:hover, .btn-menu:hover { background: var(--fill-hover); }
  .menu__item:hover { color: var(--text); background: var(--fill); }
  .menu__item--cta:hover { color: var(--on-accent); background: var(--accent); }
  .btn-primario:hover .seta-chip__saida, .card--curso:hover .seta-chip__saida { translate: 18px -18px; }
  .btn-primario:hover .seta-chip__entrada, .card--curso:hover .seta-chip__entrada { translate: 0 0; }
  .card--curso:hover::after { opacity: 1; }
  .card--curso:hover .seta-circ { background: var(--fill-hover); }
}
.seta-circ { transition: background-color 180ms var(--ease-ui); }
.card--curso:focus-visible::after { opacity: 1; }

/* ===== Movimento (Livro de Regras: MOV-01, MOV-04, MOV-13, MOV-28, MOV-29, MOT-17) ===== */
/* Estado sem animação = estado final legível. O "invisível" só existe com script ligado e sem pedido de menos movimento. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .rv:not(.is-in) { opacity: 0; translate: 0 var(--rise); }
  .rv.is-in {
    animation: rv-in 800ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  /* Assinatura da primeira dobra: foto revelada por recorte, com zoom leve dentro da moldura (MOT-03).
     O maior elemento da tela nunca nasce invisível (MOV-28). */
  .foto { animation: foto-in 1100ms var(--ease-out) both; }
  .foto__img { animation: foto-zoom 1400ms var(--ease-out) both; }
}

@keyframes rv-in {
  from { opacity: 0; translate: 0 var(--rise); }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes foto-in {
  from { clip-path: inset(7% 7% 7% 7% round var(--card)); }
  to   { clip-path: inset(0 0 0 0 round var(--card)); }
}
@keyframes foto-zoom {
  from { scale: 1.08; }
  to   { scale: 1; }
}

/* Menos movimento: o deslocamento vira um fade curto (MOT-17) */
@media (scripting: enabled) and (prefers-reduced-motion: reduce) {
  .rv:not(.is-in) { opacity: 0; }
  .rv.is-in { animation: rv-fade 200ms ease-out both; }
}
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu, .menu[data-aberto="true"] { translate: 0 0; transition-duration: 1ms; }
  .seta-chip__saida, .seta-chip__entrada { transition: none; }
}

/* MOV-08 / RSP-03: nenhum efeito de rolagem pesado; nada passa da caixa no celular (MOV-14) */
.hero, .projeto, .card, .foto { max-width: 100%; }
