/* Dobem Tech · site institucional (v2, visual moderno)
   Base: azul-noite + azul do logo. Uma cor por fase do Processo Dobem.
   Fontes: Geist (texto e títulos) e Geist Mono (etiquetas). */
:root {
  --ink: #0B1622;
  --ink-2: #111F2E;
  --ink-3: #0E1B29;
  --brand: #0098DA;      /* azul do logo */
  --brand-light: #4FC3F7;
  --link: #0077B6;       /* azul de texto (contraste AA) */
  --link-hover: #005A8C;
  --ground: #F4F6F9;
  --surface: #FFFFFF;
  --line: #DDE3EA;
  --text: #0B1622;
  --muted: #4A5B6B;
  --muted-2: #6B7B8A;
  --on-dark: #E7EEF4;
  --on-dark-muted: #B8C7D3;
  --on-dark-faint: #8EA3B3;
  --ia: #6EE7B7;
  --radius: 22px;
  --max: 1200px;
  --font: "Geist", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--ground); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.container--narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 13px; color: var(--link); }
.h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.03em; font-weight: 800; }
.sub { color: var(--muted); font-size: 18px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 700 16px var(--font); text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #04121C; }
.btn--primary:hover { background: #22A8E3; color: #04121C; }
.btn--outline { border: 1px solid rgba(255,255,255,0.22); color: #fff; font-weight: 600; }
.btn--outline:hover { background: rgba(255,255,255,0.06); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); background: #E6F5FC; }
.btn--dark { background: var(--ink); color: #fff; width: 100%; }
.btn--dark:hover { color: #fff; background: #172A3D; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 600; }

/* Topo escuro */
.hero { background: var(--ink); color: var(--on-dark); padding: 56px 0 96px; background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 28px 28px; }
.hero .container { display: flex; flex-direction: column; gap: 72px; }
/* Menu fixo: acompanha a rolagem */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); padding: calc(12px + env(safe-area-inset-top, 0px)) 0 12px; transition: box-shadow .2s, background .2s; }
.site-header.is-scrolled { background: rgba(11, 22, 34, 0.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5); }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; background: rgba(255,255,255,0.04); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; }
.brand:hover { color: #fff; }
.brand b { color: var(--brand-light); }
.brand__logo { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a:not(.btn) { color: #C5D3DE; text-decoration: none; }
.nav a:not(.btn):hover { color: #fff; }
.menu-toggle { display: none; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); background: none; color: #fff; font: 600 15px var(--font); cursor: pointer; }

.hero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.pill { align-self: flex-start; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: #7FD3F7; border: 1px solid rgba(79,195,247,0.35); border-radius: 999px; padding: 6px 14px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; color: #fff; }
.hero h1 span { color: var(--brand-light); }
.lead { font-size: 20px; line-height: 1.55; color: var(--on-dark-muted); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--on-dark-faint); }

.term { flex: 1 1 380px; min-width: 0; border-radius: 24px; padding: 26px; background: var(--ink-2); border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 16px; }
.term__bar { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--on-dark-faint); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.term__bar i:nth-child(1) { background: #F87171; } .term__bar i:nth-child(2) { background: #FBBF24; } .term__bar i:nth-child(3) { background: #34D399; }
.term__bar span { margin-left: 8px; }
.term__title { font-size: 22px; line-height: 1.3; font-weight: 700; color: #fff; }
.term__title em { font-style: normal; color: var(--brand-light); }
.term__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.term__list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--rgb), 0.1); border: 1px solid rgba(var(--rgb), 0.28); font-weight: 600; color: #fff; }
.term__list li span { font-family: var(--mono); font-size: 13px; color: rgb(var(--rgb)); font-weight: 500; }
.ia { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ia); border: 1px solid rgba(110,231,183,0.4); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.r1 { --rgb: 251,191,36; } .r2 { --rgb: 79,195,247; } .r3 { --rgb: 167,139,250; } .r4 { --rgb: 52,211,153; } .r5 { --rgb: 251,113,133; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; overflow: hidden; }
.stats div { background: var(--ink-3); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.stats span { font-size: 14px; color: var(--on-dark-faint); }

/* Stack */
.stack { padding-block: 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.stack li:first-child { color: #8695A3; }

/* Seções */
.section { padding-block: 112px; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--flush { padding-top: 0; }
.stackv { display: flex; flex-direction: column; gap: 48px; }
.head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: end; }
.head > div, .head > h2 { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.head > p { flex: 1 1 320px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; letter-spacing: -0.01em; }
.card p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.err { font-family: var(--mono); font-size: 13px; color: #B42318; }

/* Bento de soluções */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento .card { min-height: 260px; border-radius: 24px; padding: 32px; }
.bento .w3 { grid-column: span 3; }
.bento .w2 { grid-column: span 2; min-height: 300px; }
.bento h3 { font-size: 26px; letter-spacing: -0.015em; }
.bento .w2 h3 { font-size: 24px; }
.bento .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; border-radius: 999px; padding: 4px 10px; }
.tag--amber { color: #92400E; background: #FEF3C7; }
.tag--blue { color: #075985; background: #E0F2FE; }
.tag--green { color: #065F46; background: #D1FAE5; }
.card--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.card--dark h3 { color: #fff; } .card--dark p { color: var(--on-dark-muted); }
.card--dark .tag { color: #FB7185; border: 1px solid rgba(251,113,133,0.45); }
.card--dark .more { color: var(--brand-light); }
.card--brand { background: var(--brand); border-color: var(--brand); color: #04121C; padding-bottom: 0 !important; overflow: hidden; gap: 12px; }
.card--brand p { color: #072B40; }
.card--brand .tag { color: #04121C; background: rgba(255,255,255,0.55); }
.card--brand .more { color: #04121C; }
.card--brand picture { display: block; align-self: flex-end; margin-top: auto; margin-bottom: -6px; }
.card--brand img { display: block; width: 190px; height: auto; }

/* Processo */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.phase { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--edge); }
.phase__n { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--c); color: #fff; font-family: var(--mono); font-weight: 600; }
.phase h3 { font-size: 21px; }
.phase p { font-size: 15px; color: var(--muted); }
.phase__foot { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--c); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; background: #fff; border: 1px solid var(--edge); border-radius: 8px; padding: 3px 8px; }
.p1 { --c: #B45309; --soft: #FFFBEB; --edge: #FDE68A; }
.p2 { --c: #0077B6; --soft: #F0F9FF; --edge: #BAE6FD; }
.p3 { --c: #6D28D9; --soft: #F5F3FF; --edge: #DDD6FE; }
.p4 { --c: #047857; --soft: #ECFDF5; --edge: #A7F3D0; }
.p5 { --c: #BE123C; --soft: #FFF1F2; --edge: #FECDD3; }
.fit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 24px 28px; border-radius: 20px; background: var(--ground); border: 1px solid var(--line); }
.fit strong { font-size: 18px; }
.fit span { color: var(--muted); flex: 1 1 420px; }

/* Evah */
.evah { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.evah__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.evah__text .label { color: var(--ia); }
.evah h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; color: #fff; }
.evah h2 span { color: var(--brand-light); }
.evah__text > p { font-size: 19px; color: var(--on-dark-muted); }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feats li { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.evah__text .btn { align-self: flex-start; }
.evah__visual { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.evah__img { width: 340px; max-width: 100%; height: auto; margin-bottom: -28px; position: relative; z-index: 1; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35)); }
.chat { margin: 0; width: 100%; border-radius: 24px; background: #12304A; border: 1px solid #1F4566; padding: 44px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.chat figcaption { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: #93B9D3; }
.chat figcaption img { width: 26px; height: 26px; border-radius: 50%; background: #E6F5FC; object-fit: cover; }
.msg { max-width: 85%; padding: 10px 14px; font-size: 15px; line-height: 1.45; }
.msg--in { align-self: flex-start; background: #1D4766; color: #EAF6FD; border-radius: 16px 16px 16px 4px; }
.msg--out { align-self: flex-end; background: #34D399; color: #04231A; border-radius: 16px 16px 4px 16px; }

/* Experiência */
.case { padding: 26px; gap: 10px; }
.case__sector { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.case strong { font-size: 38px; line-height: 1.05; letter-spacing: -0.03em; color: var(--link); }
.case__unit { font-size: 14px; color: var(--muted-2); }
.case p { font-size: 15px; }

/* Quem somos + FAQ */
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.about { flex: 1 1 420px; min-width: 0; border-radius: 24px; padding: 36px; gap: 16px; }
.person { display: flex; align-items: center; gap: 16px; }
.avatar { width: 72px; height: 72px; flex: none; border-radius: 20px; background: linear-gradient(135deg, var(--brand), #34D399); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; }
.person div { display: flex; flex-direction: column; }
.person strong { font-size: 22px; }
.person span { color: var(--muted-2); }
.values { font-size: 15px; color: var(--muted-2) !important; }
.values b { color: var(--text); }
.faq { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq .label { padding: 4px 0 6px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-size: 22px; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-bottom: 18px; color: var(--muted); }

/* Contato */
.cta { border-radius: 32px; background: var(--brand); color: #04121C; padding: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.cta__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta__text > p { font-size: 18px; color: #072B40; }
.cta__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 15px; }
.cta__list a { color: #04121C; }
.form { flex: 1 1 420px; min-width: 0; background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid #C9D3DD; border-radius: 12px; padding: 10px 14px; font: 16px var(--font); color: var(--text); background: #fff; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px #CDEBFA; }
.field .error { border-color: #DC2626; }
.form__note { font-size: 13px; color: var(--muted-2); }

/* Rodapé */
.footer { padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer__brand strong { color: var(--text); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--link); text-decoration: underline; }

/* Botão flutuante */
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35); }
.fab:hover { color: #fff; transform: translateY(-2px); }

/* Página legal (privacidade) */
.page-top { background: var(--ink); padding: 20px 0; }
.legal { display: grid; gap: 14px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em; }
.legal h2 { font-size: 22px; margin-top: 18px; }
.legal p { color: var(--muted); }

/* Responsivo */
@media (max-width: 1020px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases .phase:last-child { grid-column: 1 / -1; }
  .stats, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .w2 { grid-column: span 3; }
  .bento .w2:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; border-radius: 18px; background: var(--ink-2); border: 1px solid rgba(255,255,255,0.12); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav .btn { margin-top: 14px; }
  .hero .container { gap: 48px; }
  .hero { padding-top: 40px; }
  .section { padding-block: 80px; }
  .grid-3 { grid-template-columns: 1fr; }
  .bento .w3, .bento .w2 { grid-column: 1 / -1; }
  .cta { padding: 32px 24px; border-radius: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .phases, .stats, .grid-4, .feats { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
