/* =========================================================================
   KINEXIS INDUSTRIAL — Design System
   Engenharia de conformidade normativa · Manaus / PIM
   Stack: HTML/CSS/JS vanilla · mobile-first
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:            #0A0A0A;
  --surface:       #1A1A1A;
  --surface-2:     #141414;
  --border:        #2A2A2A;
  --border-strong: #3A3A3A;
  --text:          #F5F5F5;
  --text-muted:    #A3A3A3;
  --text-dim:      #6E6E6E;
  --amber:         #F5A623;
  --amber-dark:    #C8851A;
  --amber-soft:    rgba(245, 166, 35, 0.12);
  --success:       #22C55E;
  --success-soft:  rgba(34, 197, 94, 0.12);
  --danger:        #EF4444;
  --danger-soft:   rgba(239, 68, 68, 0.12);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --maxw:     1200px;
  --maxw-narrow: 820px;
  --radius:   4px;
  --radius-lg: 8px;
  --gap:      clamp(1rem, 2vw, 1.75rem);

  --shadow:   0 10px 40px rgba(0,0,0,0.5);
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);

  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* overflow-x: clip (não 'hidden') — clipa o transbordo horizontal SEM tornar o
   <html> um contêiner de rolagem, preservando o scroll suave para âncoras (#contato). */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--amber); color: #000; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--amber);
  display: inline-block;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 62ch; }
.amber { color: var(--amber); }
.success { color: var(--success); }
.danger  { color: var(--danger); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.1rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

.divider { height: 1px; background: var(--border); border: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(10,10,10,0.94); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1; }
.brand__text small { display: block; font-size: 0.6rem; letter-spacing: 0.34em; color: var(--amber); font-weight: 500; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.98rem; color: var(--text-muted);
  transition: color .2s var(--ease); position: relative; padding-block: 4px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--amber); transition: width .25s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

/* Botão dentro do menu é exclusivo do dropdown mobile — no desktop usamos o de .nav__cta */
.nav__links .btn { display: none; }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav__toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px; align-items: center;
  flex-shrink: 0;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.6rem; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--amber); color: #0A0A0A; border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(4rem, 9vw, 7rem); overflow: hidden;
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, var(--amber-soft) 0%, transparent 62%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 900px; }
.hero h1 { margin: 1.4rem 0 0; text-transform: uppercase; }
.hero h1 .amber { display: inline; }
.hero__tagline {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: clamp(0.95rem, 1.7vw, 1.15rem); color: var(--text); margin-top: 1.6rem; font-weight: 500;
}
.hero__tagline b { color: var(--amber); font-weight: 600; }
.hero .lead { margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.4rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta dt { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--amber); line-height: 1; }
.hero__meta dd { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem); transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s;
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--amber-soft);
  display: grid; place-items: center; margin-bottom: 1.2rem; color: var(--amber);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; }

/* Link cards (frentes de trabalho) */
.linkcard {
  display: flex; flex-direction: column; cursor: pointer; text-decoration: none;
}
.linkcard::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--amber);
  transition: width .3s var(--ease);
}
.linkcard:hover::after { width: 100%; }
.linkcard .linkcard__more {
  margin-top: auto; padding-top: 1.2rem; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 600; color: var(--amber); display: inline-flex; align-items: center; gap: 0.5rem;
}
.linkcard:hover .linkcard__more svg { transform: translateX(4px); }
.linkcard__more svg { width: 16px; transition: transform .2s var(--ease); }

/* ---------- Problem section ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.problem-item { background: var(--surface-2); padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; gap: 1.1rem; align-items: flex-start; transition: background .25s; }
.problem-item:hover { background: var(--surface); }
.problem-item .x { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; font-weight: 700; }
.problem-item .x svg { width: 18px; height: 18px; }
.problem-item h4 { margin-bottom: 0.35rem; }
.problem-item p { font-size: 0.94rem; }

/* ---------- Cycle / steps (numbered) ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.5vw, 1.8rem); transition: border-color .25s, transform .25s;
}
.step:hover { border-color: var(--amber); transform: translateX(4px); }
.step__num {
  counter-increment: step; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245,166,35,0.3);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h4 { margin-bottom: 0.3rem; }
.step p { font-size: 0.95rem; }

/* ---------- Feature split (approach / grid) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-list .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list li span { color: var(--text-muted); }
.feature-list li b { color: var(--text); }

/* ---------- Mock panel (Kinexis Grid visual) ---------- */
.panel-mock {
  background: linear-gradient(160deg, #161616, #0e0e0e); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.panel-mock__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.panel-mock__bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.panel-mock__bar .dot:nth-child(1){ background:#EF4444; } .panel-mock__bar .dot:nth-child(2){ background:#F5A623; } .panel-mock__bar .dot:nth-child(3){ background:#22C55E; }
.panel-mock__bar span { margin-left: 0.6rem; font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-body); }
.panel-mock__body { padding: 1.3rem; display: grid; gap: 1rem; }
.panel-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; }
.panel-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; }
.panel-kpi .n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.panel-kpi .l { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-top: 0.35rem; }
.panel-rows { display: grid; gap: 0.55rem; }
.panel-row { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.9rem; font-size: 0.85rem; }
.panel-row .bar { height: 6px; border-radius: 3px; background: var(--border-strong); overflow: hidden; margin-top: 0.4rem; }
.panel-row .bar i { display: block; height: 100%; background: var(--amber); border-radius: 3px; }
.panel-row .machine { color: var(--text); font-weight: 500; }
.badge { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: 100px; white-space: nowrap; }
.badge--ok { background: var(--success-soft); color: var(--success); }
.badge--warn { background: var(--amber-soft); color: var(--amber); }
.badge--risk { background: var(--danger-soft); color: var(--danger); }

/* ---------- Pains (dores) list ---------- */
.pains { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.pain {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--danger);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; transition: transform .2s, border-color .2s;
}
.pain:hover { transform: translateY(-3px); }
.pain h4 { display: flex; gap: 0.6rem; align-items: baseline; font-size: 1.05rem; margin-bottom: 0.4rem; }
.pain h4 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; transform: translateY(-2px); }
.pain p { font-size: 0.92rem; }

/* ---------- Deliverables ---------- */
.deliverables { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.deliverable { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; display: flex; gap: 1rem; align-items: center; transition: border-color .25s; }
.deliverable:hover { border-color: var(--amber); }
.deliverable .di { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius); background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; }
.deliverable .di svg { width: 22px; height: 22px; }
.deliverable span { font-weight: 500; color: var(--text); font-size: 0.95rem; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--surface-2); border-block: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--amber); line-height: 1; }
.stat .num small { font-size: 0.5em; }
.stat .lbl { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* ---------- Heatmap (NR-17) ---------- */
.heatmap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.heatmap__head, .heatmap__row { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); }
.heatmap__head { background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.heatmap__head div, .heatmap__row div { padding: 0.85rem 1rem; font-size: 0.85rem; display: flex; align-items: center; }
.heatmap__head div { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); font-size: 0.75rem; justify-content: center; }
.heatmap__head div:first-child, .heatmap__row div:first-child { justify-content: flex-start; color: var(--text); font-weight: 500; }
.heatmap__row { border-bottom: 1px solid var(--border); }
.heatmap__row:last-child { border-bottom: 0; }
.cell { justify-content: center !important; font-weight: 600; font-family: var(--font-display); }
.cell--low  { background: var(--success-soft); color: var(--success); }
.cell--mid  { background: var(--amber-soft); color: var(--amber); }
.cell--high { background: var(--danger-soft); color: var(--danger); }

/* ---------- Matrix (priorização) ---------- */
.matrix { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.matrix__q { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; background: var(--surface-2); }
.matrix__q h4 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.matrix__q .tag { font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 100px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; }
.matrix__q ul { display: grid; gap: 0.4rem; }
.matrix__q li { font-size: 0.9rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.matrix__q li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 1.6rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -2rem; top: 4px; width: 18px; height: 18px; margin-left: -1px; border-radius: 50%; background: var(--bg); border: 3px solid var(--amber); }
.timeline__item h4 { margin-bottom: 0.25rem; }
.timeline__item .when { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--amber); }

/* ---------- Why / credentials ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.why-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem,2.5vw,2rem); }
.why-item .why-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; margin-bottom: 1.1rem; }
.why-item .why-icon svg { width: 24px; height: 24px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #1c1305, #0A0A0A 60%); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 50% 0%, var(--amber-soft), transparent 60%); pointer-events:none; }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 55ch; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact / form ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__aside .contact-line { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.4rem; }
.contact__aside .contact-line .ci { width: 40px; height: 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--amber); display: grid; place-items: center; flex-shrink: 0; }
.contact__aside .contact-line .ci svg { width: 20px; height: 20px; }
.contact__aside .contact-line b { display: block; }
.contact__aside .contact-line a, .contact__aside .contact-line span { color: var(--text-muted); font-size: 0.95rem; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-body); font-size: 0.98rem; padding: 0.85rem 1rem; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: #171717; }
.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' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A3A3A3' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form__note { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.9rem; text-align: center; }
/* Honeypot anti-spam — invisível para humanos, tentador para bots */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__feedback { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form__feedback.is-error { display: block; background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.form__feedback.is-ok { display: block; background: var(--success-soft); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  transition: transform .2s var(--ease); animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse { 0%,100%{ box-shadow: 0 8px 30px rgba(37,211,102,0.35);} 50%{ box-shadow: 0 8px 30px rgba(37,211,102,0.65);} }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { height: 54px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-col h5 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--text); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a, .footer-col li { font-size: 0.92rem; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-dim); }
.credit { display: inline-block; margin-top: 0.5rem; font-size: 0.72rem; color: #444444; text-decoration: none; letter-spacing: 0.02em; transition: color .2s var(--ease); }
.credit:hover { color: #666666; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-badges .fb { font-size: 0.74rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 1.5rem; }
.modal.is-open { display: grid; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); }
.modal__box { position: relative; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); max-width: 560px; width: 100%; padding: clamp(1.8rem,4vw,2.6rem); box-shadow: var(--shadow); animation: modal-in .3s var(--ease); max-height: 90vh; overflow-y: auto; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98);} to { opacity:1; transform: none; } }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); display: grid; place-items: center; transition: color .2s, border-color .2s; }
.modal__close:hover { color: var(--amber); border-color: var(--amber); }
.modal__box .eyebrow { margin-bottom: 1rem; }
.modal__box h3 { margin-bottom: 0.8rem; }

/* ---------- Thank-you page ---------- */
.thanks { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.thanks__check { width: 88px; height: 88px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 1.8rem; animation: pop .5s var(--ease); }
.thanks__check svg { width: 44px; height: 44px; }
@keyframes pop { 0%{ transform: scale(0);} 70%{ transform: scale(1.12);} 100%{ transform: scale(1);} }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

/* ---------- Utilities ---------- */
.mt-1{margin-top:.6rem}.mt-2{margin-top:1.2rem}.mt-3{margin-top:2rem}.mb-0{margin-bottom:0}
.tag-inline { display:inline-flex; align-items:center; gap:.5rem; background:var(--surface); border:1px solid var(--border); border-radius:100px; padding:.4rem .9rem; font-size:.82rem; color:var(--text-muted); }
.tag-inline .d { width:8px;height:8px;border-radius:50%;background:var(--success); }
.notice { background: var(--amber-soft); border: 1px solid rgba(245,166,35,0.3); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; display:flex; gap:1rem; align-items:flex-start; }
.notice .ni { color: var(--amber); flex-shrink:0; }
.notice .ni svg { width:24px;height:24px; }
.notice p { color: var(--text); font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .deliverables { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 1rem clamp(1.2rem,4vw,2.5rem) 1.5rem; gap: 0; transform: translateY(-120%); transition: transform .32s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta .btn { display: none; }
  .nav__links .btn { display: inline-flex; margin-top: 1rem; }

  .grid-2, .grid-3, .grid-4, .problem-grid, .pains, .deliverables, .matrix, .why-grid, .panel-kpis { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; }
  .hero__meta { gap: 1.4rem; }
  .heatmap { overflow-x: auto; }
  .heatmap__head, .heatmap__row { min-width: 480px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
