:root {
  --bg: #05070f;
  --bg2: #081a18;
  --text: #f8f5e8;
  --muted: #c9d0c1;

  --lime: #b8ff5c;
  --cyan: #37e5ff;
  --pink: #ff4fd8;
  --orange: #ff9f43;
  --earth: #b86b38;

  --glass: rgba(255,255,255,.085);
  --glass2: rgba(255,255,255,.13);
  --line: rgba(255,255,255,.19);
  --shadow: 0 30px 100px rgba(0,0,0,.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    "Segoe UI",
    Roboto,
    Arial,
    Helvetica,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(55,229,255,.22), transparent 25%),
    radial-gradient(circle at 88% 10%, rgba(255,79,216,.18), transparent 27%),
    radial-gradient(circle at 50% 95%, rgba(184,255,92,.13), transparent 35%),
    linear-gradient(135deg, var(--bg), var(--bg2) 58%, #11100c);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  right: -160px;
  top: 32vh;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,159,67,.22), transparent 62%);
  filter: blur(8px);
}

.page {
  position: relative;
  min-height: 100vh;
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 68px);
}

.hero-text {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0,0,0,.26);
}

.hero-text::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(55,229,255,.45), rgba(255,79,216,.22), rgba(184,255,92,.34));
  opacity: .35;
  filter: blur(18px);
}

.label {
  margin: 0 0 14px;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 8.2vw, 8.8rem);
  line-height: .84;
  letter-spacing: -.09em;
  font-weight: 950;
  background:
    linear-gradient(110deg, #ffffff 5%, var(--cyan) 35%, var(--lime) 58%, var(--orange) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0 0 28px;
  max-width: 900px;
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.07em;
  font-weight: 950;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -.035em;
}

p {
  line-height: 1.7;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.badges span {
  position: relative;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  color: #fff;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.badges span:nth-child(1) {
  color: var(--cyan);
}

.badges span:nth-child(2) {
  color: var(--lime);
}

.badges span:nth-child(3) {
  color: var(--orange);
}

.badges span:nth-child(4) {
  color: #ffd6f6;
}

.badges span:nth-child(5) {
  color: #fff7b8;
}

.gallery {
  position: relative;
  height: min(74vh, 760px);
  min-height: 500px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 38px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 -140px 130px rgba(0,0,0,.45),
    inset 0 90px 120px rgba(0,0,0,.26);
}

.gallery::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(55,229,255,.42), transparent 25%, rgba(255,79,216,.25), transparent 55%, rgba(184,255,92,.32));
  mix-blend-mode: screen;
  opacity: .24;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.045);
  transition:
    opacity 900ms ease,
    transform 1600ms cubic-bezier(.19,1,.22,1);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    saturate(1.12)
    contrast(1.04)
    brightness(.93);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.18) 46%, rgba(0,0,0,.28)),
    radial-gradient(circle at 70% 20%, rgba(55,229,255,.14), transparent 35%);
}

.slide figcaption {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  bottom: clamp(26px, 5vw, 48px);
  z-index: 7;
  max-width: 780px;
  padding: 18px 20px;
  border-left: 4px solid var(--lime);
  border-radius: 0 24px 24px 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.16));
  backdrop-filter: blur(10px);
}

.slide figcaption strong {
  display: block;
  font-size: clamp(2.5rem, 5.5vw, 5.6rem);
  line-height: .84;
  letter-spacing: -.075em;
  font-weight: 950;
  color: #fff;
  text-shadow: 0 8px 34px rgba(0,0,0,.52);
}

.slide figcaption span {
  display: block;
  max-width: 720px;
  margin-top: 12px;
  color: #f4f0df;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 600;
}

/* 
   CORREÇÃO PRINCIPAL:
   Os controles saem da parte inferior e vão para o topo.
   Assim não cobrem as frases das legendas.
*/
.controls {
  position: absolute;
  top: 22px;
  right: 22px;
  left: auto;
  bottom: auto;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
}

.controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
  color: white;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.controls button:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(184,255,92,.8);
  background:
    linear-gradient(135deg, rgba(184,255,92,.35), rgba(55,229,255,.18));
}

#dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 30px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.32);
  cursor: pointer;
  transition:
    width .2s ease,
    background .2s ease,
    transform .2s ease;
}

.dot.active {
  width: 48px;
  background:
    linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 18px rgba(184,255,92,.45);
}

.dot:hover {
  transform: scaleY(1.2);
}

.content,
.turmas,
.quote {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 118px) 0;
}

.cards {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 18px;
}

.cards article {
  position: relative;
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.cards article::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(55,229,255,.25), transparent 66%);
}

.cards article:hover {
  transform: translateY(-8px);
  border-color: rgba(184,255,92,.55);
  background:
    linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.075));
}

.card-number {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--lime);
  font-weight: 950;
  letter-spacing: -.04em;
  font-size: 1.1rem;
}

.cards p {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.timeline button {
  position: relative;
  min-height: 175px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.timeline button::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -100px;
  bottom: -100px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,79,216,.24), transparent 67%);
}

.timeline button:hover {
  transform: translateY(-7px) rotate(-1deg);
  border-color: rgba(55,229,255,.58);
  background:
    linear-gradient(145deg, rgba(55,229,255,.16), rgba(255,255,255,.065));
}

.timeline button span {
  display: block;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -.06em;
}

.timeline button small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

.quote {
  text-align: center;
}

.quote blockquote {
  margin: 0 auto 24px;
  max-width: 1020px;
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 950;
  background:
    linear-gradient(110deg, #fff, var(--cyan), var(--lime), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote p {
  color: var(--lime);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    max-width: 920px;
  }

  .cards,
  .timeline {
    grid-template-columns: 1fr;
  }

  .cards article,
  .timeline button {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 22px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 22px;
  }

  .gallery {
    min-height: 560px;
    height: 72vh;
    border-radius: 28px;
  }

  .controls {
    top: 14px;
    right: 14px;
    gap: 8px;
    transform: scale(.9);
    transform-origin: top right;
  }

  .slide figcaption {
    left: 18px;
    right: 18px;
    bottom: 24px;
    padding: 15px 16px;
  }

  .slide figcaption strong {
    font-size: 3rem;
  }

  .slide figcaption span {
    font-size: .98rem;
  }

  .content,
  .turmas,
  .quote {
    width: min(100% - 28px, 1180px);
  }
}

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

/* ============================================================
   AJUSTE DE MARGEM DO TÍTULO PRINCIPAL
   Corrige a palavra "Campo" saindo da margem do card
   ============================================================ */

.hero-text {
  overflow: hidden;
}

h1 {
  max-width: 100%;
  font-size: clamp(3.1rem, 7vw, 7.35rem);
  line-height: .88;
  letter-spacing: -.075em;
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(3rem, 15vw, 5.8rem);
    letter-spacing: -.065em;
  }

  .hero-text {
    padding: 26px 24px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
    letter-spacing: -.055em;
  }

  .hero-text {
    padding: 24px 20px;
  }
}

