:root {
  --bg: #080707;
  --text: #f3efef;
  --dim: #8f898a;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(16, 13, 14, .52);
  --glass-hi: rgba(255, 255, 255, .06);
  --accent: #ff2e3e;
  --accent-strong: #d9192a;
  --accent-ink: #ffffff;
  --blur: 28px;
  --radius: 18px;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em; }
.dim { color: var(--dim); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* ---------- fundo ---------- */
#light, .bg-fallback {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none;
}
/* véu escuro sobre as ondas: o fundo fica ofuscado e o conteúdo ganha destaque */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 25% 50%, rgba(8, 7, 7, .55), transparent 70%),
    linear-gradient(rgba(8, 7, 7, .18), rgba(8, 7, 7, .18));
}
.bg-fallback {
  z-index: -3;
  background:
    radial-gradient(60% 40% at 70% 35%, rgba(255, 46, 62, .16), transparent 70%),
    radial-gradient(40% 30% at 20% 80%, rgba(255, 46, 62, .05), transparent 70%),
    var(--bg);
}

/* ---------- vidro ---------- */
.glass {
  background: linear-gradient(160deg, var(--glass-hi), transparent 40%), var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(140%);   /* Safari: valor fixo (versões antigas ignoram variáveis aqui) */
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 60px -20px rgba(0, 0, 0, .6);
}

/* borda de vidro acesa pela luz do mouse (mesma lógica dos cards 3D) */
:where(.glass:not(.glass-bg)) { position: relative; } /* :where = sem peso, não sobrescreve o position: fixed do menu */
.glass:not(.glass-bg)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(340px circle at var(--ex, -999px) var(--ey, -999px), rgba(255, 46, 62, .85), transparent 70%);
  opacity: var(--edge, 0); transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- navegação ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 16px; border-radius: 14px; z-index: 50;
}
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; font-weight: 600; letter-spacing: -.01em; }
.logo-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-strong); color: var(--accent-ink); font-size: 12px; font-weight: 600;
}
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a { color: var(--dim); font-size: 14px; transition: color .2s; }
.nav ul a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.status { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--dim); }
.status i, .dot, .log i {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- chaves do topo: idioma e modo ---------- */
.seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025);
}
.seg button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 9px;
  border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  font: 400 11.5px/1 var(--mono); letter-spacing: .02em; color: var(--dim);
  transition: background .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .09); color: var(--text); }
.seg-mode button[data-mode="full"][aria-pressed="true"] .ico-m { color: var(--accent); filter: drop-shadow(0 0 4px rgba(255, 46, 62, .7)); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.flag { width: 16px; height: 11px; border-radius: 2px; flex: none; opacity: .55; transition: opacity .2s; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25); }
.seg button[aria-pressed="true"] .flag, .seg button:hover .flag { opacity: 1; }
.ico-m { width: 13px; height: 13px; flex: none; }
/* o menu nunca quebra em duas linhas; o selo "agenda aberta" só aparece quando sobra espaço */
.nav ul a, .nav .btn, .status { white-space: nowrap; }
@media (max-width: 1500px) { .status { display: none; } }
@media (max-width: 1280px) { .nav ul { gap: 20px; } }

/* aviso de troca automática para o Modo Leve */
.toast {
  position: fixed; top: 88px; right: 16px; z-index: 55; width: min(380px, calc(100% - 32px));
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 14px 40px 14px 16px;
  font-size: 14px; color: #cdc7c8; background: #141011 !important;
  transform: translateY(-12px); opacity: 0; transition: transform .4s, opacity .4s;
}
.toast.show { transform: none; opacity: 1; }
.toast p { flex: 1 1 100%; }
.toast-x {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--dim); font-size: 20px; cursor: pointer;
}
.toast-x:hover { color: var(--text); }

/* ---------- Modo Leve: sem efeitos pesados ---------- */
.lite #light { display: none; }
.lite .glass, .lite .glass-bg, .lite .btn-ghost {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.lite .glass { background: linear-gradient(160deg, rgba(255, 255, 255, .05), transparent 40%), #120e0f; }
.lite .glass::after, .lite .tilt-fx, .lite .is-3d > .slab { display: none; }
.lite .is-3d, .lite .panel { transform: none !important; }
.lite .is-3d { --depth: 0 !important; }
.lite .btn { transform: none !important; }
.lite *, .lite *::before, .lite *::after { animation: none !important; }
.lite .reveal { filter: none !important; transform: none !important; transition: opacity .4s !important; }
.lite .node, .lite .shot { box-shadow: none !important; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 12px; font-weight: 500; font-size: 15px;
  background: var(--accent-strong); color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(255, 46, 62, 0);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(255, 46, 62, .55); }
.btn-ghost {
  background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { box-shadow: none; border-color: rgba(255, 255, 255, .25); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- layout ---------- */
.hero, .section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 110px 0; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid rgba(255, 46, 62, .28); border-radius: 8px;
  color: #ffc9cd; background: rgba(255, 46, 62, .05);
}
h1, h2, h3 { font-weight: 500; letter-spacing: -.03em; line-height: 1.04; }
h1 { font-size: clamp(42px, 5.4vw, 78px); margin: 22px 0 22px; }
h1 em, h2 em { color: #ffc2c7; }
h2 { font-size: clamp(32px, 4.2vw, 54px); max-width: 20ch; margin-top: 18px; text-wrap: balance; }
h3 { font-size: 21px; letter-spacing: -.02em; }
.lead { color: #c6c0c1; font-size: clamp(16px, 1.5vw, 18px); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.micro { color: var(--dim); }
.sec-head { margin-bottom: 48px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 40px;
  padding: 120px 0 60px;
}
.panel { padding: 22px; transform: perspective(1000px) rotateX(6deg) rotateY(-14deg); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.flow { display: grid; gap: 0; padding: 22px 0; }
.node {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
}
.node b { font-weight: 500; font-size: 15px; }
.node small { color: var(--dim); font-size: 11.5px; }
.node-on { border-color: rgba(255, 46, 62, .45); box-shadow: 0 0 30px -6px rgba(255, 46, 62, .35); }
.wire { justify-self: start; margin-left: 26px; width: 1px; height: 22px; background: linear-gradient(var(--line), var(--accent)); position: relative; }
.wire::after {
  content: ""; position: absolute; left: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: travel 1.8s linear infinite;
}
@keyframes travel { from { top: 0; opacity: 0; } 30% { opacity: 1; } to { top: 100%; opacity: 0; } }
.log { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.log p { display: flex; align-items: center; gap: 10px; color: #cdc7c8; }
.log p.dim { color: var(--dim); }

/* ---------- serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .3s; }
.card:hover { border-color: rgba(255, 46, 62, .35); }
.card p { color: #bcb6b7; font-size: 15px; }
.card .ideal { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }
.ico { color: var(--accent); }

/* ---------- trabalhos ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project { overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s; }
.project:hover { border-color: rgba(255, 46, 62, .35); }
.shot { aspect-ratio: 16 / 11; overflow: hidden; border-bottom: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.project:hover .shot img { transform: scale(1.04); }
.project-body { padding: 24px; display: grid; gap: 10px; }
.project-body p:not(.dim) { color: #bcb6b7; font-size: 15px; }
.go { color: var(--accent); font-size: 14px; margin-top: 6px; }

/* projetos em largura total, alternando o lado da imagem */
.project.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.wide .shot { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.is-3d.project.wide .shot { border-radius: var(--radius) 0 0 var(--radius); }
.wide .project-body { padding: 34px; align-content: center; gap: 14px; }
.wide h3 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.03em; }
.owner {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px; color: #fff;
  background: rgba(255, 46, 62, .14); border: 1px solid rgba(255, 46, 62, .45);
  box-shadow: 0 0 24px -6px rgba(255, 46, 62, .5);
}
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.facts li {
  display: grid; gap: 4px; padding: 14px; border-radius: 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
}
.facts b { font-weight: 500; font-size: 15px; }
.facts span { color: var(--dim); font-size: 11px; line-height: 1.4; }
.project-body .proof { color: var(--text); font-size: 15px; }
.proof em { color: #ffc2c7; font-size: 17px; }
.project.wide.reverse { grid-template-columns: 1fr 1.15fr; }
.wide.reverse .shot { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.is-3d.project.wide.reverse .shot { border-radius: 0 var(--radius) var(--radius) 0; }
.is-3d.featured .owner { transform: translateZ(calc(40px * var(--depth, 0))); }
.is-3d.featured .facts { transform: translateZ(calc(28px * var(--depth, 0))); }

/* ---------- processo + cubos 3D ---------- */
.steps { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; padding: 40px; align-items: center; }
.iso {
  display: flex; align-items: flex-end; justify-content: center; gap: 34px; height: 260px;
  transform: rotateX(55deg) rotateZ(-45deg); transform-style: preserve-3d;
}
.cube {
  --s: 46px; --h: 1;
  position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d;
  background: #211a1b; border: 1px solid rgba(255, 255, 255, .12);
  transform: translateZ(calc(var(--h) * 34px * var(--grow, 0)));
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
}
.cube:nth-child(2) { transition-delay: .12s; }
.cube:nth-child(3) { transition-delay: .24s; }
.cube:nth-child(4) { transition-delay: .36s; }
.cube i { position: absolute; display: block; border: 1px solid rgba(255, 255, 255, .08); }
/* laterais esticadas até o chão */
.cube i:nth-child(1) { left: 0; top: 100%; width: var(--s); height: calc(var(--h) * 34px * var(--grow, 0)); transform-origin: top; transform: rotateX(-90deg); background: #140f10; transition: height 1.1s cubic-bezier(.2, .8, .2, 1); }
.cube i:nth-child(2) { right: 100%; top: 0; height: var(--s); width: calc(var(--h) * 34px * var(--grow, 0)); transform-origin: right; transform: rotateY(-90deg); background: #1b1415; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.cube i:nth-child(3) { display: none; }
.cube-on { background: var(--accent); box-shadow: 0 0 40px rgba(255, 46, 62, .6); }
.cube-on i:nth-child(1) { background: #9e0f1c; }
.cube-on i:nth-child(2) { background: #c51525; }
.steps.in .cube { --grow: 1; }
.steps.in .cube i { --grow: 1; }

.step-list { list-style: none; display: grid; gap: 4px; }
.step-list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step-list li:last-child { border-bottom: 0; }
.step-list span { color: var(--accent); }
.step-list b { font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.step-list p { color: #bcb6b7; font-size: 15px; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.promise { padding: 26px; display: grid; gap: 6px; }
.promise b { font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.promise span { color: var(--dim); }

/* ---------- dúvidas ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 0 22px; border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #bcb6b7; padding-bottom: 20px; max-width: 64ch; }

/* ---------- contato ---------- */
.cta-box { padding: clamp(36px, 6vw, 80px); text-align: center; display: grid; justify-items: center; }
.cta-box h2 { max-width: 18ch; margin-bottom: 16px; }
.cta-box .actions { justify-content: center; }

.foot {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 40px;
  display: flex; justify-content: space-between; color: var(--dim); border-top: 1px solid var(--line);
}
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* ---------- depoimento ---------- */
.quote { padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; overflow: hidden; }
.quote-fig { display: grid; gap: 28px; }
.quote-mark {
  position: absolute; top: -18px; right: 28px; font-family: var(--serif); font-size: clamp(160px, 20vw, 240px); line-height: 1;
  color: rgba(255, 46, 62, .16); pointer-events: none;
}
.quote blockquote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 38px); line-height: 1.25;
  letter-spacing: -.01em; max-width: 30ch; color: var(--text);
}
.quote figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--accent-strong), #5a0a12); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 0 24px -4px rgba(255, 46, 62, .5);
}
.who { display: grid; gap: 2px; margin-right: auto; }
.who b { font-weight: 500; font-size: 17px; }
.quote .go { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
.quote-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote-facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: #cdc7c8;
}

/* ---------- aviso de cookies ---------- */
.consent {
  position: fixed; left: 50%; bottom: 16px; z-index: 60;
  width: min(680px, calc(100% - 24px)); padding: 18px 18px 18px 22px; border-radius: 16px;
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), transparent 40%), rgba(14, 11, 12, .82);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 46, 62, .18);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.consent.show { transform: translate(-50%, 0); opacity: 1; }
.consent.out { transform: translate(-50%, 140%); opacity: 0; }
.consent-text { flex: 1; display: grid; gap: 4px; font-size: 14px; color: #cdc7c8; line-height: 1.5; }
.consent-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 15px; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 46, 62, .6); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent .btn { padding: 11px 18px; font-size: 14px; min-height: 44px; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; gap: 14px; bottom: 12px; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- página Robôs ---------- */
.nav ul a[aria-current] { color: var(--text); }
.page-top { padding-top: 150px; min-height: calc(100svh - 120px); }
.page-top h1 { max-width: 18ch; text-wrap: balance; }
.back { display: flex; width: fit-content; align-items: center; min-height: 44px; margin-bottom: 10px; color: var(--dim); transition: color .2s; }
.back:hover { color: var(--text); }
.sec-head .lead { margin-top: 18px; }

/* tela real do Eagle Hook Web numa moldura de janela (topo e abas de telas) */
.hero-app { grid-template-columns: 1fr 1.15fr; }
.hero-app h1 { font-size: clamp(40px, 4.3vw, 62px); text-wrap: balance; }
.frame { padding: 0; overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.frame-bar i:first-child { background: var(--accent); }
.frame-bar span { margin-left: 8px; color: var(--dim); font-size: 11.5px; }
.frame img { width: 100%; border-radius: 0 0 var(--radius) var(--radius); }
.panel.frame { padding: 0; }
.is-3d.frame { overflow: visible; }
.is-3d.frame img { --z: 24px; }

/* o que o robô faz */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 40px; align-items: start; }
.split h3 { margin-bottom: 18px; }
.does { list-style: none; display: grid; gap: 4px; }
.does li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #cdc7c8; }
.does li:last-child { border-bottom: 0; }
.does span { color: var(--accent); padding-top: 3px; }
.split-side p { color: #bcb6b7; font-size: 15px; }
.split-side .flow { padding: 22px 0 0; }

/* abas com as telas reais */
.screens { display: grid; gap: 16px; }
.screen-tabs { justify-self: start; }
.screen-tabs button { min-height: 38px; padding: 0 16px; font-size: 12.5px; }
.screen-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .09); color: var(--text); }
.screen figcaption { padding: 16px 20px 20px; color: #bcb6b7; font-size: 15px; max-width: 80ch; }
.screen img { border-radius: 0; border-bottom: 1px solid var(--line); }

/* para quem é */
.intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; padding: 40px; align-items: start; }
.intro-text { display: grid; gap: 16px; }
.intro-text p { color: #c6c0c1; font-size: 17px; max-width: 58ch; }
.intro-text b { color: var(--text); font-weight: 500; }
.fit { list-style: none; display: grid; gap: 10px; }
.fit li {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: #cdc7c8; font-size: 15px;
}
.fit .dot { flex: none; margin-top: 9px; }
.anuncio { margin-top: 14px; }
.anuncio h3 { font-size: clamp(22px, 2.2vw, 28px); }
.anuncio .owner, .anuncio .micro { font-size: 12.5px; }
.anuncio .owner { justify-self: start; }
.anuncio .micro { color: var(--dim); }

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-3 + .promises { margin-top: 14px; }

/* ---------- revelar ao rolar (sai do desfoque) ---------- */
.js .reveal {
  opacity: 0; filter: blur(10px); transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), filter .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.in { opacity: 1; filter: none; transform: none; }

/* ---------- profundidade 3D real nos cards (ativada pelo main.js) ----------
   O vidro vira uma camada separada (.glass-bg), porque backdrop-filter "achata"
   os filhos. Assim cada elemento de dentro pode flutuar numa altura própria. */
.is-3d {
  position: relative; transform-style: preserve-3d; border-radius: var(--radius);
  will-change: transform;
}
.is-3d.project { overflow: visible; }
.is-3d > .glass-bg {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    var(--sx, 0px) var(--sy, 24px) 60px -14px rgba(0, 0, 0, .75),
    0 0 calc(var(--ga, 0) * 60px) calc(var(--ga, 0) * -10px) rgba(255, 46, 62, .25);
}
.is-3d > :not(.glass-bg):not(.tilt-fx):not(.slab) { position: relative; transform: translateZ(calc(var(--z, 30px) * var(--depth, 0))); }

/* espessura do vidro: 4 placas empilhadas atrás formam a lateral do card */
.is-3d > .slab {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  transform: translateZ(calc(var(--d) * -3.5px * var(--depth, 0)));
  background: rgba(34, 20, 22, calc(.9 - var(--d) * .15));
  border: 1px solid rgba(255, 46, 62, calc(.22 - var(--d) * .04));
}

/* reflexo de luz + borda acesa seguindo o mouse, na superfície do vidro */
.tilt-fx {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  transform: translateZ(1px);
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, calc(.11 * var(--ga, 0))), transparent 42%);
}
.tilt-fx::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  /* borda acesa pela luz do mouse (posição e intensidade vêm do main.js) */
  background: radial-gradient(340px circle at var(--ex, -999px) var(--ey, -999px), rgba(255, 46, 62, .95), transparent 70%);
  opacity: var(--edge, 0); transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* faixa de brilho que atravessa o vidro conforme o ângulo */
.tilt-fx::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .09) 47%, rgba(255, 255, 255, .02) 52%, transparent 60%);
  background-size: 300% 100%;
  background-position: calc(100% - var(--gx, 50%)) 0;
  opacity: var(--ga, 0);
}

/* alturas de cada camada */
.is-3d.panel .panel-head { --z: 22px; }
.is-3d.panel .flow { --z: 0px; transform-style: preserve-3d; }
.is-3d.panel .node {
  transform: translateZ(calc(52px * var(--depth, 0)));
  box-shadow: calc(var(--sx, 0px) * .55) calc(var(--sy, 24px) * .55) 26px -6px rgba(0, 0, 0, .8);
}
.is-3d.panel .node-on {
  transform: translateZ(calc(90px * var(--depth, 0)));
  box-shadow: calc(var(--sx, 0px) * .9) calc(var(--sy, 24px) * .9) 34px -6px rgba(0, 0, 0, .85), 0 0 34px -6px rgba(255, 46, 62, .45);
}
.is-3d.panel .wire { transform: translateZ(calc(48px * var(--depth, 0))); }
.is-3d.panel .log { --z: 34px; }

.is-3d.card .ico { --z: 70px; font-size: 14px; }
.is-3d.card h3 { --z: 48px; }
.is-3d.card p { --z: 30px; }
.is-3d.card .ideal { --z: 18px; }

.is-3d.project .shot {
  --z: 26px; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: calc(var(--sx, 0px) * .5) calc(var(--sy, 24px) * .5) 30px -8px rgba(0, 0, 0, .7);
}
.is-3d.project .project-body { --z: 44px; transform-style: preserve-3d; }
.is-3d.project h3 { transform: translateZ(calc(22px * var(--depth, 0))); }
.is-3d.project .go { transform: translateZ(calc(36px * var(--depth, 0))); display: inline-block; }

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .nav ul { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; min-height: auto; }
  .panel { transform: none; }
  .panel-head { flex-wrap: wrap; }
  .cards { grid-template-columns: 1fr 1fr; }
  .intro { grid-template-columns: 1fr; padding: 28px; }
  .hero-app { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .steps { grid-template-columns: 1fr; padding: 28px; }
  .iso { height: 240px; margin-top: 60px; }
  /* projetos empilhados: imagem em cima, texto embaixo */
  .project.wide, .project.wide.reverse { grid-template-columns: 1fr; }
  .wide.reverse .shot { order: 0; border-left: 0; }
  .wide .shot { aspect-ratio: 16 / 11; border-right: 0; border-bottom: 1px solid var(--line); }
  .is-3d.project.wide .shot, .is-3d.project.wide.reverse .shot { border-radius: var(--radius) var(--radius) 0 0; }
  /* camadas 3D mais rasas na tela pequena, para nada "sair" do card */
  .is-3d.panel .node { transform: translateZ(calc(18px * var(--depth, 0))); }
  .is-3d.panel .node-on { transform: translateZ(calc(30px * var(--depth, 0))); }
  .is-3d.panel .wire { transform: translateZ(calc(16px * var(--depth, 0))); }
  .is-3d.panel .log, .is-3d.panel .panel-head { --z: 12px; }
}
@media (max-width: 640px) {
  :root { --blur: 18px; }
  .glass { -webkit-backdrop-filter: blur(18px) saturate(140%); }
  .status { display: none; }
  .nav { padding-left: 12px; gap: 8px; }
  .nav-end { gap: 6px; }
  .nav-end > .btn:not(.btn-ghost) { display: none; }  /* no celular o botão de orçamento já está no topo da página */
  .seg-label { display: none; }
  .seg [data-lang] span { display: none; }  /* no celular, só as bandeirinhas */
  .seg button { min-height: 36px; padding: 0 8px; }
  .section { padding: 64px 0; }
  .section { scroll-margin-top: 32px; }  /* o menu fixo não cobre o início da seção ao navegar */
  .page-top { padding-top: 120px; min-height: 0; }
  .sec-head { margin-bottom: 32px; }
  h1 { font-size: clamp(38px, 11vw, 48px); }
  .cards, .projects, .promises { grid-template-columns: 1fr; }
  .wide .project-body { padding: 24px; }
  .facts { grid-template-columns: 1fr; }
  .intro { padding: 22px; }
  .intro-text p { font-size: 16px; }
  .split { padding: 22px; }
  .screen-tabs { justify-self: stretch; }
  .screen-tabs button { flex: 1; padding: 0 8px; }
  .screen figcaption { padding: 14px 16px 16px; font-size: 14px; }
  .actions .btn { width: 100%; }
  .cta-box .pill { font-size: 11px; }
  .foot { flex-direction: column; gap: 4px; }
  .iso { gap: 22px; height: 220px; margin-top: 56px; }
  .cube { --s: 36px; }
}

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

