/* ============ Design tokens ============ */
:root {
  --navy-900: #0A1E2E;
  --navy-800: #08243B;
  --navy-700: #0C2F4A;
  --navy-600: #123D60;
  --blue-700: #0B4F86;
  --blue-500: #0F6CB5;
  --blue-400: #1580CF;
  --blue-200: #7CB8E6;
  --blue-100: #BEE4FF;
  --blue-050: #EAF1F9;
  --blue-075: #C3D8EE;
  --cream-050: #F7F4EF;
  --cream-100: #FBF9F5;
  --line-200: #E4DED3;
  --line-100: #F1ECE3;
  --line-100b: #EDE7DC;
  --ink-600: #26404B;
  --ink-500: #4A5D66;
  --ink-400: #55666F;
  --maxw: 1120px;

  /* Modo escuro: superfícies e textos que substituem o creme/branco */
  --d-bg: #08141E;
  --d-tint: #0D1E2C;
  --d-card: #102536;
  --d-card-2: #0C1E2D;
  --d-line: rgba(124,184,230,0.16);
  --d-line-soft: rgba(124,184,230,0.10);
  --d-text: #E8EFF5;
  --d-muted: #A7B6C2;
  --d-faint: #8497A5;
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-050);
  color: var(--navy-900);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Sora', sans-serif; margin: 0; }
p { margin: 0; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============ Animations ============ */
@keyframes upIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 56px 56px, 56px 56px; } }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(124,184,230,0.45); }
  70% { box-shadow: 0 0 0 16px rgba(124,184,230,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,184,230,0); }
}
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(124,184,230,0.7), 0 0 12px rgba(15,108,181,0.75), 0 0 34px rgba(15,108,181,0.45), inset 0 0 12px rgba(124,184,230,0.18); }
  50% { box-shadow: 0 0 0 1px rgba(160,214,247,0.95), 0 0 22px rgba(63,158,231,0.95), 0 0 62px rgba(63,158,231,0.6), inset 0 0 18px rgba(160,214,247,0.3); }
}
@keyframes neonBar {
  0%, 100% { opacity: 0.75; box-shadow: 0 0 10px rgba(63,158,231,0.85), 0 0 30px rgba(63,158,231,0.55), 0 0 70px rgba(63,158,231,0.3); }
  50% { opacity: 1; box-shadow: 0 0 16px rgba(160,214,247,1), 0 0 46px rgba(63,158,231,0.8), 0 0 110px rgba(63,158,231,0.45); }
}
@keyframes bloom {
  0%, 100% { border-color: rgba(124,184,230,0.34); box-shadow: 0 0 6px rgba(124,184,230,0.22), 0 0 18px rgba(63,158,231,0.16); }
  50% { border-color: rgba(160,214,247,0.6); box-shadow: 0 0 10px rgba(160,214,247,0.4), 0 0 30px rgba(63,158,231,0.26); }
}
@keyframes neonSweep { from { transform: translateX(-120%); } to { transform: translateX(220%); } }

/* Reduced motion: drop the animations entirely and show the end state, never the "from" keyframe. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .terminal-body.is-staggered .terminal-line { opacity: 1 !important; }
  /* O neon vive dentro dos keyframes: sem animação ele sumiria, então fica aceso e parado. */
  .cta-neon::before { display: none; }
  .cta-neon { box-shadow: 0 0 0 1px rgba(160,214,247,0.95), 0 0 22px rgba(63,158,231,0.95), 0 0 62px rgba(63,158,231,0.6), inset 0 0 18px rgba(160,214,247,0.3); }
  .neon-bar { opacity: 1; box-shadow: 0 0 16px rgba(160,214,247,1), 0 0 46px rgba(63,158,231,0.8), 0 0 110px rgba(63,158,231,0.45); }
  .proj-figure { border-color: rgba(160,214,247,0.6); box-shadow: 0 0 10px rgba(160,214,247,0.4), 0 0 30px rgba(63,158,231,0.26); }
  .terminal-dot.active { box-shadow: 0 0 0 5px rgba(124,184,230,0.22); }
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12,47,74,0.97);
  color: var(--cream-050);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream-050); }
.brand-word { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; margin-left: auto; }
.nav a.navlink { color: rgba(247,244,239,0.72); transition: color 0.2s ease; }
.nav a.navlink:hover { color: var(--cream-050); }
.nav .btn-cta { background: var(--blue-700); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 6px; transition: background 0.2s ease; }
.nav .btn-cta:hover { background: var(--blue-500); color: #fff; }
.nav .btn-portal {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  color: var(--cream-050); font-weight: 600; padding: 9px 15px; border-radius: 6px;
  border: 1px solid rgba(124,184,230,0.5); transition: border-color 0.2s ease, background 0.2s ease;
}
.nav .btn-portal:hover { color: var(--cream-050); border-color: var(--blue-200); background: rgba(124,184,230,0.1); }
.theme-toggle {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid rgba(247,244,239,0.22); background: transparent; color: var(--cream-050);
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: var(--blue-200); background: rgba(124,184,230,0.1); }
.theme-toggle:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 2px; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(247,244,239,0.3); border-radius: 6px; width: 38px; height: 34px; color: var(--cream-050); cursor: pointer; }

/* Com o botão "Portal do aluno" o menu precisa de ~1040px; abaixo disso vira ☰ */
@media (max-width: 1100px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-700); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0; display: none; }
  .nav.is-open { display: flex; }
  .nav a.navlink { padding: 12px 28px; width: 100%; }
  .nav .btn-portal { margin: 10px 28px 0; }
  .nav .btn-cta { margin: 10px 28px; }
  .nav-toggle { display: block; order: 3; }
  .site-header .wrap { gap: 10px; }
  .theme-toggle { order: 2; margin-left: auto; }
}

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 600; border-radius: 8px; cursor: pointer; border: none; transition: background 0.2s ease, transform 0.2s ease; text-align: center; }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); }

.cta-neon { position: relative; overflow: hidden; white-space: nowrap; font-size: 16px; padding: 17px 30px; animation: neonPulse 2.4s ease-in-out infinite; }
.cta-neon::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(190,228,255,0.45), transparent);
  pointer-events: none; animation: neonSweep 2.8s ease-in-out infinite;
}

/* ============ Hero ============ */
.hero { background: var(--navy-700); color: var(--cream-050); position: relative; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(247,244,239,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(247,244,239,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: drift 14s linear infinite;
}
.hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 88px 28px 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: center;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(15,108,181,0.7); color: var(--blue-200);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  animation: upIn 0.7s 0.05s both ease-out;
}
.hero h1 {
  font-weight: 700; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 22px 0 0; text-wrap: balance;
  animation: upIn 0.7s 0.15s both ease-out;
}
.hero h1 span { color: var(--blue-200); }
.hero-lead {
  font-size: 19px; line-height: 1.6; color: rgba(247,244,239,0.82); margin: 22px 0 0; max-width: 34em; text-wrap: pretty;
  animation: upIn 0.7s 0.28s both ease-out;
}
.hero-lead strong { color: var(--cream-050); }
.hero-ctas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px;
  animation: upIn 0.7s 0.4s both ease-out;
}
.hero-ctas a.link-underline { color: var(--cream-050); border-bottom: 1px solid rgba(247,244,239,0.35); font-size: 15px; padding-bottom: 2px; }
.hero-ctas a.link-underline:hover { color: var(--blue-200); border-bottom: 1px solid var(--blue-200); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px; margin-top: 44px; padding-top: 28px;
  border-top: 1px solid rgba(247,244,239,0.14);
  animation: upIn 0.7s 0.52s both ease-out;
}
.hero-stats .num { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700; }
.hero-stats .lbl { font-size: 13.5px; color: rgba(247,244,239,0.6); margin-top: 3px; }

.terminal {
  background: var(--navy-600); border: 1px solid rgba(247,244,239,0.13); border-radius: 12px; padding: 22px;
  box-shadow: 0 30px 70px rgba(5,20,34,0.45);
  animation: upIn 0.7s 0.3s both ease-out;
}
.terminal-head { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.terminal-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(247,244,239,0.28); }
.terminal-dot.active { background: var(--blue-500); animation: pulseRing 2.4s ease-out infinite; }
.terminal-label { margin-left: 8px; font-size: 12px; color: rgba(247,244,239,0.5); font-family: 'Sora', sans-serif; }
.terminal-body { font-family: 'Sora', sans-serif; font-size: 13.5px; line-height: 1.85; color: rgba(247,244,239,0.92); }
.terminal-cmd { color: var(--blue-200); }
.terminal-resp { color: rgba(247,244,239,0.6); padding-left: 14px; }
.terminal-body > div:nth-child(3), .terminal-body > div:nth-child(5) { margin-top: 12px; }
.caret { display: inline-block; width: 8px; background: var(--blue-200); margin-left: 4px; animation: caret 1s step-end infinite; }
.terminal-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(247,244,239,0.12); font-size: 13px; color: rgba(247,244,239,0.6); font-family: 'IBM Plex Sans', sans-serif; }

/* Lines stay visible without JS; the staggered reveal only kicks in once JS marks the body */
.terminal-body.is-staggered .terminal-line { opacity: 0; }
.terminal-body.is-staggered .terminal-line.is-in { animation: lineIn 0.4s both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Vídeo 3D no hero (substitui o card do terminal) */
.hero-video {
  background: var(--navy-600); border: 1px solid rgba(124,184,230,0.34); border-radius: 12px; padding: 12px;
  box-shadow: 0 30px 70px rgba(5,20,34,0.45);
  animation: upIn 0.7s 0.3s both ease-out;
}
.hero-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--navy-900); }
.hero-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video-frame .img-slot { font-size: 13px; }
.hero-video-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; pointer-events: none;
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(10,30,46,0.8); color: var(--blue-200); padding: 6px 10px; border-radius: 999px;
}
.hero-video-foot { padding: 14px 6px 4px; font-size: 13px; color: rgba(247,244,239,0.6); }

/* Faixa "AutoCAD -> Revit" logo abaixo do vídeo do hero: as duas integrações, lado a lado */
.hero-flow {
  display: flex; align-items: center; gap: 12px; margin: 4px 6px 2px; padding-top: 14px;
  border-top: 1px solid rgba(247,244,239,0.14);
}
.hero-flow-step { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.hero-flow-thumb {
  flex: none; width: 46px; height: 46px; border-radius: 7px; overflow: hidden;
  border: 1px solid rgba(124,184,230,0.4); background: var(--navy-900);
}
.hero-flow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-flow-txt { min-width: 0; }
.hero-flow-tool { display: block; font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--cream-050); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-flow-sub { display: block; font-size: 11.5px; color: rgba(247,244,239,0.58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-flow-arrow { flex: none; color: var(--blue-200); font-size: 17px; }
@media (max-width: 420px) {
  .hero-flow-sub { display: none; }
}

/* ============ Section headers ============ */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-700); }
.eyebrow.on-dark { color: var(--blue-200); }
.section-title { font-weight: 700; font-size: clamp(27px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -0.025em; margin: 14px 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head-meta { font-size: 14.5px; color: var(--ink-500); }
.section-head-meta.on-dark { color: rgba(247,244,239,0.72); max-width: 26em; }

/* scroll reveal (IntersectionObserver driven; hidden only once JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============ Benefits ============ */
.section { padding: 80px 28px; }

/* Faixas de fundo: alternam escuro / claro / azul-claro para dar ritmo à página */
.band-tint { background: var(--blue-050); }
.band-dark { background: var(--navy-700); color: var(--cream-050); }
.band-dark .eyebrow { color: var(--blue-200); }
.section-lead { font-size: 16.5px; line-height: 1.6; color: var(--ink-500); margin: 16px 0 0; text-wrap: pretty; }
.section-lead strong { color: var(--navy-900); }
.band-dark .section-lead { color: rgba(247,244,239,0.78); }
.band-dark .section-lead strong { color: var(--cream-050); }
.band-dark .flow-step { color: rgba(247,244,239,0.66); }
.band-dark .flow-step .n { color: var(--blue-200); }
.band-dark .flow-step.is-last { color: var(--cream-050); }
.band-dark .flow-sep { color: rgba(247,244,239,0.3); }
.band-dark .ba-frame { border-color: rgba(124,184,230,0.34); }
.band-dark .ba-cap .sub { color: rgba(247,244,239,0.62); }
.section.tight-top { padding-top: 80px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin-top: 44px; }
.benefit-card { background: #fff; border: 1px solid var(--line-200); border-radius: 12px; padding: 28px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.benefit-card:hover { border-color: var(--blue-500); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(12,47,74,0.12); }
.benefit-card svg { display: block; }
.benefit-card h3 { font-size: 18px; font-weight: 600; margin: 18px 0 8px; letter-spacing: -0.01em; }
.benefit-card p { font-size: 15px; line-height: 1.6; color: var(--ink-500); }

/* ============ Curriculum ============ */
.curriculo-list { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.mod-card { background: #fff; border: 1px solid var(--line-200); border-radius: 12px; overflow: hidden; }
.mod-card.featured { border: 2px solid var(--blue-500); }
.mod-card summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px;
  padding: 20px 26px; background: var(--cream-100); transition: background 0.2s ease;
}
.mod-card.featured summary { background: var(--blue-050); }
.mod-card summary::-webkit-details-marker { display: none; }
.mod-num { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; color: var(--blue-500); letter-spacing: 0.06em; }
.mod-card.featured .mod-num { color: var(--blue-700); }
.mod-card summary h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.mod-duration { margin-left: auto; font-size: 13.5px; color: var(--ink-500); }
.mod-chevron { flex: none; transition: transform 0.25s ease; }
.mod-card[open] .mod-chevron { transform: rotate(180deg); }
.lesson-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-100b); }
.lesson-row { display: flex; align-items: center; gap: 16px; padding: 15px 26px; border-bottom: 1px solid var(--line-100); }
.lesson-row:last-child { border-bottom: none; }
.lesson-num { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--ink-400); width: 22px; }
.lesson-title { font-size: 15.5px; flex: 1; min-width: 0; }
.lesson-duration { font-size: 13.5px; color: var(--ink-500); }

/* ============ Projects ============ */
/* Logo abaixo do hero (mesmo navy): só um fio separa, pra ler como continuação da promessa */
.projects-section { background: var(--navy-700); color: var(--cream-050); padding: 72px 28px 84px; border-top: 1px solid rgba(247,244,239,0.1); }
/* Destaque neon: cor clara + sublinhado brilhante que acompanha a quebra de linha */
.hl-neon {
  color: var(--blue-100);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px rgba(63,158,231,0.6);
  background: linear-gradient(90deg, var(--blue-200), var(--blue-100)) no-repeat left bottom / 100% 4px;
  padding-bottom: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.proof-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.proof-stats > div {
  flex: 1 1 180px; background: var(--navy-600); border: 1px solid rgba(124,184,230,0.34); border-radius: 12px; padding: 18px 20px;
}
.proof-stats .num { font-family: 'Sora', sans-serif; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; color: var(--blue-200); }
.proof-stats .lbl { font-size: 13.5px; color: rgba(247,244,239,0.68); margin-top: 4px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 40px; }
.proj-figure {
  grid-column: span 1; min-width: 0; margin: 0; background: var(--navy-600);
  border: 1px solid rgba(124,184,230,0.34); border-radius: 12px; padding: 14px; position: relative;
  animation: bloom 6s ease-in-out infinite;
}
.proj-figure.span2 { grid-column: span 2; }
/* Com uma coluna só, "span 2" criaria uma coluna fantasma e esmagaria os outros cards */
@media (max-width: 700px) { .proj-figure.span2 { grid-column: auto; } }
.proj-figure::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(160deg, rgba(190,228,255,0.22), rgba(190,228,255,0) 42%); pointer-events: none;
}
.proj-figure:nth-of-type(2) { animation-delay: 0.5s; }
.proj-figure:nth-of-type(3) { animation-delay: 1s; }
.proj-figure:nth-of-type(4) { animation-delay: 1.5s; }
.proj-figure:nth-of-type(5) { animation-delay: 2s; }
.proj-frame {
  position: relative; width: 100%; border-radius: 8px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(124,184,230,0.18);
}
.proj-frame.r169 { aspect-ratio: 16 / 9; }
.proj-frame.r43 { aspect-ratio: 4 / 3; }
.img-slot {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #0e3455, #0a2842);
  color: rgba(247,244,239,0.5); text-align: center; padding: 16px; font-size: 12.5px; line-height: 1.4;
}
.img-slot svg { opacity: 0.6; }
.proj-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* qualquer imagem dentro de um frame cobre o placeholder, com ou sem a classe .proj-img */
.proj-frame > img, .furn-frame > img, .proj-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Zoom ao passar o mouse: amplia no ponto do cursor (origem definida pelo JS) */
.proj-frame > img { cursor: zoom-in; transition: transform 0.3s ease; }
.proj-frame.is-zooming > img { transform: scale(2.2); transition: transform 0.2s ease-out; }

/* Lightbox: imagem em tela cheia ao clicar */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 20px 24px; background: rgba(5,16,26,0.92); backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-figure img {
  max-width: min(1600px, 100%); max-height: calc(100vh - 140px); object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); cursor: default;
}
.lightbox-cap { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; color: var(--cream-050); text-align: center; }
.lightbox-close {
  position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(247,244,239,0.3); background: rgba(247,244,239,0.08); color: var(--cream-050);
  font-size: 18px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(247,244,239,0.18); }
body.lightbox-open { overflow: hidden; }
.proj-badge { position: absolute; left: 14px; bottom: 14px; z-index: 3; pointer-events: none;
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; color: #F7F4EF; background: rgba(10,26,42,0.72); backdrop-filter: blur(4px);
  border: 1px solid rgba(247,244,239,0.18); }
.proj-figcap { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; padding: 16px 6px 4px; }
.proj-figure:not(.span2) .proj-figcap { display: block; padding: 14px 6px 4px; }
.proj-figcap .title { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 600; }
.proj-figure:not(.span2) .proj-figcap .title { font-size: 15.5px; }
.proj-figcap .sub { font-size: 13.5px; color: rgba(247,244,239,0.6); }
.proj-figure:not(.span2) .proj-figcap .sub { display: block; margin-top: 3px; }
.neon-bar { height: 3px; border-radius: 999px; margin: 44px auto 0; max-width: 92%; background: linear-gradient(90deg, rgba(63,158,231,0) 0%, var(--blue-200) 22%, var(--blue-100) 50%, var(--blue-200) 78%, rgba(63,158,231,0) 100%); animation: neonBar 3.2s ease-in-out infinite; }
.projects-note { font-size: 13px; color: rgba(247,244,239,0.64); margin-top: 22px; }

/* ============ Mobiliário por comando ============ */
.section-dark-furniture {
  background: var(--navy-700); color: var(--cream-050);
  padding: 84px 28px;
}
.section-dark-furniture .section-title { color: var(--cream-050); }
.furn-lead { font-size: 17px; line-height: 1.6; color: rgba(247,244,239,0.82); margin: 16px 0 0; text-wrap: pretty; }
.furn-lead strong { color: var(--cream-050); }

.furn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-top: 40px; align-items: start; }
.furn-demo { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.furn-prompt { margin-top: 0; background: var(--navy-900); }
.furn-prompt .cmd { color: var(--blue-200); }
.furn-prompt .resp { color: rgba(247,244,239,0.62); padding-left: 14px; }
.furn-prompt .resp + .cmd { margin-top: 12px; }
.furn-frame { border: 1px solid rgba(124,184,230,0.34); background: var(--navy-600); }

.furn-compare { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.furn-col { border-radius: 12px; padding: 20px; }
.furn-before { background: rgba(247,244,239,0.05); border: 1px solid rgba(247,244,239,0.14); }
.furn-after { background: var(--navy-600); border: 1px solid rgba(124,184,230,0.45); }
.furn-col-head { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.furn-before .furn-col-head { color: rgba(247,244,239,0.66); }
.furn-after .furn-col-head { color: var(--blue-200); }
.furn-item { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; padding: 8px 0; }
.furn-before .furn-item { color: rgba(247,244,239,0.6); }
.furn-after .furn-item { color: var(--cream-050); }
.furn-item .x { color: rgba(247,244,239,0.4); flex: none; }
.furn-item .v { color: var(--blue-200); flex: none; }

.furn-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.furn-chips .chip {
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--blue-200); border: 1px solid rgba(124,184,230,0.4); border-radius: 999px; padding: 8px 15px;
}
.furn-foot { font-size: 14.5px; color: rgba(247,244,239,0.68); margin-top: 26px; }

/* ============ Antes e depois (bruto → render) ============ */
.flow-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 26px; }
.flow-step { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink-500); }
.flow-step .n { font-family: 'Sora', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--blue-500); }
.flow-step.is-last { color: var(--navy-900); font-weight: 600; }
.flow-sep { color: #B9C4C9; font-size: 13px; }

.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; margin-top: 36px; }
.ba { margin: 0; min-width: 0; }
.ba-frame {
  --pos: 50%;
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-200); background: var(--navy-700); touch-action: pan-y;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer.before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; bottom: 12px; z-index: 3; pointer-events: none;
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.ba-tag.t-before { left: 12px; background: rgba(10,30,46,0.82); color: var(--blue-200); }
.ba-tag.t-after { right: 12px; background: var(--blue-100); color: var(--navy-800); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px);
  background: var(--blue-100); box-shadow: 0 0 12px rgba(190,228,255,0.6); z-index: 2; pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue-700); border: 2px solid var(--blue-100);
  display: grid; place-items: center; color: #fff; font-size: 14px; z-index: 3; pointer-events: none;
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.ba-range:focus-visible + .ba-divider,
.ba-frame:has(.ba-range:focus-visible) .ba-knob { outline: 2px solid var(--blue-100); outline-offset: 2px; }
.sub-gallery-head { margin-top: 52px; }
#ambientes .sub-gallery-head:first-child { margin-top: 0; }
.sub-gallery-head h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.sub-gallery-head p { font-size: 15px; line-height: 1.6; color: var(--ink-500); margin-top: 6px; max-width: 42em; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.mini { margin: 0; min-width: 0; }
.mini .proj-frame { border: 1px solid var(--line-200); background: var(--navy-700); }
.mini .img-slot { font-size: 12.5px; }

.ba-cap { padding: 14px 2px 0; }
.ba-cap .title { font-family: 'Sora', sans-serif; font-size: 15.5px; font-weight: 600; }
.ba-cap .sub { font-size: 13.5px; color: var(--ink-500); margin-top: 3px; line-height: 1.5; }

/* ============ Bonus ============ */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; margin-top: 38px; align-items: start; }
.bonus-card { background: #fff; border: 1px solid var(--line-200); border-radius: 12px; padding: 30px; min-width: 0; }
.bonus-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-050); color: var(--blue-700); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bonus-card h3 { font-size: 21px; font-weight: 600; margin: 16px 0 10px; letter-spacing: -0.015em; }
.bonus-card > p { font-size: 15.5px; line-height: 1.65; color: var(--ink-500); }
.prompt-box { background: var(--navy-700); border-radius: 10px; padding: 18px; margin-top: 20px; font-family: 'Sora', sans-serif; font-size: 13px; line-height: 1.8; color: rgba(247,244,239,0.9); }
.prompt-box div { color: var(--blue-200); }
.prompt-box div + div { margin-top: 10px; }
.check-list { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; font-size: 15px; color: var(--ink-600); }
.check-list .item, .price-checks .item, .support-checks .item { display: flex; gap: 10px; }
.check-list .item span:first-child { color: var(--blue-700); }
.bonus-sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px; margin-top: 22px; }
.bonus-sub-grid > div { border: 1px solid var(--line-200); border-radius: 10px; padding: 14px; overflow: hidden; }
.bonus-thumb { position: relative; width: calc(100% + 28px); margin: -14px -14px 12px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-700); }
.bonus-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bonus-sub-grid .t { font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 600; }
.bonus-sub-grid .d { font-size: 13px; color: var(--ink-500); margin-top: 4px; line-height: 1.5; }
.bonus-note { font-size: 14px; color: var(--ink-500); margin-top: 18px; line-height: 1.6; }

/* ============ FAQ / Support ============ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 36px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.faq-group { font-family: 'Sora', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); padding: 6px 2px 0; }
.faq-group + .faq-item { margin-top: -2px; }
.faq-list > .faq-group:not(:first-child) { margin-top: 18px; }
.faq-item { background: #fff; border: 1px solid var(--line-200); border-radius: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 26px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { font-family: 'Sora', sans-serif; font-size: 16.5px; font-weight: 600; flex: 1; min-width: 0; letter-spacing: -0.01em; }
.faq-item[open] .mod-chevron { transform: rotate(180deg); }
.faq-item p { font-size: 15.5px; line-height: 1.65; color: var(--ink-600); margin: 0; padding: 0 26px 22px; max-width: 46em; }
.support-card { background: var(--navy-700); color: var(--cream-050); border-radius: 12px; padding: 30px; min-width: 0; }
.support-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.support-card > p { font-size: 15px; line-height: 1.6; color: rgba(247,244,239,0.75); margin: 12px 0 22px; }
.support-mail { display: block; text-align: center; background: var(--blue-700); color: #fff; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15.5px; padding: 15px 20px; border-radius: 8px; transition: background 0.2s ease, transform 0.2s ease; }
.support-mail:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); }
.support-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(247,244,239,0.14); font-size: 14.5px; color: rgba(247,244,239,0.8); }
.support-checks .item span:first-child { color: var(--blue-200); }

/* ============ Pricing ============ */
.price-section { padding: 88px 28px 96px; }
.price-card {
  max-width: 720px; margin: 0 auto; background: var(--navy-700); color: var(--cream-050); border-radius: 16px; padding: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 44px; align-items: center;
  box-shadow: 0 30px 70px rgba(12,47,74,0.24);
}
.price-card > * { min-width: 0; }
.price-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-700); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.price-card h2 { font-size: clamp(25px, 3.2vw, 32px); line-height: 1.14; letter-spacing: -0.025em; margin: 20px 0 0; }
.price-checks { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; font-size: 15px; color: rgba(247,244,239,0.84); }
.price-checks .item { align-items: flex-start; }
.price-checks .item span:first-child { color: var(--blue-200); }
.price-box { background: rgba(247,244,239,0.06); border: 1px solid rgba(247,244,239,0.16); border-radius: 12px; padding: 30px; text-align: center; }
.promo-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-100); color: var(--navy-800); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.price-single { font-size: 13px; color: rgba(247,244,239,0.6); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 16px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 8px 0 0; }
.price-old { font-family: 'Sora', sans-serif; font-size: 22px; color: rgba(247,244,239,0.64); text-decoration: line-through; }
.price-new { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(34px, 4.6vw, 46px); letter-spacing: -0.035em; }
.price-installments { font-size: 13.5px; color: rgba(247,244,239,0.66); }
.price-box .btn-primary { display: block; width: 100%; font-size: 16px; padding: 16px 20px; margin-top: 24px; }
.price-lifetime { font-size: 12.5px; color: rgba(247,244,239,0.68); margin-top: 14px; }
.price-footnote { text-align: center; margin-top: 36px; font-size: 14.5px; color: var(--ink-500); }
/* Área de toque maior sem mudar a aparência */
.price-footnote a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.hero-ctas a.link-underline { display: inline-block; padding-top: 12px; margin-top: -12px; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: rgba(247,244,239,0.55); padding: 32px 28px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13.5px; }

/* ============ Responsive ============ */
@media (max-width: 520px) {
  .price-card, .support-card, .bonus-card { padding: 22px; }
  .section, .price-section { padding-left: 20px; padding-right: 20px; }
  .site-header .wrap, .hero-inner, .wrap { padding-left: 20px; padding-right: 20px; }
}

/* ============ Modo escuro ============
   :where() não soma especificidade: cada regra empata com a original e vence por vir depois,
   sem atropelar variações mais específicas (ex.: .band-dark, .btn-primary). */
:where([data-theme="dark"]) { color-scheme: dark; }
:where([data-theme="dark"]) body { background: var(--d-bg); color: var(--d-text); }
:where([data-theme="dark"]) a { color: var(--blue-200); }
:where([data-theme="dark"]) a:hover { color: var(--blue-100); }

:where([data-theme="dark"]) .eyebrow { color: var(--blue-200); }
:where([data-theme="dark"]) .section-head-meta,
:where([data-theme="dark"]) .section-lead { color: var(--d-muted); }
:where([data-theme="dark"]) .section-lead strong { color: var(--d-text); }
:where([data-theme="dark"]) .band-tint { background: var(--d-tint); }

:where([data-theme="dark"]) .benefit-card,
:where([data-theme="dark"]) .mod-card,
:where([data-theme="dark"]) .bonus-card,
:where([data-theme="dark"]) .faq-item { background: var(--d-card); border-color: var(--d-line); }
:where([data-theme="dark"]) .benefit-card:hover { border-color: var(--blue-200); box-shadow: 0 14px 34px rgba(0,0,0,0.35); }
:where([data-theme="dark"]) .benefit-card svg { stroke: var(--blue-200); }
:where([data-theme="dark"]) .benefit-card p { color: var(--d-muted); }

:where([data-theme="dark"]) .mod-card summary { background: var(--d-card-2); }
:where([data-theme="dark"]) .mod-card.featured summary { background: rgba(124,184,230,0.1); }
:where([data-theme="dark"]) .mod-num,
:where([data-theme="dark"]) .mod-card.featured .mod-num { color: var(--blue-200); }
:where([data-theme="dark"]) .mod-duration,
:where([data-theme="dark"]) .lesson-duration { color: var(--d-muted); }
:where([data-theme="dark"]) .lesson-num { color: var(--d-faint); }
:where([data-theme="dark"]) .lesson-list { border-top-color: var(--d-line); }
:where([data-theme="dark"]) .lesson-row { border-bottom-color: var(--d-line-soft); }
:where([data-theme="dark"]) .mod-chevron { stroke: var(--d-muted); }

:where([data-theme="dark"]) .sub-gallery-head p { color: var(--d-muted); }
:where([data-theme="dark"]) .mini .proj-frame,
:where([data-theme="dark"]) .ba-frame { border-color: var(--d-line); }
:where([data-theme="dark"]) .ba-cap .sub { color: var(--d-muted); }
:where([data-theme="dark"]) .flow-step { color: var(--d-muted); }
:where([data-theme="dark"]) .flow-step .n { color: var(--blue-200); }
:where([data-theme="dark"]) .flow-step.is-last { color: var(--d-text); }

:where([data-theme="dark"]) .bonus-tag { background: rgba(124,184,230,0.14); color: var(--blue-200); }
:where([data-theme="dark"]) .bonus-card > p,
:where([data-theme="dark"]) .bonus-sub-grid .d,
:where([data-theme="dark"]) .bonus-note { color: var(--d-muted); }
:where([data-theme="dark"]) .check-list { color: var(--d-text); }
:where([data-theme="dark"]) .check-list .item span:first-child { color: var(--blue-200); }
:where([data-theme="dark"]) .bonus-sub-grid > div { border-color: var(--d-line); }
:where([data-theme="dark"]) .prompt-box { background: var(--navy-900); }

:where([data-theme="dark"]) .faq-group { color: var(--d-faint); }
:where([data-theme="dark"]) .faq-item p { color: var(--d-muted); }
:where([data-theme="dark"]) .support-card,
:where([data-theme="dark"]) .price-card { box-shadow: 0 0 0 1px var(--d-line), 0 30px 70px rgba(0,0,0,0.4); }
:where([data-theme="dark"]) .price-footnote { color: var(--d-muted); }
:where([data-theme="dark"]) .site-footer { background: #050D14; border-top: 1px solid var(--d-line-soft); }
