/* Cores tiradas do logo: cobalto do fundo, ciano da seta. Verde só no balão de WhatsApp. */
:root {
  --cobalto: #0a34d6;
  --noite: #071444;
  --ciano: #3fd0ff;
  --gelo: #eef2fb;
  --branco: #fff;
  --cinza: #4f5a7c;
  --linha: #d3daee;
  --balao: #d9fdd3;
  --wrap: min(1120px, 100% - 32px);
  --display: Unbounded, "Arial Black", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 Onest, system-ui, sans-serif; color: var(--noite); background: var(--branco); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ciano); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--branco); color: var(--noite); font-weight: 600; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* botões: branco sobre o cobalto, cobalto sobre o claro */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 2px solid var(--branco); border-radius: 999px; background: var(--branco); color: var(--noite); font: 600 1rem/1 Onest, sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease-out, background-color .15s, border-color .15s; }
.button:hover { background: var(--gelo); border-color: var(--gelo); }
.button:active { transform: scale(.97); }
.button-ghost { background: transparent; color: var(--branco); border-color: rgba(255, 255, 255, .45); }
.button-ghost:hover { background: transparent; border-color: var(--branco); }
.button-small { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.button-large { min-height: 60px; padding: 0 34px; font-size: 1.08rem; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; height: 68px; padding-inline: max(16px, (100% - 1120px) / 2); background: var(--cobalto); color: var(--branco); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font: 500 1rem var(--display); text-decoration: none; }
.brand img { border-radius: 9px; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { color: rgba(255, 255, 255, .8); font-size: .95rem; font-weight: 500; text-decoration: none; }
.topbar nav a:hover { color: var(--branco); }

/* hero */
.hero { padding: 64px 0 88px; background: var(--cobalto); color: var(--branco); overflow: hidden; }
.hero-text { width: var(--wrap); margin-inline: auto; }
.hero h1 { max-width: 13ch; font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
.hero-copy { max-width: 46ch; margin-top: 24px; font-size: 1.15rem; color: rgba(255, 255, 255, .86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* os celulares sobem em curva, como a seta do logo */
/* a fileira sobe 150px por trás dos botões: só os celulares recebem clique */
.rise { position: relative; width: var(--wrap); margin: -150px auto 0; pointer-events: none; }
.phones a { pointer-events: auto; }
.rise-arrow { position: absolute; left: 0; bottom: -28px; width: 1020px; height: 600px; overflow: visible; color: var(--ciano); pointer-events: none;
  animation: draw 1.1s .55s var(--ease) backwards; }
.rise-arrow path:not([fill]) { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.phones { position: relative; display: flex; align-items: flex-end; gap: 24px; margin: 0; padding: 0; list-style: none; }
/* degraus aqui e não em style="" no HTML: o CSP (_headers) bloqueia estilo inline */
.phones li:nth-child(1) { --i: 0; --y: 0px; }
.phones li:nth-child(2) { --i: 1; --y: 20px; }
.phones li:nth-child(3) { --i: 2; --y: 56px; }
.phones li:nth-child(4) { --i: 3; --y: 108px; }
.phones li:nth-child(5) { --i: 4; --y: 176px; }
.phones li:nth-child(6) { --i: 5; --y: 260px; }
.phones li { flex: 0 0 150px; margin-bottom: var(--y); animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms + 100ms); }
.phones a { display: block; overflow: hidden; border: 5px solid var(--noite); border-radius: 24px; background: var(--noite); box-shadow: 0 28px 40px -20px rgba(2, 8, 48, .75); transition: transform .2s var(--ease); }
.phones a:hover { transform: translateY(-6px); }
.phones img { border-radius: 18px; }

@keyframes rise { from { opacity: 0; transform: translateY(70px); } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* seções */
.section-head { width: var(--wrap); margin-inline: auto; }
.section-head h2, .contact h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.section-head p { max-width: 54ch; margin-top: 14px; color: var(--cinza); font-size: 1.1rem; }

/* trabalhos */
.work { padding: 112px 0 120px; background: var(--gelo); }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; width: var(--wrap); margin: 104px auto 0; }
.case-shots { position: relative; padding: 0 28px 44px 0; }
/* recorta os 16px da direita: alguns sites forçam a barra de rolagem na captura */
.shot-desktop { width: 100%; aspect-ratio: 1264 / 800; object-fit: cover; object-position: left top; border-radius: 12px; background: var(--branco); box-shadow: 0 0 0 1px rgba(7, 20, 68, .08), 0 32px 60px -32px rgba(7, 20, 68, .5); }
.shot-mobile { position: absolute; right: 0; bottom: 0; width: 23%; border: 4px solid var(--noite); border-radius: 16px; background: var(--noite); box-shadow: 0 20px 40px -18px rgba(7, 20, 68, .6); }
.case-info h3 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.case-meta { margin: 6px 0 16px; color: var(--cobalto); font-weight: 600; }
.case-info > p:not(.case-meta) { max-width: 44ch; color: var(--cinza); }
.chat { margin: 24px 0 26px; }
.chat figcaption { margin-bottom: 8px; color: var(--cinza); font-size: .85rem; }
.bubble { position: relative; display: inline-block; max-width: 36ch; padding: 10px 14px 12px; border-radius: 10px 0 10px 10px; background: var(--balao); color: #111b21; font-size: .9rem; line-height: 1.5; white-space: pre-line; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.bubble::after { content: ""; position: absolute; top: 0; right: -8px; width: 8px; height: 12px; background: var(--balao); clip-path: polygon(0 0, 100% 0, 0 100%); }
.case-link { font-weight: 600; color: var(--cobalto); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.case-link:hover { color: var(--noite); }
.case-link-off { color: var(--cinza); text-decoration: none; font-weight: 500; }

/* serviços */
.services { padding: 112px 0; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; width: var(--wrap); margin: 56px auto 0; }
.service-list div { padding-top: 20px; border-top: 1px solid var(--linha); }
.service-list dt { font: 500 1.05rem/1.3 var(--display); }
.service-list dd { margin: 10px 0 0; color: var(--cinza); }

/* contato */
.contact { padding: 112px max(16px, (100% - 1120px) / 2); background: var(--cobalto); color: var(--branco); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 980px; margin: 48px 0 48px; padding: 0; list-style: none; counter-reset: passo; }
.steps li { counter-increment: passo; color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
.steps li::before { content: counter(passo); display: block; margin-bottom: 10px; color: var(--ciano); font: 700 2.2rem/1 var(--display); }

.footer { display: flex; align-items: center; gap: 14px; padding: 32px max(16px, (100% - 1120px) / 2); background: var(--noite); color: rgba(255, 255, 255, .75); font-size: .92rem; line-height: 1.45; }
.footer img { border-radius: 10px; }
.footer b { color: var(--branco); font-weight: 600; }

@media (max-width: 1100px) {
  .rise { width: 100%; margin-top: 32px; pointer-events: auto; }
  .rise-arrow { display: none; }
  /* a fileira vira um carrossel que encosta nas bordas da tela */
  .phones { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px max(16px, (100% - 1120px) / 2) 36px; scroll-padding-inline: max(16px, (100% - 1120px) / 2); }
  .phones li { flex-basis: 136px; scroll-snap-align: start; margin-bottom: calc(var(--y) * .2); }
  .hero { padding-bottom: 52px; }
}

@media (max-width: 860px) {
  .topbar nav { display: none; }
  .case { grid-template-columns: 1fr; gap: 28px; margin-top: 80px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .topbar { gap: 12px; }
  .brand { font-size: .9rem; white-space: nowrap; }
  .topbar .long { display: none; }
  .hero { padding-top: 44px; }
  .hero-copy { font-size: 1.05rem; }
  .actions .button { flex: 1 1 100%; }
  .phones { gap: 14px; }
  .phones li { flex-basis: 118px; }
  .phones a { border-width: 4px; border-radius: 20px; }
  .phones img { border-radius: 15px; }
  .work, .services, .contact { padding-block: 80px; }
  .case-shots { padding: 0 16px 32px 0; }
  .shot-mobile { width: 26%; border-width: 3px; border-radius: 12px; }
  .button-large { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
