@font-face { font-family: 'Gilda Display'; src: url('fonts/GildaDisplay-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Herr Von Muellerhoff'; src: url('fonts/HerrVonMuellerhoff-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('fonts/DMSans-Variable.ttf') format('truetype'); font-weight: 100 1000; font-display: swap; }

:root {
  --preto: #000; --grafite: #141414; --tinta: #3F3F3F; --osso: #E1DFD7; --osso-claro: #EFEDE5;
  --ouro: #EEB811; --ouro-escuro: #A07000; --mudo: #7A776E;
  --metal: linear-gradient(135deg, #F6E27A 0%, #EEB811 38%, #A07000 72%, #6B4E07 100%);
  --serif: 'Gilda Display', Georgia, serif; --script: 'Herr Von Muellerhoff', cursive; --sans: 'DM Sans', system-ui, sans-serif;
  --suave: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--tinta); background: var(--preto); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.estreito { width: min(780px, 100% - 48px); margin-inline: auto; }
section { position: relative; overflow: hidden; padding: 120px 0; }
.escuro { background: var(--preto); color: var(--osso); }
.claro { background: var(--osso); }
.suave { background: var(--osso-claro); }
.conteudo { position: relative; z-index: 1; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ouro-escuro); }
.escuro .eyebrow { color: var(--ouro); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--preto); line-height: 1.12; }
.escuro h1, .escuro h2, .escuro h3 { color: #fff; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 16px 0 28px; }
h3 { font-size: 24px; }
p + p { margin-top: 18px; }
.script { font-family: var(--script); font-weight: 400; font-size: 2.2em; line-height: .6; color: var(--ouro-escuro); }
.escuro .script, .ouro-metal { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em; }
.chamada-script { font-family: var(--script); font-size: clamp(64px, 8vw, 104px); line-height: .9; color: var(--ouro-escuro); display: block; margin-bottom: 4px; }
.escuro .chamada-script { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.fundo-script { position: absolute; font-family: var(--script); font-size: clamp(260px, 38vw, 580px); line-height: 1; white-space: nowrap; pointer-events: none; user-select: none; color: rgba(255,255,255,.045); will-change: transform; }
.claro .fundo-script, .suave .fundo-script { color: rgba(160,112,0,.08); }
.fio { height: 1px; width: 72px; background: var(--metal); margin: 28px 0; transform-origin: left; }

/* Botão com brilho dourado que passa */
.botao { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 19px 38px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--metal); color: var(--preto); font: 700 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 14px 36px -14px rgba(238,184,17,.7); transition: transform .35s var(--suave), box-shadow .35s var(--suave), filter .3s; }
.botao::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: brilho 4s ease-in-out infinite; }
.botao:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(238,184,17,.85); }
.botao:active { filter: brightness(.94); transform: none; }
.botao:disabled { opacity: .6; cursor: wait; }
.botao .seta { transition: transform .35s var(--suave); }
.botao:hover .seta { transform: translateX(4px); }
@keyframes brilho { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ---------- Topo: foto mesclada ao fundo ---------- */
.topo { padding: 0; min-height: min(100vh, 940px); display: flex; align-items: center; }
.topo-foto { position: absolute; inset: 0 0 0 auto; width: 62%; background: url('img/josete-hero.jpg') center 18% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 52%), linear-gradient(to top, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 52%), linear-gradient(to top, transparent 0%, #000 22%); mask-composite: intersect;
  animation: aproximar 14s var(--suave) both; }
.topo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 40%, transparent 60%); pointer-events: none; }
@keyframes aproximar { from { transform: scale(1.08); } to { transform: scale(1); } }
.topo .conteudo { padding: 120px 0 96px; max-width: 640px; }
.topo .marca { position: absolute; top: 34px; left: max(24px, calc((100% - 1160px) / 2)); height: 48px; z-index: 2; }
.topo h1 { margin: 22px 0 8px; font-size: clamp(50px, 7vw, 92px); line-height: 1; }
.topo .linha-titulo { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: #fff; margin-bottom: 26px; }
.topo .sub { font-size: 18px; color: var(--osso); max-width: 560px; }

/* Bloco de data em destaque */
.data { display: flex; align-items: center; gap: 26px; margin: 36px 0 34px; padding: 22px 0; border-top: 1px solid rgba(238,184,17,.4); border-bottom: 1px solid rgba(238,184,17,.4); }
.data .dia { font-family: var(--serif); font-size: clamp(58px, 6vw, 76px); line-height: .9; }
.data .det { display: grid; gap: 4px; color: #fff; font-size: 16px; }
.data .det strong { font-weight: 600; letter-spacing: .04em; }
.selo-vivo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ouro); }
.selo-vivo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #E2412F; box-shadow: 0 0 0 0 rgba(226,65,47,.7); animation: pulso 1.8s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(226,65,47,0); } 100% { box-shadow: 0 0 0 0 rgba(226,65,47,0); } }

/* Contagem regressiva */
.contagem { display: flex; gap: 10px; margin-bottom: 34px; }
.contagem div { min-width: 74px; padding: 12px 8px 10px; text-align: center; border: 1px solid rgba(238,184,17,.35); border-radius: 4px; background: rgba(255,255,255,.03); backdrop-filter: blur(2px); }
.contagem b { display: block; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.contagem span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mudo); }
.claro .contagem div { background: transparent; }

/* Entrada do topo em cascata */
.entra { opacity: 0; transform: translateY(22px); animation: entrar .9s var(--suave) forwards; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
@keyframes entrar { to { opacity: 1; transform: none; } }

/* Faixa que corre */
.faixa { background: var(--metal); color: var(--preto); overflow: hidden; padding: 16px 0; white-space: nowrap; }
.faixa .trilho { display: inline-flex; animation: correr 30s linear infinite; }
.faixa span { font: 600 14px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 0 22px; }
.faixa span.ponto { padding: 0; opacity: .5; }
@keyframes correr { to { transform: translateX(-50%); } }

/* Listas */
.lista { list-style: none; margin-top: 26px; }
.lista li { padding: 16px 0 16px 40px; border-bottom: 1px solid rgba(0,0,0,.12); position: relative; }
.lista li::before { content: ''; position: absolute; left: 4px; top: 28px; width: 20px; height: 1px; background: var(--ouro-escuro); }
.destaque { font-family: var(--serif); font-size: 27px; line-height: 1.35; color: var(--preto); margin-top: 36px; }

.oportunidade { text-align: center; }
.oportunidade h2 { font-size: clamp(36px, 5vw, 58px); }
.oportunidade p { font-size: 19px; max-width: 640px; margin-inline: auto; }
.oportunidade .fundo-script { left: 50%; top: -6vw; margin-left: -45vw; }
.oportunidade .fio { margin-inline: auto; transform-origin: center; }

/* O que você vai aprender */
.aprender { background: var(--grafite); }
.aprender .topo-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.aprender .topo-sec p { font-size: 18px; }
.modulos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.modulo { position: relative; padding: 38px 32px 36px; border: 1px solid rgba(238,184,17,.22); border-radius: 6px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,0)); overflow: hidden;
  transition: transform .45s var(--suave), border-color .45s, box-shadow .45s; }
.modulo::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(238,184,17,.16), transparent 55%); opacity: 0; transition: opacity .45s; }
.modulo:hover { transform: translateY(-6px); border-color: rgba(238,184,17,.6); box-shadow: 0 24px 50px -24px rgba(238,184,17,.35); }
.modulo:hover::before { opacity: 1; }
.modulo .num { font-family: var(--serif); font-size: 54px; line-height: 1; display: block; margin-bottom: 22px; }
.modulo h3 { color: #fff; font-size: 23px; margin-bottom: 12px; position: relative; }
.modulo p { font-size: 16px; color: rgba(225,223,215,.82); position: relative; }
.aprender .cta { text-align: center; margin-top: 60px; }

/* Desejos */
.desejos { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; border-top: 1px solid rgba(0,0,0,.12); }
.desejo { padding: 36px 30px 36px 0; border-bottom: 1px solid rgba(0,0,0,.12); transition: background .4s; }
.desejo:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid rgba(0,0,0,.12); }
.desejo .num { font-family: var(--serif); font-size: 15px; color: var(--ouro-escuro); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.desejo p { font-size: 18px; color: var(--preto); }

.historia { background: var(--ouro-escuro); color: #fff; }
.historia h2, .historia .eyebrow { color: #fff; }
.historia p { font-size: 19px; color: rgba(255,255,255,.93); }
.historia .fundo-script { color: rgba(255,255,255,.08); right: -6vw; top: -4vw; }
.historia .botao { background: var(--preto); color: var(--ouro); box-shadow: 0 14px 36px -14px rgba(0,0,0,.6); margin-top: 36px; }

.autora { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.retrato-moldura { position: relative; }
.retrato-moldura::before { content: ''; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--ouro-escuro); border-radius: 4px; }
.retrato-moldura img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 4px; }
.autora .assinatura { font-family: var(--script); font-size: 72px; line-height: 1; color: var(--ouro-escuro); margin-bottom: 8px; }
.autora p { font-size: 18px; }

.nao-e { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }

details { border-bottom: 1px solid rgba(0,0,0,.14); }
summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-family: var(--serif); font-size: 21px; color: var(--preto); position: relative; transition: color .3s; }
summary:hover { color: var(--ouro-escuro); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 20px; font-family: var(--sans); font-weight: 300; font-size: 28px; color: var(--ouro-escuro); transition: transform .35s var(--suave); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; animation: entrar .5s var(--suave); }

/* Inscrição */
.inscricao .grade { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.inscricao .fundo-script { left: -4vw; bottom: -10vw; }
.cartao { background: var(--osso-claro); color: var(--tinta); padding: 44px 40px; border-radius: 6px; box-shadow: 0 40px 80px -30px rgba(238,184,17,.25), 0 30px 60px -30px rgba(0,0,0,.8); }
.cartao h3 { color: var(--preto); margin-bottom: 6px; }
.cartao .nota { font-size: 14px; color: var(--mudo); margin-bottom: 26px; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--preto); margin-bottom: 8px; }
.campo input, .campo select { width: 100%; padding: 14px 16px; font: 16px var(--sans); color: var(--preto); background: #fff; border: 1px solid rgba(0,0,0,.18); border-radius: 3px; outline: none; transition: border-color .25s, box-shadow .25s; }
.campo input:focus, .campo select:focus { border-color: var(--ouro-escuro); box-shadow: 0 0 0 3px rgba(238,184,17,.2); }
.cartao .botao { width: 100%; justify-content: center; margin-top: 8px; }
.erro { color: #A3261C; font-size: 14px; margin-top: 12px; min-height: 1em; }
.escondido { position: absolute; left: -9999px; }

/* Barra fixa com a data */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); border-top: 1px solid rgba(238,184,17,.35);
  transform: translateY(110%); transition: transform .5s var(--suave); }
.barra.mostrar { transform: none; }
.barra .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; color: #fff; font-size: 15px; }
.barra .info-barra { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.barra .botao { padding: 13px 24px; font-size: 13px; }

footer { background: var(--preto); padding: 48px 0 110px; border-top: 1px solid rgba(238,184,17,.25); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--mudo); }
footer img { height: 54px; }

/* Revelar ao rolar, com cascata nos filhos marcados */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--suave), transform .8s var(--suave); }
.revelar.visivel { opacity: 1; transform: none; }
.cascata > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--suave), transform .7s var(--suave); transition-delay: calc(var(--i, 0) * 110ms); }
.cascata.visivel > * { opacity: 1; transform: none; }
.desenha .fio { transform: scaleX(0); transition: transform 1.1s var(--suave) .3s; }
.desenha.visivel .fio { transform: scaleX(1); }

@media (max-width: 900px) {
  section { padding: 84px 0; }
  .topo { min-height: auto; align-items: flex-end; }
  .topo-foto { width: 100%; height: 74vh; bottom: auto; background-position: center 10%;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.5) 22%, #000 50%); mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.5) 22%, #000 50%); }
  .topo::after { background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, transparent 18%, transparent 38%, rgba(0,0,0,.75) 62%, #000 74%); }
  .topo .conteudo { padding: 56vh 0 64px; }
  .data { gap: 18px; }
  .contagem div { min-width: 0; flex: 1; }
  .aprender .topo-sec, .autora, .nao-e, .inscricao .grade { grid-template-columns: 1fr; gap: 40px; }
  .modulos, .desejos { grid-template-columns: 1fr; }
  .desejo, .desejo:not(:nth-child(3n+1)) { padding: 26px 0; border-left: 0; }
  .cartao { padding: 32px 22px; }
  .retrato-moldura { max-width: 360px; }
  .barra .info-barra .some-mobile { display: none; }
  .barra .wrap { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar, .cascata > *, .entra { opacity: 1; transform: none; }
  .desenha .fio { transform: none; }
  html { scroll-behavior: auto; }
}
