/* =================================================================
   CPN ACADEMIA — base.css  ·  redesign "Luz Líquida"
   Tokens, reset, tipografia, utilitários, botões e logo.
   Mantém todas as cores e nomes de variáveis originais.
   ================================================================= */

/* ----------------------- TOKENS / VARIÁVEIS ----------------------- */
:root {
  /* Marca */
  --purple: #5e17c4;
  --purple-deep: #43089a;
  --purple-soft: #7b3ce0;
  --aqua: #16cfe6;
  --aqua-light: #66e7f2;
  --aqua-deep: #0a9fb8;

  /* Água profunda (seções escuras) */
  --deep: #06233e;
  --deep-2: #04182c;
  --deep-3: #0a3354;

  /* Neutros */
  --ink: #0e1726;
  --ink-soft: #475569;
  --muted: #7a8aa0;
  --line: #e6ecf3;
  --bg: #f5f9fd;
  --bg-2: #eef5fb;
  --white: #ffffff;
  --foam: #f0fbfe;


  /* Altura da logo (imagem) no header e footer */
  --logo-h: 76px;
  --logo-h-footer: 54px;

  /* ----- Gradientes assinatura (novos, reaproveitáveis) ----- */
  --grad-brand: linear-gradient(
    105deg,
    var(--purple) 0%,
    var(--aqua-deep) 55%,
    var(--aqua) 100%
  );
  --grad-brand-soft: linear-gradient(
    105deg,
    var(--purple-soft),
    var(--aqua-deep)
  );
  --grad-aqua-fill: linear-gradient(120deg, var(--aqua-light), var(--aqua));
  --grad-deep: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
  --grad-night: linear-gradient(170deg, #1a0a3d 0%, #2d0f63 45%, #071e38 100%);

  /* Sistema */
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-sm: 12px;
  --radius-pill: 60px;

  --shadow-xs: 0 6px 16px -10px rgba(8, 30, 60, 0.4);
  --shadow: 0 18px 40px -18px rgba(8, 30, 60, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(8, 30, 60, 0.45);
  --shadow-aqua: 0 18px 50px -16px rgba(22, 207, 230, 0.55);
  --shadow-purple: 0 18px 44px -16px rgba(94, 23, 196, 0.55);
  --ring: 0 0 0 1px rgba(94, 23, 196, 0.1);

  /* Curvas de animação */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --maxw: 1200px;

  /* Espaçamentos fluidos */
  --space-section: clamp(72px, 9vw, 130px);
}

/* ----------------------- RESET / BASE ----------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul {
  list-style: none;
}
.ico {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
}
::selection {
  background: var(--aqua);
  color: #022;
}

/* Foco acessível e consistente */
:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--purple), var(--aqua-deep));
  border-radius: 20px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-track {
  background: var(--bg);
}

/* ----------------------- LAYOUT ----------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.section {
  position: relative;
  padding-block: var(--space-section);
}

/* Eyebrow / kicker com marcador líquido */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  flex: none;
}
.kicker--light {
  color: var(--aqua-light);
}
.kicker--light::before {
  background: linear-gradient(90deg, var(--aqua-light), transparent);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(2rem, 5.4vw, 3.25rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.h2--light {
  color: var(--white);
}
.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-aqua {
  background: linear-gradient(100deg, var(--aqua-light), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 50px;
}
.section__sub {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ----------------------- BOTÕES ----------------------- */
.btn {
  --bg: var(--purple);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.4s var(--ease),
    background 0.3s;
  box-shadow: var(--shadow-purple);
  will-change: transform;
}
.btn .ico {
  transition: transform 0.4s var(--ease-spring);
}
/* preenchimento gradiente que sobe no hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: var(--grad-brand-soft);
  transition: opacity 0.4s var(--ease);
}
/* brilho que desliza */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -16px rgba(94, 23, 196, 0.7);
}
.btn:hover::before {
  opacity: 1;
}
.btn:hover::after {
  animation: shimmer 0.75s var(--ease) forwards;
}
.btn:hover .ico {
  transform: translateX(5px);
}
.btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* sólido = visual padrão (usado no HTML como btn--solid) */
.btn--solid {
  --bg: var(--purple);
  --fg: #fff;
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--purple);
  border: 2px solid var(--purple);
  box-shadow: none;
}
.btn--ghost::before {
  background: var(--purple);
}
.btn--ghost:hover {
  --fg: #fff;
  box-shadow: var(--shadow-purple);
}

.btn--aqua {
  --bg: var(--aqua);
  --fg: #04222a;
  box-shadow: var(--shadow-aqua);
}
.btn--aqua::before {
  background: linear-gradient(100deg, var(--aqua-light), #ffffff);
}
.btn--aqua:hover {
  box-shadow: 0 24px 50px -16px rgba(22, 207, 230, 0.8);
}

.btn--ghost-light {
  --bg: rgba(255, 255, 255, 0.06);
  --fg: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn--ghost-light::before {
  background: rgba(255, 255, 255, 0.14);
}
.btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 34px -12px rgba(255, 255, 255, 0.2);
}

.btn--sm {
  padding: 11px 19px;
  font-size: 0.9rem;
}
.btn--lg {
  padding: 18px 34px;
  font-size: 1.08rem;
}
.btn--block {
  width: 100%;
}
.btn--glow {
  animation: glowPulse 3.4s ease-in-out infinite;
}

/* ----------------------- BRAND / LOGO ----------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 0.8;
  transition: transform 0.4s var(--ease-spring);
}
.brand:hover {
  transform: scale(1.04);
}
.brand__img {
  height: var(--logo-h);
  width: 74px;
  object-fit: contain;
  display: block;
}
.brand__img.img-missing {
  display: none;
}
.brand__fallback {
  display: none;
  align-items: flex-end;
  gap: 6px;
  line-height: 0.8;
}
.brand__img.img-missing + .brand__fallback {
  display: inline-flex;
}
.brand__wave {
  width: 30px;
  height: 18px;
  align-self: center;
  position: relative;
}
.brand__wave::before,
.brand__wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
}
.brand__wave::before {
  top: 0;
  background: var(--aqua);
  animation: waveBob 2.4s var(--ease) infinite;
}
.brand__wave::after {
  bottom: 0;
  background: var(--purple);
  animation: waveBob 2.4s var(--ease) infinite 0.3s;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--purple);
  letter-spacing: -0.04em;
}
.brand__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.52rem;
  letter-spacing: 0.34em;
  color: var(--aqua-deep);
  margin-bottom: 5px;
}
.brand--footer .brand__img {
  height: var(--logo-h-footer);
}
.brand--footer .brand__name {
  color: #fff;
}
.brand--footer .brand__sub {
  color: var(--aqua-light);
}

/* ----------------------- HERO (imagem de fundo) -----------------------
   Garante que a imagem definida em --hero-image realmente apareça,
   mesmo que sections.css não esteja consumindo a variável.
   Troque a imagem na variável --hero-image lá no topo deste arquivo. */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 920px);
  background-color: var(--deep-2);
  overflow: hidden;
}
.hero .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* mantém o divisor de onda e o conteúdo acima da imagem */
.hero > .wave-divider,
.hero > .container {
  position: relative;
  z-index: 2;
}