/* =========================================================
   Domma Tecnologia · site institucional
   Tokens extraídos do Design System v1 (nov/2026)
   ========================================================= */
:root {
  /* marca (fixas) */
  --brand-violet: #7B61FF;
  --brand-ink: #1A1033;
  --brand-mist: #F6F4FF;

  /* tema claro */
  --surface: #FFFFFF;
  --surface-subtle: #F6F4FF;
  --surface-raised: #FFFFFF;
  --surface-inverse: #1A1033;
  --ink: #1A1033;
  --ink-muted: #585470;
  --ink-inverse: #F6F4FF;
  --accent: #5B3FE6;
  --accent-hover: #4A2FD1;
  --on-accent: #FFFFFF;
  --accent-soft: #ECE8FF;
  --border: #E2DEF0;
  --border-strong: #8E86A8;
  --success: #0F7A5A;
  --success-soft: #E3F5EE;
  --danger: #C4314B;

  /* tons fixos do "modo escuro" para blocos de tinta (hero, manifesto, contato) */
  --dk-surface: #1A1033;
  --dk-subtle: #140C2A;
  --dk-raised: #241A45;
  --dk-muted: #B6AFD0;
  --dk-accent: #9C87FF;
  --dk-accent-hover: #B3A3FF;
  --dk-accent-soft: #2E2160;
  --dk-border: #3A2F5E;
  --dk-border-strong: #7D72A3;
  --dk-success: #4FD1A5;

  /* forma */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(26, 16, 51, .06), 0 1px 3px rgba(26, 16, 51, .06);
  --shadow-md: 0 4px 12px rgba(26, 16, 51, .08), 0 2px 4px rgba(26, 16, 51, .05);
  --shadow-lg: 0 18px 48px rgba(26, 16, 51, .16), 0 4px 12px rgba(26, 16, 51, .06);

  /* movimento: a senoide da onda */
  --ease: cubic-bezier(0.45, 0, 0.55, 1);
  --t-fast: 160ms;
  --t-med: 240ms;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1200px;
  --nav-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1A1033;
    --surface-subtle: #140C2A;
    --surface-raised: #241A45;
    --surface-inverse: #F6F4FF;
    --ink: #F6F4FF;
    --ink-muted: #B6AFD0;
    --ink-inverse: #1A1033;
    --accent: #9C87FF;
    --accent-hover: #B3A3FF;
    --on-accent: #1A1033;
    --accent-soft: #2E2160;
    --border: #3A2F5E;
    --border-strong: #7D72A3;
    --success: #4FD1A5;
    --success-soft: #0E2A24;
    --danger: #FF8A9A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --surface: #1A1033;
    --surface-subtle: #140C2A;
    --surface-raised: #241A45;
    --surface-inverse: #F6F4FF;
    --ink: #F6F4FF;
    --ink-muted: #B6AFD0;
    --ink-inverse: #1A1033;
    --accent: #9C87FF;
    --accent-hover: #B3A3FF;
    --on-accent: #1A1033;
    --accent-soft: #2E2160;
    --border: #3A2F5E;
    --border-strong: #7D72A3;
    --success: #4FD1A5;
    --success-soft: #0E2A24;
    --danger: #FF8A9A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .45);
    color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-muted); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-md); }
.skip:focus { top: 16px; }

/* ---------- tipografia ---------- */
.display-xl { font-size: clamp(40px, 6vw, 64px); line-height: 1.07; font-weight: 800; letter-spacing: -0.02em; }
.display { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.13; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 28px; }
.body-lg { font-size: 18px; line-height: 28px; }
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow-inverse { color: var(--dk-accent); }

/* ---------- sinal ---------- */
.sinal-dot { fill: var(--sinal-dot, var(--brand-ink)); }
.sinal-wave { stroke: var(--brand-violet); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary .ic { transition: transform var(--t-fast) var(--ease); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-secondary-inverse { color: var(--brand-mist); border-color: var(--dk-border-strong); background: transparent; }
.btn-secondary-inverse:hover { background: var(--dk-raised); border-color: var(--dk-accent); }

/* nos blocos de tinta o primário usa o accent do tema escuro */
.hero .btn-primary, .contact .btn-primary { background: var(--dk-accent); color: var(--brand-ink); }
.hero .btn-primary:hover, .contact .btn-primary:hover { background: var(--dk-accent-hover); }
.hero :focus-visible, .manifesto :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: var(--dk-accent); }

/* ---------- badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; border: 1px solid var(--border); color: var(--ink-muted); background: var(--surface-raised);
}
.badge-brand { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--brand-mist); --sinal-dot: var(--brand-mist);
  transition: background-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--border);
  color: var(--ink); --sinal-dot: var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-sinal { width: 46px; height: 30px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.logo-text small { font-size: 8.5px; letter-spacing: .42em; font-weight: 600; color: var(--brand-violet); margin-top: 4px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn) { position: relative; opacity: .82; transition: opacity var(--t-fast) var(--ease); }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav .nav-cta { background: var(--dk-accent); color: var(--brand-ink); }
.nav .nav-cta:hover { background: var(--dk-accent-hover); }
.nav.scrolled .nav-cta { background: var(--accent); color: var(--on-accent); }
.nav.scrolled .nav-cta:hover { background: var(--accent-hover); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-md); background: transparent; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-ink); color: var(--brand-mist); --sinal-dot: var(--brand-mist);
  padding-top: calc(var(--nav-h) + 72px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(246, 244, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 244, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
}
.hero-wave { position: absolute; left: -2%; width: 104%; bottom: 72px; height: 220px; pointer-events: none; opacity: .5; }
.hero-wave path { fill: none; stroke: var(--brand-violet); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 10; animation: waveflow 18s linear infinite; }
@keyframes waveflow { to { stroke-dashoffset: -640; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-bottom: 96px; }
.hero h1 { margin-bottom: 24px; }
.scramble-wrap { display: block; }
.scramble { color: var(--brand-violet); font-family: inherit; white-space: nowrap; }
.scramble-wrap { min-height: 1.07em; }
.scramble::after { content: ""; display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--brand-violet); opacity: 0; }
.scramble.typing::after { opacity: 1; animation: blink 1s steps(2) infinite; }
.hero-lead { font-size: 18px; line-height: 28px; color: var(--dk-muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: 14px; color: var(--dk-muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .ic { width: 16px; height: 16px; color: var(--dk-success); }

/* editor */
.editor {
  background: var(--dk-subtle); border: 1px solid var(--dk-border); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; min-width: 0;
  font-family: var(--mono); font-size: 13.5px; line-height: 22px;
}
.editor-bar { display: flex; align-items: center; gap: 16px; height: 42px; padding: 0 14px; background: var(--dk-surface); border-bottom: 1px solid var(--dk-border); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--dk-border); }
.editor-tabs { display: flex; gap: 2px; font-size: 12px; overflow: hidden; }
.tab { padding: 6px 12px; border-radius: var(--radius-sm); color: var(--dk-muted); white-space: nowrap; }
.tab.active { background: var(--dk-raised); color: var(--brand-mist); }
.editor-body { display: flex; padding: 16px 0; min-height: 316px; }
.gutter { width: 44px; text-align: right; padding-right: 14px; color: #5a5080; user-select: none; flex-shrink: 0; }
.code { margin: 0; padding: 0 16px 0 4px; font: inherit; color: var(--brand-mist); white-space: pre; overflow: hidden; flex: 1; min-width: 0; }
.tk-k { color: var(--dk-accent); }
.tk-s { color: var(--dk-success); }
.tk-c { color: #7D72A3; font-style: italic; }
.tk-f { color: #F5B547; }
.tk-p { color: var(--dk-muted); }
.caret { display: inline-block; width: 8px; height: 17px; vertical-align: -3px; background: var(--brand-violet); animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.terminal { border-top: 1px solid var(--dk-border); padding: 12px 16px; min-height: 102px; background: #120a26; font-size: 12.5px; line-height: 20px; }
.term-line { white-space: pre-wrap; opacity: 0; transform: translateY(4px); animation: termin var(--t-med) var(--ease) forwards; }
.term-line.muted { color: var(--dk-muted); }
.term-line .ok { color: var(--dk-success); }
.term-line .ai { color: var(--dk-accent); }
@keyframes termin { to { opacity: 1; transform: none; } }
.editor-status { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 14px; background: var(--dk-surface); border-top: 1px solid var(--dk-border); font-size: 11.5px; color: var(--dk-muted); font-family: var(--font); }
.editor-status .mono { font-size: 11px; }
.status-ai { display: inline-flex; align-items: center; gap: 8px; color: var(--dk-accent); font-weight: 600; }

/* SinalLoader: a onda sendo desenhada, ponto pulsando */
.sinal-loader { width: 28px; height: 18px; overflow: visible; }
.sl-dot { fill: var(--brand-mist); animation: pulse 1.2s var(--ease) infinite; transform-origin: 44px 8px; }
.sl-wave { fill: none; stroke: var(--brand-violet); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.6s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 160; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.status-ai.done .sl-wave { animation: none; stroke-dashoffset: 0; }
.status-ai.done .sl-dot { animation: none; opacity: 1; }
.status-ai.done { color: var(--dk-success); }

/* marquee */
.marquee { position: relative; border-top: 1px solid var(--dk-border); overflow: hidden; padding: 20px 0; background: var(--brand-ink);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 14px; color: var(--dk-muted); padding: 0 28px; white-space: nowrap; position: relative; }
.marquee span::before { content: "/"; position: absolute; left: -4px; color: var(--dk-border-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { padding: 120px 0; }
.section-subtle { background: var(--surface-subtle); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .body-lg { margin-top: 16px; }

.problem-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.problem-list { display: grid; gap: 20px; padding-top: 32px; }
.problem-list .body-lg { color: var(--ink-muted); }
.problem-list strong { color: var(--ink); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface-raised); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .eyebrow { margin: 20px 0 8px; font-size: 11px; }
.card h3 { margin-bottom: 10px; }
.card p:not(.eyebrow) { color: var(--ink-muted); font-size: 15px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card-icon .ic { width: 22px; height: 22px; }
.card::after { /* linha de "código" que surge no hover */
  content: attr(data-code); position: absolute; right: 20px; top: 26px; font-family: var(--mono); font-size: 11px; color: var(--ink-muted); opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.card:hover::after { opacity: .8; }

/* agentes */
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.agents-copy .body-lg { margin-top: 16px; }
.agent-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.agent-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-raised); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-muted);
  transition: all var(--t-fast) var(--ease);
}
.agent-tab .ic { width: 16px; height: 16px; }
.agent-tab:hover { border-color: var(--border-strong); color: var(--ink); }
.agent-tab[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.checks { display: grid; gap: 12px; margin-top: 32px; color: var(--ink-muted); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--success); margin-top: 2px; width: 18px; height: 18px; }

.chat { border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface-raised); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.chat-head strong { display: block; font-size: 15px; }
.chat-sub { font-size: 12px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 6px; }
.online { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.chat-avatar { width: 40px; height: 40px; border-radius: 21%; background: var(--brand-ink); display: grid; place-items: center; --sinal-dot: var(--brand-mist); }
.chat-avatar svg { width: 26px; height: 17px; }
.chat-badge { margin-left: auto; }
.chat-body { height: 440px; padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; background: var(--surface-subtle); }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 21px; animation: msgin var(--t-med) var(--ease) both; }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: var(--surface-raised); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-tool {
  align-self: flex-start; font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--ink-muted);
  padding: 8px 12px; border-radius: var(--radius-md); background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  animation: msgin var(--t-med) var(--ease) both; max-width: 92%;
}
.msg-tool b { color: var(--accent); font-weight: 600; }
.msg-tool .ok { color: var(--success); }
.thinking { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); font-weight: 600; padding: 6px 0; animation: msgin var(--t-med) var(--ease) both; }
.thinking .sl-dot { fill: var(--ink); }
@keyframes msgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* processo */
.process { position: relative; }
.process-wave { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.process-wave path { fill: none; stroke: var(--brand-violet); stroke-width: 3; stroke-linecap: round; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 150px; counter-reset: s; }
.step { position: relative; }
.step::before { /* ponto sobre a onda */
  content: ""; position: absolute; top: var(--dy, -96px); left: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface-subtle); border: 3px solid var(--accent);
}
.step-num { display: inline-block; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 15px; }

/* manifesto */
.manifesto { background: var(--brand-ink); color: var(--brand-mist); padding: 140px 0; position: relative; overflow: hidden; --sinal-dot: var(--brand-mist); }
.manifesto-inner { max-width: 980px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.manifesto-sinal { width: 92px; height: 60px; margin-bottom: 40px; }
.manifesto-text { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.manifesto-text .w { color: #4a4170; transition: color 400ms var(--ease); }
.manifesto-text .w.lit { color: var(--brand-mist); }

/* por que */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-item { padding-top: 24px; border-top: 2px solid var(--border); transition: border-color var(--t-med) var(--ease); }
.why-item:hover { border-color: var(--accent); }
.why-item .ic { width: 26px; height: 26px; color: var(--accent); margin-bottom: 20px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--ink-muted); font-size: 15px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .body-lg { margin-top: 16px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color var(--t-fast) var(--ease); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--accent); transition: transform var(--t-med) var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-muted); }

/* contato */
.contact { background: var(--brand-ink); color: var(--brand-mist); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(246, 244, 255, .07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy .body-lg { color: var(--dk-muted); margin-top: 20px; max-width: 480px; }
.contact-list { display: grid; gap: 20px; margin-top: 40px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--dk-accent-soft); color: var(--dk-accent); flex-shrink: 0; }
.contact-list small { display: block; font-size: 13px; color: var(--dk-muted); margin-bottom: 2px; }
.contact-list a { font-weight: 600; font-size: 17px; line-height: 25px; transition: color var(--t-fast) var(--ease); }
.contact-list a:hover { color: var(--dk-accent); }

.form { background: var(--dk-raised); border: 1px solid var(--dk-border); border-radius: var(--radius-xl); padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.form h3 { font-size: 24px; line-height: 32px; }
.form-sub { color: var(--dk-muted); margin: 4px 0 24px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.field legend { margin-bottom: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--dk-surface); border: 1px solid var(--dk-border-strong); color: var(--brand-mist);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form textarea { resize: vertical; min-height: 104px; }
.form input::placeholder, .form textarea::placeholder { color: #7D72A3; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--dk-accent); box-shadow: 0 0 0 2px var(--dk-surface), 0 0 0 4px var(--dk-accent); }
.form .invalid { border-color: #FF8A9A !important; }
.err { font-size: 13px; color: #FF8A9A; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--dk-border-strong); font-size: 14px; font-weight: 500; cursor: pointer; user-select: none;
  transition: all var(--t-fast) var(--ease);
}
.chip span:hover { border-color: var(--dk-accent); }
.chip input:checked + span { background: var(--dk-accent); border-color: var(--dk-accent); color: var(--brand-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--dk-accent); outline-offset: 2px; }
.wa-fallback { display: block; margin-top: 12px; text-align: center; font-weight: 600; color: var(--dk-accent); text-decoration: underline; }
.form-note { font-size: 12.5px; color: var(--dk-muted); margin-top: 14px; text-align: center; }

/* footer */
.footer { background: var(--dk-subtle); color: var(--dk-muted); padding: 72px 0 0; --sinal-dot: var(--brand-mist); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand .logo { color: var(--brand-mist); margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h4 { color: var(--brand-mist); font-size: 14px; margin-bottom: 6px; }
.footer-col a:hover { color: var(--dk-accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dk-border); font-size: 13px; }
.footer-bottom { align-items: center; }
.credit-band { margin-top: 32px; border-top: 1px solid var(--dk-border); background: #0E0820; }
.credit { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--dk-muted); text-align: center; }
.credit strong { color: var(--brand-mist); font-weight: 600; }
.credit img { height: 30px; width: auto; display: block; }

/* whatsapp flutuante */
.wa-float {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px; border-radius: var(--radius-pill);
  background: var(--brand-ink); color: var(--brand-mist); border: 1px solid var(--dk-border-strong);
  font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg);
  transform: translateY(120px); transition: transform 400ms var(--ease), background-color var(--t-fast) var(--ease);
}
.wa-float.show { transform: none; }
.wa-float:hover { background: var(--dk-raised); }
.wa-float .ic { color: var(--dk-success); }

/* ---------- revelação no scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .agents, .problem-inner, .faq-wrap, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .problem-list { padding-top: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); padding-top: 0; gap: 40px 24px; }
  .process-wave, .step::before { display: none; }
  .step { padding-left: 20px; border-left: 3px solid var(--brand-violet); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); color: var(--ink); padding: 8px 16px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all var(--t-med) var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); opacity: 1; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .nav-cta { margin-top: 16px; height: 48px; background: var(--accent) !important; color: var(--on-accent) !important; }
  .nav.menu-open { background: var(--surface); color: var(--ink); --sinal-dot: var(--ink); }
}
@media (max-width: 640px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-inner { padding-bottom: 64px; }
  .hero-actions .btn { width: 100%; }
  .cards, .why, .steps, .row { grid-template-columns: 1fr; }
  .editor { font-size: 11.5px; line-height: 19px; }
  .editor-body { min-height: 270px; }
  .gutter { width: 32px; padding-right: 10px; }
  .chat-body { height: 460px; padding: 16px; }
  .chat-badge { display: none; }
  .form { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .manifesto { padding: 96px 0; }
  .wa-float span { display: none; }
  .credit { padding-bottom: 88px; }
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .scramble { white-space: normal; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .14em; }
  .code { overflow-x: auto; }
  .faq summary { font-size: 16px; padding: 18px 20px; }
  .faq details p { padding: 0 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .reveal { transform: none; transition: opacity 300ms linear !important; }
  .marquee-track { animation: none; }
  .sl-wave { stroke-dashoffset: 0; }
}
