/* ===== Identidade visual Duolingo =====
   Paleta oficial da marca (públicas):
   Feather Green #58CC02 | Mask Green #58A700 | Eel #4B4B4B
   Macaw #1CB0F6 | Cardinal #FF4B4B | Bee #FFC800
   Fox #FF9600 | Beetle #CE82FF | Polar #F7F7F7 | Swan #E5E5E5 */

:root {
  --green:       #58CC02;
  --green-dark:  #58A700;
  --green-light: #89E219;
  --blue:        #1CB0F6;
  --blue-dark:   #1899D6;
  --red:         #FF4B4B;
  --yellow:      #FFC800;
  --orange:      #FF9600;
  --purple:      #CE82FF;
  --eel:         #4B4B4B;
  --wolf:        #777777;
  --swan:        #E5E5E5;
  --polar:       #F7F7F7;
  --snow:        #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'din-round', system-ui, sans-serif;
  color: var(--eel);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Botões (estilo arredondado com sombra inferior) ===== */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .8px;
  text-decoration: none;
  text-align: center;
  padding: 14px 24px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .06s ease, filter .15s ease, background .15s ease;
  user-select: none;
}
.btn:active { transform: translateY(2px); }

.btn-primary {
  background: var(--green);
  color: var(--snow);
  border: none;
  box-shadow: 0 4px 0 var(--green-dark);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:active { box-shadow: 0 2px 0 var(--green-dark); }

.btn-ghost {
  background: var(--snow);
  color: var(--blue);
  border: 2px solid var(--swan);
  box-shadow: 0 4px 0 var(--swan);
}
.btn-ghost:hover { background: #f0faff; }
.btn-ghost:active { box-shadow: 0 2px 0 var(--swan); }

.btn-lg { font-size: 19px; padding: 18px 44px; }

/* ===== Header flutuante ===== */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1100px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: box-shadow .25s ease, background .25s ease, top .25s ease;
}
/* leve realce ao rolar */
.site-header.scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 22px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 37px;
  width: auto;
  display: block;
  transition: transform .15s ease;
}
.brand:hover .brand-logo { transform: scale(1.04); }
.lang-select { display: flex; align-items: center; gap: 6px; }
.lang-select select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  color: var(--wolf);
  letter-spacing: .8px;
  cursor: pointer;
}

/* ===== Seção 1: Hero ===== */
.hero {
  position: relative;
  /* altura extra define o quanto há para rolar enquanto o mascote fica pinado */
  height: 360vh;
  background: linear-gradient(180deg, #ffffff 0%, #f3fff0 100%);
}

/* contêiner pinado: trava em toda a viewport durante o scroll da seção */
.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

/* ===== Fundo animado ===== */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* gradiente base em movimento suave */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(88,204,2,.16), transparent 60%),
    radial-gradient(45% 45% at 80% 20%, rgba(28,176,246,.16), transparent 60%),
    radial-gradient(40% 40% at 70% 85%, rgba(206,130,255,.14), transparent 60%),
    radial-gradient(35% 35% at 25% 80%, rgba(255,200,0,.14), transparent 60%);
  animation: bgShift 22s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

/* "auroras": grandes manchas de cor desfocadas que vagam */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  mix-blend-mode: multiply;
}
.a1 { width: 460px; height: 460px; background: rgba(88,204,2,.5);  top: -8%;  left: -6%;  animation: drift1 26s ease-in-out infinite; }
.a2 { width: 380px; height: 380px; background: rgba(28,176,246,.45); top: 10%;  right: -8%; animation: drift2 30s ease-in-out infinite; }
.a3 { width: 420px; height: 420px; background: rgba(206,130,255,.4); bottom: -12%; left: 18%; animation: drift3 34s ease-in-out infinite; }
.a4 { width: 300px; height: 300px; background: rgba(255,200,0,.45);  bottom: 4%; right: 16%; animation: drift1 28s ease-in-out infinite reverse; }

@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(80px, 60px) scale(1.12); }
  66%     { transform: translate(40px, -50px) scale(.95); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-90px, 70px) scale(1.1); }
}
@keyframes drift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(70px, -60px) scale(1.08); }
  75%     { transform: translate(-60px, 30px) scale(.96); }
}

/* malha de pontos sutil que desliza */
.bg-dots {
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(rgba(88,167,0,.14) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  animation: dots 18s linear infinite;
}
@keyframes dots { to { background-position: 26px 52px; } }

/* ===== Palco: mascote travado no centro ===== */
.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  height: 100vh;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(137,226,25,.3), transparent 70%);
  border-radius: 50%;
}
.owl-hero {
  position: relative;
  z-index: 2;
  width: 380px;
  height: 380px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(88,167,0,.25));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* mascote piscando os olhos (anima dentro do SVG, vale p/ todas as instâncias) */
.owl-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: owlBlink 4.2s ease-in-out infinite;
}
@keyframes owlBlink {
  0%, 46%, 54%, 88%, 100% { transform: scaleY(1); }
  49%, 51%, 91%, 93%      { transform: scaleY(.08); } /* piscada dupla */
}
@keyframes spin { to { transform: rotate(360deg); } }

/* texto em gradiente (reutilizado nos painéis) */
.grad-text {
  background: linear-gradient(100deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-badge {
  display: inline-block;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .4px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--swan);
  margin-bottom: 16px;
}

/* ===== Duas colunas alinhadas em torno do mascote =====
   Esquerda: discurso principal · Direita: destaques. Ambas centradas
   verticalmente e ancoradas nas bordas, com espaçamento consistente. */
.hero-col {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transition:
    opacity .45s ease,
    transform .6s cubic-bezier(.5,0,.75,0); /* saída acelerando */
  will-change: transform, opacity;
  animation: colIn .8s cubic-bezier(.18,1.2,.4,1) backwards; /* entrada no carregamento */
}
.hero-col-left {
  left: clamp(20px, 3vw, 56px);
  width: clamp(320px, 30vw, 420px);
  align-items: flex-start;
  text-align: left;
  --exit: -130px;
}
.hero-col-right {
  right: clamp(20px, 3vw, 56px);
  width: clamp(260px, 22vw, 320px);
  align-items: stretch;
  --exit: 130px;
}

/* descanso (visível) e saída pelo respectivo lado */
.hero-col          { transform: translateY(-50%); }
.hero-col.is-out   { opacity: 0; transform: translateY(-50%) translateX(var(--exit)); pointer-events: none; }

@keyframes colIn {
  from { opacity: 0; transform: translateY(-50%) translateX(var(--exit)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
.hero-col-left  { animation-delay: .1s; }
.hero-col-right { animation-delay: .28s; }

.hero-col h1 {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--eel);
  letter-spacing: -1.5px;
}
.hero-lead { font-size: clamp(15px, 1.35vw, 18px); line-height: 1.55; color: var(--wolf); max-width: 38ch; }
.hero-lead strong { color: var(--eel); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 280px; margin-top: 4px; }
.hero-actions .btn { text-align: center; }

/* cartões de destaque (coluna direita) */
.feat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: #fff;
  padding: 16px 18px;
  border: 1px solid var(--swan);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.18,1,.4,1), box-shadow .25s ease, border-color .25s ease;
}
/* brilho difuso na cor do card */
.feat-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 110px; height: 110px;
  background: radial-gradient(circle, var(--accent-soft, #eafbdc), transparent 70%);
  opacity: .8;
  pointer-events: none;
  transition: opacity .25s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, var(--green));
  box-shadow: 0 18px 38px rgba(0,0,0,.12);
}
.feat-card:hover::after { opacity: 1; }

.fc-body { position: relative; z-index: 1; flex: 1; }
.feat-card b { display: block; font-size: 16px; font-weight: 800; color: var(--eel); }
.feat-card small { font-size: 13px; color: var(--wolf); }

.feat-card .fc-ico {
  position: relative;
  z-index: 1;
  font-size: 24px;
  flex: 0 0 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--accent-soft, var(--polar));
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6);
  transition: transform .25s cubic-bezier(.18,1.4,.4,1);
}
.feat-card:hover .fc-ico { transform: scale(1.08) rotate(-4deg); }

/* seta que desliza ao passar o mouse */
.fc-arrow {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent, var(--green));
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.feat-card:hover .fc-arrow { opacity: 1; transform: translateX(0); }

/* dica de rolagem */
.scroll-hint {
  position: absolute;
  bottom: 92px; left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .6px;
  color: var(--wolf);
  animation: hintBob 1.6s ease-in-out infinite;
}
@keyframes hintBob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }

/* ===== Clímax: explosão verde tomando a tela ===== */
.green-wipe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}
.green-content {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12vh; /* desce um pouco o conjunto */
  gap: 22px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(24px) scale(.96);
  transition: opacity .4s ease, transform .5s cubic-bezier(.18,1.25,.4,1);
  pointer-events: none;
}
.green-content.show { opacity: 1; transform: none; pointer-events: auto; }

/* ===== Cena de comemoração: mascote voando + bandeiras flutuando ===== */
.celebrate {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: clamp(220px, 36vh, 300px);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
/* halo branco para o mascote destacar no verde */
.celebrate::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 68%);
}
.owl-flap {
  position: relative;
  z-index: 1;
  width: clamp(180px, 22vw, 240px);
  height: clamp(180px, 22vw, 240px);
  transform-origin: 50% 78%;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.22));
  animation: flap 1.1s ease-in-out infinite;
}
@keyframes flap {
  0%, 100% { transform: translateY(0)    scaleX(1)   rotate(0deg); }
  25%      { transform: translateY(-12px) scaleX(.95) rotate(-3deg); }
  50%      { transform: translateY(0)    scaleX(1.03) rotate(0deg); }
  75%      { transform: translateY(-12px) scaleX(.95) rotate(3deg); }
}

/* bandeiras flutuando ao redor */
.fly-flag {
  position: absolute;
  left: calc(50% + var(--x, 0px));
  top: calc(50% + var(--y, 0px));
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  width: 68px; height: 46px;
  border-radius: 12px;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  background-size: cover;
  background-position: center;
  animation: flagFloat 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
/* translate individual compõe com o transform de centralização */
@keyframes flagFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}

.green-logo { height: 52px; width: auto; filter: brightness(0) invert(1); }
.green-content p { font-size: clamp(20px, 2.4vw, 30px); font-weight: 900; max-width: 520px; }
.green-btn {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 4px 0 rgba(0,0,0,.18);
}
.green-btn:hover { filter: brightness(1.03); }

/* onda inferior */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 80px;
  z-index: 2;
}

/* ===== Seção 2: Recursos (imersiva) ===== */
.features {
  position: relative;
  padding: 96px 0 110px;
  background:
    radial-gradient(60% 50% at 50% 0%, #ffffff 0%, var(--polar) 70%);
  overflow: hidden;
}
/* cabeçalho da seção */
.features-head { text-align: center; margin-bottom: 64px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-dark);
  background: #eafbdc;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.features-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--eel);
}

/* cada recurso é um "cartão" imersivo */
.feature-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 40px 48px;
  margin-bottom: 32px;
  background: #fff;
  border: 1px solid var(--swan);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.05);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.18,1,.4,1), box-shadow .35s ease;
}
/* faixa de cor lateral usando o --accent do card */
.feature-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent, var(--green));
}
.feature-row.reverse::before { inset: 0 0 0 auto; }
/* brilho de fundo no canto */
.feature-row::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -80px; top: -120px;
  background: radial-gradient(circle, var(--accent-soft, #eafbdc), transparent 70%);
  opacity: .9;
  pointer-events: none;
}
.feature-row.reverse::after { right: auto; left: -80px; }
.feature-row:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(0,0,0,.10); }

.feature-row.reverse { flex-direction: row-reverse; }

/* ícone com halo pulsante */
.feature-icon {
  position: relative;
  flex: 0 0 200px;
  display: grid;
  place-items: center;
}
.icon-glow {
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 32% 68% 60% 40% / 40% 40% 60% 60%;
  background: var(--accent-soft, #eafbdc);
  animation: blob 9s ease-in-out infinite;
  z-index: 0;
}
@keyframes blob {
  0%,100% { border-radius: 32% 68% 60% 40% / 40% 40% 60% 60%; transform: rotate(0deg); }
  50%     { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: rotate(12deg); }
}
.feature-icon svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.12));
  transition: transform .35s cubic-bezier(.18,1.4,.4,1);
}
.feature-row:hover .feature-icon svg { transform: scale(1.08) rotate(-3deg); }

/* texto */
.feature-text { position: relative; flex: 1; }
.feature-step {
  position: absolute;
  top: -18px; right: 0;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent, var(--green));
  opacity: .12;
}
.feature-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent, var(--green-dark));
  margin-bottom: 10px;
}
.feature-text h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  color: var(--eel);
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.feature-text p { font-size: 17px; line-height: 1.6; color: var(--wolf); max-width: 52ch; }
.feature-text strong { color: var(--eel); }

/* entrada dos cards via `translate` (deixa `transform` livre para o hover) */
.feature-row.reveal {
  opacity: 0;
  transform: none;
  translate: 0 40px;
  transition: opacity .7s ease, translate .7s cubic-bezier(.18,1,.4,1);
}
.feature-row.reveal.is-visible { opacity: 1; translate: 0 0; }
.feature-row.reveal:nth-of-type(2) { transition-delay: .08s; }
.feature-row.reveal:nth-of-type(3) { transition-delay: .16s; }

/* ===== Seção 3: Cursos / CTA ===== */
.courses { padding: 80px 0; text-align: center; }
.section-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--eel);
  margin-bottom: 8px;
}
.section-sub { font-size: 18px; color: var(--wolf); margin-bottom: 40px; }

/* ===== Carrossel de idiomas ===== */
.lang-carousel {
  position: relative;
  margin: 8px 0 64px;
  overflow: hidden;
  /* esmaece as bordas para o loop parecer infinito */
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.lang-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 14px 0;
  animation: scrollX 48s linear infinite;
}
.lang-carousel:hover .lang-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }

.lang-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  min-width: 240px;
  padding: 22px 30px;
  background: var(--snow);
  border: 2px solid var(--swan);
  border-bottom-width: 5px;
  border-radius: 22px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.lang-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--blue);
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
}
.lang-item.selected { border-color: var(--green); background: #f0fbe6; }
.lang-item.selected b { color: var(--green-dark); }
.lang-item b { font-size: 22px; font-weight: 800; color: var(--eel); }

/* bandeiras desenhadas em CSS (renderizam em qualquer SO) */
.flag {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.18);
  background-size: cover;
  background-position: center;
}
.flag-us { background: repeating-linear-gradient(180deg,#B22234 0 14.3%,#fff 14.3% 28.6%); }
.flag-es { background: linear-gradient(180deg,#AA151B 0 25%,#F1BF00 25% 75%,#AA151B 75%); }
.flag-fr { background: linear-gradient(90deg,#0055A4 0 33.3%,#fff 33.3% 66.6%,#EF4135 66.6%); }
.flag-de { background: linear-gradient(180deg,#000 0 33.3%,#DD0000 33.3% 66.6%,#FFCE00 66.6%); }
.flag-it { background: linear-gradient(90deg,#009246 0 33.3%,#fff 33.3% 66.6%,#CE2B37 66.6%); }
.flag-jp { background: radial-gradient(circle at 50% 50%, #BC002D 0 24%, #fff 24%); }
.flag-kr { background: linear-gradient(180deg,#CD2E3A 0 50%,#0047A0 50%); }
.flag-cn { background: #DE2910; }
.flag-ru { background: linear-gradient(180deg,#fff 0 33.3%,#0039A6 33.3% 66.6%,#D52B1E 66.6%); }
.flag-br { background: linear-gradient(135deg,#009C3B 0 55%,#FFDF00 55%); }

/* ===== Seção 4: Finale imersiva (pinada por scroll) ===== */
.finale {
  position: relative;
  height: 180vh; /* menos scroll para chegar ao final */
}
.finale-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 18%, #7ee018 0%, #58CC02 38%, #46a302 78%, #2f7a00 100%);
  isolation: isolate;
}

/* fundo animado */
.finale-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.f-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  mix-blend-mode: screen;
}
.fa1 { width: 520px; height: 520px; background: #b6ff4d; top: -10%; left: -6%;  animation: drift1 24s ease-in-out infinite; }
.fa2 { width: 440px; height: 440px; background: #d9ff00; top: 8%;  right: -8%; animation: drift2 30s ease-in-out infinite; }
.fa3 { width: 480px; height: 480px; background: #36c200; bottom: -14%; left: 28%; animation: drift3 28s ease-in-out infinite; }
/* feixe de luz radial pulsante */
.f-rays {
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 40% at 50% 28%, rgba(255,255,255,.28), transparent 70%);
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { opacity: .5; } 50% { opacity: .95; } }

/* partículas cintilantes */
.sparkles { position: absolute; inset: 0; }
.sparkles span {
  position: absolute;
  left: var(--sx); top: var(--sy);
  width: var(--ss, 6px); height: var(--ss, 6px);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px 2px rgba(255,255,255,.8);
  opacity: .9;
  animation: twinkle 3.4s ease-in-out infinite, floatY 7s ease-in-out infinite;
  animation-delay: var(--sd, 0s);
}
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes floatY  { 0%,100% { translate: 0 0; } 50% { translate: 0 -22px; } }

/* cena central */
.finale-scene {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  padding: 0 24px;
  color: #fff;
}
.finale-mascot { position: relative; display: grid; place-items: center; height: 230px; }
.finale-mascot .owl-flap {
  width: clamp(150px, 18vw, 210px);
  height: clamp(150px, 18vw, 210px);
}

/* bandeiras da finale entram animadas com a cena (escala + fade, escalonadas) */
.finale .fly-flag {
  opacity: 0;
  scale: .2;
  transition: opacity .45s ease, scale .6s cubic-bezier(.18,1.6,.4,1);
  transition-delay: var(--d, 0s);
}
.finale.is-live .fly-flag { opacity: 1; scale: 1; }

/* título palavra por palavra */
.finale-title {
  font-size: clamp(28px, 5.6vw, 84px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  text-shadow: 0 6px 24px rgba(0,0,0,.18);
}
/* cada linha fica inteira numa linha só */
.finale-title .line { display: block; white-space: nowrap; }
.finale-title .word {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(48px) scale(.86);
  transition:
    opacity .55s ease,
    filter .55s ease,
    transform .6s cubic-bezier(.2,1.1,.3,1);
}
.finale-title .word.in { opacity: 1; filter: blur(0); transform: none; }
.finale-title .hl {
  background: linear-gradient(92deg, #FFE600 0%, #fff 55%, #b6ff4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CTA + números (surgem no fim) */
.finale-btn {
  background: #fff;
  color: var(--green-dark);
  font-size: 19px;
  padding: 18px 52px;
  box-shadow: 0 6px 0 rgba(0,0,0,.18), 0 18px 40px rgba(0,0,0,.22);
  opacity: 0;
  transform: translateY(24px) scale(.92);
  transition: opacity .5s ease, transform .55s cubic-bezier(.18,1.4,.4,1);
}
.finale-btn:hover { filter: brightness(1.04); }
.finale.is-done .finale-btn { opacity: 1; transform: none; }

.finale-stats {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease .1s, transform .5s ease .1s;
}
.finale.is-done .finale-stats { opacity: 1; transform: none; }
.f-stat { display: flex; flex-direction: column; }
.f-stat b { font-size: clamp(26px, 3vw, 38px); font-weight: 900; }
.f-stat small { font-size: 14px; font-weight: 700; opacity: .92; letter-spacing: .4px; }

/* ===== Animação de reveal ao rolar ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  /* colunas sem deslize (entram/saem só com fade) */
  .hero-col { animation: none; transition: opacity .25s ease; transform: translateY(-50%); }
  .hero-col.is-out { transform: translateY(-50%); }
  .owl-hero, .hero-ring, .scroll-hint,
  .aurora, .bg-dots, .hero-bg::before,
  .lang-track, .icon-glow, .owl-flap, .fly-flag, .owl-eye,
  .f-aurora, .f-rays, .sparkles span { animation: none !important; }
  /* finale: palavras apenas surgem, sem desfoque/deslize */
  .finale-title .word { transition: opacity .3s ease; filter: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Telas largas: recursos em grade de 3 colunas ===== */
@media (min-width: 1100px) {
  .features .container {
    max-width: 1240px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
  }
  .features-head { grid-column: 1 / -1; }

  /* cada recurso vira um cartão vertical */
  .feature-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
    padding: 40px 32px;
    margin-bottom: 0;
    height: 100%;
  }
  .feature-row.reverse { flex-direction: column; } /* anula a inversão no grid */
  .feature-row.reverse::before { inset: 0 auto 0 0; }   /* faixa sempre à esquerda */
  .feature-row.reverse::after { right: -80px; left: auto; }

  .feature-icon { flex: 0 0 auto; }
  .feature-icon svg { width: 150px; height: 150px; }
  .icon-glow { width: 160px; height: 160px; }
  .feature-text p { max-width: none; }
}

/* ===== Telas largas: mascote bem maior e colunas mais afastadas ===== */
@media (min-width: 1500px) {
  .features .container { max-width: 1400px; }
  .hero-stage { max-width: 1560px; }
  .owl-hero  { width: 540px; height: 540px; }
  .hero-blob { width: 580px; height: 580px; }
  .hero-col-left  { width: clamp(340px, 24vw, 440px); }
  .hero-col-right { width: clamp(300px, 20vw, 360px); }
}
@media (min-width: 1900px) {
  .hero-stage { max-width: 1760px; }
  .owl-hero  { width: 640px; height: 640px; }
  .hero-blob { width: 680px; height: 680px; }
}

/* ===== Responsivo ===== */
/* larguras médias: encolhe mascote/anel e estreita colunas p/ não sobrepor */
@media (max-width: 1100px) {
  .owl-hero { width: 240px; height: 240px; }
  .hero-blob { width: 260px; height: 260px; }
  .hero-ring { width: 360px; height: 360px; }
  .hero-col-left  { width: clamp(280px, 30vw, 360px); left: clamp(16px, 3vw, 44px); }
  .hero-col-right { width: clamp(230px, 23vw, 290px); right: clamp(16px, 3vw, 44px); }
}
@media (max-width: 880px) {
  .owl-hero { width: 200px; height: 200px; }
  .hero-blob { width: 230px; height: 230px; }
  .hero-ring { width: 300px; height: 300px; }
  .hero-col-left  { width: clamp(240px, 36vw, 300px); }
  .hero-col-right { width: clamp(190px, 26vw, 250px); }
  .hero-col h1 { font-size: clamp(22px, 3.6vw, 30px); }
  .feature-row, .feature-row.reverse { flex-direction: column; text-align: center; gap: 20px; padding: 32px 28px; }
  .feature-icon { flex-basis: auto; }
  .feature-text { text-align: center; }
  .feature-text p { margin: 0 auto; }
  .feature-step { position: static; display: block; opacity: .14; }
  .lang-item { min-width: 200px; padding: 18px 24px; }
  .lang-item b { font-size: 19px; }
  .flag { width: 50px; height: 50px; }
  .stats { gap: 32px; }
}

/* Em telas estreitas o efeito pinado é desligado: vira layout vertical normal */
@media (max-width: 720px) {
  .hero { height: auto; }
  .hero-pin { position: static; height: auto; padding: 44px 0 64px; }
  .hero-stage {
    flex-direction: column;
    height: auto;
    gap: 26px;
    padding: 8px 24px 0;
  }
  .hero-ring { display: none; }
  .hero-blob { position: relative; top: 0; width: 220px; height: 220px; margin-bottom: -240px; }
  .owl-hero { width: 200px; height: 200px; order: 0; }
  .scroll-hint { display: none; }
  .hero-col {
    position: static;
    width: 100%;
    max-width: 380px;
    opacity: 1;
    align-items: center;
    text-align: center;
    transform: none !important;
    animation: none;
    margin: 0 auto;
  }
  .hero-col-left  { order: -1; } /* discurso acima do mascote */
  .hero-col-right { order: 1; }
  .hero-actions { max-width: 320px; align-items: stretch; }
  .feat-card { text-align: left; }
}
@media (max-width: 460px) {
  .lang-item { min-width: 170px; }
}
