:root {
  --ivory: #F7F3EA;
  --ivory-2: #EFE9DC;
  --paper: #FBF9F4;
  --graphite: #22242A;
  --ink-2: #4B4E57;
  --ink-3: #6A6D75;
  --cobalt: #1E44CC;
  --cobalt-dark: #15339F;
  --cobalt-bright: #3D63F0;
  --line: rgba(34, 36, 42, .14);
  --line-strong: rgba(34, 36, 42, .28);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--ivory); color: var(--graphite);
  font: 400 17px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0; color: var(--graphite); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--cobalt); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--graphite); color: var(--ivory); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

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

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border-radius: 4px; border: 1.5px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); }
.btn-ghost { border-color: var(--line-strong); color: var(--graphite); background: transparent; }
.btn-ghost:hover { border-color: var(--graphite); background: var(--paper); }
.btn-dark { background: var(--graphite); color: var(--ivory); }
.btn-dark:hover { background: var(--cobalt); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; color: var(--cobalt); text-decoration: none; padding: 6px 0; }
.link-arrow span[aria-hidden] { transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }

.kicker { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); margin-bottom: 28px; font-size: 16px; }
.dot { width: 8px; height: 8px; background: var(--cobalt); border-radius: 50%; flex: none; }

/* ---------- Cabeçalho ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 234, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--graphite); text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: -.01em; min-height: 44px; }
.mono { width: 32px; height: 32px; color: var(--graphite); }
.logo { display: block; height: 32px; width: auto; }
.about-symbol { width: clamp(72px, 9vw, 112px); height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { color: var(--graphite); text-decoration: none; font-weight: 500; font-size: 16px; position: relative; padding: 10px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: transparent; border: 1.5px solid var(--line-strong); border-radius: 4px;
    font: 600 15px/1 var(--body); color: var(--graphite); cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .2s var(--ease); }
  .menu-toggle-bars { position: relative; transform: translateY(-3px); }
  .menu-toggle-bars::before { content: ""; position: absolute; top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; min-height: 52px; }
}

/* ---------- Dispositivos (prévias com capturas reais das demos) ---------- */
.device { position: relative; background: #fff; overflow: hidden; }
.device-desktop { border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 30px 60px -30px rgba(34, 36, 42, .35); }
.device-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D8D2C4; }
.device-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.frame { position: relative; overflow: hidden; aspect-ratio: var(--ar, 16 / 10); background: var(--ivory-2); }
.frame .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease), opacity .5s var(--ease); }
.frame .alt { opacity: 0; }
.play .frame .alt { opacity: 1; }
/* amostra da montagem do hambúrguer */
.asm { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; pointer-events: none; }
.asm .piece { position: absolute; height: auto; max-width: none; opacity: 0; }
.play .asm { opacity: 1; }
.play .asm .piece { animation: piece-drop .5s cubic-bezier(.45,0,.9,.55) both; animation-delay: calc(var(--i) * 170ms + 80ms); }
.play .asm .piece:nth-child(2) { animation-name: piece-in; }
@keyframes piece-drop {
  0% { opacity: 0; transform: translateY(-140%); }
  15% { opacity: 1; }
  72% { transform: translateY(4%) scaleY(.95); animation-timing-function: cubic-bezier(.2,.7,.3,1); }
  88% { transform: translateY(-2%); }
  100% { opacity: 1; transform: none; }
}
@keyframes piece-in { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
.device-phone { border: 6px solid var(--graphite); border-radius: 22px; box-shadow: 0 24px 50px -20px rgba(34, 36, 42, .5); }

/* ---------- Primeira tela ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 700; letter-spacing: -.035em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); margin-top: 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-preview { margin: 0; position: relative; }
.hero-shot { display: block; position: relative; padding: 0 0 48px 56px; text-decoration: none; }
.hero-shot .device-phone { position: absolute; left: 0; bottom: 0; width: 26%; }
.hero-shot .device-phone .frame, .project-shot .device-phone .frame { --ar: 390 / 800; }
.hero-shot:hover .device-desktop .frame .shot { transform: scale(1.02); }
.hero-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-top: 18px; padding-left: 56px; font-size: 15px; color: var(--ink-2); }
.hero-caption strong { color: var(--graphite); }

/* ---------- Projetos ---------- */
.projects { padding: clamp(72px, 9vw, 140px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2 { font-size: clamp(38px, 5vw, 68px); font-weight: 700; letter-spacing: -.03em; }
.section-sub { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 36em; }

.project { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(32px, 4vw, 56px) 0; }
.project + .project { border-top: 1px solid var(--line); }
.project-flip { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.project-flip .project-shot { order: 2; }
.project-shot { position: relative; display: block; text-decoration: none; }
.project-flip .project-shot { padding-right: 9%; }
.project-flip .project-shot .device-phone { position: absolute; right: 0; bottom: -24px; width: 22%; }
.project-shot:hover .device-desktop .frame .shot { transform: scale(1.035); }
.project-num { display: flex; align-items: center; gap: 14px; font: 600 15px/1 var(--display); color: var(--ink-3); margin-bottom: 18px; }
.tag { font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; padding: 6px 9px; border-radius: 3px; }
.project h3 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.03em; }
.project-seg { margin-top: 8px; font-weight: 600; color: var(--accent); }
.project-info > p:not(.project-num):not(.project-seg) { margin-top: 18px; color: var(--ink-2); }
.project-info .btn { margin-top: 28px; }
.disclaimer { margin-top: 56px; font-size: 14px; color: var(--ink-3); max-width: 46em; }

/* ---------- Serviços ---------- */
.services { padding: clamp(72px, 9vw, 140px) 0; }
.services-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.services-head { position: sticky; top: 110px; margin-bottom: 0; }
.services-head h2 { font-size: clamp(34px, 4vw, 54px); }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.service { padding: 36px 32px 32px 0; border-bottom: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 14px; }
.service:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line-strong); }
.service-num { font: 600 14px/1 var(--display); color: var(--cobalt); }
.service h3 { font-size: 26px; letter-spacing: -.02em; }
.service p { color: var(--ink-2); flex: 1; }

/* ---------- Sobre ---------- */
.about { padding: clamp(72px, 9vw, 140px) 0; background: var(--graphite); color: var(--ivory); }
.about h2, .about h3, .about h4 { color: var(--ivory); }
.about .kicker { color: #8FA6FF; }
.about-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-mark { border: 1px solid rgba(247, 243, 234, .22); padding: clamp(28px, 4vw, 48px); color: var(--ivory); }
.about-mark svg { width: clamp(72px, 9vw, 112px); height: auto; }
.about-name { margin-top: clamp(40px, 6vw, 88px); font: 700 clamp(44px, 5.6vw, 84px)/.92 var(--display); letter-spacing: -.04em; display: flex; flex-direction: column; }
.about-name span:last-child { color: #8FA6FF; font-weight: 600; font-size: .62em; letter-spacing: -.02em; margin-top: .25em; }
.about-role { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(247, 243, 234, .22); font-size: 15px; color: rgba(247, 243, 234, .72); }
.about-copy h2 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 28px; }
.about-copy p { color: rgba(247, 243, 234, .82); font-size: 18px; max-width: 36em; }
.about-copy p + p { margin-top: 16px; }
.about-copy .about-lead { font-size: clamp(20px, 2vw, 24px); color: var(--ivory); font-weight: 500; }
.process-title { margin-top: clamp(72px, 8vw, 120px); font-size: 22px; letter-spacing: -.01em; }
.process { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(247, 243, 234, .22); }
.process li { padding: 28px 28px 0 0; }
.process li + li { padding-left: 28px; border-left: 1px solid rgba(247, 243, 234, .22); }
.step { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid #8FA6FF; color: #8FA6FF; border-radius: 50%; font: 600 15px/1 var(--display); }
.process h4 { margin: 18px 0 8px; font-size: 22px; }
.process p { color: rgba(247, 243, 234, .74); }
.about :focus-visible { outline-color: #8FA6FF; }

/* ---------- Contato ---------- */
.contact { padding: clamp(72px, 9vw, 140px) 0; }
.contact-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 700; letter-spacing: -.035em; }
.msg-preview { margin-top: 44px; max-width: 30em; }
.msg-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.msg-bubble { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--cobalt); padding: 18px 20px; color: var(--ink-2); font-size: 16px; min-height: 96px; white-space: pre-wrap; }
.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: 4px;
  background: #fff; color: var(--graphite); font: 400 17px/1.4 var(--body); transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2322242A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--graphite); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(30, 68, 204, .3); outline-offset: 0; border-color: var(--cobalt); }
.field [aria-invalid="true"] { border-color: #B42318; }
.hint { font-size: 14px; color: var(--ink-3); }
.error { font-size: 14px; color: #B42318; font-weight: 500; }
.form-status { font-size: 15px; color: var(--ink-2); min-height: 1.4em; }
.form-status.ok { color: #1D6B3A; font-weight: 600; }
.form-privacy { font-size: 14px; color: var(--ink-3); }
.form-privacy a, .link-btn { color: var(--cobalt); font: inherit; font-weight: 600; }
.link-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.msg-preview { outline: none; }
.msg-preview.ready .msg-bubble { border-left-color: #1D6B3A; }
.review-actions { margin-top: 16px; display: grid; gap: 12px; }
.review-note { font-size: 15px; color: var(--ink-2); }
.review-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer-in { display: grid; gap: 10px; }
.footer p { color: var(--ink-2); font-size: 15px; }
.footer-small { font-size: 13px !important; color: var(--ink-3) !important; margin-top: 10px; }

/* ---------- Entrada discreta ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { padding-left: 40px; }
  .hero-caption { padding-left: 0; }
  .project, .project-flip { grid-template-columns: 1fr; }
  .project-flip .project-shot { order: 0; }
  .services-in, .about-in, .contact-in { grid-template-columns: 1fr; }
  /* no celular, o primeiro campo vem logo abaixo do título; a prévia da mensagem fica depois do formulário */
  .contact-in { gap: 28px; }
  .contact-copy { display: contents; }
  .contact-in .form { order: 1; }
  .contact-in .msg-preview { order: 2; margin-top: 0; }
  .services-head { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 24px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-shot { padding: 0 0 28px 28px; }
  .hero-shot .device-phone { width: 30%; border-width: 4px; border-radius: 14px; }
  .project-flip .project-shot { padding-right: 14%; }
  .project-flip .project-shot .device-phone { width: 30%; border-width: 4px; border-radius: 14px; bottom: -16px; }
  .device-bar { height: 22px; }
  .device-bar span { display: none; }
  .service-list { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 28px 0; border-left: 0; }
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 24px 0; border-left: 0; }
  .process li + li { border-top: 1px solid rgba(247, 243, 234, .22); }
}

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

/* Vídeo de 30 segundos */
.film { padding: clamp(72px, 9vw, 140px) 0; border-top: 1px solid var(--line); }
.film-in { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.film-copy h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.03em; }
.film-frame { justify-self: center; width: 100%; max-width: 380px; border-radius: 28px; overflow: hidden; background: #121418; box-shadow: 0 30px 70px -30px rgba(34, 36, 42, .55); }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #121418; }
.film-text { margin-top: 28px; font-size: 16px; color: var(--ink-2); }
.film-text summary { cursor: pointer; font-weight: 600; color: var(--cobalt); min-height: 44px; display: inline-flex; align-items: center; }
.film-text p { margin-top: 10px; max-width: 36em; }
@media (max-width: 980px) {
  .film-in { grid-template-columns: 1fr; }
  .film-frame { max-width: 340px; }
}

/* Perguntas frequentes */
.faq { padding: clamp(72px, 9vw, 140px) 0; background: var(--ivory); border-top: 1px solid var(--line); }
.faq .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 20px 4px; cursor: pointer; color: var(--graphite); font: 600 clamp(18px, 1.7vw, 21px)/1.35 var(--display); letter-spacing: -.01em; border-radius: 6px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--cobalt); }
.faq-item summary:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--cobalt); transition: background .2s var(--ease), border-color .2s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; transition: transform .2s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { border-color: var(--cobalt); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 52px 26px 4px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.faq-a p + p { margin-top: 14px; }
.faq-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; } }
@media (max-width: 980px) {
  .faq-a { padding-right: 4px; }
}
