/* ============ Design tokens ============ */
:root {
  --bg: #08070c;
  --bg-alt: #0d0b14;
  --surface: #131019;
  --surface-2: #17131f;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(168, 121, 255, 0.4);
  --text: #f4f2f8;
  --text-muted: #a9a4b8;
  --text-dim: #726d84;
  --purple: #9b5cff;
  --purple-light: #c9a3ff;
  --purple-dark: #5b21b6;
  --whatsapp: #25d366;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --ff-display: "Poppins", "Inter", sans-serif;
  --ff-body: "Inter", sans-serif;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  display: inline-block;
}

.text-gradient {
  background: linear-gradient(100deg, var(--purple-light), var(--purple) 60%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(155, 92, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 36px -8px rgba(155, 92, 255, 0.75); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }

.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 7, 12, 0.7);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand-logo { height: 34px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--purple-light);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(155, 92, 255, 0.35), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.hero-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,7,12,.78) 0%, rgba(8,7,12,.6) 45%, rgba(8,7,12,.88) 100%);
}
.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.6);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-copy {
  max-width: 780px;
  text-align: center;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-eyebrow-row .eyebrow { margin-bottom: 0; font-size: 20px; color: #fff; }

.hero-float-avatar {
  display: inline-flex;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--purple-light);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.15), var(--shadow-lg);
  animation: float-bob 4s ease-in-out infinite;
}
.hero-float-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 0;
}

/* ============ Sections ============ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); }
#ferramentas .section-head p { color: var(--text); }

/* ============ Solution cards ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--surface-2);
}
.service-card h3 { font-size: 18px; margin: 0 0 10px; }
.service-card p { font-size: 14px; margin: 0; }
.service-card .help-num { margin-bottom: 18px; }

.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.solution-logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--purple-light);
  margin-top: 10px;
}
.card-link span { transition: transform .2s ease; }
.card-link:hover span { transform: translateX(4px); }

.help-num {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-light);
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
}

.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.social-row a:hover { border-color: var(--border-hover); background: var(--surface-2); transform: translateY(-3px); }
.social-row .icon { width: 18px; height: 18px; color: var(--text-muted); }
.social-row-center { justify-content: center; margin-top: 36px; }

/* ============ Livro ============ */
.livro-inner {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.book-mockup {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.book {
  position: relative;
  width: 240px;
  height: 360px;
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(2deg);
  transition: transform .6s ease;
}
.book-mockup:hover .book { transform: rotateY(-16deg) rotateX(2deg); }

.book-cover {
  position: absolute;
  inset: 0;
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  box-shadow: 18px 24px 50px -12px rgba(0, 0, 0, 0.65), inset -4px 0 10px rgba(0, 0, 0, 0.35);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.book-pages {
  position: absolute;
  top: 5px;
  right: -16px;
  width: 16px;
  height: calc(100% - 10px);
  background: repeating-linear-gradient(90deg, #eae6da 0 2px, #d6d1c2 2px 3px);
  transform: rotateY(90deg);
  transform-origin: left;
  border-radius: 0 2px 2px 0;
}

.book-spine {
  position: absolute;
  top: 0;
  left: -16px;
  width: 16px;
  height: 100%;
  background: linear-gradient(90deg, #0c0a12, #2a2333);
  transform: rotateY(-90deg);
  transform-origin: right;
  border-radius: 2px 0 0 2px;
}

.livro-copy h2 { font-size: clamp(26px, 3vw, 36px); }
.livro-sub { font-size: 16.5px; color: var(--text); margin-bottom: 28px; }

.livro-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.livro-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.livro-highlight-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(155, 92, 255, 0.14);
  color: var(--purple-light);
  display: flex; align-items: center; justify-content: center;
}
.livro-highlight-icon svg { width: 17px; height: 17px; }

.price-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 3px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}

.livro-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---- Author modal ---- */
.author-modal-dialog { max-width: 640px; }
.author-modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.author-modal-head img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 65% 25%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.author-modal-head .eyebrow { margin-bottom: 6px; }
.author-modal-head h3 { font-size: 19px; margin-bottom: 4px; }
.author-modal-head span { font-size: 13px; color: var(--text-dim); }
.author-modal-body p { font-size: 15px; color: var(--text-muted); }
.author-modal-body strong { color: var(--text); }

/* ============ Ferramentas ============ */
#ferramentas { position: relative; overflow: hidden; }
#ferramentas > .container { position: relative; z-index: 1; }

.ferramentas-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.ferramentas-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,7,12,.92) 0%, rgba(8,7,12,.82) 50%, rgba(8,7,12,.94) 100%);
}
.ferramentas-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.6);
  pointer-events: none;
}

.ferramentas-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin: 52px 0 40px;
}
.tool-stat { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.tool-stat .stat-num {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.tool-stat .stat-label { font-size: 13px; color: var(--text-dim); }

.ferramentas-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- IMOBMEET flow diagram ---- */
.imob-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.imob-flow-col {
  background: #fff;
  border: 1px solid #e8e4f5;
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.5);
}

.imob-flow-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.imob-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 14px 6px;
  border: 1px solid #ece8f7;
  border-radius: var(--radius-sm);
  background: #f8f6fc;
}
.imob-icon-card span:last-child { font-size: 11px; color: #57506b; line-height: 1.25; }
.imob-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(155, 92, 255, 0.14);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
}
.imob-icon svg { width: 16px; height: 16px; }

.imob-flow-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6d3fd6;
  background: rgba(155, 92, 255, 0.1);
  border: 1px solid rgba(155, 92, 255, 0.25);
  padding: 9px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.imob-flow-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.imob-flow-col .imob-flow-badge:last-child { margin-bottom: 0; }

.imob-flow-connector {
  position: relative;
  width: 32px;
  height: 2px;
  background: rgba(155, 92, 255, 0.2);
  border-radius: 2px;
  overflow: visible;
}
.imob-flow-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 10px 2px rgba(155, 92, 255, 0.7);
  transform: translateY(-50%);
  animation: imob-flow-dot-x 1.8s linear infinite;
}
@keyframes imob-flow-dot-x {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}

.imob-flow-center-card {
  background: linear-gradient(155deg, #f5f1fd, #ffffff 55%, #f5f1fd);
  border-radius: var(--radius);
  border: 1px solid #e5def9;
  padding: 26px 24px;
  box-shadow: 0 24px 50px -20px rgba(155, 92, 255, 0.3);
}
.imob-flow-logo-chip {
  display: inline-flex;
  background: #fff;
  border: 1px solid #ece8f7;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 0;
}
.imob-flow-logo-chip img { height: 18px; width: auto; }

.imob-flow-checklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.imob-flow-checklist li {
  font-size: 13.5px;
  font-weight: 600;
  color: #251f37;
  display: flex;
  align-items: center;
  gap: 9px;
}
.imob-flow-checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: rgba(155, 92, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b5cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.imob-flow-fin-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.imob-fin-card {
  border: 1px solid #ece8f7;
  border-radius: var(--radius-sm);
  background: #f8f6fc;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.imob-fin-card strong { font-size: 13.5px; color: #1e1a2b; }
.imob-fin-card span { font-size: 12px; color: #67617a; }

/* ============ Projects ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/11;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--surface);
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-card:hover img { transform: scale(1.08); }

.video-card { aspect-ratio: 16/9; }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(8, 7, 12, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  z-index: 1;
}
.play-btn svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.project-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--purple);
  border-color: var(--purple-light);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(0deg, rgba(8,7,12,0.92) 10%, rgba(8,7,12,0.15) 65%, transparent 100%);
}

.project-tag {
  align-self: flex-start;
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(155, 92, 255, 0.14);
  border: 1px solid rgba(155, 92, 255, 0.3);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.project-overlay h3 {
  font-size: 20px;
  margin-bottom: 12px;
  max-width: 420px;
}

.project-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.project-card:hover .project-cta { opacity: 1; transform: translateY(0); }

/* ============ Formação ============ */
.formacao-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.formacao-copy h2 { font-size: clamp(26px, 3vw, 36px); }

.price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 16px;
  width: 100%;
  margin-top: 26px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--surface), transparent);
}
.price-installments {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.price-installments strong { color: var(--purple-light); font-size: 30px; }
.price-asterisk { color: var(--text-dim); font-size: 15px; }
.price-cash { font-size: 16px; color: var(--text-dim); white-space: nowrap; }

@media (max-width: 480px) {
  .price-block { padding: 18px 20px; }
  .price-installments { font-size: 19px; white-space: normal; }
  .price-installments strong { font-size: 23px; }
  .price-cash { white-space: normal; }
}

.formacao-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.formacao-video { aspect-ratio: 16/9; }
.formacao-video .project-overlay {
  justify-content: center;
  align-items: center;
  background: linear-gradient(0deg, rgba(8,7,12,0.85) 0%, transparent 40%);
}
.formacao-video .project-cta {
  opacity: 1;
  transform: none;
  font-size: 15px;
}

.modal-dialog.modules-modal-dialog { max-width: 880px; }

.modules-modal-head { margin-bottom: 32px; padding-right: 30px; }
.modules-modal-head .eyebrow { margin-bottom: 10px; }
.modules-modal-title { font-size: 26px; margin-bottom: 8px; }
.modules-modal-sub { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.module-card {
  display: flex;
  gap: 16px;
  padding: 22px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.module-card:hover { transform: translateY(-4px); border-color: var(--border-hover); background: var(--surface-2); }
.module-card-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  box-shadow: 0 6px 16px -4px rgba(155, 92, 255, 0.5);
}
.module-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.module-card p { font-size: 13.5px; margin: 0; line-height: 1.5; }

.modules-modal-cta {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============ CTA final ============ */
.cta-final { text-align: center; overflow: hidden; }
.cta-final-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/img/cta-final-bg.jpg") center 30% / cover no-repeat;
}
.cta-final-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,7,12,.88) 0%, rgba(8,7,12,.8) 50%, rgba(8,7,12,.92) 100%);
}
.cta-glow {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  max-width: 780px;
  margin: 0 auto 34px;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo { height: 24px; opacity: .8; }
.footer-inner p { margin: 0; font-size: 13.5px; color: var(--text-dim); }

/* ============ Video lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  z-index: 1;
}

.lightbox-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.lightbox-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-cta { text-align: center; margin-top: 22px; }
.lightbox-cta[hidden] { display: none; }

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 310;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: border-color .2s ease, transform .2s ease;
}
.lightbox-close:hover { border-color: var(--border-hover); transform: rotate(90deg); }
.lightbox-close svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .lightbox-close { top: 14px; right: 14px; width: 36px; height: 36px; }
}

/* ============ Lead modal / multi-step form ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, 0.88);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 36px 32px;
  box-shadow: var(--shadow-lg);
  max-height: 88vh;
  overflow-y: auto;
}


.form-progress {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}
.form-progress-fill {
  display: block;
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 100px;
  transition: width .35s ease;
}
.form-step-label {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 26px;
}

.form-step { display: none; }
.form-step.is-active { display: block; }
.form-step h3 { font-size: 22px; margin-bottom: 6px; }
.form-step-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }

.form-field { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 16px; }
.form-field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--ff-body);
  transition: border-color .2s ease;
}
.form-field input:focus { outline: none; border-color: var(--purple-light); }

.form-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.form-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.form-option:hover { border-color: var(--border-hover); }
.form-option input { accent-color: var(--purple); width: 16px; height: 16px; flex-shrink: 0; }
.form-option:has(input:checked) { border-color: var(--purple-light); background: rgba(155, 92, 255, 0.1); color: var(--text); }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form-nav .btn { flex: 1; }
.form-nav .btn[hidden] { display: none; }

.form-step-thanks { text-align: center; padding: 20px 0 4px; }
.form-step-thanks h3 { font-size: 24px; }
.form-step-thanks p { color: var(--text-muted); margin: 0; }
.form-thanks-redirect { font-size: 12.5px; color: var(--text-dim); margin-top: 14px !important; }
.form-thanks-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-thanks-icon svg { width: 26px; height: 26px; }

@media (max-width: 600px) {
  .modal-dialog { padding: 36px 22px 26px; border-radius: 16px; }
  .form-options { grid-template-columns: 1fr; }
}

/* ============ Scroll reveal ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .livro-inner { grid-template-columns: 1fr; }
  .book-mockup { margin-bottom: 30px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .formacao-inner { grid-template-columns: 1fr; }
  .formacao-video { order: -1; margin-bottom: 8px; }
  .projects-grid { grid-template-columns: 1fr; }
  .imob-flow { grid-template-columns: 1fr; }
  .imob-flow-connector {
    width: 2px;
    height: 24px;
    justify-self: center;
    background: rgba(155, 92, 255, 0.2);
  }
  .imob-flow-connector::after {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-name: imob-flow-dot-y;
  }
}

@keyframes imob-flow-dot-y {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 7px); opacity: 0; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; height: calc(100vh - 68px); background: var(--bg); padding: 30px 24px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav a { font-size: 20px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero { padding: 70px 0 70px; }
  .section { padding: 70px 0; }
  .cards-grid, .modules-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .imob-flow-icons { grid-template-columns: repeat(3, 1fr); }
}
