/* ═══════════════════════════════════════════════════════════════
   ARTUR GABRIEL, PORTFÓLIO
   Design System v4 "Terra Noturna"

   A Terra (v3) foi para o escuro: papel vira grafite quente, o marrom
   sela vira cobre aceso. Fraunces continua dando a voz editorial,
   Inter segura a leitura e JetBrains Mono marca tudo o que é técnico.
   Profundidade vem de camadas, perspectiva e luz, nunca de enfeite:
   o brilho é sempre de uma fonte (o mouse, o cobre), nunca aleatório.
═══════════════════════════════════════════════════════════════ */

:root {
  /* Texto (contraste medido sobre --bg) */
  --text-1: #F3EDE4;          /* 16,9:1 */
  --text-2: #BDB3A4;          /* 9,4:1  */
  --text-3: #9A907F;          /* 6,1:1  */

  /* Marca */
  --brand: #D9A36C;           /* cobre, 9,1:1 */
  --brand-hover: #E8B985;
  --brand-ink: #1A1109;       /* texto sobre o cobre */
  --brand-soft: rgba(217, 163, 108, 0.12);
  --brand-line: rgba(217, 163, 108, 0.35);
  --live: #7ED4A6;            /* status "no ar" */

  /* Superfícies (sólidas, para o SVG das demos também servirem) */
  --bg: #1C1712;
  --bg-2: #221C16;
  --bg-subtle: #29221B;
  --surface: #262019;
  --surface-2: #2E261E;

  /* Estrutura */
  --border: rgba(243, 237, 228, 0.09);
  --border-strong: rgba(243, 237, 228, 0.18);

  /* Raio, sombra, movimento */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: clamp(18px, 5vw, 56px);
  --animate-duration: 0.8s;
  color-scheme: dark;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  font-weight: 400;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--brand); color: var(--brand-ink); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 400;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--r-md);
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ── Tipografia utilitária ── */
.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  color: var(--text-1);
}
.display em { font-style: italic; color: var(--brand); }

/* ── Rolagem suave do Lenis (regras recomendadas pela biblioteca) ── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* Cópia do hero depois do rodapé: exatamente uma tela, para a emenda do laço */
.loop-clone { position: relative; overflow: hidden; }
.loop-clone .hero { pointer-events: none; }

/* ── Revelação com Animate.css ──
   Só esconde quando o JS está presente; o script tira .js se algo falhar. */
.js [data-anim]:not(.anim-done) { opacity: 0; }
.animate__animated { animation-timing-function: var(--ease-out); }

/* ═══════════════════════════════════════════
   FUNDO TECNOLÓGICO
═══════════════════════════════════════════ */
.bg-tech {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(236, 214, 182, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 214, 182, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.bg-glow-a {
  top: -30vmax; left: -12vmax;
  background: radial-gradient(circle, rgba(236, 208, 170, 0.26), transparent 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.bg-glow-b {
  bottom: -34vmax; right: -18vmax;
  background: radial-gradient(circle, rgba(222, 190, 150, 0.18), transparent 60%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(10vmax, 8vmax, 0); } }
@keyframes drift-b { to { transform: translate3d(-8vmax, -10vmax, 0); } }

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
/* O relevo fica aceso a página toda; atrás do texto quem apaga as linhas é o shader */
#bgCanvas.ready { opacity: 1; }
.has-webgl .bg-grid { opacity: .35; }

/* Barra de progresso da rolagem */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(217, 163, 108, .7);
}

/* ═══════════════════════════════════════════
   NAVEGAÇÃO
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  height: 68px;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, height .35s;
}
.nav.scrolled {
  background: rgba(28, 23, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  height: 60px;
}

.nav-brand { display: inline-flex; align-items: center; gap: 11px; }
.nav-mono {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text-1); background: rgba(243, 237, 228, .05); }
.nav-link.active { color: var(--text-1); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

.nav-cta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--brand-ink);
  background: var(--brand);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .2s, box-shadow .2s;
}
.nav-cta:hover { background: var(--brand-hover); box-shadow: 0 0 0 4px var(--brand-soft); }

.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; margin-left: auto; border-radius: 10px; }
.nav-burger span { display: block; width: 20px; height: 1.5px; margin: 0 auto; background: var(--text-1); transition: transform .3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(28, 23, 18, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-nav { display: flex; flex-direction: column; gap: 18px; text-align: center; }
.mobile-link { font-family: var(--font-display); font-size: 30px; color: var(--text-1); }
.mobile-link:hover { color: var(--brand); }

/* ═══════════════════════════════════════════
   BOTÕES
═══════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--r-md);
  transition: background .2s, border-color .2s, box-shadow .25s, transform .15s;
  isolation: isolate;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 10px 30px -10px rgba(217, 163, 108, .6); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-quiet {
  background: rgba(243, 237, 228, 0.04);
  color: var(--text-1);
  border: 1px solid var(--border-strong);
}
.btn-quiet:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.btn-full { width: 100%; }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-1);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s, gap .2s;
}
.link-underline:hover { color: var(--brand); border-color: var(--brand); gap: 9px; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 118px var(--gutter) 96px;
  overflow-x: hidden;
  overflow-x: clip;
}
.hero-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(243, 237, 228, 0.04);
  border: 1px solid var(--border);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.badge-pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.badge-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--live);
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.hero-title { font-size: clamp(40px, 5.4vw, 76px); margin-bottom: 26px; }
.hero-title .line { display: block; }
.hero-desc {
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-desc strong { font-weight: 500; color: var(--text-1); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(24px, 3.6vw, 52px);
  border-top: 1px solid var(--border);
  padding-top: 28px;
  max-width: 520px;
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  color: var(--text-1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 8px; max-width: 150px; }

/* Visual do hero: retrato + chips + terminal em camadas */
.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
  isolation: isolate;
}
.hero-orbit {
  position: absolute;
  inset: -34px;
  border-radius: 240px 240px 40px 40px;
  border: 1px dashed var(--brand-line);
  opacity: .6;
  pointer-events: none;
}
.hero-figure {
  position: relative;
  z-index: 1;
  border-radius: 220px 220px var(--r-lg) var(--r-lg);
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: inherit;
  box-shadow: var(--shadow-md);
  filter: saturate(.92) contrast(1.02);
}
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(243, 237, 228, .12);
  background: linear-gradient(180deg, transparent 55%, rgba(28, 23, 18, .55));
  pointer-events: none;
}
.hero-figure-caption {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(28, 23, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11.5px;
  color: var(--text-1);
}

.chip-float {
  position: absolute;
  z-index: 3;
  font-size: 11.5px;
  color: var(--text-1);
  background: rgba(38, 32, 25, .78);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
}
.chip-float::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 1px;
}
.chip-a { top: 12%; left: -16%; }
.chip-b { top: 38%; right: -14%; }
.chip-b::before { background: var(--live); }
.chip-c { top: 62%; left: -10%; }
.chip-d { top: 4%; right: -2%; }

.terminal {
  position: absolute;
  z-index: 4;
  left: -22%;
  bottom: -38px;
  width: min(290px, 78%);
  border-radius: var(--r-md);
  background: rgba(32, 26, 20, .9);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(243, 237, 228, .16); }
.terminal-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.terminal-body {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-2);
  padding: 12px 14px 14px;
  min-height: 104px;
  white-space: pre-wrap;
}
.terminal-body .t-cmd { color: var(--text-1); }
.terminal-body .t-ok { color: var(--live); }
.terminal-body .caret {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--brand);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-hint-line {
  position: relative;
  width: 1px; height: 28px;
  background: var(--border-strong);
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--brand);
  animation: scroll-drop 1.8s var(--ease-out) infinite;
}
@keyframes scroll-drop { to { top: 100%; } }

/* ═══════════════════════════════════════════
   FAIXA DE STACK
═══════════════════════════════════════════ */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(34, 28, 22, .6);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex-shrink: 0; }
.marquee-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  padding: 0 28px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 28px;
}
.marquee-list li::after {
  content: '';
  width: 5px; height: 5px;
  border: 1px solid var(--brand);
  transform: rotate(45deg);
  margin-right: -28px;
  margin-left: 28px;
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ═══════════════════════════════════════════
   SEÇÕES
═══════════════════════════════════════════ */
.section {
  position: relative;
  padding: clamp(48px, 5.5vw, 80px) var(--gutter);
  overflow-x: hidden;
  overflow-x: clip;
}
.section-alt { background: linear-gradient(180deg, rgba(232, 214, 188, 0), rgba(232, 214, 188, .055) 14%, rgba(232, 214, 188, .055) 86%, rgba(232, 214, 188, 0)); }
.section-inner { position: relative; max-width: 1200px; margin: 0 auto; }

.sec-ghost {
  position: absolute;
  top: clamp(40px, 6vw, 80px);
  right: var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 280px);
  line-height: .8;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 237, 228, .07);
  pointer-events: none;
  user-select: none;
}

.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-num { font-size: 12px; color: var(--brand); }
.sec-line { flex: 0 0 44px; height: 1px; background: var(--brand-line); }
.sec-tag { font-size: 12px; color: var(--text-3); text-transform: lowercase; }

.section-title { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }
.section-desc {
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

/* ═══════════════════════════════════════════
   SOBRE
═══════════════════════════════════════════ */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  margin-top: 26px;
}
.photo-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.photo-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  filter: saturate(.9);
}
.photo-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(217, 163, 108, .14) 48%, transparent 52%);
  background-size: 100% 240%;
  mix-blend-mode: screen;
  animation: scan 6s linear infinite;
  pointer-events: none;
}
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 120%; } }

.trait-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trait {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: rgba(243, 237, 228, .03);
  padding: 6px 13px;
  border-radius: 999px;
}

.sobre-intro {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.42;
  color: var(--text-1);
  margin-bottom: 24px;
}
.sobre-intro strong { font-weight: 500; color: var(--brand); }
.sobre-body { font-size: 15.5px; color: var(--text-2); margin-bottom: 18px; max-width: 62ch; }
.sobre-body strong { font-weight: 500; color: var(--text-1); }

.sobre-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 30px; }
.sobre-badge, .c-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-1);
  background: rgba(243, 237, 228, .03);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--r-md);
  transition: border-color .2s, background .2s, color .2s;
}
.sobre-badge:hover, .c-link:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.sobre-badge svg, .c-link svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   CARTÕES (base comum: sistemas, infra, apps)
═══════════════════════════════════════════ */
.grid { display: grid; gap: 20px; grid-auto-flow: dense; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card, .tools-col, .panel {
  position: relative;
  background: linear-gradient(180deg, rgba(46, 38, 30, .92), rgba(38, 32, 25, .92));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  transition: border-color .3s, box-shadow .3s;
}
.card-wide { grid-column: span 2; }

/* Luz que segue o mouse (variáveis escritas pelo JS) */
.tilt { --mx: 50%; --my: 50%; }
.card::before, .tools-col::before, .d-card::before, .saas-card::before, .feature::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217, 163, 108, .10), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 0;
}
.card:hover::before, .tools-col:hover::before, .d-card:hover::before, .saas-card:hover::before, .feature:hover::before { opacity: 1; }
.card:hover, .tools-col:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.card > *, .tools-col > * { position: relative; z-index: 1; }
.tilting { transition: border-color .3s, box-shadow .3s !important; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex-shrink: 0;
}
.card-icon svg { width: 19px; height: 19px; }
.card-links { display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
.icon-btn svg { width: 15px; height: 15px; }

.flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.flag-live { color: var(--live); border-color: rgba(126, 212, 166, .3); }
.flag-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}

.card-title { font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-1); }
.card-context {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand);
  margin: 5px 0 12px;
}
.card-desc { font-size: 14px; color: var(--text-2); flex: 1; }

.card-metrics { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.card-metrics li { font-size: 12.5px; color: var(--text-3); }
.card-metrics strong { font-family: var(--font-mono); font-weight: 500; color: var(--text-1); margin-right: 4px; }

.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  background: rgba(243, 237, 228, .04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
}

.card-history { background: linear-gradient(180deg, rgba(38, 32, 25, .8), rgba(34, 28, 22, .8)); }
.card-history .card-icon { border-color: var(--border-strong); background: rgba(243, 237, 228, .04); color: var(--text-2); }

.card-cta { justify-content: center; gap: 10px; border-style: dashed; }
.card-cta .card-desc { flex: 0; }
.card-cta .link-underline { align-self: flex-start; margin-top: 6px; }
.card-cta .card-icon { margin-bottom: 8px; }

.subhead { margin: 52px 0 22px; }
.subhead-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.subhead-title svg { width: 20px; height: 20px; color: var(--brand); }
.subhead-title em { font-style: italic; color: var(--brand); }
.subhead-desc { font-size: 14.5px; color: var(--text-2); margin-top: 8px; max-width: 640px; }

/* ═══════════════════════════════════════════
   PRODUTOS SAAS
═══════════════════════════════════════════ */
.saas-list { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.saas-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3vw, 40px);
  border-radius: calc(var(--r-lg) + 6px);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(46, 38, 30, .85), rgba(34, 28, 22, .85));
  box-shadow: var(--shadow-md);
}
.saas-card-reverse .saas-media { order: 2; }
.saas-media, .feature-media { perspective: 1200px; }

.browser-mini, .appwin-mini {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #201A14;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(217, 163, 108, .06);
  /* clip-path corta de verdade: só overflow + raio deixava o canto da imagem vazar na animação */
  clip-path: inset(0 round var(--r-lg));
}
.browser-mini img, .appwin-mini img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.appwin-mini img { aspect-ratio: 880 / 660; }
.browser-mini-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #171410;
  border-bottom: 1px solid var(--border);
}
.browser-mini-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 237, 228, .16); }
.browser-mini-bar span { margin-left: 10px; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-mini::after, .appwin-mini::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, .08), transparent 40%);
  pointer-events: none;
}

.saas-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.saas-head .flag { margin-left: auto; }
.saas-mark {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: #1E1A15;
  border: 1px solid var(--brand-line);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
}
.saas-mark img { width: 30px; height: 30px; }
.saas-pill { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.saas-name { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 500; line-height: 1.1; margin-top: 3px; }

.saas-tagline { font-size: 15px; color: var(--text-2); margin-bottom: 20px; }
.saas-features { display: grid; grid-template-columns: 1fr; gap: 2px; margin-bottom: 4px; }
.saas-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-1); padding: 5px 0; }
.saas-features svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; margin-top: 4px; }
.saas-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }

/* ═══════════════════════════════════════════
   INFRAESTRUTURA: pilha 3D
═══════════════════════════════════════════ */
.infra-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.infra-visual { position: sticky; top: 110px; }
.stack3d {
  position: relative;
  height: 500px;
  perspective: 1400px;
  transform-style: preserve-3d;
  --spread: 62px;
  --rx: 58deg;
  --rz: -36deg;
}
.layer {
  position: absolute;
  left: 50%; top: 50%;
  width: min(300px, 70%);
  aspect-ratio: 1.55;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--brand-line);
  background:
    linear-gradient(rgba(217, 163, 108, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(217, 163, 108, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(22, 19, 15, .88);
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .9);
  transform:
    translate(-50%, -50%)
    rotateX(var(--rx)) rotateZ(var(--rz))
    translateZ(calc((var(--i) - 2) * var(--spread)));
  backface-visibility: hidden;
}
.layer span { font-size: 13px; color: var(--text-1); }
.layer small { font-size: 11.5px; color: var(--text-3); }
.layer:not(.layer-top) { justify-content: flex-end; padding-bottom: 12px; }
.layer-top { border-color: var(--brand); background-color: rgba(40, 30, 20, .92); box-shadow: 0 0 40px -6px rgba(217, 163, 108, .45); }
.layer-top span { color: var(--brand); }

.infra-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.infra-numbers > div {
  display: flex;
  flex-direction: column-reverse;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(38, 32, 25, .7);
}
.infra-numbers dd { font-size: clamp(24px, 2.6vw, 30px); color: var(--text-1); line-height: 1.1; font-variant-numeric: tabular-nums; }
.infra-numbers dt { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.infra-cards { display: flex; flex-direction: column; gap: 18px; }

/* ═══════════════════════════════════════════
   APPS: destaque do ConectaDesk + vitrines
═══════════════════════════════════════════ */
.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3vw, 36px);
  margin-bottom: 20px;
  border-radius: calc(var(--r-lg) + 6px);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(46, 38, 30, .85), rgba(34, 28, 22, .85));
}
.feature-title { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 500; line-height: 1.1; }
.feature-body .link-underline { margin-top: 22px; align-self: flex-start; }
.feature-body { display: flex; flex-direction: column; }

.showcases {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-strong);
}
.showcase-list { display: flex; flex-wrap: wrap; gap: 10px; }
.showcase-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(243, 237, 228, .03);
  transition: border-color .2s, color .2s, background .2s;
}
.showcase-list a:hover { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }

/* ═══════════════════════════════════════════
   DESIGN: galeria
═══════════════════════════════════════════ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  padding: 8px 17px;
  border-radius: 999px;
  transition: .2s;
}
.filter:hover { color: var(--text-1); border-color: var(--brand-line); }
.filter.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.d-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, box-shadow .3s;
}
.d-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.d-card.hidden { display: none; }
.d-card > * { position: relative; z-index: 1; }

.d-cover { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #1A1612; }
.d-cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.d-card:hover .d-cover-img { transform: scale(1.05); }
.d-cover-badge {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(28, 23, 18, 0.78);
  border: 1px solid var(--border-strong);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-1);
  backdrop-filter: blur(4px);
}
.d-cover-badge svg { color: var(--brand); }

.d-info { padding: 20px 22px 22px; }
.d-tag { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.d-title { font-size: 17.5px; font-weight: 600; margin: 7px 0 6px; color: var(--text-1); }
.d-desc { font-size: 13.5px; color: var(--text-2); }
.d-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  margin-top: 14px;
}
.d-card:hover .d-link { text-decoration: underline; text-underline-offset: 3px; }

.d-card-behance {
  justify-content: center;
  padding: 30px;
  background:
    linear-gradient(rgba(217, 163, 108, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(217, 163, 108, .06) 1px, transparent 1px) 0 0 / 28px 28px,
    #17130F;
}
.d-card-behance .d-info { padding: 0; }
.d-card-behance .d-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; }

/* ═══════════════════════════════════════════
   FERRAMENTAS
═══════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tools-col { padding: 26px; transition: border-color .3s, box-shadow .3s; }
.tools-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 14px;
}
.tools-col-title svg { width: 16px; height: 16px; color: var(--brand); }
.tool-list li {
  font-size: 14px;
  color: var(--text-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-line); flex-shrink: 0; }
.tool-list li:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════
   CONTATO E FORMULÁRIOS
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  margin-top: 14px;
}
.contact-p { font-size: 16.5px; color: var(--text-2); margin-bottom: 14px; max-width: 44ch; }
.contact-p strong { font-weight: 500; color: var(--text-1); }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; max-width: 380px; }
.c-link { overflow-wrap: anywhere; }

.panel { padding: clamp(20px, 3vw, 32px); }
.contact-form, .saas-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-2);
}
.form-optional { text-transform: none; letter-spacing: 0; color: var(--text-3); font-weight: 400; }
.form-field input, .form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text-1);
  background: rgba(28, 23, 18, .6);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 13px 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
  width: 100%;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #857C6E; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--brand);
  background: rgba(28, 23, 18, .85);
  box-shadow: 0 0 0 3px rgba(217, 163, 108, .2);
}

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 16px;
  transition: border-color .2s, background .2s;
  color: var(--text-2);
  font-size: 14px;
}
.file-drop:hover, .file-drop.drag { border-color: var(--brand); background: var(--brand-soft); }
.file-drop:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(217, 163, 108, .25); }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; }
.file-drop-text { overflow-wrap: anywhere; }

.form-feedback { font-size: 14px; min-height: 20px; color: var(--text-2); }
.form-feedback.ok { color: var(--live); }
.form-feedback.err { color: #F09A8E; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { border-top: 1px solid var(--border); padding: 40px var(--gutter); background: rgba(28, 23, 18, .8); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px 24px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.footer-text { font-size: 13px; color: var(--text-3); margin-right: auto; }
.footer-socials { display: flex; gap: 8px; }
.f-social {
  width: 38px; height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: .2s;
}
.f-social svg { width: 15px; height: 15px; }
.f-social:hover { color: var(--brand); border-color: var(--brand-line); }
.footer-thread { font-size: 12.5px; color: var(--text-2); }
.footer-thread:hover { color: var(--brand); }

/* ═══════════════════════════════════════════
   MODAL E LIGHTBOX (centrados por flex: o Animate.css pode mexer no transform)
═══════════════════════════════════════════ */
.saas-modal, .lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lb { z-index: 220; }
.saas-modal.open, .lb.open { display: flex; }
.saas-modal-backdrop, .lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.saas-modal-card, .lb-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #15120F;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
  --animate-duration: .45s;
}
.icon-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: .2s;
}
.icon-close:hover { color: var(--text-1); border-color: var(--brand-line); }
.saas-modal-x { position: absolute; top: 16px; right: 16px; }
.saas-modal-eyebrow, .lb-eyebrow { font-size: 11.5px; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.saas-modal-title { font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.2; margin: 10px 40px 8px 0; }
.saas-modal-sub { font-size: 14.5px; color: var(--text-2); margin-bottom: 26px; }

.lb-card { width: min(900px, 100%); display: flex; flex-direction: column; padding: clamp(16px, 3vw, 28px); overflow: hidden; }
.lb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.lb-title { font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); font-weight: 500; margin-top: 6px; }
.lb-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #0E0C0A;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img { max-width: 100%; max-height: min(56vh, 520px); width: auto; object-fit: contain; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(28, 23, 18, 0.85);
  color: var(--text-1);
  display: grid;
  place-items: center;
  transition: .2s;
}
.lb-nav:hover { border-color: var(--brand); color: var(--brand); }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 12px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 12px; }
.lb-caption { font-size: 13.5px; color: var(--text-2); margin-top: 12px; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.lb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-thumb {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: .5;
  transition: .2s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.active { opacity: 1; border-color: var(--brand); }
.lb-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lb-count { font-size: 12.5px; color: var(--text-3); }

/* ═══════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 18px; }
  .nav-link { padding: 8px 9px; }
}
@media (max-width: 1020px) {
  .grid-3, .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saas-card, .feature { grid-template-columns: 1fr; }
  .saas-card-reverse .saas-media { order: 0; }
  .infra-grid { grid-template-columns: 1fr; }
  .infra-visual { position: relative; top: 0; }
  .showcases { grid-template-columns: 1fr; }
  .terminal { left: -8%; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 760px) {
  .hero { padding-top: 104px; padding-bottom: 88px; min-height: auto; }
  .hero-main { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { justify-self: center; width: min(78%, 320px); }
  .chip-a { left: -12%; }
  .chip-b { right: -12%; }
  .chip-c, .chip-d { display: none; }
  .terminal { left: -12%; bottom: -40px; width: 82%; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .sobre-grid, .contact-grid { grid-template-columns: 1fr; }
  .sobre-left { max-width: 380px; }
  .grid-3, .grid-2, .design-grid, .tools-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .stack3d { height: 400px; --spread: 50px; }
  .layer { width: min(240px, 66%); padding: 12px 14px; }
  .scroll-hint { display: none; }
  .saas-head .flag { margin-left: 0; }
  .sec-ghost { font-size: 110px; }
}
@media (max-width: 420px) {
  .hero-title { font-size: 38px; }
  .card, .tools-col { padding: 20px; }
  .stat-label { font-size: 11px; }
  .lb-thumb { width: 42px; height: 42px; }
  .lb-actions { width: 100%; justify-content: space-between; margin-left: 0; }
  .infra-numbers { grid-template-columns: 1fr 1fr; }
}

/* Movimento reduzido: tudo visível, parado e sem 3D */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-anim]:not(.anim-done) { opacity: 1; }
  #bgCanvas { display: none; }
  .marquee-track { transform: none; }
}
