:root {
  --navy: #0B1220;
  --navy-soft: #16213a;
  --ivory: #F4F1E8;
  --ivory-dim: #eae5d6;
  --brass: #B89A5A;
  --brass-soft: #ddd0ad;
  --brass-deep: #7a6232; /* brass legível sobre ivory (AA) */
  --line: rgba(11, 18, 32, .12);
  --line-dark: rgba(244, 241, 232, .14);
  --dim: rgba(11, 18, 32, .68);
  --dim-dark: rgba(244, 241, 232, .72);
  --err: #9a3b2c;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--ivory); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, backdrop-filter .3s; }
.header.solid { background: rgba(11, 18, 32, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.header .logo { height: 26px; width: auto; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--brass); color: var(--navy); font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); background: var(--brass-soft); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Seções ---------- */
section { position: relative; padding: clamp(72px, 11vw, 132px) 0; }
.dark { background: var(--navy); color: var(--ivory); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 18px; }
.dark .eyebrow { color: var(--brass); }
.h2 { font-size: clamp(30px, 5vw, 52px); max-width: 18ch; }
.lead { margin-top: 22px; max-width: 58ch; color: var(--dim); font-size: clamp(17px, 2vw, 20px); }
.dark .lead { color: var(--dim-dark); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(36px, 7vw, 76px); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero .lead { margin-bottom: 38px; }
.hero .eyebrow { color: var(--brass); }
.bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(184, 154, 90, .28), transparent 65%); will-change: transform; }
.blob.a { width: 70vmax; height: 70vmax; right: -25vmax; top: -20vmax; animation: drift 22s ease-in-out infinite alternate; }
.blob.b { width: 50vmax; height: 50vmax; left: -22vmax; bottom: -22vmax; background: radial-gradient(circle, rgba(244, 241, 232, .09), transparent 65%); animation: drift 28s ease-in-out infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 72px 72px; opacity: .35; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 70%); }
.mark { position: absolute; z-index: 1; right: -6vw; bottom: -8vw; width: min(52vw, 560px); opacity: .07; animation: spin 90s linear infinite; }
@keyframes drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Dores ---------- */
.pains { display: grid; gap: 14px; margin-top: 48px; grid-template-columns: 1fr; }
.pain { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .45); font-weight: 600; transition: transform .3s var(--ease); }
.pain svg { flex: none; width: 26px; height: 26px; color: var(--brass-deep); margin-top: 2px; }
.pain:hover { transform: translateY(-4px); }

/* ---------- Solução ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 52px; }
.pillar { padding: 24px 18px; border: 1px solid var(--line-dark); border-radius: 18px; text-align: center; font-weight: 700; font-size: 15px; transition: transform .3s var(--ease); }
.pillar svg { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--brass); }
.pillar:hover { transform: translateY(-4px); }
.pillar:last-child { grid-column: 1 / -1; }

/* ---------- Serviços ---------- */
.card { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: #fff; isolation: isolate; transition: transform .3s var(--ease); }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--brass); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover, .card:focus-within { transform: translateY(-5px); }
.card:hover::after, .card:focus-within::after { opacity: 1; }
.card .ico { width: 34px; height: 34px; color: var(--brass-deep); margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 16px; }
.feature { margin-top: 52px; background: var(--navy); color: var(--ivory); padding: clamp(28px, 5vw, 56px); border-radius: 26px; overflow: hidden; }
.feature .ico { color: var(--brass); width: 44px; height: 44px; }
.feature h3 { font-size: clamp(28px, 4.5vw, 44px); }
.feature p { color: var(--dim-dark); font-size: clamp(17px, 2vw, 20px); max-width: 52ch; margin-top: 12px; }
.feature .tag { display: inline-block; margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass); border-radius: 999px; padding: 6px 14px; }
.cards { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: 1fr; }

/* ---------- Números ---------- */
.stats { display: grid; gap: 36px; margin-top: 56px; grid-template-columns: 1fr; }
.stat { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.stat b { display: block; font-size: clamp(44px, 8vw, 76px); font-weight: 800; letter-spacing: -.03em; color: var(--brass); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: var(--dim-dark); }

/* ---------- Passos ---------- */
.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 34px 68px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--brass-deep); display: grid; place-items: center; font-weight: 800; color: var(--brass-deep); background: var(--ivory); }
.steps li::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; width: 1.5px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 21px; margin-bottom: 4px; padding-top: 8px; }
.steps p { color: var(--dim); }

/* ---------- Sobre ---------- */
.about p.big { font-size: clamp(20px, 3vw, 30px); line-height: 1.45; font-weight: 600; max-width: 34ch; letter-spacing: -.01em; }
.about p.big strong { color: var(--brass); }

/* ---------- Formulário ---------- */
.formsec { background: var(--ivory-dim); }
.form { margin-top: 44px; display: grid; gap: 18px; max-width: 760px; }
.row { display: grid; gap: 18px; grid-template-columns: 1fr; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1.5px solid rgba(11, 18, 32, .28); border-radius: 14px; background: #fff; color: var(--navy); font: 500 16px/1.4 var(--font); transition: border-color .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%230B1220' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(184, 154, 90, .55); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--err); }
.msg { display: none; color: var(--err); font-size: 14px; font-weight: 600; margin-top: 6px; }
.field.bad .msg { display: block; }
.opt { font-weight: 500; color: var(--dim); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.consent input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { background: var(--navy); color: var(--ivory); width: 100%; }
.form .btn:hover { background: var(--navy-soft); }
.alert { display: none; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--err); color: var(--err); font-weight: 600; background: #f2ded9; }
.alert.show { display: block; }
.success { display: none; max-width: 760px; margin-top: 44px; padding: clamp(28px, 5vw, 48px); border-radius: 24px; background: var(--navy); color: var(--ivory); }
.success.show { display: block; }
.success svg { width: 44px; height: 44px; color: var(--brass); margin-bottom: 16px; }
.success p { font-size: clamp(20px, 3vw, 26px); font-weight: 700; line-height: 1.3; }

/* ---------- Rodapé ---------- */
footer { background: var(--navy); color: var(--ivory); padding: 64px 0 40px; }
footer .top { display: grid; gap: 32px; }
footer .logo { height: 30px; width: auto; margin-bottom: 14px; }
footer .tag { color: var(--dim-dark); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--dim-dark); }
footer a { text-decoration-color: var(--brass); text-underline-offset: 4px; }
footer .copy { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--dim-dark); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; cursor: pointer; }

/* ---------- Modal ---------- */
dialog { width: min(640px, calc(100% - 32px)); max-height: 86svh; border: 0; border-radius: 22px; padding: 0; background: var(--ivory); color: var(--navy); }
dialog::backdrop { background: rgba(11, 18, 32, .7); }
dialog .in { padding: 32px 28px; overflow-y: auto; max-height: 86svh; }
dialog h2 { font-size: 26px; margin-bottom: 16px; }
dialog h3 { font-size: 17px; margin: 20px 0 6px; }
dialog p { color: var(--dim); }
dialog .x { margin-top: 24px; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .pains { grid-template-columns: repeat(2, 1fr); }
  .row.two { grid-template-columns: 1fr 1fr; }
  .row.three { grid-template-columns: 2fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .pains { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(5, 1fr); }
  .pillar:last-child { grid-column: auto; }
  footer .top { grid-template-columns: 2fr 1fr 1fr; }
  .header .logo { height: 30px; }
}
@media (max-width: 639px) {
  .blob, .mark { animation: none; }
  .grid-lines { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

svg.i { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn { white-space: nowrap; }
@media (max-width: 480px) {
  .header .logo { height: 22px; }
  .btn.sm { padding: 0 14px; font-size: 13px; }
  .mark { opacity: .05; }
}
