/* ===== Etíka LP — mobile-first ===== */
@font-face {
  font-family: 'Archivo Expanded';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 125%;
  font-display: swap;
  src: url('../fonts/archivo-expanded.woff2') format('woff2');
}
:root {
  --navy: #082137;
  --deep: #1b1e34;
  --steel: #1c3a57;
  --cyan: #00b9ec;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--deep);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Archivo Expanded', 'Sora', sans-serif; }
img { max-width: 100%; }

/* ===== Preloader ===== */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; transition: opacity .8s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
.loader-logo { width: 160px; }
.loader-bar {
  width: min(240px, 60vw); height: 3px;
  background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0%;
  background: var(--cyan); border-radius: 2px;
  transition: width .3s ease;
}
.loader-text { font-size: 13px; letter-spacing: .08em; opacity: .7; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 16px 20px;
  background: linear-gradient(to bottom, rgba(8,33,55,.55), transparent);
  pointer-events: none;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,33,55,.72);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border-bottom-color: rgba(255,255,255,.1);
}
.header-logo { width: 110px; display: block; }

/* ===== Canvas + dip ===== */
#cine {
  position: fixed; inset: 0; z-index: 1;
  width: 100vw; height: 100vh; height: 100dvh;
  display: block;
}
/* ===== Overlay de textos ===== */
#overlay { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.scene-text {
  position: absolute; left: 0; right: 0; bottom: 16vh;
  margin: 0 auto;
  width: min(680px, 88vw);
  text-align: center; opacity: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.65);
}
/* scrim: véu escuro suave atrás do texto, garante leitura sobre vídeo claro.
   Fica no próprio bloco (herda opacidade/posição/saída) e some nos vãos. */
.scene-text::before {
  content: ''; position: absolute; z-index: -1;
  inset: -34% -24% -40% -24%;
  background: radial-gradient(ellipse at center,
    rgba(4,12,20,.64) 0%, rgba(4,12,20,.44) 44%, rgba(4,12,20,0) 74%);
  pointer-events: none;
}
.scene-text .kicker {
  color: var(--cyan); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px;
}
.scene-text .pill {
  display: inline-block; margin-bottom: 14px;
  padding: 6px 14px; border: 1px solid rgba(0,185,236,.55);
  border-radius: 999px; background: rgba(8,33,55,.35);
  color: var(--cyan); font-family: 'Archivo Expanded', 'Sora', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.scene-text h1 em, .scene-text h2 em {
  font-style: normal; color: var(--cyan);
  text-shadow: 0 0 28px rgba(0,185,236,.55), 0 2px 24px rgba(0,0,0,.65);
}
.scene-text .mini-bullets {
  margin-top: 18px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
}
.scene-text .mini-bullets .b { position: relative; opacity: .85; }
.scene-text .mini-bullets .b + .b::before {
  content: ''; position: absolute; left: -12px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%; transform: translateY(-50%);
  background: var(--cyan);
}

/* palavras (split para reveal): .w = máscara, .wi = palavra */
.scene-text .w { display: inline-block; }
.scene-text .wi { display: inline-block; }
.scene-text h1 .w { overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }

/* entrada cinematográfica do hero (dispara com .intro no overlay) */
#overlay.intro .scene-text[data-in="0.00"] .kicker {
  opacity: 0; animation: dropIn .7s cubic-bezier(.22,.9,.24,1) .15s both;
}
#overlay.intro .scene-text[data-in="0.00"] h1 .wi {
  transform: translateY(115%);
  animation: maskRise .9s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(.45s + var(--i) * .08s);
}
#overlay.intro .scene-text[data-in="0.00"] h1 em .wi {
  animation-name: maskRise, emGlow;
  animation-duration: .9s, 1.5s;
  animation-timing-function: cubic-bezier(.16,1,.3,1), ease-in-out;
  animation-delay: calc(.45s + var(--i) * .08s), calc(.75s + var(--i) * .08s);
}
#overlay.intro .scene-text[data-in="0.00"] .b {
  opacity: 0; animation: floatUp .65s cubic-bezier(.22,.9,.24,1) both;
  animation-delay: calc(1.35s + var(--i) * .16s);
}
@keyframes maskRise {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-16px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: .85; transform: none; filter: blur(0); }
}
@keyframes emGlow {
  0%   { text-shadow: 0 0 0 rgba(0,185,236,0); }
  50%  { text-shadow: 0 0 46px rgba(0,185,236,.95), 0 0 90px rgba(0,185,236,.5); }
  100% { text-shadow: 0 0 28px rgba(0,185,236,.55), 0 2px 24px rgba(0,0,0,.65); }
}
.scene-text h1 { font-size: clamp(26px, 6.4vw, 44px); line-height: 1.15; font-weight: 700; }
.scene-text h2 { font-size: clamp(23px, 5.6vw, 38px); line-height: 1.18; font-weight: 700; }
.scene-text .sub {
  margin-top: 14px; font-size: clamp(14px, 3.6vw, 17px);
  line-height: 1.55; opacity: .92; font-weight: 400;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .75;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: opacity .5s ease;
}
.scroll-hint span {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: hint 1.6s ease-in-out infinite;
}
@keyframes hint { 0%,100% { transform: scaleY(1); opacity: 1 } 50% { transform: scaleY(.55); opacity: .4 } }
.scroll-hint.gone { opacity: 0; }

/* ===== Trilho de scroll ===== */
#track { position: relative; z-index: 0; }

/* ===== Fechamento ===== */
#contato {
  position: relative; z-index: 20;
  background: linear-gradient(to bottom, var(--deep), var(--navy) 30%);
  padding: 96px 20px 48px;
}
#contato .wrap { max-width: 900px; margin: 0 auto; text-align: center; }
#contato h2 { font-size: clamp(28px, 7vw, 46px); font-weight: 700; }
#contato .hl { color: var(--cyan); }
#contato > .wrap > .sub {
  margin: 18px auto 32px; max-width: 520px;
  font-size: clamp(15px, 3.8vw, 18px); line-height: 1.6; opacity: .9;
}

/* reveal ao entrar na tela (seção final) — usa 'translate' p/ não brigar com transform do hover */
.reveal {
  opacity: 0; translate: 0 34px; filter: blur(6px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), translate .9s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; translate: 0 0; filter: blur(0); }
.difs .reveal:nth-child(2) { transition-delay: .09s; }
.difs .reveal:nth-child(3) { transition-delay: .18s; }
.difs .reveal:nth-child(4) { transition-delay: .27s; }
.depo-row .reveal:nth-child(2) { transition-delay: .09s; }
.depo-row .reveal:nth-child(3) { transition-delay: .18s; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cyan); color: var(--navy);
  font-family: 'Archivo Expanded', 'Sora', sans-serif; font-weight: 600; font-size: 16px;
  padding: 16px 32px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,185,236,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,185,236,.5); }

.difs {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin: 64px 0 0; text-align: left;
}
.dif {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 22px;
}
.dif h3 { font-size: 16px; color: var(--cyan); margin-bottom: 6px; }
.dif p { font-size: 14px; line-height: 1.55; opacity: .85; }

.depo-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 48px; }
.depo-row blockquote {
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  padding: 20px; text-align: left;
  font-size: 14px; line-height: 1.6; font-style: italic; opacity: .92;
}
.depo-row cite { display: block; margin-top: 10px; font-style: normal; font-weight: 600; color: var(--cyan); font-size: 13px; }

footer { margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-logo { width: 120px; margin-bottom: 16px; }
footer p { font-size: 13px; line-height: 1.8; opacity: .7; }
footer a { color: var(--cyan); text-decoration: none; }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.wa-float.on { opacity: 1; transform: scale(1); pointer-events: auto; }

/* ===== Desktop ===== */
@media (min-width: 768px) {
  .header-logo { width: 130px; }
  .site-header { padding: 22px 40px; }
  .scene-text {
    bottom: 18vh; margin: 0 0 0 7vw;
    width: min(600px, 48vw); text-align: left;
  }
  .scene-text h1 { font-size: clamp(44px, 5.4vw, 66px); line-height: 1.08; }
  .scene-text h2 { font-size: clamp(38px, 4.4vw, 54px); line-height: 1.1; }
  .scene-text .mini-bullets { justify-content: flex-start; }
  .scene-text.pos-r { margin: 0 7vw 0 auto; text-align: right; }
  .scene-text.pos-r .mini-bullets { justify-content: flex-end; }
  .scene-text.pos-c { margin: 0 auto; text-align: center; }
  .scene-text.pos-c .mini-bullets { justify-content: center; }
  .difs { grid-template-columns: repeat(4, 1fr); }
  .depo-row { grid-template-columns: repeat(3, 1fr); }
  #contato { padding: 128px 40px 56px; }
}

/* ===== Acessibilidade ===== */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; }
  #overlay.intro .scene-text[data-in="0.00"] .kicker,
  #overlay.intro .scene-text[data-in="0.00"] h1 .wi,
  #overlay.intro .scene-text[data-in="0.00"] .b { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; translate: none; filter: none; transition: none; }
}
