/* Dozzei · landing de pré-lançamento (PHP)
   Sem .anim (JS desligado, reduced motion ou CDN fora): página estática completa.
   Com .anim: o JS (GSAP) conduz as entradas e as cenas ligadas ao scroll. */

:root {
  /* Fundo do Mar */
  --canvas: #080E0B;
  --surface: #0F1E17;
  --elevated: #172E26;
  --border: #1C3328;
  --anchor: #1A5443;
  --muted: #355C47;
  --secondary: #6FAA90;
  --primary: #E4F5EC;
  --accent: #00D988;
  --accent-hover: #00C47A;
  --on-accent: #080E0B;

  --glow: rgb(0 217 136 / 0.35);
  --glow-soft: rgb(0 217 136 / 0.14);

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hdr: 64px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--primary);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Maiúsculas só aqui */
.caption {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
}


/* Palavras com máscara (revelação) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.wi {
  display: inline-block;
}

/* ───────── CTA ───────── */

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.2s, box-shadow 0.3s var(--ease-out);
  will-change: transform;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: dz-shine 4.5s var(--ease-out) 2.5s infinite;
}

.cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 36px var(--glow);
}

.cta:active {
  scale: 0.98;
}

.cta-arrow {
  transition: transform 0.3s var(--ease-out);
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

.cta--sm {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

.cta--lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 17px;
}

.cta--full {
  width: 100%;
}

@keyframes dz-shine {
  0% { transform: translateX(-120%); }
  35%, 100% { transform: translateX(120%); }
}

/* ───────── Header ───────── */

.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--hdr);
  background: rgb(8 14 11 / 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.logo-drop,
.logo-word {
  display: block;
  flex: none;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  border: 0.5px solid var(--border);
  border-radius: 10px;
}

.lang a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s, background-color 0.2s;
}

.lang a:hover {
  color: var(--primary);
}

.lang a[aria-current='page'] {
  background: var(--elevated);
  color: var(--primary);
}

.hdr-cta {
  display: none;
}

@media (min-width: 768px) {
  .hdr-cta { display: inline-flex; }
}

/* ───────── 1 · Hero ───────── */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--hdr));
  padding: 56px 0 96px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 34%;
  width: min(720px, 120vw);
  aspect-ratio: 1;
  margin: calc(min(720px, 120vw) / -2) 0 0 calc(min(720px, 120vw) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-soft), transparent 70%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-drop {
  position: relative;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 32px var(--glow-soft));
}

/* Selo "Acesso antecipado" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border: 1px solid rgb(0 217 136 / 0.45);
  border-radius: 999px;
  background: rgb(0 217 136 / 0.1);
  box-shadow: 0 0 28px var(--glow-soft);
}

.badge .caption {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: dz-ping 2s var(--ease-out) infinite;
}

.hero-badge {
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 6.6vw, 84px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.li {
  display: inline-block;
}

.muted-line {
  color: var(--secondary);
}

.hero-sub {
  max-width: 500px;
  margin: 26px auto 36px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--secondary);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ───────── 2 · Conhecimento (pílulas) ───────── */

.pills {
  padding-top: 112px;
  border-top: 0.5px solid var(--border);
}

.pills-title,
.final-title {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(32px, 4.8vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.pills-media {
  --lx: 31%;
  --rx: 69%;
  --sy: 50%;
  position: relative;
  margin-top: 64px;
}

.pills-media img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
}

.spot {
  --d: clamp(64px, 9vw, 130px);
  position: absolute;
  top: var(--sy);
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  border: 1px solid rgb(0 217 136 / 0.7);
  pointer-events: none;
}

.spot::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: dz-ping 2.4s var(--ease-out) infinite;
}

.spot-l { left: var(--lx); }
.spot-r { --d: clamp(96px, 15vw, 220px); left: var(--rx); border-color: var(--secondary); }
.spot-r::after { border-color: var(--secondary); }

@keyframes dz-ping {
  from { opacity: 0.9; scale: 1; }
  to { opacity: 0; scale: 1.6; }
}

.tags {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px 0;
}

.tag {
  display: inline-block;
  padding: 8px 14px;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  background: rgb(8 14 11 / 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}

.tag-l {
  color: var(--primary);
  border-color: rgb(0 217 136 / 0.5);
}

@media (min-width: 768px) {
  .tags {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    pointer-events: none;
  }

  .tag {
    position: absolute;
    top: 84%;
    translate: -50% 0;
    white-space: nowrap;
  }

  .tag-l { left: var(--lx); }
  .tag-r { left: var(--rx); }
}

@media (max-width: 767px) {
  .pills-media {
    --lx: 16.5%;
    --rx: 83.6%;
  }

  .spot { --d: 56px; }
  .spot-r { --d: 84px; }

  .tag-r {
    text-align: right;
  }
}

/* ───────── 3 · Quatro perfis + CTA final ───────── */

.final {
  padding: 112px 0 104px;
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.final-in > .caption {
  margin-bottom: 16px;
}

.cycler {
  display: grid;
  margin-top: 20px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  overflow: hidden;
}

.cy {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(70%);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.cy.is-on {
  opacity: 1;
  transform: none;
}

.cy.is-out {
  transform: translateY(-70%);
}

.profiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 48px auto 0;
}

.pf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 16px 24px;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-out);
}

.pf-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--elevated);
  color: var(--primary);
  transition: color 0.4s, transform 0.5s var(--ease-out);
}

.pf-name {
  font-size: 16px;
  font-weight: 500;
}

.pf-lead {
  font-size: 13px;
  color: var(--secondary);
}

.pf.is-on {
  border-color: rgb(0 217 136 / 0.55);
  background: var(--elevated);
  box-shadow: 0 0 0 1px rgb(0 217 136 / 0.2), 0 16px 48px var(--glow-soft);
  transform: translateY(-6px);
}

.pf.is-on .pf-ico {
  color: var(--accent);
  transform: scale(1.08);
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 72px;
}

.final-cta .badge {
  margin-bottom: 24px;
}

.final-drop {
  margin-bottom: 28px;
  filter: drop-shadow(0 0 24px var(--glow-soft));
}

@media (max-width: 767px) {
  .profiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ───────── Rodapé e barra mobile ───────── */

.ftr {
  padding: 32px 0 112px;
  border-top: 0.5px solid var(--border);
}

.ftr-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.ftr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ftr-rights {
  font-size: 12px;
  color: var(--secondary);
}

.ftr-programs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftr-programs img {
  height: 34px;
  width: auto;
  border-radius: 8px;
  opacity: 0.9;
}

.ftr-powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 12px;
  color: var(--secondary);
  transition: color 0.2s;
}

.ftr-powered strong {
  font-weight: 500;
  color: var(--primary);
}

.ftr-powered:hover,
.ftr-powered:hover strong {
  color: var(--accent);
}

@media (max-width: 767px) {
  .ftr-in {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
}

.mbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgb(8 14 11 / 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 0.5px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}

.mbar.is-on {
  transform: none;
}

@media (min-width: 768px) {
  .ftr { padding-bottom: 32px; }
  .mbar { display: none; }
}

/* ───────── Responsivo ───────── */

@media (max-width: 767px) {
  .hero {
    padding-top: 40px;
  }

  .pills,
  .final {
    padding-top: 80px;
  }
}

/* ───────── Estado inicial do modo animado (evita flash antes do JS) ───────── */

/* ───────── Movimento reduzido ───────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
