:root {
  --midnight: #0b1020;
  --midnight-2: #121a30;
  --midnight-3: #1a2340;
  --line: #2a3350;
  --cyan: #00d4ff;
  --orange: #ff6b00;
  --orange-hover: #ff8a2a;
  --white: #ffffff;
  --gray-100: #e5e7eb;
  --gray-300: #bfc6d6;
  --gray-500: #9aa3b8;
  --gray-600: #6b7591;
  --pad-x: clamp(20px, 4vw, 48px);
  --pad-y: clamp(48px, 6vw, 80px);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--white);
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }
button, input, textarea { font: inherit; border-radius: 0; }
::placeholder { color: var(--gray-600); opacity: 1; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.container { max-width: 1280px; margin: 0 auto; }
.cyan { color: var(--cyan); }
.orange { color: var(--orange); }
.muted { color: var(--gray-300); font-size: 16px; }
.mono { font-family: var(--mono); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.h2-big { font-size: clamp(40px, 5.6vw, 76px); line-height: .95; letter-spacing: -.035em; }

/* Botões */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 18px;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-orange { background: var(--orange); color: var(--midnight); }
.btn-orange:hover { background: var(--orange-hover); color: var(--midnight); }
.btn-orange[disabled] { opacity: .7; cursor: progress; }
.btn-sm { font-size: 14px; padding: 10px 16px; }
.btn-cta { min-width: 220px; }
.btn-cta-lg { width: 260px; max-width: 100%; }
.btn-outline { border: 2px solid var(--cyan); color: var(--cyan); padding: 13px 18px; min-width: 180px; }
.btn-outline:hover { background: var(--cyan); color: var(--midnight); }
.btn-dark { background: var(--midnight); color: var(--white); width: 260px; max-width: 100%; }
.btn-dark:hover { background: var(--midnight-2); color: var(--cyan); }
.btn-ghost { background: transparent; border: 2px solid var(--line); color: var(--white); padding: 10px 14px; font-weight: 600; width: 200px; }
.btn-ghost:hover { border-color: var(--cyan); }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--midnight); border-bottom: 2px solid var(--line); }
.nav { padding: 14px var(--pad-x); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--white); }
.brand:hover { color: var(--white); }
.brand svg { flex: none; }
.wordmark { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.wordmark span { color: var(--cyan); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--gray-100); }
.nav-links a:hover { color: var(--cyan); }
.nav-toggle { display: none; background: transparent; color: var(--white); border: 2px solid var(--line); padding: 8px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }

@media (max-width: 960px) {
  .nav { gap: 12px 12px; }
  .nav-toggle { display: block; order: 2; }
  .nav .btn-sm { order: 1; }
  .nav-links { display: none; order: 10; width: 100%; flex-direction: column; gap: 0; border-top: 2px solid var(--line); margin: 2px calc(var(--pad-x) * -1) -14px; width: calc(100% + var(--pad-x) * 2); }
  .nav-links a { padding: 14px var(--pad-x); border-bottom: 2px solid var(--line); font-size: 16px; }
  .nav-links a:last-child { border-bottom: 0; }
  .header.open .nav-links { display: flex; }
  .wordmark { font-size: 18px; }
}
@media (max-width: 480px) {
  .nav .btn-sm { display: none; }
}

/* Seções */
.section { border-bottom: 2px solid var(--line); scroll-margin-top: 70px; }
.section-alt { background: var(--midnight-2); }
.section-head { padding: var(--pad-y) var(--pad-x) 32px; }
.section-head.split { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; }
.section-head.split > div { flex: 1 1 360px; }
.section-head.split > p { flex: 1 1 320px; color: var(--gray-300); font-size: 16px; max-width: 460px; }
.section-head.between { justify-content: space-between; }
.section-head.between > div { flex: 0 1 auto; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.hero-text {
  padding: clamp(48px, 8vw, 112px) var(--pad-x);
  display: flex; flex-direction: column; gap: 28px;
  border-right: 2px solid var(--line);
}
.hero-text .eyebrow { margin-bottom: 0; }
h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 800; line-height: .95; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--gray-300); max-width: 520px; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { background: var(--midnight-2); display: flex; align-items: center; justify-content: center; padding: 48px; min-height: 360px; }
.hero-logo { width: min(100%, 340px); height: auto; }

@media (max-width: 900px) {
  .hero-text { border-right: 0; border-bottom: 2px solid var(--line); }
  .hero-art { min-height: 280px; }
  .hero-logo { width: min(60%, 260px); }
}

/* Grades com linhas de 2px */
.grid { display: grid; gap: 2px; background: var(--line); border-top: 2px solid var(--line); list-style: none; }
.grid-services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-projects { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

.card {
  background: var(--midnight);
  padding: 32px clamp(20px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  transition: background-color .15s;
}
.card:hover { background: var(--midnight-2); }
.tag { font-family: var(--mono); font-size: 14px; color: var(--cyan); }
.card h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.card p, .step p { font-size: 15px; color: var(--gray-300); line-height: 1.55; text-wrap: pretty; }

.step { background: var(--midnight-2); padding: 32px clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.step-n { font-size: 56px; font-weight: 800; line-height: 1; color: var(--orange); letter-spacing: -.04em; }
.step h3 { font-size: 20px; font-weight: 800; }

/* Segmented */
.segmented { display: flex; border: 2px solid var(--line); }
.segmented button {
  background: var(--midnight); color: var(--gray-100);
  border: 0; padding: 10px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.segmented button[aria-pressed="true"], .segmented button[aria-checked="true"] { background: var(--cyan); color: var(--midnight); }
.segmented-full { flex-wrap: wrap; gap: 2px; background: var(--line); }
.segmented-full button { flex: 1 1 120px; padding: 12px; font-size: 14px; text-align: left; }

/* Projetos */
.project { background: var(--midnight); display: flex; flex-direction: column; color: var(--white); transition: background-color .15s; }
.project:hover { background: var(--midnight-2); color: var(--white); }
.project[hidden] { display: none; }
.project-img {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, var(--midnight-2) 0 10px, var(--midnight-3) 10px 11px);
  display: flex; align-items: flex-end; padding: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--gray-500);
  overflow: hidden;
}
.project-img:has(img) { padding: 0; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-foot { padding: 20px clamp(20px, 3vw, 28px); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; border-top: 2px solid var(--line); }
.project-name { font-size: 20px; font-weight: 800; margin-right: auto; }
.project-kind { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }

/* Agências */
.agencias { background: var(--orange); color: var(--midnight); }
.agencias-grid {
  padding: clamp(56px, 8vw, 112px) var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 64px; align-items: end;
}
.agencias .eyebrow { margin-bottom: 16px; }
.agencias-side { display: flex; flex-direction: column; gap: 20px; }
.agencias-side p { font-size: 18px; line-height: 1.5; font-weight: 500; }
.agencias :focus-visible { outline-color: var(--midnight); }

/* Contato */
.contato { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.contato-info { padding: var(--pad-y) var(--pad-x); display: flex; flex-direction: column; gap: 24px; border-right: 2px solid var(--line); }
.contato-info .eyebrow { margin-bottom: 0; }
.contato-info .muted { max-width: 420px; }
.contact-list { display: flex; flex-direction: column; gap: 2px; background: var(--line); border: 2px solid var(--line); max-width: 420px; }
.contact-list > div { background: var(--midnight); padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.contact-list dt { color: var(--gray-500); font-size: 13px; }
.contact-list dd { font-weight: 600; }

.contato-form { padding: var(--pad-y) var(--pad-x); background: var(--midnight-2); }
#form-contato { display: flex; flex-direction: column; gap: 20px; }
#form-contato label, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--gray-300); }
#form-contato input, #form-contato textarea {
  background: var(--midnight); border: 2px solid var(--line); color: var(--white);
  padding: 12px 14px; font-size: 15px; outline: none; width: 100%;
}
#form-contato textarea { resize: vertical; }
#form-contato input:focus, #form-contato textarea:focus { border-color: var(--cyan); }
#form-contato input[aria-invalid="true"] { border-color: var(--orange); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { border: 2px solid var(--orange); padding: 12px 14px; color: var(--white); font-size: 14px; }
.form-error a { font-weight: 600; }

.sent { display: flex; flex-direction: column; gap: 16px; border: 2px solid var(--cyan); padding: 32px; outline: none; }
.sent[hidden] { display: none; }
.sent-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }

@media (max-width: 900px) {
  .contato-info { border-right: 0; border-bottom: 2px solid var(--line); }
}

/* Rodapé */
.footer {
  padding: 32px var(--pad-x);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center;
  font-size: 13px;
}
.brand-sm .wordmark { font-size: 16px; }
.footer-muted { color: var(--gray-500); }
.footer-copy { color: var(--gray-600); }

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

/* Dúvidas frequentes */
.faq-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.faq-head { padding-bottom: var(--pad-y); align-self: start; position: sticky; top: 70px; }
.faq-cta { margin-top: 20px; }
.faq-cta a { font-weight: 600; }
.faq { display: flex; flex-direction: column; gap: 2px; background: var(--line); border-left: 2px solid var(--line); }
.faq details { background: var(--midnight); }
.faq details[open] { background: var(--midnight-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px var(--pad-x);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 800; line-height: 1; color: var(--cyan); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover h3 { color: var(--cyan); }
.faq h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; transition: color .15s; }
.faq details p { padding: 0 var(--pad-x) 24px; color: var(--gray-300); font-size: 16px; line-height: 1.6; max-width: 640px; text-wrap: pretty; }
@media (max-width: 900px) {
  .faq-head { padding-bottom: 32px; position: static; }
  .faq { border-left: 0; border-top: 2px solid var(--line); }
}

/* Card de serviço em destaque (link para página própria) */
.card-destaque { color: var(--white); position: relative; }
.card-destaque:hover { color: var(--white); }
.card-destaque::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--orange); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 8px; background: var(--orange); color: var(--midnight); font-family: "Archivo", system-ui, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.card-link { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--cyan); }
.card-destaque:hover .card-link { color: var(--white); }
@media (min-width: 640px) { .card-destaque { grid-column: span 2; } }

.nav-links a[aria-current="page"] { color: var(--cyan); }

/* Página: Agente de IA */
.trilha { font-size: 13px; color: var(--gray-500); }
.trilha a { color: var(--gray-300); }
.trilha a:hover { color: var(--cyan); }

.chat-art { padding: clamp(24px, 4vw, 48px); }
.chat { margin: 0; width: min(100%, 400px); background: var(--midnight); border: 2px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 2px solid var(--line); }
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { display: block; font-size: 12px; color: var(--cyan); }
.chat-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--orange); color: var(--midnight); font-weight: 800; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; }
.msg { max-width: 85%; padding: 10px 12px; font-size: 14px; line-height: 1.45; animation: msg-in .4s ease both; }
.msg-in { align-self: flex-start; background: var(--midnight-3); color: var(--white); }
.msg-out { align-self: flex-end; background: var(--cyan); color: var(--midnight); font-weight: 500; }
.msg:nth-child(1) { animation-delay: .2s; }
.msg:nth-child(2) { animation-delay: .9s; }
.msg:nth-child(3) { animation-delay: 1.6s; }
.msg:nth-child(4) { animation-delay: 2.3s; }
.msg:nth-child(5) { animation-delay: 3s; }
.msg:nth-child(6) { animation-delay: 3.7s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat figcaption { padding: 10px 16px; border-top: 2px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--gray-500); }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }

.grid-segmentos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 0; padding: 0; }
.segmento { background: var(--midnight); padding: 28px clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.segmento h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.segmento p { font-size: 15px; color: var(--gray-300); line-height: 1.55; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 600; }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: "✓"; font-weight: 800; }

#form-contato select {
  background: var(--midnight); border: 2px solid var(--line); color: var(--white);
  padding: 12px 14px; font: inherit; font-size: 15px; outline: none; width: 100%; border-radius: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
#form-contato select:focus { border-color: var(--cyan); }
