/* =========================================================
   TEIA — Educacional e Inteligência Artificial
   ========================================================= */

:root {
  --bg: #05070f;
  --bg-2: #0a0e1c;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(140, 160, 255, 0.14);
  --text: #eef1ff;
  --muted: #8d95b3;
  --blue: #3a4fd1;
  --blue-2: #6f86ff;
  --cyan: #7fd8ff;
  --sepia: #d9b88a;
  --radius: 18px;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

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

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue-2), var(--cyan), var(--blue-2));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Fundo: teia animada ---------- */
#web {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(58, 79, 209, .18), transparent 70%),
    radial-gradient(50% 40% at 90% 90%, rgba(127, 216, 255, .08), transparent 70%),
    radial-gradient(120% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, .55));
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(111, 134, 255, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(111, 134, 255, .9); }
.btn--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--blue-2); background: rgba(111, 134, 255, .08); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5, 7, 15, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__logo {
  position: relative;
  display: block;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 14px;
}
.header__logo::before {
  content: "";
  position: absolute;
  inset: -10px -20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58, 79, 209, .45), transparent);
  filter: blur(12px);
  opacity: .8;
  z-index: -1;
  animation: breathe 5s ease-in-out infinite;
  transition: opacity .4s;
}
.header__logo img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(111, 134, 255, .55)) drop-shadow(0 0 1px rgba(255, 255, 255, .5));
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.header__logo:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(127, 216, 255, .8)) drop-shadow(0 0 2px rgba(255, 255, 255, .7));
}
.header__logo:hover::before { opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  font-size: .92rem;
}
.nav a:not(.btn) {
  color: var(--muted);
  position: relative;
  transition: color .3s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--blue-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__client { display: none; }
.header__client { height: 42px; padding: 0 20px; font-size: .88rem; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  position: relative;
  margin-left: 8px;
}
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero__content { max-width: 720px; order: -1; }

/* logo em destaque */
.hero__logo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.hero__logo img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(111, 134, 255, .45)) drop-shadow(0 0 2px rgba(255, 255, 255, .35));
  animation: float 7s ease-in-out infinite;
}
.hero__logo-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 79, 209, .45), rgba(127, 216, 255, .12) 45%, transparent 70%);
  filter: blur(30px);
  animation: breathe 5s ease-in-out infinite;
}
.hero__logo-ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid transparent;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(127, 216, 255, .7) 85%, transparent 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  animation: spin 12s linear infinite;
  opacity: .8;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}
@keyframes breathe {
  0%, 100% { opacity: .7; transform: scale(.95); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(2.3rem, 6.2vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero__title .gradient-text { display: block; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--blue-2);
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Vídeo: estética de película antiga ---------- */
.film {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(217, 184, 138, .12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(20, 14, 8, .55) 20%, rgba(20, 14, 8, .55) 80%, transparent);
}
/* granulação de filme sobre a seção */
.film__grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
  -webkit-mask: linear-gradient(180deg, transparent 25%, #000 32%, #000 68%, transparent 75%);
  mask: linear-gradient(180deg, transparent 25%, #000 32%, #000 68%, transparent 75%);
  z-index: 1;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 5%); }
  80% { transform: translate(6%, 2%); }
  100% { transform: translate(0, 0); }
}

.film__reel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  z-index: 2;
}
/* feixe de luz do projetor */
.film__beam {
  position: absolute;
  left: 50%;
  top: -140px;
  width: 140%;
  height: 160%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255, 226, 180, .08) 175deg, rgba(255, 226, 180, .12) 180deg, rgba(255, 226, 180, .08) 185deg, transparent 200deg);
  filter: blur(18px);
  pointer-events: none;
  animation: flicker 4s infinite;
  z-index: -1;
}
@keyframes flicker {
  0%, 100% { opacity: .9; }
  8% { opacity: .65; }
  10% { opacity: 1; }
  47% { opacity: .85; }
  50% { opacity: .6; }
  52% { opacity: .95; }
  78% { opacity: .8; }
}

.film__strip {
  background: #0d0a07;
  border-radius: 10px;
  padding: 0 clamp(10px, 3vw, 28px);
  box-shadow:
    0 0 0 1px rgba(217, 184, 138, .12),
    0 40px 120px -30px rgba(217, 184, 138, .25),
    0 30px 80px -20px rgba(0, 0, 0, .8);
}
/* furos de tração da película */
.film__holes {
  height: clamp(22px, 4vw, 34px);
  background-image: linear-gradient(90deg, rgba(240, 225, 200, .82) 0 55%, transparent 55%);
  background-size: clamp(18px, 3vw, 26px) 45%;
  background-repeat: repeat-x;
  background-position: 0 50%;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  opacity: .9;
  animation: holes 2.5s linear infinite;
  animation-play-state: paused;
}
.film.is-playing .film__holes { animation-play-state: running; }
@keyframes holes { to { background-position: clamp(18px, 3vw, 26px) 50%; } }

.film__edge {
  display: flex;
  justify-content: space-between;
  font-family: "Special Elite", monospace;
  font-size: clamp(.55rem, 1.2vw, .7rem);
  letter-spacing: .15em;
  color: rgba(230, 170, 70, .6);
  padding: 2px 4px 6px;
}
.film__edge--bottom { padding: 6px 4px 2px; }

.film__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #2a2118, #0c0906 75%);
}
.film__frame iframe,
.film__frame #ytPlayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* capa por cima do player do YouTube até o primeiro play */
.film__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .6s var(--ease), visibility .6s;
}
.film.has-started .film__poster { opacity: 0; visibility: hidden; }
.film__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.film__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px 20px rgba(0, 0, 0, .75);
  border-radius: inherit;
}
/* riscos verticais de filme */
.film__scratches {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 22%, rgba(255, 240, 210, .12) 22.1%, transparent 22.25%),
    linear-gradient(90deg, transparent 71%, rgba(255, 240, 210, .08) 71.08%, transparent 71.2%);
  animation: scratches 0.9s steps(3) infinite;
  opacity: .7;
}
@keyframes scratches {
  0% { transform: translateX(0); opacity: .6; }
  33% { transform: translateX(8%); opacity: .2; }
  66% { transform: translateX(-12%); opacity: .7; }
  100% { transform: translateX(3%); opacity: .4; }
}

.film__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1a130b;
  background: rgba(240, 225, 200, .92);
  box-shadow: 0 0 0 10px rgba(240, 225, 200, .14), 0 10px 40px rgba(0, 0, 0, .6);
  transition: transform .35s var(--ease), opacity .35s;
}
.film__play:hover { transform: scale(1.08); }
.film__play svg { margin-left: 4px; }
.film.is-playing .film__play { opacity: 0; pointer-events: none; transform: scale(.8); }
/* depois do primeiro play, os controles do próprio YouTube assumem */
.film.has-started .film__play { opacity: 0; pointer-events: none; transform: scale(.8); }

/* ---------- Seções ---------- */
.section { padding: 120px 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}

/* ---------- Serviços ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 34px 28px 36px;
  border-radius: var(--radius);
  background: rgba(10, 14, 28, .55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(111, 134, 255, .16), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(111, 134, 255, .4); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(58, 79, 209, .35), rgba(111, 134, 255, .08));
  border: 1px solid rgba(111, 134, 255, .3);
}
.card__icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: .94rem; }

/* ---------- Inscrição: escada ---------- */
.stairs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: end;
}
.stairs { position: relative; }
.stair { display: flex; flex-direction: column; position: relative; }
.stair__content {
  position: relative;
  padding: 0 12px 84px 26px;
}
/* barra vertical de cada etapa */
.stair__content::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 84px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 0 14px rgba(111, 134, 255, .45);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .9s var(--ease) calc(var(--d, 0s) + .5s);
}
.stair.is-visible .stair__content::before { transform: scaleY(1); }
.stair h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.stair p { color: var(--muted); font-size: .94rem; }

/* degrau: altura cresce a cada etapa */
.stair__pillar {
  height: calc(56px + var(--i) * 72px);
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(58, 79, 209, calc(.18 + var(--i) * .07)), rgba(58, 79, 209, 0));
  box-shadow: inset 0 1px 0 rgba(127, 216, 255, .45);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .2s);
}
.stair.is-visible .stair__pillar { transform: scaleY(1); }

/* última etapa em destaque */
.stair--final h3 {
  background: linear-gradient(90deg, var(--blue-2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.35rem;
}
.stair--final p { color: var(--text); opacity: .85; }
.stair--final .stair__content::before {
  background: linear-gradient(180deg, var(--cyan), var(--blue-2));
  box-shadow: 0 0 22px rgba(127, 216, 255, .7);
  animation: glow 3.5s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 12px rgba(127, 216, 255, .45); }
  50% { box-shadow: 0 0 28px rgba(127, 216, 255, .9); }
}
.stair--final .stair__pillar {
  border-color: rgba(127, 216, 255, .35);
  background: linear-gradient(180deg, rgba(111, 134, 255, .5), rgba(127, 216, 255, .08) 60%, transparent);
  box-shadow: inset 0 1px 0 rgba(127, 216, 255, .9), 0 -20px 60px -20px rgba(127, 216, 255, .5);
}

/* seta + boneco subindo a escada */
.climb {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.climb__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.climb__guide {
  fill: none;
  stroke: rgba(127, 216, 255, .35);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
  transform: translateY(-6px);
}
.climb__trail {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(127, 216, 255, .8));
  transform: translateY(-6px);
}
.climber {
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 54px;
  margin: -60px 0 0 -17px;
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}
.climber.is-on { opacity: 1; }
.climber svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: var(--text);
  fill: var(--text);
  stroke-width: 3.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(127, 216, 255, .7));
}
.climber .limb { transform-box: view-box; transition: transform .5s var(--ease); }
.climber .arm { transform-origin: 17px 16px; }
.climber .leg { transform-origin: 15.5px 32px; }
.climber.is-walking svg { animation: bob .45s ease-in-out infinite alternate; }
.climber.is-walking .leg--a,
.climber.is-walking .arm--b { animation: swingA .45s ease-in-out infinite alternate; }
.climber.is-walking .leg--b,
.climber.is-walking .arm--a { animation: swingB .45s ease-in-out infinite alternate; }
@keyframes swingA { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes swingB { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes bob { from { transform: translateY(0) rotate(4deg); } to { transform: translateY(-2px) rotate(4deg); } }

/* chegou à última etapa */
.stairs.is-arrived .climber svg { animation: cheer .6s var(--ease) 2 alternate; }
.stairs.is-arrived .climber .arm--a { transform: rotate(112deg); }
.stairs.is-arrived .climber .arm--b { transform: rotate(-117deg); }
@keyframes cheer { to { transform: translateY(-10px); } }
.stair--final .stair__pillar { transition: transform 1.1s var(--ease) calc(var(--d, 0s) + .2s), box-shadow .6s; }
.stairs.is-arrived .stair--final .stair__pillar {
  box-shadow: inset 0 1px 0 #fff, 0 -30px 90px -10px rgba(127, 216, 255, .75);
}

.stairs__cta { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact__form-wrap > .muted { margin-bottom: 36px; }

.form { display: grid; gap: 16px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: wait; }
.captcha { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.captcha__refresh {
  width: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 28, .6);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color .3s, border-color .3s;
}
.captcha__refresh:hover { color: var(--blue-2); border-color: var(--blue-2); }
.captcha__refresh.is-spinning svg { animation: spin .6s linear; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: block; }
.field input,
.field textarea {
  width: 100%;
  padding: 24px 18px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 28, .6);
  backdrop-filter: blur(8px);
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  outline: none;
  resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field span {
  position: absolute;
  left: 18px; top: 17px;
  font-size: .95rem;
  color: var(--muted);
  pointer-events: none;
  transition: transform .25s var(--ease), font-size .25s, top .25s, color .25s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(111, 134, 255, .12);
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span {
  top: 7px;
  font-size: .72rem;
  color: var(--blue-2);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #ff6b81; }
.form__status { min-height: 1.4em; font-size: .9rem; color: var(--muted); }

.contact__side { display: grid; gap: 18px; padding-top: 8px; }
.whats {
  display: flex;
  gap: 20px;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 211, 102, .12), rgba(10, 14, 28, .6));
  border: 1px solid rgba(37, 211, 102, .25);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s;
}
.whats:hover { transform: translateY(-4px); border-color: rgba(37, 211, 102, .55); }
.whats__icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
}
.whats__icon svg { width: 26px; height: 26px; }
.whats h3 { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 1.15rem; margin-bottom: 6px; }
.whats p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.link-arrow { font-size: .9rem; color: #5ee89a; }

.phone {
  display: flex;
  flex-direction: column;
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 14, 28, .55);
  backdrop-filter: blur(10px);
  transition: border-color .3s;
}
.phone:hover { border-color: var(--blue-2); }
.phone .muted { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.phone strong { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 1.6rem; margin-top: 4px; }

/* ---------- Mapa ---------- */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 440px;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(.92) hue-rotate(185deg) saturate(.7) brightness(.95);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: rgba(5, 7, 15, .7);
  backdrop-filter: blur(10px);
  font-size: .88rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- WhatsApp flutuante ---------- */
.fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease);
}
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2.4s var(--ease) infinite;
}
.fab:hover { transform: scale(1.08); }
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .hero__content { order: 0; margin: 0 auto; }
  .hero__actions { justify-content: center; }
  .hero__logo { max-width: 300px; }
  :root { --header-h: 68px; }
  .header__logo img { height: 46px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header__client { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: rgba(5, 7, 15, .96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__client { display: inline-flex; margin-top: 20px; }

  /* escada vertical, cada etapa mais recuada */
  .stairs { grid-template-columns: 1fr; gap: 28px; }
  .stair__pillar { display: none; }
  .climb { display: none; }
  .stair__content {
    margin-left: calc(var(--i) * 7%);
    padding: 6px 0 6px 26px;
  }
  .stair__content::before { bottom: 0; top: 0; }
  .stairs__cta .btn { width: 100%; }
  .menu-open .header { background: rgba(5, 7, 15, .96); }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 84px 0; }
  .film { padding: 60px 0 80px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .card__icon { margin-bottom: 28px; }
  .film__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .film__vignette { box-shadow: inset 0 0 50px 10px rgba(0, 0, 0, .75); }
  .whats { padding: 24px; }
  .map { height: 340px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
