/* Rafael Gurgel · LP com motion guiado pela rolagem
   Cores: grafite escuro + azul do logo + madeira (o próprio piso) */
:root {
  --fundo: #0b0d10;
  --fundo-2: #12161b;
  --cartao: #171c22;
  --linha: rgba(255, 255, 255, .08);
  --azul: #0a8cd7;
  --azul-claro: #3fb4f5;
  --madeira: #c8925e;
  --texto: #f3f5f7;
  --suave: #9aa3ad;
  --raio: 22px;
  --sombra: 0 24px 60px rgba(0, 0, 0, .45);
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--fundo); color: var(--texto); font-family: 'Inter', system-ui, sans-serif; line-height: 1.55; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Outfit', sans-serif; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; }
em { font-style: normal; color: var(--azul-claro); }
section { position: relative; padding: clamp(80px, 12vh, 140px) var(--gutter); }

.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul-claro); background: rgba(10, 140, 215, .12); border: 1px solid rgba(10, 140, 215, .3); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px; background: var(--azul); color: #fff; font-weight: 700; font-size: 16px; border: 2px solid var(--azul); box-shadow: 0 10px 30px rgba(10, 140, 215, .35); transition: transform .25s, box-shadow .25s, background .25s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(10, 140, 215, .5); }
.btn-ghost { background: transparent; box-shadow: none; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { border-color: var(--azul-claro); box-shadow: none; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- abertura ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: #0b0d10; display: grid; place-items: center; pointer-events: none; }
.intro img { width: min(420px, 70vw); border-radius: 24px; opacity: 0; transform: scale(.85); box-shadow: 0 0 80px rgba(10, 140, 215, .25); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); transition: background .3s, backdrop-filter .3s; }
.nav.solida { background: rgba(11, 13, 16, .8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
.marca { display: flex; align-items: center; gap: 10px; font-family: 'Outfit'; font-size: 20px; line-height: 1; }
.marca b { color: var(--azul-claro); font-weight: 800; }
.marca small { display: block; font-family: 'Inter'; font-size: 11px; letter-spacing: .12em; color: var(--suave); text-transform: uppercase; margin-top: 3px; }
.marca-icone { width: 40px; color: var(--azul); }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--azul-claro); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-top: 110px; background: radial-gradient(60% 60% at 80% 40%, rgba(10, 140, 215, .18), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(200, 146, 94, .12), transparent 70%); }
.hero h1 { font-size: clamp(56px, 9vw, 128px); font-weight: 900; margin-bottom: 22px; }
.hero h1 em { color: var(--madeira); }
.sub { font-size: clamp(17px, 1.6vw, 21px); color: #c9d0d7; max-width: 520px; margin-bottom: 32px; }
.sub b { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.selos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--suave); font-weight: 600; font-size: 15px; }
.selos span { color: var(--azul-claro); margin-right: 6px; }
.hero-midia { display: flex; justify-content: center; }
.tela { position: relative; width: min(380px, 80vw); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; border: 1px solid var(--linha); box-shadow: var(--sombra), 0 0 0 10px rgba(255, 255, 255, .03); }
.tela video { width: 100%; height: 100%; object-fit: cover; }
.tela-tag { position: absolute; left: 16px; top: 16px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tela-tag i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: pisca 1.2s infinite; }
@keyframes pisca { 50% { opacity: .2; } }
.role { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 13px; color: var(--suave); display: flex; flex-direction: column; align-items: center; gap: 8px; letter-spacing: .1em; text-transform: uppercase; }
.role span { width: 22px; height: 36px; border: 2px solid var(--suave); border-radius: 12px; position: relative; }
.role span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; background: var(--azul-claro); border-radius: 2px; animation: rola 1.6s infinite; }
@keyframes rola { 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- transformação ---------- */
.transformacao { padding: 0; height: 100svh; }
.trans-palco { position: relative; height: 100svh; overflow: hidden; background: #000; }
#seq { position: absolute; inset: 0; width: 100%; height: 100%; }
.trans-sombra { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 50%), linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 25%); }
.trans-texto { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: 520px; }
.trans-texto em { color: var(--madeira); }
.trans-etapa { font-family: 'Outfit'; font-weight: 900; font-size: clamp(30px, 4.4vw, 60px); line-height: 1; color: #fff; letter-spacing: .04em; margin-bottom: 18px; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.trans-nota { color: #d6dbe0; font-size: clamp(16px, 1.3vw, 19px); margin: 16px 0 22px; max-width: 460px; }
.trans-nota b { color: #fff; }
.trans-barra { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 70px); bottom: 48px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.trans-preenche { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #8a8f96, var(--madeira)); box-shadow: 0 0 20px rgba(200, 146, 94, .7); }
.trans-barra span { position: absolute; top: 16px; transform: translateX(-50%); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #dfe3e7; white-space: nowrap; }
.trans-barra span:first-of-type { transform: none; }
.trans-barra span:last-of-type { transform: translateX(-100%); }

/* ---------- quem ---------- */
.quem { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.quem-foto { position: relative; }
.quem-foto img { border-radius: 30px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--sombra); }
.quem-selo { position: absolute; right: -18px; bottom: 30px; background: var(--azul); padding: 18px 22px; border-radius: 18px; font-family: 'Outfit'; font-size: 18px; line-height: 1.15; box-shadow: 0 16px 40px rgba(10, 140, 215, .45); }
.quem-texto p { color: #c9d0d7; font-size: 18px; margin: 20px 0 28px; max-width: 560px; }
.quem-texto em { color: var(--madeira); }
.link-insta { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--azul-claro); }
.link-insta svg { width: 24px; }

/* ---------- como funciona (horizontal) ---------- */
.como { padding: 0; height: 100svh; overflow: hidden; background: var(--fundo-2); display: flex; flex-direction: column; justify-content: center; }
.como-topo { padding: 0 var(--gutter); margin-bottom: 34px; }
.como-progresso { margin-top: 22px; height: 4px; max-width: 420px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.como-progresso div { height: 100%; width: 0; background: var(--azul); border-radius: 4px; box-shadow: 0 0 14px var(--azul); }
.como-trilho { display: flex; gap: 26px; padding: 0 var(--gutter); width: max-content; }
.passo { width: min(420px, 78vw); background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; flex-shrink: 0; }
.passo img { width: 100%; height: clamp(180px, 30vh, 300px); object-fit: cover; }
.passo div { padding: 22px 24px 26px; }
.passo span { font-family: 'Outfit'; font-weight: 900; font-size: 44px; color: rgba(10, 140, 215, .55); line-height: 1; }
.passo h3 { font-size: 26px; margin: 6px 0 8px; }
.passo p { color: var(--suave); }

/* ---------- resultado + medidor ---------- */
.resultado { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: center; overflow: hidden; }
.res-video { position: relative; justify-self: center; width: min(380px, 80vw, 44svh); } /* altura do vídeo sempre cabe na tela */
.res-video video { width: 100%; border-radius: 30px; box-shadow: var(--sombra), 0 0 0 10px rgba(255, 255, 255, .03); aspect-ratio: 9 / 16; object-fit: cover; }
.res-video .tela-tag i { background: #2ecc71; animation: none; }
.res-pergunta p { color: var(--suave); margin: 12px 0 28px; font-size: 18px; }
.medidor { background: var(--cartao); border: 1px solid var(--linha); border-radius: 26px; padding: 28px 26px 26px; text-align: center; }
.medidor-emoji { font-size: 64px; line-height: 1; margin-bottom: 18px; transition: transform .2s; }
.medidor-trilho { position: relative; height: 22px; border-radius: 22px; background: rgba(255, 255, 255, .08); }
.medidor-preenche { position: absolute; left: 0; top: 0; bottom: 0; width: 35%; border-radius: 22px; background: linear-gradient(90deg, var(--madeira), var(--azul)); box-shadow: 0 0 24px rgba(10, 140, 215, .5); }
.medidor-trilho input { position: absolute; inset: -14px 0; width: 100%; opacity: 0; cursor: grab; }
.medidor-trilho::after { content: ''; position: absolute; top: 50%; left: var(--pos, 35%); width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 6px rgba(10, 140, 215, .35); pointer-events: none; }
.medidor-legenda { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--suave); font-weight: 600; }
.medidor-texto { margin-top: 16px; font-family: 'Outfit'; font-size: 22px; font-weight: 700; min-height: 30px; }
.medidor-cta { margin-top: 18px; width: 100%; opacity: 0; transform: translateY(12px) scale(.95); pointer-events: none; transition: opacity .35s, transform .35s; }
.medidor.cheio .medidor-cta { opacity: 1; transform: none; pointer-events: auto; }
#confete { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- obras ---------- */
.obras { padding-left: 0; padding-right: 0; overflow: hidden; }
.obras-topo { padding: 0 var(--gutter); margin-bottom: 40px; }
.obras-topo p { color: var(--suave); margin-top: 10px; }
.faixa { display: flex; gap: 18px; width: max-content; margin-bottom: 18px; }
.faixa button { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; flex-shrink: 0; }
.faixa img { height: clamp(200px, 30vh, 320px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.faixa button:hover img { transform: scale(1.06); }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 50px var(--gutter) 0; max-width: 1100px; margin: 0 auto; }
.reel { position: relative; border: 0; padding: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 16; cursor: pointer; background: #000; color: #fff; font: inherit; }
.reel img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s, opacity .3s; }
.reel:hover img { transform: scale(1.05); opacity: 1; }
.reel-play { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; border-radius: 50%; background: rgba(10, 140, 215, .9); display: grid; place-items: center; font-size: 24px; box-shadow: 0 0 0 10px rgba(10, 140, 215, .25); }
.reel b { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); font-family: 'Outfit'; font-size: 20px; text-align: left; }

/* ---------- depoimentos ---------- */
.depo { text-align: center; background: var(--fundo-2); }
.depo-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 44px; text-align: left; }
.depo blockquote { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 26px; }
.estrelas { color: #ffc23a; letter-spacing: 3px; margin-bottom: 12px; }
.depo blockquote p { font-size: 17px; }
.depo cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; color: var(--azul-claro); font-size: 14px; }

/* ---------- orçamento (chat) ---------- */
.orcamento { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.orc-texto p { color: var(--suave); font-size: 18px; margin-top: 14px; }
.whatsapp-chat { background: #0b141a; border-radius: 26px; overflow: hidden; border: 1px solid var(--linha); box-shadow: var(--sombra); max-width: 520px; width: 100%; justify-self: center; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #1f2c34; }
.chat-header img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chat-header span { display: block; font-size: 12px; color: #8ab4a0; }
.chat-body { height: 420px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #0b141a; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.4; animation: entraMsg .35s ease-out; }
.msg.bot { background: #202c33; align-self: flex-start; border-top-left-radius: 4px; }
.msg.user { background: #005c4b; align-self: flex-end; border-top-right-radius: 4px; }
@keyframes entraMsg { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.typing-msg span { animation: pisca 1s infinite; font-size: 22px; line-height: .5; }
.typing-msg span:nth-child(2) { animation-delay: .2s; }
.typing-msg span:nth-child(3) { animation-delay: .4s; }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-end; justify-content: flex-end; }
.opt-btn { background: transparent; border: 1px solid var(--azul-claro); color: var(--azul-claro); padding: 8px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; font: inherit; font-size: 14px; }
.opt-btn:hover { background: var(--azul); color: #fff; border-color: var(--azul); }
.chat-input { display: flex; gap: 10px; padding: 12px; background: #1f2c34; }
.chat-input input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 0; background: #2a3942; color: #fff; font: inherit; }
.chat-input button { width: 46px; border: 0; border-radius: 50%; background: var(--azul); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-input button:disabled { opacity: .4; cursor: default; }
.chat-input button svg { width: 20px; }
.final-btn { margin-top: 10px; width: 100%; }

/* ---------- rodapé ---------- */
.rodape { text-align: center; padding: 110px var(--gutter) 40px; background: radial-gradient(60% 80% at 50% 100%, rgba(10, 140, 215, .2), transparent 70%); }
.rodape h2 { font-size: clamp(28px, 4vw, 48px); }
.rodape-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 34px 0 60px; }
.copy { color: var(--suave); font-size: 13px; }

.zap-flutuante { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 62px; height: 62px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); transition: transform .25s; }
.zap-flutuante:hover { transform: scale(1.08); }
.zap-flutuante svg { width: 32px; }

/* ---------- caixa (foto / vídeo ampliado) ---------- */
.caixa { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 20px; }
.caixa[hidden] { display: none; }
.caixa-conteudo img, .caixa-conteudo video { max-height: 88vh; max-width: 92vw; border-radius: 18px; }
.caixa-fechar { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 28px; cursor: pointer; }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
  .marca span { font-size: 17px; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 100px; gap: 30px; }
  .hero-midia { order: 2; }
  .tela { width: min(300px, 74vw); }
  .role { display: none; }
  .trans-texto { top: auto; bottom: 120px; transform: none; right: var(--gutter); }
  .trans-barra { bottom: 56px; }
  .trans-sombra { background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, .4) 100%); }
  .quem, .resultado, .orcamento { grid-template-columns: 1fr; }
  .quem-selo { right: 12px; }
  .reels { grid-template-columns: repeat(3, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .reel { scroll-snap-align: center; }
  .chat-body { height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
