/* AI Soluções de Tecnologia — estilos compartilhados */
:root {
  color-scheme: dark light;
  --bg: #0d0e12;
  --bg-alt: #111318;
  --card: #15181e;
  --text: #f1f2f4;
  --text-2: #c9ccd2;
  --muted: #9aa0ab;
  --border: rgba(178, 182, 189, .18);
  --accent: #2b89ff;
  --accent-strong: #1060ff;
  --accent-hover: #2264d6;
  --on-accent: #fff;
  --focus: #7db4ff;
  --header-bg: rgba(13, 14, 18, .86);
  --shadow: 0 12px 28px rgba(0, 0, 0, .35);
  --radius: 14px;
  --max: 1160px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-alt: #f4f6fa;
    --card: #ffffff;
    --text: #12141a;
    --text-2: #3a3f4b;
    --muted: #596070;
    --border: rgba(20, 24, 34, .14);
    --accent: #0d55d8;
    --accent-strong: #0d55d8;
    --accent-hover: #0a43ab;
    --focus: #0d55d8;
    --header-bg: rgba(255, 255, 255, .88);
    --shadow: 0 10px 24px rgba(20, 24, 34, .1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--accent-strong); color: var(--on-accent);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-strong), #2b89ff); color: #fff; font-weight: 800; font-size: .95rem;
}
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; min-height: 46px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent-strong); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.btn-sm { padding: 9px 16px; min-height: 40px; font-size: .92rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-strong) 22%, transparent), transparent 66%);
}
.hero-inner { position: relative; }
.hero-inner > * { max-width: 860px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent-strong), #14c6cb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-2); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; color: var(--text-2); background: color-mix(in srgb, var(--card) 70%, transparent); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #20b27a; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 1.06rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.card {
  --c: var(--accent);
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--c); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .97rem; }
.card .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; margin-bottom: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticks { margin-top: auto; padding-top: 6px; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 7px; font-size: .92rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px; border-left: 2px solid var(--c, var(--accent)); border-bottom: 2px solid var(--c, var(--accent)); transform: rotate(-45deg) translateY(-50%); }
.card-link { margin-top: 16px; font-weight: 600; font-size: .94rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.step { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-strong); color: var(--on-accent); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--text-2); margin: 0; font-size: .97rem; }

/* Case cards (home) */
.case-card { --c: var(--accent); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.case-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.case-card p { color: var(--text-2); font-size: .95rem; flex: 1; }

/* Sectors */
.sector { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sector h3 { font-size: 1.05rem; margin-bottom: 6px; }
.sector p { margin: 0; color: var(--text-2); font-size: .94rem; }

/* Why */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 1.12rem; }
.panel .ticks li { color: var(--text-2); font-size: .98rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); }
.faq .answer p { margin: 0; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--card), var(--bg-alt)); border: 1px solid var(--border); border-radius: 20px; padding: clamp(32px, 6vw, 64px); text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
.cta p { color: var(--text-2); max-width: 620px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta .hero-actions { justify-content: center; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 36px 32px; grid-template-columns: 1.5fr 1.2fr 1fr 1.1fr; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer li { margin-bottom: 9px; }
.site-footer a:not(.btn):not(.brand) { color: var(--text-2); text-decoration: none; font-size: .95rem; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--accent); text-decoration: underline; }
.footer-note { color: var(--muted); font-size: .92rem; margin: 14px 0 0; max-width: 380px; }
.footer-cta { margin-top: 8px; }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.copy p { margin: 0; }
.copy a { color: var(--muted); text-decoration: none; }
.copy a:hover { color: var(--accent); text-decoration: underline; }

/* Cases page */
.page-hero { padding: clamp(48px, 8vw, 88px) 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.breadcrumb { font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.cat-section { padding: 48px 0 8px; scroll-margin-top: 84px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cat-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; }
.cat-intro { color: var(--text-2); max-width: 760px; margin-bottom: 26px; }
.case { --c: var(--accent); background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); margin-bottom: 20px; scroll-margin-top: 84px; }
.case h3 { font-size: 1.28rem; margin-bottom: 6px; }
.sector-line { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.case h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c); margin: 18px 0 6px; }
.case p { color: var(--text-2); margin: 0 0 8px; }
.case .ticks li { color: var(--text-2); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags li { font-family: var(--mono); font-size: .8rem; padding: 4px 10px; border-radius: 6px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-2); }
.note { font-size: .92rem; color: var(--muted); margin-top: 28px; }

/* Responsive nav: o menu só é recolhido quando há JavaScript para reabri-lo */
@media (max-width: 860px) {
  .js .nav-toggle { display: grid; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px 20px; display: none; }
  .js .nav.is-open { display: block; }
  .nav-list { flex-wrap: wrap; }
  .js .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 12px; }
  .nav-list .btn { margin-top: 8px; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print { .site-header, .cta, .skip-link { display: none; } body { background: #fff; color: #000; } }
