:root{
  --ink:#e0e8e6;
  --panel:#ffffff;
  --panel-2:#eef3f3;
  --line: rgba(3,15,24,.12);
  --line-strong: rgba(3,15,24,.28);
  --steel:#2a3f52;
  --steel-dim:#4a6174;
  --paper:#0c1a22;
  --blue:#3a5d73;
  --blue-soft: rgba(58,93,115,.14);
  --silver-bright:#030f18;
  --radius: 10px;
  --radius-pill: 999px;
  --content-w: 1180px;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --brand-font: var(--display);
}

/* Secoes escuras (hero, final-cta, header e drawer mobile): os mesmos tokens viram o lado Depth/Harbor/Glacier */
.hero, .final-cta, header, .mobile-drawer{
  --ink:#030f18;
  --panel:#1d4052;
  --panel-2:rgba(29,64,82,.55);
  --line: rgba(224,232,230,.14);
  --line-strong: rgba(224,232,230,.3);
  --steel:#a9c2d1;
  --steel-dim:#6f8ea2;
  --paper:#e0e8e6;
  --blue:#72a3bf;
  --blue-soft: rgba(114,163,191,.2);
  --silver-bright:#f0f5f5;
  background:var(--ink);
  color:var(--paper);
}

/* Tema forcado pelo botao: escuro vira o padrao do site inteiro */
:root[data-theme="dark"]{
  --ink:#030f18;
  --panel:#1d4052;
  --panel-2:rgba(29,64,82,.55);
  --line: rgba(224,232,230,.14);
  --line-strong: rgba(224,232,230,.3);
  --steel:#a9c2d1;
  --steel-dim:#6f8ea2;
  --paper:#e0e8e6;
  --blue:#72a3bf;
  --blue-soft: rgba(114,163,191,.2);
  --silver-bright:#f0f5f5;
}
/* Tema forcado pelo botao: claro tira o escuro ate do hero e do final-cta */
:root[data-theme="light"] .hero, :root[data-theme="light"] .final-cta,
:root[data-theme="light"] header, :root[data-theme="light"] .mobile-drawer{
  --ink:#e0e8e6;
  --panel:#ffffff;
  --panel-2:#eef3f3;
  --line: rgba(3,15,24,.12);
  --line-strong: rgba(3,15,24,.28);
  --steel:#2a3f52;
  --steel-dim:#4a6174;
  --paper:#0c1a22;
  --blue:#3a5d73;
  --blue-soft: rgba(58,93,115,.14);
  --silver-bright:#030f18;
}
:root[data-theme="light"] header{ background:rgba(224,232,230,.85); }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

::selection{ background:var(--blue); color:var(--ink); }

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

h1,h2,h3{
  font-family:var(--display);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-0.01em;
  text-wrap:balance;
  margin:0;
}

p{ margin:0; }

.skip-link{
  position:absolute; left:1rem; top:-4rem;
  background:var(--blue); color:var(--ink);
  padding:.6rem 1rem; font-family:var(--mono); font-size:.85rem;
  z-index:200; transition:top .2s ease;
}
.skip-link:focus{ top:1rem; }

:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; }

.wrap{ max-width:var(--content-w); margin:0 auto; padding:0 1.5rem; perspective:1100px; }

[id]{ scroll-margin-top:96px; }

/* ---------- Ruler rail (desktop wayfinding) ---------- */
.ruler{
  position:fixed; left:0; top:0; bottom:0; width:56px;
  display:none;
  flex-direction:column; align-items:center; justify-content:center;
  gap:0; z-index:60; pointer-events:none;
}
@media (min-width: 1160px){ .ruler{ display:flex; } }
.ruler-track{ position:relative; height:70vh; width:1px; background:var(--line-strong); }
.ruler-tick{
  position:absolute; left:50%; transform:translate(-50%,-50%);
  width:9px; height:9px; border-radius:50%;
  background:var(--panel); border:1px solid var(--line-strong);
  pointer-events:auto;
}
.ruler-tick[data-active="true"]{ background:var(--blue); border-color:var(--blue); box-shadow:0 0 0 4px var(--blue-soft); }
.ruler-label{
  position:absolute; left:16px; transform:translateY(-50%);
  font-family:var(--mono); font-size:.62rem; letter-spacing:.08em;
  color:var(--steel-dim); white-space:nowrap; text-transform:uppercase;
  opacity:0; transition:opacity .2s ease; pointer-events:none;
}
.ruler-tick[data-active="true"] + .ruler-label{ opacity:1; color:var(--paper); }

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(3,15,24,0.85); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce){
  header{ background:var(--ink); backdrop-filter:none; }
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.brand{ display:flex; align-items:center; gap:.7rem; text-decoration:none; }
.brand img{ height:44px; width:auto; object-fit:contain; }
.brand-text{ font-family:var(--brand-font); font-weight:700; font-size:1.15rem; letter-spacing:.03em; }
.brand-text b{ color:var(--steel); font-weight:700; }
.brand-text span{ color:var(--blue); font-weight:700; }

.nav-links{ display:none; align-items:center; gap:2.1rem; }
@media (min-width:900px){ .nav-links{ display:flex; } }
.nav-links a{
  text-decoration:none; color:var(--steel); font-size:.92rem;
  font-family:var(--mono); letter-spacing:.02em; position:relative;
}
.nav-links a:hover{ color:var(--paper); }
.nav-links a[aria-current="true"]{ color:var(--blue); }

.btn{
  font-family:var(--mono); font-size:.85rem; letter-spacing:.02em;
  display:inline-flex; align-items:center; gap:.5rem; position:relative; overflow:hidden; isolation:isolate;
  padding:.8rem 1.4rem; text-decoration:none; border:1px solid transparent;
  border-radius:var(--radius-pill);
  transition:background .15s ease, border-color .15s ease;
  white-space:nowrap; will-change:transform;
}
.btn::after{
  content:''; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform:translateX(-130%); transition:transform .65s ease;
}
.btn:hover::after{ transform:translateX(130%); }
.btn-primary{ background:var(--silver-bright); color:var(--ink); font-weight:600; }
.btn-primary:hover{ background:var(--blue); color:var(--ink); }
.btn-ghost{ border-color:var(--line-strong); color:var(--paper); }
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue); }
.btn-small{ padding:.55rem .9rem; font-size:.78rem; }
.btn:hover{ transform:translateY(-2px); transition:background .15s ease, border-color .15s ease, transform .15s ease; }
.btn:active{ transform:scale(.97); transition:transform .1s ease-out; }
@media (prefers-reduced-motion: reduce){ .btn:hover{ transform:none; } }

.nav-cta{ display:none; }
@media (min-width:640px){ .nav-cta{ display:inline-flex; } }

.burger{
  display:flex; background:none; border:1px solid var(--line-strong); color:var(--paper);
  width:42px; height:42px; align-items:center; justify-content:center; cursor:pointer;
}
@media (min-width:900px){ .burger{ display:none; } }

.theme-toggle{
  display:flex; background:none; border:1px solid var(--line-strong); color:var(--paper);
  width:38px; height:38px; align-items:center; justify-content:center; cursor:pointer; flex:none;
}
.theme-toggle:hover{ border-color:var(--blue); color:var(--blue); }
.theme-toggle .icon-moon{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

.mobile-drawer{
  position:fixed; inset:0; background:var(--ink); z-index:150;
  display:flex; flex-direction:column; padding:1.5rem;
  transform:translateY(-100%); transition:transform .25s ease;
}
.mobile-drawer.open{ transform:translateY(0); }
.mobile-drawer .drawer-top{ display:flex; justify-content:space-between; align-items:center; }
.mobile-drawer nav{ display:flex; flex-direction:column; gap:1.6rem; margin-top:3rem; }
.mobile-drawer nav a{ font-family:var(--display); font-size:1.7rem; text-decoration:none; color:var(--paper); }

/* ---------- Sheet section wrapper ---------- */
.sheet{ position:relative; padding:5.5rem 0; border-bottom:1px solid var(--line); }
.sheet-id{
  font-family:var(--mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--steel-dim); display:flex; align-items:center; gap:.6rem; margin-bottom:2.2rem;
}
.sheet-id::before{ content:""; width:24px; height:1px; background:var(--steel-dim); }

.eyebrow{
  font-family:var(--mono); font-size:.78rem; letter-spacing:.04em;
  color:var(--blue); margin-bottom:1.1rem; display:block;
}

/* ---------- Hero ---------- */
.hero{ padding:6.5rem 0 5rem; border-bottom:1px solid var(--line); position:relative; }
.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1fr; gap:3rem; align-items:center; }
@media (min-width:980px){ .hero-grid{ grid-template-columns:1.1fr .9fr; gap:2rem; } }
.hero .eyebrow{
  display:inline-flex; align-items:center; gap:.5rem; margin-bottom:1.3rem; padding:.5rem .9rem;
  border:1px solid var(--line-strong); border-radius:var(--radius-pill);
  background:linear-gradient(135deg, var(--blue-soft), transparent 70%);
  font-size:.8rem; color:var(--steel);
}
.headline-mask{ overflow:hidden; padding:.08em 0; }
.hero h1{ font-size:clamp(2.3rem, 5.4vw, 3.7rem); letter-spacing:-0.02em; margin-bottom:1.4rem; }
.hero h1 em{ font-family:'Instrument Serif', Georgia, serif; font-style:italic; font-weight:400; color:var(--blue); letter-spacing:-0.01em; }
.hero-sub{ color:var(--steel); font-size:1.12rem; max-width:52ch; margin-bottom:2.1rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin-bottom:2.6rem; }
.stat-strip{ padding:2.4rem 0; border-bottom:1px solid var(--line); }
.stat-band{ display:flex; flex-wrap:wrap; gap:2.6rem; }
.stat-icon{ color:var(--blue); margin-bottom:.5rem; display:block; }
.stat-top{ display:flex; align-items:baseline; }
.stat-num{ font-family:var(--display); font-size:2.2rem; font-weight:700; color:var(--paper); font-variant-numeric:tabular-nums; }
.stat-suffix{ font-family:var(--display); font-size:1.3rem; font-weight:700; color:var(--blue); margin-left:.1rem; }
.stat-label{ display:block; font-family:var(--mono); font-size:.7rem; color:var(--steel-dim); margin-top:.35rem; max-width:15ch; line-height:1.4; }

/* ---- Entrada do hero: opacity de repouso sempre 1, nunca trava invisivel ---- */
.appear{ opacity:1; animation-duration:.9s; animation-fill-mode:both; animation-timing-function:cubic-bezier(.16,1,.3,1); animation-delay:var(--d,.08s); }
.appear--pop{ animation-name:heroPop; }
.appear--mask{ animation-name:heroMask; }
.appear--soft{ animation-name:heroSoft; animation-duration:1.1s; }
@keyframes heroPop{ 0%{ opacity:0; transform:scale(.92); } 100%{ opacity:1; transform:none; } }
@keyframes heroMask{ 0%{ opacity:0; transform:translateY(40%); } 100%{ opacity:1; transform:none; } }
@keyframes heroSoft{ 0%{ opacity:0; transform:translateY(14px); } 100%{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .appear{ animation:none; opacity:1; transform:none; } }

/* ---------- Marquee ticker ---------- */
.marquee{
  overflow:hidden; border-bottom:1px solid var(--line); background:var(--panel); padding:.9rem 1.5rem;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track{ display:flex; gap:2rem; width:max-content; animation:marqueeScroll 24s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation:none; } }
.marquee-track span{ font-family:var(--mono); font-size:.76rem; letter-spacing:.07em; text-transform:uppercase; color:var(--steel); white-space:nowrap; }
.marquee-track span.sep{ color:var(--blue); }
@keyframes marqueeScroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* hero photo */
.hero-photo{ position:relative; width:100%; max-width:340px; aspect-ratio:3/4; margin:0 auto 1.8rem; }
.hero-photo-frame{
  position:relative; width:100%; height:100%; border-radius:22px; overflow:hidden;
  box-shadow:0 40px 70px -24px rgba(3,15,24,.55); border:1px solid var(--line-strong);
}
.hero-photo-frame::before{
  content:''; position:absolute; inset:0; z-index:1; border-radius:inherit;
  background:linear-gradient(180deg, transparent 55%, rgba(3,15,24,.55) 100%);
  pointer-events:none;
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 30%; display:block; }
@media (min-width:980px){ .hero-photo{ max-width:420px; margin:0 0 0 auto; } }

.proof-card{
  position:absolute; left:-14px; bottom:-1.6rem; z-index:2; width:min(78%,230px); opacity:1;
  background:var(--panel); border:1px solid var(--line-strong); border-radius:16px;
  padding:.9rem 1rem; box-shadow:0 24px 48px -20px rgba(3,15,24,.5);
  animation-name:heroPop, floatCard; animation-duration:.9s, 4.5s; animation-fill-mode:both, none;
  animation-timing-function:cubic-bezier(.16,1,.3,1), ease-in-out;
  animation-iteration-count:1, infinite; animation-direction:normal, alternate;
  animation-delay:var(--d,.08s), calc(var(--d,.08s) + .9s);
}
.proof-spark{ width:100%; height:22px; display:block; margin-bottom:.5rem; }
.proof-spark path{ stroke-dasharray:220; stroke-dashoffset:220; animation:drawSpark 1.3s ease-out .9s both; }
.proof-num{ display:flex; align-items:baseline; gap:.2rem; font-family:var(--display); font-weight:700; color:var(--paper); font-size:1.5rem; line-height:1; }
.proof-suffix{ font-size:1rem; color:var(--blue); }
.proof-label{ display:block; font-family:var(--mono); font-size:.7rem; color:var(--steel-dim); margin-top:.35rem; line-height:1.4; }
@keyframes floatCard{ 0%{ transform:translateY(0); } 100%{ transform:translateY(-8px); } }
@keyframes drawSpark{ to{ stroke-dashoffset:0; } }
@media (prefers-reduced-motion: reduce){ .proof-card{ animation:none; } .proof-spark path{ animation:none; stroke-dashoffset:0; } }

/* ---------- Card w/ corner brackets (shared by Diferenciais, Servicos, Projetos) ---------- */
.bracket{
  position:relative; border:1px solid var(--line); background:var(--panel); padding:2rem;
  transform-style:preserve-3d; will-change:transform; transition:border-color .2s ease, box-shadow .2s ease;
}
.bracket::before,.bracket::after{
  content:""; position:absolute; width:14px; height:14px; border:2px solid var(--blue);
  opacity:.85;
}
.bracket::before{ top:-1px; left:-1px; border-right:none; border-bottom:none; z-index:2; }
.bracket::after{ bottom:-1px; right:-1px; border-left:none; border-top:none; z-index:2; }
.bracket:hover{ border-color:var(--blue); box-shadow:0 20px 40px -24px rgba(3,15,24,.18); transform:scale(1.015); }

/* ---------- Diferenciais ---------- */
.diff-grid{ display:grid; grid-template-columns:1fr; gap:1.4rem; perspective:1100px; }
@media (min-width:720px){ .diff-grid{ grid-template-columns:1fr 1fr; } }
.diff-num{ font-family:var(--mono); font-size:.75rem; color:var(--steel-dim); display:block; margin-bottom:1rem; }
.diff-item h3{ font-size:1.28rem; margin-bottom:.7rem; }
.diff-item p{ color:var(--steel); font-size:1.02rem; line-height:1.6; }

/* ---------- Services ---------- */
.services-grid{ display:grid; grid-template-columns:1fr; gap:1.4rem; perspective:1100px; }
@media (min-width:860px){
  .services-grid{ grid-template-columns:repeat(3,1fr); }
  .services-grid > :first-child{ grid-column:1 / -1; }
  .services-grid > :first-child .service-list{ display:grid; grid-template-columns:1fr 1fr; gap:.55rem 2rem; }
}
.service-card h3{ font-size:1.25rem; margin:0 0 .8rem; }
.service-card p.desc{ color:var(--steel); font-size:1.02rem; line-height:1.6; margin-bottom:1.2rem; }
.service-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.55rem; }
.service-list li{ font-size:.94rem; color:var(--steel); display:flex; gap:.6rem; }
.service-list li::before{ content:"·"; color:var(--steel-dim); flex:none; }

/* ---------- Produto NFC (card especial) ---------- */
.nfc-video-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:.8rem; margin:1.2rem 0; }
@media (min-width:640px){ .nfc-video-grid{ grid-template-columns:repeat(4,1fr); } }

/* ---------- Depoimentos ---------- */
.quote-grid{ display:grid; grid-template-columns:1fr; gap:1.2rem; margin:2rem 0 3rem; }
@media (min-width:860px){ .quote-grid{ grid-template-columns:repeat(3,1fr); } }
.quote-card{ display:flex; flex-direction:column; gap:1rem; }
.quote-text{ font-family:var(--display); font-size:1.08rem; line-height:1.45; color:var(--paper); }
.quote-text::before{ content:"\201C"; }
.quote-text::after{ content:"\201D"; }
.quote-author{ font-family:var(--mono); font-size:.8rem; color:var(--blue); margin-top:auto; }
.quote-author span{ color:var(--steel-dim); font-weight:400; }

.reviews-head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.8rem; margin-bottom:1.4rem; }
.reviews-head h3{ font-family:var(--display); font-size:1.3rem; font-weight:700; }
.reviews-score{ font-family:var(--mono); font-size:.9rem; color:#e3a008; white-space:nowrap; }
.reviews-score b{ color:var(--paper); font-size:1rem; }

.reviews-grid{ columns:1; column-gap:1rem; margin-bottom:2rem; }
@media (min-width:640px){ .reviews-grid{ columns:2; } }
@media (min-width:1020px){ .reviews-grid{ columns:3; } }
.review-card{
  display:flex; gap:.8rem; align-items:flex-start; background:var(--panel);
  border:1px solid var(--line); border-radius:var(--radius); padding:1.2rem;
  break-inside:avoid; margin-bottom:1rem;
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.review-card:hover{
  transform:scale(1.03); border-color:var(--blue); box-shadow:0 20px 40px -24px rgba(3,15,24,.25);
}
.review-avatar{
  flex:none; width:34px; height:34px; border-radius:50%; background:var(--blue); color:#f7fafa;
  display:flex; align-items:center; justify-content:center; font-family:var(--display); font-weight:700; font-size:.95rem;
}
.review-name{ display:block; font-weight:600; font-size:.92rem; margin-bottom:.3rem; }
.review-card p{ font-size:.92rem; color:var(--steel); line-height:1.5; }

.google-review-btn{ margin-top:.5rem; }

/* ---------- Lightbox das imagens de projeto ---------- */
.case-media img{ cursor:zoom-in; }
.lightbox{
  position:fixed; inset:0; z-index:300; background:rgba(3,15,24,.92);
  display:none; align-items:center; justify-content:center;
}
.lightbox.open{ display:flex; }
.lightbox-stage{ max-width:90vw; max-height:85vh; overflow:auto; display:flex; align-items:center; justify-content:center; }
.lightbox-stage img{
  max-width:90vw; max-height:85vh; width:auto; height:auto; object-fit:contain;
  cursor:zoom-in; transition:transform .2s ease; border-radius:var(--radius);
}
.lightbox-stage.zoomed{ display:block; cursor:grab; }
.lightbox-stage.zoomed img{ max-width:none; max-height:none; width:170%; cursor:zoom-out; }
@media (prefers-reduced-motion: reduce){ .lightbox-stage img{ transition:none; } }
.lightbox-close, .lightbox-nav{
  position:absolute; background:none; border:1px solid rgba(224,232,230,.3); color:#e0e8e6;
  width:44px; height:44px; border-radius:var(--radius-pill); cursor:pointer; font-size:1.3rem;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-close:hover, .lightbox-nav:hover{ border-color:#72a3bf; color:#72a3bf; }
.lightbox-close{ top:1.2rem; right:1.2rem; }
.lightbox-prev{ left:1.2rem; top:50%; transform:translateY(-50%); }
.lightbox-next{ right:1.2rem; top:50%; transform:translateY(-50%); }
.lightbox-hint{ position:absolute; bottom:1.2rem; left:50%; transform:translateX(-50%); font-family:var(--mono); font-size:.75rem; color:#6f8ea2; }
@media (max-width:640px){ .lightbox-hint{ display:none; } }
.nfc-video{ width:100%; aspect-ratio:9/16; object-fit:cover; background:var(--panel-2); border:1px solid var(--line); border-radius:var(--radius); }

/* ---------- Process (real ruler ticks) ---------- */
.process-rail{ position:relative; padding-left:2.2rem; border-left:1px solid var(--line-strong); display:flex; flex-direction:column; gap:2.6rem; }
.process-step{ position:relative; }
.process-step::before{
  content:attr(data-step); position:absolute; left:-2.55rem; top:0;
  width:20px; height:20px; display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:.68rem; color:var(--ink); background:var(--steel);
  border-radius:50%;
}
.process-step h3{ font-size:1.15rem; margin-bottom:.5rem; }
.process-step p{ color:var(--steel); font-size:1.02rem; line-height:1.6; max-width:60ch; }

/* ---------- Portfolio ---------- */
.case-grid{ display:grid; grid-template-columns:1fr; gap:1.6rem; counter-reset:case; perspective:1300px; }
@media (min-width:720px){ .case-grid{ grid-template-columns:repeat(2,1fr); } }
.case-card{ display:flex; flex-direction:column; counter-increment:case; }
.case-num{
  position:absolute; top:.9rem; right:1.1rem; z-index:1; pointer-events:none;
  font-family:var(--mono); font-size:1.5rem; font-weight:600; color:transparent;
  -webkit-text-stroke:1px var(--line-strong); letter-spacing:.02em;
}
.case-num::before{ content:counter(case, decimal-leading-zero); }
.case-card:hover .case-num{ -webkit-text-stroke-color:var(--blue); }
.case-tag{
  align-self:flex-start; font-family:var(--mono); font-size:.75rem; letter-spacing:.05em; text-transform:uppercase;
  color:var(--steel); border:1px solid var(--line-strong); padding:.3rem .6rem; margin-bottom:1.1rem;
}
.case-featured{ border-color:var(--blue); box-shadow:0 20px 40px -24px rgba(3,15,24,.18); }
.case-chat{ display:flex; flex-direction:column; gap:.5rem; margin-bottom:1.1rem; }
.case-chat-label{ font-family:var(--mono); font-size:.68rem; color:var(--steel-dim); letter-spacing:.03em; margin-bottom:.2rem; }
.chat-bubble{ max-width:82%; padding:.6rem .9rem; border-radius:14px; font-size:.88rem; line-height:1.4; }
.chat-bubble.in{ align-self:flex-start; background:var(--panel-2); color:var(--steel); border-bottom-left-radius:4px; }
.chat-bubble.out{ align-self:flex-end; background:var(--blue); color:var(--ink); border-bottom-right-radius:4px; }
.case-media{
  position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--panel-2);
  margin:-2rem -2rem 1.3rem; border-bottom:1px solid var(--line);
}
.case-media img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center;
  opacity:0; transition:opacity 1.1s ease;
}
.case-media img.is-active{ opacity:1; }
.case-media-tall{ aspect-ratio:3/4; }
.case-tag-featured{ color:var(--ink); background:var(--blue); border-color:var(--blue); }
.case-card h3{ font-size:1.2rem; margin-bottom:.6rem; }
.case-loc{ font-family:var(--mono); font-size:.75rem; color:var(--steel-dim); margin-bottom:.9rem; display:block; }
.case-card p.desc{ color:var(--steel); font-size:.98rem; line-height:1.55; margin-bottom:1rem; flex:1; }
.case-stat{ font-family:var(--mono); font-size:.78rem; color:var(--blue); margin-bottom:1.1rem; }
.case-tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1.3rem; }
.case-tags span{ font-family:var(--mono); font-size:.75rem; color:var(--steel); border:1px solid var(--line); padding:.25rem .55rem; }
.case-links{ display:flex; gap:1.2rem; margin-top:auto; }
.case-links a{ font-family:var(--mono); font-size:.8rem; color:var(--paper); text-decoration:none; border-bottom:1px solid var(--line-strong); padding-bottom:2px; }
.case-links a:hover{ color:var(--blue); border-color:var(--blue); }

/* ---------- About ---------- */
.about-grid{ display:grid; grid-template-columns:1fr; gap:2.6rem; }
@media (min-width:900px){ .about-grid{ grid-template-columns:1.3fr .7fr; } }
.about-text p{ color:var(--steel); font-size:1.06rem; line-height:1.7; margin-bottom:1.5rem; max-width:62ch; }
.about-text strong{ color:var(--paper); }
.about-side{ display:flex; flex-direction:column; gap:1.6rem; }
.about-photo{ padding:0; background:none; border:none; box-shadow:0 24px 48px -20px rgba(3,15,24,.22); border-radius:18px; }
.about-photo::before{ top:-10px; left:-10px; width:22px; height:22px; }
.about-photo::after{ bottom:-10px; right:-10px; width:22px; height:22px; }
.about-photo img{ width:100%; aspect-ratio:4/5; object-fit:cover; object-position:top center; border-radius:18px; display:block; }

.about-text p:first-of-type{ font-size:1.3rem; font-family:var(--display); font-weight:500; color:var(--paper); line-height:1.4; }
.credentials{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:1.1rem; border-left:1px solid var(--line-strong); padding-left:1.3rem; }
.credentials li{ font-size:.9rem; }
.credentials b{ display:block; color:var(--paper); font-size:.95rem; }
.credentials span{ font-family:var(--mono); font-size:.75rem; color:var(--steel-dim); }

/* ---------- FAQ ---------- */
.faq-title{ font-size:clamp(1.4rem,2.4vw,1.8rem); font-weight:600; }
.faq-list{ display:flex; flex-direction:column; gap:.7rem; max-width:780px; }
.faq-item{
  border:1px solid var(--line-strong); border-radius:var(--radius-pill); background:var(--panel);
  padding:0 1.5rem; transition:border-color .2s ease;
}
.faq-item:hover{ border-color:var(--blue); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; color:var(--paper);
  font-family:var(--display); font-size:.98rem; font-weight:600; padding:1.15rem 0; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
}
.faq-q .plus{ font-family:var(--mono); color:var(--blue); flex:none; transition:transform .2s ease; font-size:.85em; }
.faq-item[data-open="true"] .plus{ transform:rotate(180deg); }
.faq-a{ display:none; }
.faq-item[data-open="true"] .faq-a{ display:block; }
.faq-a p{ color:var(--steel); font-size:.92rem; padding-bottom:1.3rem; }

/* ---------- Final CTA ---------- */
.final-cta{ position:relative; overflow:hidden; text-align:left; padding:6rem 0; }
.final-cta .wrap{ position:relative; z-index:1; }
.final-cta h2{ font-size:clamp(1.9rem,4.2vw,2.8rem); max-width:20ch; margin-bottom:1.6rem; }
.final-cta-row{ display:flex; flex-wrap:wrap; align-items:center; gap:1.4rem; }
.final-cta-note{ font-family:var(--mono); font-size:.8rem; color:var(--steel-dim); }

/* ---------- Footer ---------- */
footer{ padding:3.5rem 0 2.5rem; }
.footer-grid{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:2.5rem; margin-bottom:2.5rem; }
.footer-brand{ display:flex; flex-direction:column; }
.footer-brand .brand{ align-items:center; }
.footer-brand img{ height:84px; width:auto; object-fit:contain; }
.footer-brand .brand-text{ font-size:1.4rem; }
.footer-brand p{ color:var(--steel-dim); font-size:.85rem; max-width:32ch; margin-top:1rem; }
.footer-cols{ display:flex; gap:3.2rem; flex-wrap:wrap; }
.footer-col{ display:flex; flex-direction:column; gap:.7rem; }
.footer-col span.h{ font-family:var(--mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--steel-dim); margin-bottom:.3rem; }
.footer-col a{ text-decoration:none; color:var(--steel); font-size:.88rem; }
.footer-col a:hover{ color:var(--blue); }
.footer-contact{ display:flex; align-items:center; gap:.6rem; }
.footer-contact img{ width:20px; height:20px; border-radius:50%; object-fit:cover; flex:none; background:#fff; }
.footer-bottom{ border-top:1px solid var(--line); padding-top:1.6rem; display:flex; flex-wrap:wrap; justify-content:space-between; gap:.8rem; font-family:var(--mono); font-size:.72rem; color:var(--steel-dim); }

.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease; }
.reveal[data-reveal="left"]{ transform:translateX(-36px); }
.reveal[data-reveal="right"]{ transform:translateX(36px); }
.reveal[data-reveal="fade"]{ transform:none; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

h2.section-title{ font-size:clamp(1.7rem,3.4vw,2.4rem); max-width:20ch; margin-bottom:1rem; }
.section-sub{ color:var(--steel); max-width:56ch; margin-bottom:2.8rem; font-size:1rem; }

/* ---------- Tema futurista (cores da marca) ---------- */
:root, .hero, .final-cta, header, .mobile-drawer{
  --ink:#030f18; --panel:#0a1d2b; --panel-2:rgba(29,64,82,.55);
  --line:rgba(114,163,191,.16); --line-strong:rgba(114,163,191,.34);
  --steel:#a9c2d1; --steel-dim:#6f8ea2; --paper:#e0e8e6;
  --blue:#72a3bf; --blue-soft:rgba(114,163,191,.2); --silver-bright:#f0f5f5;
  --radius:4px; --radius-pill:4px;
  --display:"Oxanium","Segoe UI",sans-serif;
}
:root[data-theme="light"], :root[data-theme="light"] :is(.hero,.final-cta,header,.mobile-drawer){
  --ink:#e0e8e6; --panel:#ffffff; --panel-2:#eef3f3;
  --line:rgba(3,15,24,.12); --line-strong:rgba(3,15,24,.28);
  --steel:#2a3f52; --steel-dim:#4a6174; --paper:#0c1a22;
  --blue:#3a5d73; --blue-soft:rgba(58,93,115,.14); --silver-bright:#030f18;
}
header, :root[data-theme="light"] header{ background:color-mix(in srgb, var(--ink) 85%, transparent); }
body{
  background-image:linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:56px 56px;
}
.hero{ background:radial-gradient(60% 70% at 80% 20%, rgba(58,93,115,.28), transparent 70%), var(--ink); overflow:hidden; }
.hero-rain{ position:absolute; inset:0; width:100%; height:100%; opacity:.28; pointer-events:none; }
:root[data-theme="light"] .hero-rain{ display:none; }
.hero h1 em{ font-family:var(--display); font-style:normal; font-weight:700; text-shadow:0 0 24px var(--blue-soft), 0 0 8px var(--blue-soft); }
h2.section-title::before{ content:"// "; font-family:var(--mono); color:var(--blue); font-size:.7em; }
.btn-primary{ background:linear-gradient(100deg, #72a3bf, #c5dbe6); color:#030f18; box-shadow:0 0 22px rgba(114,163,191,.28); }
.btn-primary:hover{ background:linear-gradient(100deg, #c5dbe6, #72a3bf); color:#030f18; }
.hero-photo-frame, .about-photo img{ border-radius:var(--radius); box-shadow:0 0 0 1px var(--blue), 0 0 40px rgba(58,93,115,.35); }
.bracket:hover, .review-card:hover{ box-shadow:0 0 28px var(--blue-soft); }

/* Sobre em janela de terminal */
#sobre .about-text{ background:var(--panel); border:1px solid var(--line-strong); border-radius:8px; padding:0 1.6rem 1rem; font-family:var(--mono); align-self:start; }
#sobre .about-text::before{
  content:"● ● ●   lucas@labs: ~/sobre"; display:block; margin:0 -1.6rem 1.6rem; padding:.7rem 1rem;
  border-bottom:1px solid var(--line-strong); color:var(--steel-dim); font-size:.75rem; white-space:pre;
}
#sobre .about-text p, #sobre .about-text p:first-of-type{ font-family:var(--mono); font-size:.95rem; }
#sobre .about-text::after{ content:"$ █"; color:var(--blue); animation:blink 1.1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){ #sobre .about-text::after{ animation:none; } }

/* ---------- Efeitos intensos (todos desligados com reduced motion) ---------- */
.fx-net{ position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; }
.hero{ background:radial-gradient(60% 70% at 80% 20%, rgba(58,93,115,.38), transparent 70%), radial-gradient(45% 55% at 10% 90%, rgba(114,163,191,.16), transparent 70%), transparent; }
.sheet, .stat-strip{ background:transparent; }
.hero-rain{ opacity:.45; }
@media (prefers-reduced-motion: no-preference){
  /* varredura CRT */
  body::after{ content:""; position:fixed; inset:0; z-index:90; pointer-events:none; background:repeating-linear-gradient(0deg, transparent 0 3px, rgba(114,163,191,.045) 3px 4px); }
  /* brilho que segue o mouse */
  body::before{ content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(420px at var(--mx,50%) var(--my,30%), rgba(114,163,191,.14), transparent 70%); }
  /* glitch no titulo do hero */
  .hero h1{ animation:glitch 4s steps(1) infinite; }
  @keyframes glitch{
    0%,91%,100%{ text-shadow:0 0 18px rgba(114,163,191,.45); transform:none; }
    92%{ text-shadow:-5px 0 #3a5d73, 5px 0 #a9d8f0; transform:translateX(3px) skewX(-4deg); }
    94%{ text-shadow:4px 0 #3a5d73, -4px 0 #a9d8f0; transform:translateX(-3px); }
    96%{ text-shadow:-2px 0 #72a3bf, 2px 0 #3a5d73; transform:skewX(3deg); }
  }
  /* borda de energia girando na foto */
  .hero-photo::before{ content:""; position:absolute; inset:-3px; z-index:-1; border-radius:6px; background:conic-gradient(from var(--spin), #72a3bf, #3a5d73, transparent 40%, #3a5d73, #72a3bf); animation:spin 4s linear infinite; filter:drop-shadow(0 0 18px #3a5d73); }
  /* feixe passando nos titulos */
  h2.section-title.in{ text-shadow:0 0 22px rgba(114,163,191,.55); }
  .btn-primary{ animation:pulse 2.2s ease-in-out infinite; }
  @keyframes pulse{ 50%{ box-shadow:0 0 38px rgba(114,163,191,.65); } }
}
@property --spin{ syntax:"<angle>"; inherits:false; initial-value:0deg; }
@keyframes spin{ to{ --spin:360deg; } }

/* cards .reveal deslocados no eixo X nao podem criar scroll lateral */
html, body{ overflow-x:clip; }

/* ---------- Degrade eletrico (azul do brilho do logo ate violeta) ---------- */
:root{ --grad:linear-gradient(100deg, #c5dbe6, #2f8cff 50%, #7b5cff); }
.hero h1 em, .stat-num, .brand-text span{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:none; }
.hero h1 em{ filter:drop-shadow(0 0 14px rgba(47,140,255,.6)); }
.btn-primary, .btn-primary:hover{ background:var(--grad); color:#030f18; font-weight:700; }
.hero{ background:radial-gradient(60% 70% at 80% 20%, rgba(47,140,255,.34), transparent 70%), radial-gradient(45% 55% at 10% 90%, rgba(123,92,255,.28), transparent 70%), transparent; }
:root[data-theme="light"] :is(.hero h1 em, .stat-num, .brand-text span){ background:linear-gradient(100deg, #1d4052, #1560c0, #5233c9); -webkit-background-clip:text; background-clip:text; filter:none; }

/* ---------- Cards em holograma ---------- */
.bracket:not(.about-photo), .review-card{
  border:1px solid transparent;
  background:
    radial-gradient(260px at var(--hx,50%) var(--hy,-40%), rgba(47,140,255,.28), transparent 70%) padding-box,
    linear-gradient(160deg, rgba(29,64,82,.55), rgba(3,15,24,.9)) padding-box,
    linear-gradient(var(--spin), rgba(197,219,230,.55), rgba(47,140,255,.9), rgba(123,92,255,.8), rgba(114,163,191,.15), rgba(197,219,230,.55)) border-box;
}
:root[data-theme="light"] :is(.bracket:not(.about-photo), .review-card){ background:linear-gradient(var(--panel),var(--panel)) padding-box, var(--grad) border-box; }
.bracket:not(.about-photo):hover, .review-card:hover{ border-color:transparent; box-shadow:0 0 34px rgba(47,140,255,.45), 0 0 80px rgba(123,92,255,.25), inset 0 0 30px rgba(47,140,255,.14); }
@media (prefers-reduced-motion: no-preference){
  /* borda gira so no hover: girar todos os cards o tempo todo repinta a pagina inteira */
  /* linhas de holograma + feixe so no card sob o mouse */
  .bracket:not(.about-photo):hover{ background-image:
    linear-gradient(180deg, transparent 45%, rgba(169,216,240,.16) 50%, transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(114,163,191,.09) 3px 4px),
    radial-gradient(260px at var(--hx,50%) var(--hy,50%), rgba(47,140,255,.34), transparent 70%),
    linear-gradient(160deg, rgba(29,64,82,.7), rgba(3,15,24,.92)),
    linear-gradient(var(--spin), #c5dbe6, #2f8cff, #7b5cff, #2f8cff, #c5dbe6);
    background-origin:padding-box, padding-box, padding-box, padding-box, border-box;
    background-clip:padding-box, padding-box, padding-box, padding-box, border-box;
    background-size:100% 300%, auto, auto, auto, auto;
    animation:spin 2s linear infinite, beam 2.2s linear infinite; }
  @keyframes beam{ from{ background-position:0 100%, 0 0, 0 0, 0 0, 0 0; } to{ background-position:0 0, 0 0, 0 0, 0 0, 0 0; } }
}

/* ---------- Tela de boot ---------- */
.boot{ position:fixed; inset:0; z-index:500; background:#030f18; color:#a9d8f0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.4rem; font-family:var(--mono); font-size:.85rem; cursor:pointer; transition:opacity .45s ease, clip-path .45s ease; clip-path:inset(0); }
.boot img{ height:96px; filter:drop-shadow(0 0 24px #2f8cff); }
.boot pre{ margin:0; min-height:7.5em; width:min(88vw,34ch); font:inherit; line-height:1.5; white-space:pre-wrap; }
.boot-bar{ width:min(88vw,34ch); height:3px; background:rgba(114,163,191,.2); }
.boot-bar i{ display:block; height:100%; width:0; background:var(--grad); box-shadow:0 0 14px #2f8cff; transition:width .3s ease; }
.boot.done{ opacity:0; clip-path:inset(50% 0); pointer-events:none; }

/* ---------- HUD ---------- */
.scroll-bar{ position:fixed; top:0; left:0; right:0; height:3px; z-index:320; background:var(--grad); transform-origin:left; transform:scaleX(0); box-shadow:0 0 12px #2f8cff; }
.hud{ position:fixed; left:-18px; top:-18px; width:36px; height:36px; z-index:400; pointer-events:none; border:1px solid #2f8cff; border-radius:50%; border-left-color:transparent; border-right-color:transparent; box-shadow:0 0 14px rgba(47,140,255,.6); transition:scale .2s ease, border-radius .2s ease, rotate .3s ease; }
.hud.lock{ scale:1.5; rotate:45deg; border-radius:4px; border-color:#7b5cff; }

/* ---------- Logo 3D: camadas do proprio PNG empilhadas em profundidade (sem WebGL) ---------- */
.logo3d{ position:absolute; z-index:3; top:-56px; right:-28px; width:150px; aspect-ratio:487/565; perspective:700px; pointer-events:none; filter:drop-shadow(0 0 26px rgba(47,140,255,.75)); }
.logo3d div{ position:absolute; inset:0; transform-style:preserve-3d; transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,-24deg)); }
.logo3d img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; transform:translateZ(var(--z)); }
.logo3d img:not(:last-child){ filter:brightness(.45) sepia(1) hue-rotate(175deg) saturate(2.2); }
@media (max-width:640px){ .logo3d{ width:96px; top:-36px; right:-8px; } }

/* logo 3D como assinatura no fechamento, ao lado da chamada final */
.logo3d{ position:relative; display:block; top:auto; right:auto; width:120px; margin:3rem auto 0; }
@media (min-width:900px){ .logo3d{ position:absolute; top:50%; right:6%; width:230px; margin:0; translate:0 -50%; } }

/* logo interativo: aneis em orbita, onda e faiscas no clique */
.logo3d{ pointer-events:auto; background:none; border:0; padding:0; cursor:grab; touch-action:pan-y; user-select:none; }
.logo3d:active{ cursor:grabbing; }
.logo3d .orbit{ position:absolute; left:50%; top:50%; width:150%; aspect-ratio:1; margin:-75% 0 0 -75%; border:1px solid rgba(47,140,255,.55); border-top-color:#c5dbe6; border-radius:50%; pointer-events:none; transform:rotateX(72deg); }
.logo3d .orbit-b{ width:176%; margin:-88% 0 0 -88%; border-color:rgba(123,92,255,.45); border-bottom-color:#7b5cff; transform:rotateX(66deg) rotateY(24deg); }
.logo3d s, .logo3d .wave{ position:absolute; left:50%; top:50%; pointer-events:none; }
.logo3d s{ width:5px; height:5px; border-radius:50%; background:#c5dbe6; box-shadow:0 0 10px 2px #2f8cff; text-decoration:none; animation:spark .8s ease-out forwards; }
.logo3d .wave{ width:100px; height:100px; margin:-50px; border:2px solid #2f8cff; border-radius:50%; animation:wave .8s ease-out forwards; }
@keyframes spark{ to{ transform:translate(var(--dx), var(--dy)) scale(0); } }
@keyframes wave{ to{ transform:scale(3.6); opacity:0; } }
.typed{ font-family:var(--mono); color:#8fc2ff; margin:0 0 1rem; min-height:1.6em; }
.typed::before{ content:">>> "; color:#7b5cff; }
.typed::after{ content:"_"; animation:blink 1.1s steps(1) infinite; }
.float-tag{ position:absolute; z-index:4; font-family:var(--mono); font-size:.72rem; padding:.35rem .7rem; color:#e0e8e6; background:rgba(3,15,24,.82); border:1px solid #2f8cff; box-shadow:0 0 16px rgba(47,140,255,.45); }
.float-tag-0{ top:8%; left:-8%; } .float-tag-1{ top:34%; right:-7%; } .float-tag-2{ bottom:10%; right:-5%; }
@media (prefers-reduced-motion: no-preference){
  .float-tag{ animation:floatCard 3.6s ease-in-out infinite alternate; } .float-tag-1{ animation-delay:.8s; } .float-tag-2{ animation-delay:1.6s; }
  .logo3d .orbit{ animation:orbit 7s linear infinite; } .logo3d .orbit-b{ animation:orbit-b 11s linear infinite reverse; }
}
@keyframes orbit{ from{ transform:rotateX(72deg) rotateZ(0); } to{ transform:rotateX(72deg) rotateZ(360deg); } }
@keyframes orbit-b{ from{ transform:rotateX(66deg) rotateY(24deg) rotateZ(0); } to{ transform:rotateX(66deg) rotateY(24deg) rotateZ(360deg); } }

/* card de resultado: diz de quem e o numero e leva ao depoimento */
.proof-card{ display:block; width:min(88%,270px); text-decoration:none; color:var(--paper); background:rgba(3,15,24,.92); border-color:#2f8cff; border-radius:var(--radius); box-shadow:0 0 28px rgba(47,140,255,.35); }
:root[data-theme="light"] .proof-card{ background:var(--panel); }
.proof-card span{ display:block; font-family:var(--mono); }
.proof-card .proof-kicker{ font-size:.66rem; letter-spacing:.06em; text-transform:uppercase; color:var(--blue); margin-bottom:.45rem; }
.proof-card .proof-num{ font-family:var(--display); white-space:nowrap; }
.proof-num i{ font-style:normal; color:#2f8cff; }
.proof-card .proof-label{ color:var(--steel); }
.proof-card .proof-more{ font-size:.68rem; margin-top:.55rem; color:var(--blue); text-decoration:underline; }

/* celular: etiquetas saem da tela e cobrem a foto; card de resultado fica abaixo dela */
@media (max-width:640px){
  .float-tag{ display:none; }
  .hero-photo{ aspect-ratio:auto; height:auto; }
  .hero-photo-frame{ height:auto; aspect-ratio:3/4; }
  .hero-photo .proof-card{ position:static; width:100%; margin-top:1rem; animation:none; }
}

@media (max-width:640px){ .hero-photo::before{ display:none; } }
