:root {
  --bg: #0B0E10;
  --surface: #12171B;
  --text: #F5F6F7;
  --muted: #B6BDC5;
  --brand: #0088FF;
  --btn-blue: #0A6CFF;
  --btn-blue-hover: #2F82FF;
  --border: #2B343C;
  --focus: #9DD5FF;
  --res-bg: #071B12;
  --res-accent: #91F27D;
  --on-res: #092311;
  --container: 1290px;
  --gutter: 22px;
  --sec: 64px;
  --font: Inter, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 40px; --sec: 88px; } }
@media (min-width: 1100px) { :root { --gutter: clamp(48px, 5.2vw, 76px); --sec: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Marca (texto, como no site atual) */
.brand { font-weight: 700; font-size: 1.9rem; letter-spacing: -0.035em; text-decoration: none; line-height: 1; }
.brand b { color: var(--brand); font-weight: 700; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,14,16,.94); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 40px; }
.nav ul a { text-decoration: none; font-size: 1rem; font-weight: 500; padding: 10px 0; display: inline-block; transition: color .18s; }
.nav ul a:hover { color: #7DB8FF; }
.menu-toggle { display: none; }
@media (min-width: 900px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: clamp(84px, 6.4vw, 94px); }
  .brand { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
  .nav { display: contents; }
  .nav ul { justify-self: center; gap: clamp(32px, 3.4vw, 48px); }
  .nav ul a { font-size: clamp(.95rem, 1.15vw, 1.1rem); }
  .nav .btn { justify-self: end; }
}

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; border-radius: 4px; font-weight: 500; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: background-color .18s, transform .18s, border-color .18s, color .18s; }
.btn--primary { background: var(--btn-blue); color: #fff; padding: 0 clamp(24px, 2.3vw, 32px); min-height: clamp(54px, 4.7vw, 66px); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.btn--primary:hover { background: var(--btn-blue-hover); transform: translateY(-2px); }
.btn--outline { border-color: var(--btn-blue); color: #4C9BFF; min-height: 46px; font-size: .98rem; padding: 0 22px; }
.btn--outline:hover { background: rgba(10,108,255,.14); transform: translateY(-1px); }
.btn--green { background: var(--res-accent); color: var(--on-res); min-height: clamp(54px, 4.7vw, 64px); padding: 0 30px; font-size: 1.15rem; }
.btn--green:hover { background: #A8F797; transform: translateY(-2px); }
.link { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 500; border-bottom: 1.5px solid var(--brand); padding: 6px 0 2px; transition: color .18s, border-color .18s; }
.link:hover { color: #7DB8FF; }

.eyebrow { font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.eyebrow::after { content: ""; height: 1px; width: 70px; background: #4a5560; }
.eyebrow--green { color: #BFE9B4; }
.eyebrow--green::after { background: rgba(145,242,125,.35); }

@media (max-width: 480px) { .eyebrow { letter-spacing: .26em; gap: 14px; } .eyebrow::after { width: 40px; } }

/* Hero */
.hero { padding: 24px 0 8px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 40px; align-items: start; }
h1 { font-size: clamp(2.5rem, 11.5vw, 3.6rem); line-height: 1.03; letter-spacing: -0.032em; font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.38; color: #E6E9EC; max-width: 21em; margin: 28px 0 36px; font-weight: 400; }
@media (min-width: 768px) { h1 { font-size: clamp(3.4rem, 7.4vw, 5rem); } .hero-grid { gap: 56px; } }
@media (min-width: 1024px) {
  .hero { padding: 0; }
  .hero-grid { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 0; }
  .hero-copy { padding-top: clamp(48px, 5.6vw, 82px); padding-bottom: 56px; }
  h1 { font-size: clamp(3.2rem, 5vw, 4.55rem); }
  .lead { margin: 30px 0 clamp(36px, 3.6vw, 52px); }
  .stack { margin-right: calc(var(--gutter) * -0.6); margin-top: 4px; }
}

.stack { position: relative; width: 100%; aspect-ratio: 1 / .96; }
.win { position: relative; display: block; background: #1B1F23; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.04) inset; }
.win__bar { display: flex; gap: 6px; align-items: center; height: clamp(18px, 1.75vw, 25px); padding: 0 12px; background: #2A2E32; border-bottom: 1px solid rgba(255,255,255,.06); }
.win__bar i { width: clamp(5px, .5vw, 7px); height: clamp(5px, .5vw, 7px); border-radius: 50%; background: #747A80; }
.win img { width: 100%; }
.stack .win { position: absolute; transform-origin: center; }
.stack .win img { object-fit: cover; object-position: left top; }
.win--pesquisa { left: 19%; top: 0; width: 78%; z-index: 1; transform: perspective(1800px) rotateY(-5deg) rotate(-1.6deg); }
.win--pesquisa img { aspect-ratio: 1.46; }
.win--guimax { left: 1%; top: 37%; width: 59.5%; z-index: 2; transform: perspective(1800px) rotateY(7deg) rotate(1.4deg); }
.win--guimax img { aspect-ratio: 1.2; }
.win--alex { left: 55.6%; top: 52%; width: 44.4%; z-index: 3; transform: perspective(1800px) rotateY(-6deg) rotate(-2.6deg); }
.win--alex img { aspect-ratio: 1.25; }

/* Seções */
.section { padding: var(--sec) 0; }
#projetos { padding-top: clamp(48px, 5vw, 64px); }
.section--rule { border-top: 1px solid var(--border); }
.section-head { display: grid; gap: 20px; margin-bottom: 40px; }
h2 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; max-width: 18ch; }
#projetos-titulo { max-width: none; font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -0.035em; }
.section-note { color: var(--muted); max-width: 40ch; font-size: .98rem; line-height: 1.5; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr minmax(0, 360px); align-items: end; margin-bottom: 40px; } }

/* Projetos */
.projects { display: grid; gap: 56px 28px; }
@media (min-width: 900px) {
  .projects { grid-template-columns: 1fr 1fr; }
  .project--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
  .project--wide .project__meta { padding-top: 0; }
}
.project__shot { transition: transform .22s, border-color .22s; }
.project__shot:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); }
.project__shot img { object-fit: cover; object-position: left top; }
.project:not(.project--wide) .project__shot img { aspect-ratio: 1100 / 694; }
.project__meta { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding-top: 24px; }
.project__num { color: var(--muted); font-size: 1.2rem; padding-top: 2px; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.project__cat { color: var(--muted); margin-top: 4px; font-size: .98rem; }
.project__desc { color: #D3D8DC; margin: 12px 0 16px; max-width: 52ch; font-size: 1rem; }

/* Pesquisa.trade */
.research { margin-top: 64px; background: var(--res-bg); border: 1px solid rgba(145,242,125,.22); border-radius: 12px; padding: 28px; display: grid; gap: 36px; align-items: center; background-image: radial-gradient(900px 400px at 100% 0%, rgba(145,242,125,.07), transparent 70%); }
.research__shot { transition: transform .22s; }
.research__shot:hover { transform: translateY(-4px); }
.research__shot img { aspect-ratio: 1100 / 608; }
.research h3 { font-size: clamp(2.5rem, 8vw, 4.1rem); letter-spacing: -0.04em; line-height: 1; font-weight: 600; }
.research h3 span { color: var(--res-accent); }
.research__cat { font-size: 1.4rem; margin-top: 14px; }
.research__desc { color: #D3E2D8; margin: 22px 0 18px; max-width: 46ch; }
.research__list { display: grid; gap: 8px; margin-bottom: 32px; }
.research__list li { padding-left: 26px; position: relative; color: #E6F1EA; }
.research__list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 2px; background: var(--res-accent); }
@media (min-width: 900px) { .research { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 52px 52px 52px 56px; gap: 56px; } }

/* Soluções */
.solutions { display: grid; border-top: 1px solid var(--border); }
.solutions li { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.solutions__n, .steps__n { color: var(--brand); font-weight: 600; font-size: .95rem; letter-spacing: .1em; }
.solutions p { color: var(--muted); max-width: 52ch; }
@media (min-width: 900px) {
  .solutions li { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 32px; padding: 36px 0; }
  .solutions h3 { font-size: 1.75rem; }
}
.complementary { margin-top: 56px; }
.complementary h3 { font-size: 1.25rem; margin-bottom: 20px; }
.complementary ul { display: flex; flex-wrap: wrap; gap: 12px; }
.complementary li { border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-size: .95rem; }
.note { color: var(--muted); margin-top: 28px; max-width: 60ch; font-size: .95rem; }

/* Estúdio */
.studio { display: grid; gap: 48px; }
.studio__text { color: var(--muted); margin-top: 24px; max-width: 46ch; }
.steps { display: grid; gap: 0; border-top: 1px solid var(--border); }
.steps li { padding: 22px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.steps p { color: var(--muted); }
@media (min-width: 1024px) { .studio { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } }

/* Contato */
.contact h2 { max-width: 20ch; }
.contact__text { color: var(--muted); margin-top: 20px; max-width: 46ch; }
.contact__mail { margin: 40px 0 32px; font-size: clamp(1.5rem, 6vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; word-break: break-word; }
.contact__mail a { text-decoration: none; border-bottom: 3px solid var(--brand); transition: color .18s; }
.contact__mail a:hover { color: #7DB8FF; }
.contact__helper { color: var(--muted); margin: 14px 0 32px; font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.contact__helper .link { color: var(--text); padding-top: 2px; }

.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-footer .brand { color: var(--text); font-size: 1.5rem; }

/* WhatsApp */
.wa-icon { flex: none; }
.btn--wa { background: #25D366; color: #072C14; min-height: clamp(54px, 4.7vw, 64px); padding: 0 28px; font-size: 1.15rem; gap: 12px; }
.btn--wa:hover { background: #4BE584; transform: translateY(-2px); }
.contact__wa { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 28px; }
.contact__wa-num { color: var(--muted); font-size: .98rem; }
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; min-width: 56px; justify-content: center; padding: 0; border-radius: 999px; background: #25D366; color: #072C14; text-decoration: none; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12) inset; transition: transform .18s, background-color .18s, opacity .22s, visibility .22s; }
.wa-float:hover { background: #4BE584; transform: translateY(-3px); }
.wa-float__label { display: none; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 900px) { .wa-float { padding: 0 24px 0 20px; right: 28px; bottom: 28px; } .wa-float__label { display: inline; } }
@media (max-width: 480px) { .wa-float { min-height: 52px; min-width: 52px; } }

/* Menu móvel */
@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
  .menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .18s; }
  .menu-toggle__bars::before { content: ""; position: absolute; top: 6px; left: 0; }
  .menu-toggle__bars { margin-bottom: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; gap: 8px; }
  .js .nav.is-open { display: flex; }
  .js .nav ul { flex-direction: column; gap: 0; margin: 0; }
  .js .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
  .js .nav .btn { justify-content: center; margin-top: 12px; }
  .nav { flex-wrap: wrap; gap: 8px 20px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
}

/* Movimento discreto */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .38s ease, transform .38s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .project__shot:hover, .research__shot:hover, .wa-float:hover { transform: none; }
}
