/* ====================================================================== */
/* CENTRAL MILK — LANDING PAGE STYLES                                       */
/* ====================================================================== */

:root {
  --cm-green: #22C55E;
  --cm-green-2: #16A34A;
  --cm-bg: #0a0f0d;
  --cm-light: #f4f9f6;
}

html, body {
  background: #0a0f0d;
  color: #f0f4f2;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(34, 197, 94, 0.35);
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

/* ====================================================================== */
/* LIQUID GLASS                                                             */
/* ====================================================================== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0)    40%,
    rgba(255, 255, 255, 0)    60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ====================================================================== */
/* LIGHT SECTIONS — fundo claro com transição suave                        */
/* ====================================================================== */
.section-light {
  background: #f4f9f6;
  color: #0d1614;
  position: relative;
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4 {
  color: #0a0f0d;
}

.section-light strong {
  color: #0a0f0d;
}

.section-light .text-cm-text { color: #0a0f0d !important; }
.section-light .text-cm-muted { color: #6b7d77 !important; }
.section-light .text-cm-text\/80 { color: rgba(10, 15, 13, 0.8) !important; }
.section-light .text-cm-text\/90 { color: rgba(10, 15, 13, 0.9) !important; }

.section-light .border-white\/5,
.section-light .border-white\/15 { border-color: rgba(0, 0, 0, 0.06) !important; }

.section-light .bg-white\/5  { background: rgba(0, 0, 0, 0.025) !important; }
.section-light .bg-white\/\[0\.02\] { background: rgba(0, 0, 0, 0.015) !important; }

.section-light .bg-cm-surface\/60 { background: rgba(255, 255, 255, 0.95) !important; }
.section-light .bg-cm-surface\/80 { background: rgba(255, 255, 255, 1) !important; }
.section-light .bg-cm-surface\/40 { background: rgba(255, 255, 255, 0.85) !important; }

/* Glass invertido para fundo claro */
.section-light .liquid-glass {
  background: #ffffff;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .8),
    0 6px 20px -8px rgba(15, 25, 22, .08);
  border: 1px solid rgba(15, 25, 22, .06);
}
.section-light .liquid-glass::before {
  background: linear-gradient(180deg,
    rgba(34, 197, 94, .25) 0%,
    rgba(34, 197, 94, .08) 20%,
    rgba(0, 0, 0, 0)       40%,
    rgba(0, 0, 0, 0)       60%,
    rgba(34, 197, 94, .08) 80%,
    rgba(34, 197, 94, .25) 100%);
}

/* Cards em seção light */
.section-light .feature-card {
  background: #ffffff !important;
  border-color: rgba(15, 25, 22, .08) !important;
  box-shadow: 0 4px 20px -6px rgba(15, 25, 22, .06);
}
.section-light .feature-card:hover {
  border-color: rgba(34, 197, 94, .4) !important;
  box-shadow: 0 12px 30px -10px rgba(34, 197, 94, .2);
}

/* Borders top/bottom invisíveis em light */
.section-light + .section-light { border-top: 0; }

/* Fade gradient — cobre transição entre dark e light */
.fade-from-dark {
  position: relative;
}
.fade-from-dark::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, #f4f9f6 100%);
  pointer-events: none;
  z-index: 1;
}

.fade-to-dark {
  position: relative;
}
.fade-to-dark::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, #f4f9f6 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ====================================================================== */
/* SEAM-FADE — transição curtinha sem espaço vazio                         */
/* ====================================================================== */
.fade-d2l {
  height: 80px;
  pointer-events: none;
  background: linear-gradient(180deg, #0a0f0d 0%, #f4f9f6 100%);
  margin: 0;
}

.fade-l2d {
  height: 80px;
  pointer-events: none;
  background: linear-gradient(180deg, #f4f9f6 0%, #0a0f0d 100%);
  margin: 0;
}

@media (max-width: 640px) {
  .fade-d2l, .fade-l2d { height: 60px; }
}

/* Light cards interno: ícones glass dentro de seção light precisam trocar */
.section-light .feature-card > div.liquid-glass {
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .12);
}

/* Calendário em light */
.section-light .bg-\[\#fbbf24\]\/20 { background: rgba(251, 191, 36, .14) !important; }

/* Comparação grid em light */
.section-light .text-cm-muted\/40 { color: rgba(15, 25, 22, .25) !important; }

/* FAQ em light */
.section-light details.liquid-glass summary { color: #0a0f0d; }

/* Marquee em light */
.section-light .text-cm-muted { color: #6b7d77 !important; }


/* ====================================================================== */
/* BLUR FADE UP                                                             */
/* ====================================================================== */
@keyframes blurFadeUp {
  from { opacity: 0; filter: blur(20px); transform: translateY(40px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

.animate-blur-fade-up {
  opacity: 0;
  animation: blurFadeUp 1s ease-out forwards;
}

/* ====================================================================== */
/* REVEAL ON SCROLL                                                         */
/* ====================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity   .9s cubic-bezier(.25, .1, .25, 1),
    transform .9s cubic-bezier(.25, .1, .25, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================================================== */
/* ACCENT GRADIENT (verde marca — usado em badges, halos, etc.)            */
/* ====================================================================== */
.accent-gradient {
  background: linear-gradient(90deg, #22C55E 0%, #16A34A 100%);
}

.accent-text {
  background: linear-gradient(90deg, #4ade80 0%, #22C55E 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.section-light .accent-text {
  background: linear-gradient(90deg, #16A34A 0%, #15803d 100%);
  -webkit-background-clip: text;
          background-clip: text;
}

/* ====================================================================== */
/* CTA SHINE — botão dourado metálico com brilho passando                  */
/* ====================================================================== */
.cta-shine {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    #b8860b 0%,
    #daa520 15%,
    #f5d041 38%,
    #ffe580 50%,
    #f5d041 62%,
    #daa520 85%,
    #b8860b 100%);
  background-size: 250% 250%;
  color: #2a1f0a;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow:
    0 6px 20px -2px rgba(218, 165, 32, .4),
    0 1px 0 rgba(255, 255, 255, .5) inset,
    0 -1px 0 rgba(0, 0, 0, .15) inset;
  transition: transform .25s ease, box-shadow .25s ease, background-position .6s ease;
  isolation: isolate;
}

.cta-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255, 255, 255, .1) 25%,
    rgba(255, 255, 255, .65) 50%,
    rgba(255, 255, 255, .1) 75%,
    transparent 100%);
  transform: skewX(-20deg);
  animation: shineSlide 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shineSlide {
  0%   { left: -150%; }
  55%  { left: 150%; }
  100% { left: 150%; }
}

.cta-shine:hover {
  transform: scale(1.04) translateY(-1px);
  background-position: 100% 100%;
  box-shadow:
    0 10px 30px -4px rgba(245, 208, 65, .55),
    0 1px 0 rgba(255, 255, 255, .6) inset,
    0 -1px 0 rgba(0, 0, 0, .15) inset;
}

.cta-shine:active {
  transform: scale(.99);
}

/* ====================================================================== */
/* GLOW HALOS                                                               */
/* ====================================================================== */
.hero-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.55;
  border-radius: 50%;
  will-change: transform;
}

/* ====================================================================== */
/* DONUT GIRANDO                                                            */
/* ====================================================================== */
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.ring-spin {
  animation: spinSlow 22s linear infinite;
}

/* ====================================================================== */
/* PULSE DOT                                                                */
/* ====================================================================== */
@keyframes pulseDot {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.25); }
}

.pulse-dot {
  animation: pulseDot 1.6s ease-in-out infinite;
}

/* ====================================================================== */
/* MARQUEE                                                                  */
/* ====================================================================== */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 36s linear infinite;
}

/* ====================================================================== */
/* MINI CHART BARS                                                          */
/* ====================================================================== */
.bar {
  transition: height .9s cubic-bezier(.25, .1, .25, 1);
}

/* ====================================================================== */
/* MOBILE MENU                                                              */
/* ====================================================================== */
.mobile-menu {
  transition: opacity .35s ease, transform .35s ease;
}

.mobile-menu.closed {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

/* ====================================================================== */
/* CARD HOVER LIFT                                                          */
/* ====================================================================== */
.feature-card {
  transition:
    transform    .35s ease,
    border-color .35s ease,
    background   .35s ease,
    box-shadow   .35s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, .35);
}

/* ====================================================================== */
/* HIDE SCROLLBAR                                                           */
/* ====================================================================== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ====================================================================== */
/* WHATSAPP FLOAT BUTTON                                                    */
/* ====================================================================== */
.whats-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow:
    0 6px 20px rgba(37, 211, 102, .35),
    0 0 0 0 rgba(37, 211, 102, .55);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}

.whats-float:hover {
  transform: scale(1.08);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, .5),
    0 0 0 6px rgba(37, 211, 102, .15);
}

.whats-float:active {
  transform: scale(.96);
}

.whats-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #25D366;
  opacity: .55;
  animation: whatsPulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes whatsPulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1.5); opacity: 0;   }
}

.whats-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #0e1714;
  color: #f0f4f2;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.whats-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #0e1714;
  border-right: 1px solid rgba(255, 255, 255, .08);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.whats-float:hover .whats-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

@media (max-width: 640px) {
  .whats-float {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
  .whats-tooltip {
    display: none;
  }
}

/* ====================================================================== */
/* DETAILS / FAQ                                                            */
/* ====================================================================== */
details > summary::-webkit-details-marker {
  display: none;
}

details > summary {
  list-style: none;
}

/* ====================================================================== */
/* YOUTUBE LAZY EMBED                                                       */
/* ====================================================================== */
.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  isolation: isolate;
  box-shadow: 0 12px 40px -12px rgba(34, 197, 94, .25);
}

.yt-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
  filter: brightness(.78);
}

.yt-embed:hover img {
  transform: scale(1.04);
  filter: brightness(.95);
}

.yt-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .94);
  border: 3px solid rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(34, 197, 94, .55);
  transition: transform .3s ease, background .3s ease;
}

.yt-play svg {
  margin-left: 4px;
}

.yt-embed:hover .yt-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #22C55E;
}

.yt-embed.playing img,
.yt-embed.playing .yt-play,
.yt-embed.playing::after {
  display: none;
}

@media (max-width: 640px) {
  .yt-play {
    width: 60px;
    height: 60px;
  }
  .yt-play svg {
    width: 24px;
    height: 24px;
  }
}

/* ====================================================================== */
/* GLOBO TERRA                                                              */
/* ====================================================================== */
.globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 640px;
  margin: 0 auto;
  cursor: grab;
}

.globe-wrap:active {
  cursor: grabbing;
}

.globe-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(1.15) contrast(1.05);
}

.globe-hint {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  color: #7c8c87;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .55;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .globe-hint { display: none; }
}

/* ====================================================================== */
/* HERO VIDEO BG                                                            */
/* ====================================================================== */
#heroVideo {
  filter: saturate(.85) contrast(1.05);
}

#heroVideo:not([src]),
#heroVideo[src=""] {
  display: none;
}

/* ====================================================================== */
/* STICKY NAVBAR — encolhe ao descer                                        */
/* ====================================================================== */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: 20px;
  padding-bottom: 0;
  transition: padding .35s ease, top .35s ease;
}

/* Fundo dark sólido na navbar — sempre legível, mesmo em seção branca */
#mainNav .nav-pill {
  background: rgba(10, 15, 13, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
}

/* Contorno preto no texto da nav pra reforçar */
#mainNav a, #mainNav span, #mainNav button {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* Logo (img) com contorno escuro pra destacar em fundo claro */
#mainNav .nav-logo-img,
#mainNav .nav-logo-text-img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}

@media (min-width: 768px) {
  #mainNav {
    top: 36px; /* abaixo da topbar */
  }
  #mainNav.nav-shrunk {
    top: 0;
    padding-top: 8px;
  }
}

#mainNav .nav-pill {
  transition: padding .35s ease, max-width .35s ease, transform .35s ease;
  will-change: padding, max-width;
}

#mainNav.nav-shrunk .nav-pill {
  padding-top: 6px;
  padding-bottom: 6px;
}

#mainNav .nav-logo-img {
  transition: width .35s ease, height .35s ease;
}

#mainNav.nav-shrunk .nav-logo-img {
  width: 30px;
  height: 30px;
}

#mainNav .nav-logo-text {
  transition: font-size .35s ease, opacity .35s ease;
}

#mainNav.nav-shrunk .nav-logo-text {
  font-size: 14px;
}

/* Topbar slim no topo */
.cm-topbar {
  position: relative;
  z-index: 40;
}

@media (min-width: 768px) {
  .cm-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    transition: transform .35s ease;
  }
  .cm-topbar.hidden-up {
    transform: translateY(-100%);
  }
}

/* ====================================================================== */
/* QUIZ STYLES                                                              */
/* ====================================================================== */
.quiz-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #f0f4f2;
  font-family: inherit;
  width: 100%;
}

.quiz-card:hover {
  border-color: rgba(34, 197, 94, .5);
  background: rgba(34, 197, 94, .05);
  transform: translateY(-3px);
}

.quiz-card.active {
  border-color: #22C55E;
  background: rgba(34, 197, 94, .1);
  box-shadow: 0 8px 24px -8px rgba(34, 197, 94, .35);
}

.quiz-card svg {
  width: 56px;
  height: 56px;
  color: #4ade80;
}

.quiz-card .quiz-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.quiz-card .quiz-sub {
  font-size: .8rem;
  color: #7c8c87;
}

.quiz-input {
  width: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .9rem;
  padding: .85rem 1rem;
  color: #f0f4f2;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .25s ease, background .25s ease;
}

.quiz-input:focus {
  outline: none;
  border-color: #22C55E;
  background: rgba(34, 197, 94, .04);
}

.quiz-input::placeholder {
  color: #7c8c87;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: quizFade .4s ease;
}

@keyframes quizFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
