/* ==========================================================================
   RIMON TECH — Estilos
   Abordagem mobile first. Tokens de cor vindos da paleta oficial.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta oficial */
  --c-black: #05070D;        /* Preto profundo — fundos e presença premium */
  --c-royal-dark: #0A3FD0;   /* Azul royal escuro — profundidade e confiança */
  --c-royal: #1F73FF;        /* Azul royal — cor principal: botões, links */
  --c-cyan: #5CC8FF;         /* Azul ciano — brilho, órbita e destaques */
  --c-silver: #A9B6CC;       /* Prata — textos de apoio */
  --c-white: #FFFFFF;        /* Branco — texto sobre fundo escuro */

  /* Derivados (variações tonais da paleta) */
  --bg: var(--c-black);
  --bg-alt: #080B14;
  --surface: #0B0F1A;
  --surface-2: #0F1522;
  --line: rgba(169, 182, 204, 0.13);
  --line-strong: rgba(169, 182, 204, 0.26);
  --text: var(--c-white);
  --text-muted: var(--c-silver);
  --text-soft: rgba(169, 182, 204, 0.78);
  --royal-10: rgba(31, 115, 255, 0.10);
  --royal-20: rgba(31, 115, 255, 0.20);
  --cyan-15: rgba(92, 200, 255, 0.15);
  --field-bg: var(--surface-2);
  --field-border: rgba(169, 182, 204, 0.5);        /* 3,1:1 sobre o campo, 3,4:1 sobre o cartão */
  --field-border-filled: rgba(169, 182, 204, 0.7); /* campo preenchido */

  /* Tipografia */
  --f-brand: 'Krona One', 'Michroma', system-ui, sans-serif;
  --f-title: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --section-y: clamp(72px, 11vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--c-royal); color: var(--c-white); }

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

/* Seções recebem foco via JS ao navegar pelo menu mobile; não precisam de contorno */
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--c-royal); color: var(--c-black); font-weight: 600;
  transform: translateY(-150%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.text-accent {
  color: var(--c-royal);
  background: linear-gradient(90deg, var(--c-royal) 0%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 3. Tipografia de seção ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-family: var(--f-title);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-cyan);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px;
  background: var(--c-royal);
}

.section-title {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lead {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split {
  max-width: none;
  display: flex; flex-direction: column; gap: 24px;
}

/* ---------- 4. Botões ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--btn-bg);
  font-family: var(--f-body); font-weight: 600; font-size: .975rem; line-height: 1.2;
  text-align: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:active { transform: translateY(1px); }

.btn--primary { --btn-bg: var(--c-royal); color: var(--c-black); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }

.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------- 5. Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.header.is-scrolled, .header.menu-open {
  background: rgba(5, 7, 13, .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; position: relative; z-index: 2; }
/* Logomarca oficial (imagem). Só a altura é definida: a largura segue a proporção original. */
.brand__logo { width: auto; height: 24px; } /* logomarca sem órbita: "RIMON TECH" no mesmo tamanho da versão aprovada */

.menu-toggle {
  position: relative; z-index: 2;
  width: 46px; height: 46px; margin-right: -8px;
  display: grid; place-content: center; gap: 5px;
  background: none; border: 0; border-radius: 10px;
}
.menu-toggle span {
  width: 22px; height: 2px; border-radius: 2px; background: var(--c-white);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.nav {
  /* top/height explícitos: o header com backdrop-filter vira o bloco de contenção */
  position: fixed; top: var(--header-h); left: 0; right: 0;
  height: calc(100dvh - var(--header-h));
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px var(--gutter) 40px;
  background: var(--c-black);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.menu-open .nav {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-title); font-size: 1.5rem; font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav__link.is-active { color: var(--c-white); }
.nav__link.is-active::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-royal);
}
.nav__cta { width: 100%; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 96px));
  padding-bottom: clamp(64px, 10vw, 112px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(31, 115, 255, .20), transparent 70%),
    radial-gradient(45% 35% at 0% 45%, rgba(10, 63, 208, .12), transparent 70%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 75%);
  opacity: .55;
}
.hero__inner { display: grid; gap: 48px; align-items: center; }
.hero__title {
  font-family: var(--f-brand);
  font-weight: 400;
  font-size: clamp(1.7rem, 7.4vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__text {
  margin-top: 24px; max-width: 54ch;
  font-size: clamp(1.02rem, 1.6vw, 1.175rem);
  color: var(--text-muted);
}
.hero__actions { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.hero__tags {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--f-title); font-size: .9rem; color: var(--text-soft);
}
.hero__tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero__tags li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-cyan); }

.hero__visual { width: 100%; max-width: 520px; margin-inline: auto; }

/* Composição ilustrativa do hero: navegador + celular (reutiliza .mock__*) */
.hero-mock {
  position: relative;
  aspect-ratio: 5 / 4;
  isolation: isolate;
}
.hero-mock__orbit { /* referência à órbita da logomarca */
  position: absolute; z-index: -1; left: -6%; right: -6%; top: 18%; bottom: 14%;
  border: 1px solid rgba(92, 200, 255, .28); border-radius: 50%;
  transform: rotate(-14deg);
  box-shadow: 0 0 80px -20px rgba(31, 115, 255, .55), inset 0 0 60px -30px rgba(31, 115, 255, .5);
}
.hero-mock .mock__browser.hero-mock__browser {
  position: absolute; left: 0; top: 4%;
  width: 86%; max-width: none; height: auto; aspect-ratio: 16 / 11;
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 50px -16px rgba(31, 115, 255, .45);
}
.hero-mock__browser .mock__dash { flex: 1; height: auto; min-height: 0; }
.hero-mock .mock__phone.hero-mock__phone {
  position: absolute; right: 0; bottom: 0;
  width: 31%; max-width: none; height: auto; aspect-ratio: 9 / 18;
  padding: 10% 8%; gap: 7%;
  border-bottom: 1px solid var(--line-strong); border-radius: 22px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9), 0 0 40px -12px rgba(31, 115, 255, .5);
}
.hero-mock__phone .mock__cal { gap: 3px; }
.hero-mock__chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(15, 21, 34, .92); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-title); font-size: .8rem; font-weight: 500; color: var(--c-white);
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8);
}
.hero-mock__chip .icon { width: 16px; height: 16px; color: var(--c-cyan); }
.hero-mock__chip--a { top: 0; right: 2%; }
.hero-mock__chip--b { left: 4%; bottom: 6%; }


/* ---------- 7. Serviços ---------- */
.services-grid { display: grid; gap: 16px; }
.service-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  min-height: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background-color .35s var(--ease);
}
.service-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(31, 115, 255, .16), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.service-card__bar {
  width: 32px; height: 3px; border-radius: 3px; background: var(--c-royal);
  margin-bottom: 28px;
  transition: width .4s var(--ease);
}
.service-card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px;
  background: var(--royal-10); border: 1px solid var(--royal-20);
  color: var(--c-cyan);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__index {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--f-brand); font-size: .8rem; color: var(--text-soft); opacity: .6;
}
.service-card__title {
  margin-top: 24px;
  font-family: var(--f-title); font-weight: 600; font-size: 1.3rem; line-height: 1.25;
}
.service-card__text { margin-top: 10px; color: var(--text-muted); font-size: .95rem; }
.service-card__more {
  margin-top: auto; padding: 18px 0 0;
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 44px;
  background: none; border: 0;
  font-weight: 600; font-size: .925rem; color: var(--c-royal);
  transition: color .2s, gap .25s var(--ease);
}
.service-card__more::after { content: ''; position: absolute; inset: 0; } /* card inteiro clicável */
.service-card__more:focus-visible { outline: none; }
.service-card:has(.service-card__more:focus-visible) { outline: 2px solid var(--c-cyan); outline-offset: 3px; }


/* ---------- 8. Sobre ---------- */
.about { display: grid; gap: 56px; align-items: center; }
.pillars { margin-top: 40px; display: grid; gap: 14px; }
.pillar {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(11, 15, 26, .6);
}
.pillar__icon {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--royal-10); color: var(--c-cyan);
}
.pillar h3 { font-family: var(--f-title); font-size: 1.075rem; font-weight: 600; }
.pillar p { margin-top: 2px; font-size: .925rem; color: var(--text-muted); }

/* Diagrama da seção Sobre.
   Grade simétrica: colunas laterais iguais (1fr | núcleo | 1fr) e linhas de cima/baixo iguais,
   com o mesmo espaço (--espaco) entre o núcleo e cada rótulo. O núcleo fica no centro exato do
   quadrado por construção — o mesmo centro dos anéis do SVG. */
.system-map {
  --nucleo: 35%;   /* diâmetro do círculo central = anel interno do SVG (r=70 de 400) */
  --espaco: 3%;
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--nucleo) minmax(0, 1fr);
  grid-template-areas: ". topo ." "esq centro dir" ". base .";
  align-content: center;
  gap: var(--espaco);
}
.system-map__lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--line-strong); stroke-width: 1;
}
.system-map__lines circle:first-child { r: 70px; }
.system-map__lines circle:nth-child(2) { stroke: rgba(31, 115, 255, .4); stroke-dasharray: 4 6; }
.system-map__lines path { stroke: var(--line); }
.system-map__core {
  grid-area: centro; position: relative; width: 100%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 115, 255, .22), var(--surface) 70%);
  border: 1px solid rgba(31, 115, 255, .4);
  box-shadow: 0 0 60px -10px rgba(31, 115, 255, .5);
}
/* O <picture> é o item centralizado no círculo; a imagem ocupa toda a largura dele.
   (Antes, só a <img> tinha 74% e ficava presa à esquerda do <picture>, deslocando o logo.) */
.system-map__core picture { display: block; width: 74%; }
.system-map__core img { display: block; width: 100%; height: auto; }
.system-map__node {
  position: relative; align-self: center;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-family: var(--f-title); font-size: .82rem; font-weight: 500; white-space: nowrap;
  color: var(--c-white);
}
.system-map__node--topo { grid-area: topo; justify-self: center; }
.system-map__node--base { grid-area: base; justify-self: center; }
.system-map__node--esq  { grid-area: esq;  justify-self: end; }
.system-map__node--dir  { grid-area: dir;  justify-self: start; }
.system-map__node::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: middle;
  border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan);
}
/* Pouco espaço para o diagrama (celulares e a coluna estreita entre 960 e 1100px): núcleo menor
   (o anel interno acompanha) e rótulos compactos. Depende da largura do diagrama, não da tela. */
.about__visual { container-type: inline-size; }
@container (max-width: 479px) {
  .system-map { --nucleo: 28%; --espaco: 2%; }
  .system-map__lines circle:first-child { r: 56px; }
  .system-map__node { padding: 6px 9px; font-size: .75rem; }
  .system-map__node::before { width: 5px; height: 5px; margin-right: 5px; }
}

/* ---------- 9. Diferenciais ---------- */
.differentials { display: grid; gap: 48px; }
.differentials__head .btn { margin-top: 32px; }
.diff-list { display: grid; gap: 0; counter-reset: none; }
.diff {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}
.diff:last-child { border-bottom: 1px solid var(--line); }
.diff::before {
  content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--c-royal), var(--c-cyan));
  transition: width .5s var(--ease);
}
.diff__num {
  position: absolute; top: 30px; right: 0;
  font-family: var(--f-brand); font-size: .75rem; color: var(--c-royal); letter-spacing: .05em;
}
.diff__icon { width: 28px; height: 28px; color: var(--c-cyan); margin-bottom: 8px; transition: color .3s; }
.diff h3 { font-family: var(--f-title); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.diff p { color: var(--text-muted); font-size: .95rem; }

/* ---------- 10. Projetos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: all .2s var(--ease);
}
.chip.is-active { background: var(--c-royal); border-color: var(--c-royal); color: var(--c-black); font-weight: 600; }

.demo-notice {
  margin-bottom: 28px; padding: 14px 18px;
  border-left: 3px solid var(--c-cyan); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cyan-15);
  font-size: .9rem; color: var(--text-muted);
}
.demo-notice strong { color: var(--c-white); }

.projects-grid { display: grid; gap: 20px; }
.project {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.project__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background:
    radial-gradient(80% 90% at 50% 110%, rgba(31, 115, 255, .28), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.project__media > img { width: 100%; height: 100%; object-fit: cover; }
.badge-demo {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(5, 7, 13, .8); border: 1px solid var(--line-strong);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-cyan);
}
.project__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project__cat {
  align-self: flex-start;
  font-family: var(--f-title); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-cyan);
}
.project__title { margin-top: 8px; font-family: var(--f-title); font-size: 1.35rem; font-weight: 600; }
.project__desc { margin-top: 8px; color: var(--text-muted); font-size: .95rem; }
.project__features { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.project__features li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: .82rem; color: var(--text-muted);
}
.project__features .icon { width: 14px; height: 14px; color: var(--c-royal); stroke-width: 2.2; }
.project__link { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-royal); }

/* Mockups ilustrativos (CSS) */
.mock { position: absolute; inset: 0; display: grid; place-items: end center; padding: 28px 28px 0; }
.mock__browser {
  width: 100%; max-width: 420px; height: 88%;
  background: var(--c-black); border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: 12px 12px 0 0; overflow: hidden;
  box-shadow: 0 -10px 40px -10px rgba(31, 115, 255, .35);
  transition: transform .5s var(--ease);
}
.mock__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.mock__url { margin-left: 10px; height: 7px; width: 40%; border-radius: 4px; background: var(--line); }
.mock__line { display: block; height: 7px; border-radius: 4px; background: var(--line-strong); width: 60%; }
.mock__line--lg { height: 12px; width: 75%; background: rgba(255, 255, 255, .7); }
.mock__page { padding: 16px; display: grid; gap: 10px; }
.mock__hero { height: 38px; border-radius: 6px; background: linear-gradient(90deg, var(--c-royal-dark), var(--c-royal)); opacity: .85; }
.mock__btn { width: 64px; height: 16px; border-radius: 5px; background: var(--c-royal); }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.mock__card { height: 46px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); }

.mock__dash { display: grid; grid-template-columns: 22% 1fr; height: 100%; }
.mock__side { padding: 12px 10px; display: grid; align-content: start; gap: 9px; border-right: 1px solid var(--line); }
.mock__side .mock__line { width: 100%; }
.mock__side .mock__line:first-child { background: var(--c-royal); }
.mock__main { padding: 12px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__kpi { height: 34px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.mock__chart {
  display: flex; align-items: flex-end; gap: 6%; padding: 10px 12px 0;
  border-radius: 6px; border: 1px solid var(--line); background: var(--surface);
}
.mock__chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(var(--c-cyan), var(--c-royal-dark)); opacity: .9; }

.mock--phone { padding-top: 22px; }
.mock__phone {
  width: 42%; max-width: 170px; height: 100%;
  padding: 14px 12px; display: grid; align-content: start; gap: 10px;
  background: var(--c-black); border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px -10px rgba(31, 115, 255, .4);
  transition: transform .5s var(--ease);
}
.mock__notch { justify-self: center; width: 40%; height: 6px; border-radius: 6px; background: var(--line-strong); }
.mock__title { height: 9px; width: 55%; border-radius: 4px; background: rgba(255, 255, 255, .7); }
.mock__cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mock__cal span { aspect-ratio: 1; border-radius: 4px; background: var(--surface-2); }
.mock__cal span.is-on { background: var(--c-royal); }
.mock__item { height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }

.mock--flow { place-items: center; padding: 24px; }
.mock__flow { display: flex; align-items: center; width: 100%; max-width: 380px; }
.mock__node {
  width: 26%; aspect-ratio: 1; flex: none; display: grid; place-items: center;
  border-radius: 18px; background: var(--c-black); border: 1px solid var(--line-strong);
  color: var(--c-cyan);
  box-shadow: 0 0 40px -12px rgba(31, 115, 255, .6);
}
.mock__node:nth-child(3) { background: var(--c-royal); color: var(--c-black); border-color: var(--c-royal); }
.mock__node .icon { width: 42%; height: 42%; }
.mock__link {
  flex: 1; height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-cyan) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: flow 1.6s linear infinite;
}
@keyframes flow { to { background-position: 24px 0; } }

/* ---------- 10b. Planos e valores ---------- */
.pricing-notice {
  margin-bottom: clamp(32px, 5vw, 48px); padding: 14px 18px;
  border-left: 3px solid var(--c-cyan); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cyan-15);
  font-size: .9rem; color: var(--text-muted);
}
.pricing-notice strong { color: var(--c-white); }

/* Aviso exibido somente quando o JavaScript está desativado */
.noscript-notice {
  margin-top: calc(var(--header-h) + 16px); padding: 14px 18px;
  border-left: 3px solid var(--c-cyan); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cyan-15); font-size: .9rem; color: var(--text-muted);
}
.noscript-notice a, .form__status a { color: var(--c-cyan); text-decoration: underline; text-underline-offset: 3px; }

.pricing { display: grid; gap: clamp(36px, 5vw, 48px); }
.pricing__group-title {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: var(--f-title); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-cyan);
}
.pricing__group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pricing__grid { display: grid; gap: 16px; }

.price-card {
  display: flex; flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.price-card__title { font-family: var(--f-title); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.price-card__text { margin-top: 8px; color: var(--text-muted); font-size: .95rem; }
.price-card__prices { margin: 20px 0 0; display: grid; gap: 10px; }
.price-card__price {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
}
.price-card__price dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.price-card__price dd { margin: 0; color: var(--c-white); }
.price-card__from { font-size: .85rem; color: var(--text-muted); }
.price-card__value { font-family: var(--f-title); font-size: 1.3rem; font-weight: 600; white-space: nowrap; color: var(--c-white); }
.price-card__unit { font-size: .85rem; color: var(--text-muted); }
.price-card__price.is-consulta .price-card__value { font-size: 1.05rem; color: var(--c-cyan); }
.price-card__cta { margin-top: auto; align-self: stretch; }
.price-card__prices + .price-card__cta { margin-top: 20px; }

.maintenance {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; gap: 28px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(31, 115, 255, .35); border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(10, 63, 208, .28), transparent 65%),
    var(--surface);
}
.maintenance__title { font-family: var(--f-title); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.maintenance__text { margin-top: 12px; color: var(--text-muted); max-width: 60ch; }
.maintenance__lists { display: grid; gap: 24px; }
.maintenance__label {
  margin-bottom: 12px;
  font-family: var(--f-title); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-cyan);
}
.maintenance__rules { display: grid; gap: 10px; }
.maintenance__rules li { position: relative; padding-left: 18px; font-size: .95rem; color: var(--text-muted); }
.maintenance__rules li::before {
  content: ''; position: absolute; left: 2px; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-royal);
}
.maintenance__cta { justify-self: start; }

@media (max-width: 559px) {
  .maintenance__cta { justify-self: stretch; }
}
@media (min-width: 760px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .maintenance__lists { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (min-width: 1100px) {
  .maintenance { grid-template-columns: 1fr 1.25fr; column-gap: 56px; align-items: start; }
  .maintenance__intro { grid-row: span 2; }
}

/* ---------- 11. Processo ---------- */
.steps { display: grid; gap: 0; position: relative; }
.step {
  position: relative;
  padding: 0 0 36px 64px;
}
.step::before { /* linha vertical */
  content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px;
  background: linear-gradient(var(--c-royal), var(--line));
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__num {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface); border: 1px solid rgba(31, 115, 255, .55);
  font-family: var(--f-brand); font-size: .72rem; color: var(--c-cyan);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.step h3 { padding-top: 9px; font-family: var(--f-title); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: .95rem; }

/* ---------- 12. CTA / Contato ---------- */
.section--cta { padding-block: clamp(56px, 8vw, 96px); }
.cta {
  position: relative; overflow: hidden;
  display: grid; gap: 40px;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 115, 255, .35);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(10, 63, 208, .45), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(92, 200, 255, .12), transparent 70%),
    var(--surface);
}
.cta__content { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--f-title); font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta__text { margin: 18px 0 32px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-muted); max-width: 40ch; }
.cta__content .btn { width: 100%; }

.channels { margin-top: 24px; display: grid; gap: 4px; }
.channels li, .footer__contact li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.channels .icon { color: var(--c-cyan); }
.channels a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-white); overflow-wrap: anywhere; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }

/* Formulário */
.form {
  position: relative; z-index: 1;
  display: grid; gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, .72);
  border: 1px solid var(--line);
}
.form__title { font-family: var(--f-title); font-size: 1.2rem; font-weight: 600; }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
/* Campos: fundo surface-2 destacado do cartão e borda prata com contraste ≥ 3:1 (WCAG 1.4.11) */
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--field-border);
  background-color: var(--field-bg);
  font-size: 1rem; /* evita zoom no iOS */
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.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' viewBox='0 0 24 24' fill='none' stroke='%23A9B6CC' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 42px;
}
.field select option { background: var(--surface-2); color: var(--c-white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(169, 182, 204, .68); }
/* Preenchido (o placeholder " " nos inputs habilita :placeholder-shown) */
.field input:not(:placeholder-shown),
.field textarea:not(:placeholder-shown),
.field select:has(option:checked:not([value=""])) {
  border-color: var(--field-border-filled);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-royal); background-color: var(--surface);
  box-shadow: 0 0 0 3px var(--royal-20);
}
.form .field [aria-invalid='true'] { border-color: #FF7A8A; }
.form .field [aria-invalid='true']:focus { box-shadow: 0 0 0 3px rgba(255, 122, 138, .2); }
.field__error { font-size: .82rem; color: #FF9AA6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .9rem; min-height: 0; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--c-cyan); }
.form__status.is-error { color: #FF9AA6; }
.form__note { font-size: .8rem; color: var(--text-soft); }
.form__note:empty { display: none; }

/* Integração com a API */
.form__body { display: grid; gap: 16px; }
.form__turnstile:empty { display: none; }
.form__turnstile { min-width: 0; }
.form[aria-busy='true'] .btn[type='submit'] { cursor: progress; }
.form__privacy { font-size: .8rem; color: var(--text-soft); }
.form__privacy a {
  display: inline-block; padding: 10px 2px; margin: -10px -2px; /* área de toque de 44px */
  color: var(--c-cyan); text-decoration: underline; text-underline-offset: 3px;
}

.form__success { display: grid; gap: 14px; justify-items: start; }
.form__success[hidden] { display: none; }
.form__success-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-royal); color: var(--c-black);
}
.form__success-icon .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.form__success .form__title:focus { outline: none; }
.form__success-text { color: var(--text-muted); }
.form__protocol {
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  font-size: .9rem; color: var(--text-muted);
}
.form__protocol strong { margin-left: 6px; font-family: var(--f-title); font-size: 1.05rem; letter-spacing: .04em; color: var(--c-white); }
.form__whatsapp { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.form__whatsapp .icon { color: var(--c-cyan); }

/* Página de texto legal (Política de Privacidade) */
.legal-page { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 72px)); }
.legal { max-width: 800px; }
.legal__meta { margin-top: 12px; font-size: .875rem; color: var(--text-soft); }
.legal .section-lead { max-width: none; }
.legal section { margin-top: 48px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2 { font-family: var(--f-title); font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 600; line-height: 1.25; }
.legal h3 { margin-top: 24px; font-family: var(--f-title); font-size: 1.08rem; font-weight: 600; color: var(--c-white); }
.legal p, .legal li { color: var(--text-muted); }
.legal section > p, .legal h2 + ul, .legal h3 + ul { margin-top: 14px; }
.legal ul { display: grid; gap: 8px; margin-top: 12px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before {
  content: ''; position: absolute; left: 2px; top: .7em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-royal);
}
.legal strong { color: var(--c-white); font-weight: 600; }
.legal a:not(.btn) { color: var(--c-cyan); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__toc {
  margin-top: 32px; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.legal__toc ol { display: grid; gap: 2px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a:not(.btn) {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--text-muted); text-decoration: none;
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-brand); font-size: .72rem; color: var(--c-royal); }
.legal__back { margin-top: 56px; }
.footer--simple { padding-top: 0; }
.legal__back--acoes { display: flex; flex-wrap: wrap; gap: 12px; }

.footer__legal { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: 40px; }
.faq__head .btn { margin-top: 28px; }
.accordion { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; min-height: 44px;
  font-family: var(--f-title); font-size: clamp(1.02rem, 1.6vw, 1.15rem); font-weight: 500;
  cursor: pointer; list-style: none;
  transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon {
  width: 34px; height: 34px; padding: 7px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-strong);
  transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.qa[open] summary .icon { transform: rotate(45deg); background: var(--c-royal); border-color: var(--c-royal); color: var(--c-black); }
.qa__body { padding: 0 52px 24px 0; color: var(--text-muted); }
/* Link dentro do texto: área de toque ampliada para 44px sem alterar a linha */
.qa__body a {
  display: inline-block; padding: 10px 4px; margin: -10px -4px;
  color: var(--c-royal); text-decoration: underline; text-underline-offset: 3px;
}
.qa::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }

/* ---------- 14. Rodapé ---------- */
.footer {
  padding-top: clamp(56px, 8vw, 88px);
  background: linear-gradient(180deg, var(--bg) 0%, #03050A 100%);
  border-top: 1px solid var(--line);
}
.footer__top { display: grid; gap: 40px; padding-bottom: 48px; }
.footer__logo { width: 320px; height: auto; margin-left: -6px; }
.footer__brand p { margin-top: 20px; max-width: 38ch; color: var(--text-muted); font-size: .95rem; }
.social { margin-top: 24px; display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-strong); color: var(--text-muted);
  transition: all .2s var(--ease);
}
.footer__col .footer__heading {
  margin-bottom: 16px;
  font-family: var(--f-title); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-white);
}
.footer__col ul { display: grid; gap: 0; }
.footer__col a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0;
  color: var(--text-muted); font-size: .95rem; transition: color .2s;
  overflow-wrap: anywhere;
}
.footer__contact { margin-bottom: 20px; }
.footer__contact .icon { color: var(--c-royal); width: 18px; height: 18px; }
.footer__contact span { color: var(--text-muted); font-size: .95rem; }
.footer__bottom {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--text-soft);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; color: var(--text-muted); transition: color .2s; }
.to-top .icon { width: 16px; height: 16px; }

/* ---------- 15. Modal de serviço ---------- */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; margin: auto;
  border: 1px solid rgba(31, 115, 255, .4); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text);
  overflow: auto;
}
.modal::backdrop { background: rgba(3, 5, 10, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__box { position: relative; padding: clamp(24px, 5vw, 40px); }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text-muted);
  transition: all .2s;
}
.modal__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 16px; background: var(--c-royal); color: var(--c-black);
}
.modal__icon .icon { width: 28px; height: 28px; }
.modal__title { margin-top: 22px; padding-right: 40px; font-family: var(--f-title); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.modal__desc { margin-top: 12px; color: var(--text-muted); }
.modal__label {
  margin-top: 26px; margin-bottom: 12px;
  font-family: var(--f-title); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-cyan);
}
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checklist .icon { margin-top: 3px; width: 18px; height: 18px; color: var(--c-royal); stroke-width: 2.2; }
.modal__ideal { margin: 24px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem; color: var(--text-muted); }
.modal__ideal strong { color: var(--c-white); }

/* ---------- 16. Animação de entrada ---------- */
.js-reveal .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
/* Mantém a transição de hover dos cards após a entrada */
.js-reveal .service-card.reveal.is-visible,
.js-reveal .project.reveal.is-visible,
.js-reveal .price-card.reveal.is-visible {
  transition: opacity .7s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
  transition-delay: 0ms;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .cta__content .btn { width: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 760px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head--split > div { max-width: 640px; }
  .diff-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .diff:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { flex-direction: column; }
  .footer__top { grid-template-columns: 1fr 1fr 1.25fr; } /* coluna de contato mais larga: e-mail em uma linha */
}

@media (min-width: 960px) {
  :root { --header-h: 80px; --gutter: 40px; }

  .brand__logo { height: 30px; }


  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .about { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { flex-direction: row; }

  .differentials { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
  .differentials__head { position: sticky; top: calc(var(--header-h) + 40px); }

  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { padding: 72px 0 0; }
  .step::before { left: 44px; right: -24px; top: 22px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--c-royal), var(--line)); }
  .step:last-child::before { display: none; }

  .cta { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; }

  .faq { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 40px); }

}

/* Rodapé em 4 colunas só com largura suficiente (abaixo disso, o e-mail quebrava no meio). */
@media (min-width: 1100px) {
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
  .footer__brand { grid-column: auto; }
}

/* Telas muito estreitas: menos espaço lateral nos botões grandes para o texto caber em uma linha. */
@media (max-width: 359px) {
  .btn--lg { padding-inline: 16px; }
  .btn--lg .icon { display: none; } /* seta decorativa; o texto do botão continua completo */
}

/* Números de telefone não quebram no hífen. */
.nowrap { white-space: nowrap; }

/* Menu desktop — mesmo valor usado em main.js (DESKTOP_NAV_QUERY).
   Abaixo de 1100px o espaço não comporta logo + 5 links + botão em uma linha. */
@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .nav {
    position: static; inset: auto; height: auto;
    flex-direction: row; align-items: center; gap: 24px;
    padding: 0; background: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__list { flex-direction: row; gap: 4px; }
  .nav__link {
    position: relative; padding: 10px 12px; border: 0;
    font-family: var(--f-body); font-size: .95rem; font-weight: 500;
    white-space: nowrap;
  }
  .nav__link.is-active::after, .nav__link::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px;
    width: auto; height: 2px; border-radius: 2px;
    background: var(--c-royal);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__cta { flex: none; width: auto; min-height: 44px; padding: 10px 20px; font-size: .925rem; white-space: nowrap; }
}

/* Hero em duas colunas só quando há espaço real para o texto e a composição */
@media (min-width: 1100px) {
  .hero { padding-top: calc(var(--header-h) + 72px); padding-bottom: 104px; }
  .hero__inner { grid-template-columns: 1.2fr .8fr; gap: 48px; }
  .hero__title { font-size: 3.4rem; } /* mantém "soluções digitais." em uma linha ao lado da composição */
  .hero__visual { max-width: none; }
}

@media (min-width: 1200px) {
  .nav { gap: 32px; }
  .nav__link { padding-inline: 14px; }
  .nav__link.is-active::after, .nav__link::after { left: 14px; right: 14px; }
}

/* ==========================================================================
   Interações de mouse
   Só em dispositivos com ponteiro preciso: no toque, o :hover "gruda" no
   elemento após o toque. Teclado tem equivalentes via :focus-visible.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(3px); }
  .btn--primary:hover { --btn-bg: #3A86FF; box-shadow: 0 8px 28px -8px rgba(31, 115, 255, .65); }
  .btn--ghost:hover { border-color: var(--c-royal); background: var(--royal-10); }

  .nav__link:hover { color: var(--c-white); }

  .service-card:hover,
  .js-reveal .service-card.is-visible:hover { border-color: rgba(31, 115, 255, .55); transform: translateY(-4px); }
  .service-card:hover::before { opacity: 1; }
  .service-card:hover .service-card__bar { width: 64px; }
  .service-card:hover .service-card__icon { background: var(--c-royal); color: var(--c-black); border-color: var(--c-royal); }
  .service-card:hover .service-card__more { color: var(--c-cyan); gap: 12px; }

  .diff:hover::before { width: 100%; }
  .diff:hover .diff__icon { color: var(--c-royal); }

  .chip:hover { color: var(--c-white); border-color: var(--c-royal); }

  .project:hover,
  .js-reveal .project.is-visible:hover { border-color: rgba(31, 115, 255, .5); transform: translateY(-4px); }
  .project:hover .mock__browser, .project:hover .mock__phone { transform: translateY(-6px); }

  .price-card:hover,
  .js-reveal .price-card.is-visible:hover { border-color: rgba(31, 115, 255, .5); transform: translateY(-3px); }

  .step:hover .step__num { background: var(--c-royal); color: var(--c-black); box-shadow: 0 0 0 6px var(--royal-10); }

  .channels a:hover { color: var(--c-cyan); border-color: currentColor; }
  .field input:hover:not(:focus), .field select:hover:not(:focus), .field textarea:hover:not(:focus) { border-color: var(--field-border-filled); }
  .qa summary:hover { color: var(--c-cyan); }
  .social a:hover { color: var(--c-black); background: var(--c-royal); border-color: var(--c-royal); }
  .footer__col a:not(.btn):hover { color: var(--c-cyan); }
  .to-top:hover, .footer__legal:hover, .legal a:hover { color: var(--c-cyan); }
  .modal__close:hover { color: var(--c-white); border-color: var(--c-royal); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  .nav__link:hover::after { transform: scaleX(1); }
}

/* Teclado: o card de serviço com foco ganha o mesmo destaque do hover */
.service-card:has(.service-card__more:focus-visible) { border-color: rgba(31, 115, 255, .55); }
.service-card:has(.service-card__more:focus-visible) .service-card__bar { width: 64px; }
.service-card:has(.service-card__more:focus-visible) .service-card__icon { background: var(--c-royal); color: var(--c-black); border-color: var(--c-royal); }

/* Toque: retorno visual breve enquanto o dedo está pressionado */
.service-card:active, .project:active { border-color: rgba(31, 115, 255, .55); }
.chip:active, .social a:active { border-color: var(--c-royal); }

/* Acessibilidade: movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
