:root {
  --red: #c81016;
  --red-bright: #e0222a;
  --red-glow: #e84545;
  --blue: #002080;
  --blue-deep: #003d8f;
  --cyan: #2ec4e8;
  --cyan-soft: #8eddf5;
  --ink: #1a2332;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.07);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 50px rgba(0, 32, 128, 0.1);
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section--soft { background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%); }

.section__header { max-width: 720px; margin-bottom: 2.5rem; }
.section__header.center { margin-inline: auto; text-align: center; }
.section__header h2,
.about__text h2,
.contact__info h2,
.supletivo-banner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section__header p,
.about__text p,
.contact__info p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section__cta { margin-top: 2.5rem; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 32, 128, 0.06);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.gradient-text {
  color: var(--cyan-soft);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 0 40px rgba(46, 196, 232, 0.35);
}

.gradient-text-static {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--cyan), var(--blue));
  transition: width 0.1s linear;
}

.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(46, 196, 232, 0.08), transparent 70%);
  transition: opacity 0.4s;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand-logo,
.logo__img {
  width: min(148px, 34vw);
  height: auto;
  object-fit: contain;
}

.logo__img--footer {
  width: min(140px, 42vw);
  filter: none;
  opacity: 0.95;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s, opacity 0.25s;
}

.header--scrolled .nav__links a { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--cyan); }
.header--scrolled .nav__links a:hover { color: var(--blue); }

.nav__cta {
  padding: 0.65rem 1.1rem !important;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 32, 128, 0.22);
  font-weight: 600;
}

.nav__cta:hover,
.header--scrolled .nav__cta,
.header--scrolled .nav__cta:hover {
  color: #fff !important;
  background: var(--blue);
}

.nav__cta::after { display: none; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: transform 0.3s;
}

.header--scrolled .nav__toggle { background: rgba(0, 26, 150, 0.08); }
.header--scrolled .nav__toggle span { background: var(--blue); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 0;
  color: var(--white);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  transition: background 0.9s var(--ease);
  background:
    radial-gradient(ellipse at 18% 25%, rgba(46, 196, 232, 0.16), transparent 42%),
    radial-gradient(ellipse at 82% 18%, rgba(220, 30, 40, 0.22), transparent 38%),
    linear-gradient(155deg, #6e0e14 0%, #a8151e 35%, #c81016 55%, #8a1018 78%, #4a0a0e 100%);
}

.hero__scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  background-size: 100% 8px;
  animation: scanline 8s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 40%, black, transparent 78%);
  animation: meshDrift 24s linear infinite;
}

.hero__diagonal {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 50%;
  height: 130%;
  background: linear-gradient(165deg, rgba(0, 32, 128, 0.32), rgba(0, 32, 128, 0.08));
  transform: skewX(-10deg);
  filter: blur(2px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.28;
  animation: floatBlob 14s ease-in-out infinite;
}

.blob--1 { width: 280px; height: 280px; background: #c93a40; top: 12%; left: -4%; }
.blob--2 { width: 220px; height: 220px; background: var(--cyan); bottom: 18%; right: 10%; animation-delay: -5s; }
.blob--3 { width: 160px; height: 160px; background: #5a8fd4; top: 42%; right: 28%; animation-delay: -8s; }

/* Modo Supletivo — tema azul */
body[data-mode="supletivo"] .hero__bg {
  background:
    radial-gradient(ellipse at 18% 25%, rgba(46, 196, 232, 0.22), transparent 42%),
    radial-gradient(ellipse at 82% 18%, rgba(0, 80, 200, 0.28), transparent 38%),
    linear-gradient(155deg, #000d3d 0%, #001454 30%, #002080 52%, #003d8f 72%, #001a70 100%);
}

body[data-mode="supletivo"] .hero__diagonal {
  background: linear-gradient(165deg, rgba(46, 196, 232, 0.18), rgba(0, 32, 128, 0.06));
}

body[data-mode="supletivo"] .blob--1 { background: #2ec4e8; opacity: 0.22; }
body[data-mode="supletivo"] .blob--2 { background: #4d7cff; }
body[data-mode="supletivo"] .scroll-progress span {
  background: linear-gradient(90deg, var(--cyan), var(--blue), #4d7cff);
}

body[data-mode="supletivo"] .unit-card__state {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

body[data-mode="supletivo"] .benefit__orb {
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

body {
  transition: background-color 0.5s var(--ease);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: 5rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 520px;
  margin: 1.35rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.hero__lead strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), background 0.4s;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.stat-card strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.stat-card span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.pill {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pill--glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

/* Hero visual — tech hub (sem avatar do assistente) */
.hero__visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.hero-hub {
  position: relative;
  width: min(520px, 96vw);
  height: min(520px, 96vw);
  display: grid;
  place-items: center;
}

.hero-hub .orbit-card--1 { top: 4%; left: -4%; }
.hero-hub .orbit-card--2 { top: 36%; right: -6%; }
.hero-hub .orbit-card--3 { bottom: 6%; left: 4%; }

.hero-hub__core {
  position: relative;
  z-index: 2;
  width: 275px;
  height: 275px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(46, 196, 232, 0.55);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 12px rgba(46, 196, 232, 0.1),
    0 28px 64px rgba(0, 0, 0, 0.26);
  animation: pulseCore 4s ease-in-out infinite;
  padding: 0;
}

.hero-hub__ring-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(46, 196, 232, 0.45);
  animation: hubRingPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.hero-hub__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(46, 196, 232, 0.18) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-hub__switch {
  position: relative;
  z-index: 1;
  width: 235px;
  height: 235px;
  border: 3px solid rgba(0, 32, 128, 0.14);
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #e8f0ff 55%, #dce8ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.85rem;
  cursor: pointer;
  box-shadow:
    0 16px 42px rgba(0, 32, 128, 0.26),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 18px rgba(0, 32, 128, 0.06);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.hero-hub__switch::after {
  content: "";
  position: absolute;
  top: 11%;
  left: 20%;
  width: 40%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.62) 0%, transparent 72%);
  transform: rotate(-18deg);
  pointer-events: none;
  opacity: 0.85;
}

.hero-hub__switch:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(0, 32, 128, 0.28);
  box-shadow:
    0 18px 40px rgba(0, 32, 128, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.hero-hub__switch:active {
  transform: translateY(-1px) scale(0.98);
}

.hero-hub__switch:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.hero-hub__cta-tag {
  position: relative;
  z-index: 1;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 32, 128, 0.25);
}

.hero-hub__switch-icon {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  line-height: 1;
}

.hero-hub__switch-label {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue);
  line-height: 1.1;
}

.hero-hub__switch-sub {
  position: relative;
  z-index: 1;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #4a5a8a;
  line-height: 1.2;
  text-align: center;
  max-width: 8.5rem;
}

.hero-hub__switch-action {
  position: relative;
  z-index: 1;
  margin-top: 0.12rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(0, 32, 128, 0.28);
}

body[data-mode="supletivo"] .hero-hub__core {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.25);
}

body[data-mode="supletivo"] .hero-hub__switch {
  background: linear-gradient(165deg, #ff4a4a 0%, var(--red) 55%, #a81016 100%);
  border-color: rgba(255, 255, 255, 0.35);
}

body[data-mode="supletivo"] .hero-hub__cta-tag {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red);
}

body[data-mode="supletivo"] .hero-hub__switch-label,
body[data-mode="supletivo"] .hero-hub__switch-sub {
  color: #fff;
}

body[data-mode="supletivo"] .hero-hub__switch-action {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

body[data-mode="supletivo"] .hero-hub__ring-pulse {
  border-color: rgba(255, 255, 255, 0.45);
}

body[data-mode="supletivo"] .hero-hub__glow {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0%, transparent 72%);
}

.hero-hub__core.is-switching {
  animation: hubSwitchPop 0.75s var(--ease);
}

.orbit-card.is-orbit-switch {
  animation: orbitSwitch 0.55s var(--ease);
}

.hero__content.is-mode-exit,
.hero__visual.is-mode-exit {
  opacity: 0;
  transform: translateY(-18px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.38s var(--ease),
    transform 0.38s var(--ease),
    filter 0.38s var(--ease);
}

.hero__content.is-mode-enter,
.hero__visual.is-mode-enter {
  animation: modeContentIn 0.72s var(--ease) both;
}

.hero.hero-content-ready .reveal-up {
  opacity: 1;
  transform: none;
  animation: none !important;
}

/* Transição de modo */
.mode-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  clip-path: circle(0% at var(--tx, 50%) var(--ty, 50%));
  opacity: 0;
  will-change: clip-path, opacity;
}

.mode-transition.is-covering {
  opacity: 1;
  clip-path: circle(150% at var(--tx, 50%) var(--ty, 50%));
  transition: clip-path 0.72s var(--ease), opacity 0.18s linear;
}

.mode-transition.is-revealing {
  opacity: 1;
  clip-path: circle(0% at var(--tx, 50%) var(--ty, 50%));
  transition: clip-path 0.78s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s linear 0.45s;
}

.mode-transition.to-supletivo {
  background:
    radial-gradient(circle at 30% 20%, rgba(46, 196, 232, 0.35), transparent 45%),
    linear-gradient(145deg, #001454 0%, #002080 45%, #003d8f 100%);
}

.mode-transition.to-cursos {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 90, 90, 0.28), transparent 42%),
    linear-gradient(145deg, #8a1018 0%, #c81016 45%, #a8151e 100%);
}

body.is-mode-switching {
  overflow: hidden;
}

body.is-mode-switching .header {
  z-index: 10000;
}

@keyframes hubRingPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes hubSwitchPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes orbitSwitch {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  45% { transform: translateY(-8px) scale(0.92); opacity: 0.35; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes modeContentIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  width: min(430px, 84vw);
  height: min(430px, 84vw);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: spin 32s linear infinite;
}

.hero__ring--inner {
  width: min(335px, 68vw);
  height: min(335px, 68vw);
  border-style: dashed;
  border-color: rgba(46, 196, 232, 0.2);
  animation: spin 20s linear infinite reverse;
}

.hero__tech-arc {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(46, 196, 232, 0.35);
  animation: spin 6s linear infinite;
}

.hero__tech-arc--1 {
  width: min(360px, 72vw);
  height: min(360px, 72vw);
  opacity: 0.6;
}

.hero__tech-arc--2 {
  width: min(460px, 88vw);
  height: min(460px, 88vw);
  border-top-color: rgba(255, 255, 255, 0.15);
  animation-duration: 9s;
  animation-direction: reverse;
}

.orbit-card {
  position: absolute;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  animation: orbitFloat 6s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.orbit-card span { font-size: 1.2rem; }
.orbit-card p { margin: 0; }
.orbit-card--1 { top: 8%; left: 0; animation-delay: 0s; }
.orbit-card--2 { top: 42%; right: -2%; animation-delay: -1.6s; }
.orbit-card--3 { bottom: 8%; left: 12%; animation-delay: -3.1s; }

/* Marquee */
.marquee {
  position: relative;
  z-index: 2;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 0.75rem 0;
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee__track span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.marquee__track span::before {
  content: "●";
  color: var(--cyan);
  margin-right: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 32, 128, 0.24);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn--accent {
  background: linear-gradient(135deg, var(--cyan), #4fd7ff);
  color: var(--blue);
  box-shadow: 0 14px 34px rgba(0, 174, 239, 0.28);
}

.btn--small {
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: var(--white);
}

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

.btn--shine {
  position: relative;
  overflow: hidden;
}

.btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.5s ease-in-out infinite;
}

/* Cards */
.glass-card,
.course-card,
.unit-card,
.benefit,
.contact__form {
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.glass-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.glass-card:hover,
.course-card:hover,
.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.glass-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(200, 16, 22, 0.12), rgba(0, 174, 239, 0.12));
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.glass-card h3,
.course-card h3,
.unit-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
}

.glass-card p,
.course-card p,
.unit-card__address,
.unit-card__phone {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about__cards { display: grid; gap: 1rem; }

.course-grid,
.benefits-grid,
.units-grid {
  display: grid;
  gap: 1rem;
}

.course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.benefits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.units-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.course-card {
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.course-card:hover::before { transform: scaleY(1); }

.course-card__tag {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 26, 150, 0.08);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-card--featured {
  background: linear-gradient(180deg, #f2f8ff, #ffffff);
  border-color: rgba(0, 174, 239, 0.25);
}

.course-card__link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: var(--red);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.benefit {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.benefit__orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.18), transparent 70%);
  position: absolute;
  top: -12px;
  right: -12px;
  animation: pulseCore 4s ease-in-out infinite;
}

.benefit strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-weight: 600;
}

.benefit span { color: var(--muted); font-size: 0.92rem; }

.section--supletivo {
  background: linear-gradient(135deg, var(--blue) 0%, #0026c7 50%, var(--blue-deep) 100%);
  color: var(--white);
  overflow: hidden;
}

.supletivo-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.supletivo-banner h2 { color: var(--white); }
.supletivo-banner p { color: rgba(255, 255, 255, 0.82); max-width: 620px; }

.supletivo-banner__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.35), transparent 70%);
  animation: pulseCore 4s ease-in-out infinite;
}

/* Planos Supletivo */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.plan-card {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card--featured {
  border-color: rgba(0, 32, 128, 0.2);
  box-shadow: 0 24px 56px rgba(0, 32, 128, 0.14);
  transform: translateY(-4px);
}

.plan-card__badge {
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.plan-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: 1.2rem;
}

.plan-card__old {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: line-through;
}

.plan-card__price {
  margin: 0;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.plan-card__price small {
  font-size: 1rem;
  font-weight: 700;
}

.plan-card__list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.plan-card__list li + li { margin-top: 0.35rem; }

.plans-note {
  margin: 2rem auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ Supletivo */
.faq-grid {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 32, 128, 0.04);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 800;
  color: var(--cyan);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.unit-card {
  padding: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.unit-card__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.unit-card__state {
  min-width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-bright));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact__details {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 26, 150, 0.05), rgba(0, 174, 239, 0.08));
  border: 1px solid var(--line);
}

.contact__form {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.contact__form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

.contact__form input,
.contact__form select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact__form input:focus,
.contact__form select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
}

.footer {
  background: linear-gradient(180deg, #00156f, #000d45);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.8rem 0;
}

.footer__inner { display: grid; gap: 1.2rem; }
.footer__brand p { margin: 0.8rem 0 0; max-width: 340px; color: rgba(255,255,255,.65); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer__links a {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__links a:hover { color: var(--cyan); }
.footer__copy { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,.45); }

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.35);
}

.whatsapp-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2s ease-out infinite;
}

/* Reveal animations */
[data-reveal],
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal-up,
.tbo-hero .reveal-up {
  opacity: 0;
  animation: revealUp 0.9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

/* TBO page */
.tbo-hero {
  padding: 8rem 0 4rem;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 174, 239, 0.22), transparent 30%),
    linear-gradient(135deg, #8f0010, var(--red) 45%, #5c0010);
  position: relative;
  overflow: hidden;
}

.tbo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: meshDrift 20s linear infinite;
}

.tbo-hero__content { position: relative; max-width: 760px; }
.tbo-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
}

.tbo-hero p { color: rgba(255,255,255,.88); }
.tbo-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.tbo-list { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.tbo-sidebar {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}

.tbo-sidebar h3 { margin-top: 0; color: var(--blue); font-weight: 900; }
.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: rgba(255,255,255,.9);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

/* Keyframes */
@keyframes scanline {
  from { background-position: 0 0; }
  to { background-position: 0 100vh; }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -24px) scale(1.06); }
}

@keyframes meshDrift {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes logoSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}

@keyframes hubGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes pulseCore {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes orbitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

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

@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid,
  .about,
  .contact,
  .tbo-content,
  .supletivo-banner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 340px;
    margin-top: 0.5rem;
    order: -1;
  }

  .hero__grid {
    gap: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .hero__content {
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .plans-grid { grid-template-columns: 1fr; }
  .plan-card--featured { transform: none; }

  .course-grid,
  .benefits-grid,
  .units-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supletivo-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .about__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1180px, calc(100% - 1.5rem));
  }

  .section {
    padding: 3.25rem 0;
  }

  .section__header {
    margin-bottom: 1.75rem;
  }

  .section__header h2,
  .about__text h2,
  .contact__info h2,
  .supletivo-banner h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .header {
    z-index: 140;
  }

  .header.nav-open {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  .header.nav-open .logo__img {
    filter: none;
  }

  .header.nav-open .nav__toggle {
    background: rgba(0, 32, 128, 0.08);
  }

  .header.nav-open .nav__toggle span {
    background: var(--blue);
  }

  .nav {
    position: relative;
    min-height: 64px;
  }

  .logo__img {
    width: min(128px, 42vw);
  }

  .nav__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    z-index: 2;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 28, 0.45);
    backdrop-filter: blur(2px);
    z-index: 130;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
  }

  .nav__backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.7rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
    display: none;
    z-index: 150;
    max-height: min(70svh, 520px);
    overflow-y: auto;
    border: 1px solid rgba(15, 23, 42, 0.06);
  }

  .nav__links--open { display: flex; }

  .nav__links a {
    color: var(--ink) !important;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .nav__links a::after { display: none; }

  .nav__links a:hover,
  .nav__links a:active {
    background: rgba(0, 32, 128, 0.06);
  }

  .nav__links a.nav__cta,
  .nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0.4rem;
    background: var(--blue) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 32, 128, 0.22);
  }

  .nav__links a.nav__cta:hover,
  .nav__links a.nav__cta:active {
    background: var(--blue-deep) !important;
    color: #fff !important;
  }

  .hero {
    min-height: auto;
    padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
  }

  .hero__title {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .hero__lead {
    font-size: 0.98rem;
    margin-top: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.4rem;
    gap: 0.7rem;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .stat-card strong {
    font-size: 1.25rem;
  }

  .hero__visual {
    min-height: 300px;
    width: 100%;
    overflow: visible;
  }

  .hero-hub {
    width: min(320px, 88vw);
    height: min(320px, 88vw);
  }

  .hero-hub__core {
    width: 190px;
    height: 190px;
  }

  .hero-hub__switch {
    width: 160px;
    height: 160px;
    gap: 0.18rem;
    padding: 0.55rem;
  }

  .hero-hub__cta-tag {
    font-size: 0.48rem;
    padding: 0.2rem 0.5rem;
  }

  .hero-hub__switch-icon {
    font-size: 1.45rem;
  }

  .hero-hub__switch-label {
    font-size: 0.82rem;
  }

  .hero-hub__switch-sub {
    font-size: 0.48rem;
    max-width: 7rem;
  }

  .hero-hub__switch-action {
    font-size: 0.5rem;
    padding: 0.24rem 0.55rem;
  }

  .hero__ring {
    width: min(280px, 78vw);
    height: min(280px, 78vw);
  }

  .hero__ring--inner {
    width: min(220px, 62vw);
    height: min(220px, 62vw);
  }

  .hero__tech-arc--1 {
    width: min(250px, 70vw);
    height: min(250px, 70vw);
  }

  .hero__tech-arc--2 {
    width: min(310px, 86vw);
    height: min(310px, 86vw);
  }

  .orbit-card {
    padding: 0.5rem 0.65rem;
    font-size: 0.7rem;
    border-radius: 12px;
    gap: 0.35rem;
    max-width: 42vw;
  }

  .orbit-card span { font-size: 0.95rem; }

  .hero-hub .orbit-card--1 { top: 0; left: -2%; }
  .hero-hub .orbit-card--2 { top: 38%; right: -4%; }
  .hero-hub .orbit-card--3 { bottom: 2%; left: 2%; }

  .course-grid,
  .benefits-grid,
  .units-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 1.35rem 1.2rem;
  }

  .plan-card__price {
    font-size: 1.7rem;
  }

  .contact {
    gap: 1.25rem;
  }

  .contact__form {
    padding: 1.15rem;
  }

  .footer {
    padding: 2.2rem 0 calc(7.5rem + env(safe-area-inset-bottom, 0px));
  }

  .footer__links {
    gap: 0.75rem 1rem;
  }

  .footer__links a {
    font-size: 0.72rem;
  }

  .whatsapp-float {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  .marquee {
    padding: 0.65rem 0;
  }

  .marquee__track {
    gap: 1.5rem;
  }

  .marquee__track span {
    font-size: 0.72rem;
  }

  .marquee__track span::before {
    margin-right: 1.5rem;
  }

  .blob,
  .cursor-glow,
  .hero__scanline {
    display: none;
  }

  .hero__canvas {
    opacity: 0.45;
  }
}

@media (max-width: 420px) {
  .hero-hub {
    width: min(290px, 92vw);
    height: min(290px, 92vw);
  }

  .hero-hub__core {
    width: 168px;
    height: 168px;
  }

  .hero-hub__switch {
    width: 142px;
    height: 142px;
  }

  .orbit-card p {
    font-size: 0.65rem;
  }

  .pill {
    font-size: 0.72rem;
    padding: 0.38rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
}
