/* ==========================================================================
   Tenaz Labs — folha de estilos principal
   ========================================================================== */

/* ---------- Fontes (hospedadas localmente) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/unbounded-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --night-950: #170c07;
  --night-900: #22120a;
  --night-800: #3a1d0f;
  --night-700: #5a2a14;
  --sun-600: #d9531e;
  --sun-500: #ec6c2c;
  --sun-100: #fbe6d6;
  --gold-400: #f6b04a;
  --rose-500: #b8394a;
  --ink: #2a170e;
  --text: #4e3a2e;
  --muted: #85695a;
  --line: #efe2d2;
  --bg: #fffcf8;
  --bg-soft: #f9f0e5;
  --ok: #17b26a;
  --err: #e5484d;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(42, 23, 14, .06), 0 2px 8px rgba(42, 23, 14, .05);
  --shadow: 0 10px 30px -10px rgba(42, 23, 14, .18);
  --shadow-lg: 0 30px 60px -20px rgba(23, 12, 7, .45);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sun-500); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--sun-600); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--night-900); color: #e6d2bf; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold-400); }
.h-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; }
.section-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.02em; max-width: 18ch; }
.section-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 60ch; }
.section--dark .section-lead { color: #cbae98; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .section-title, .section-head--center .section-lead { margin-left: auto; margin-right: auto; }
.grad-text { background: linear-gradient(90deg, var(--sun-500), var(--gold-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Marca (wordmark) ---------- */
.brand { display: inline-flex; align-items: baseline; gap: .28em; font-family: var(--font-display); font-size: 22px; line-height: 1; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.brand__tenaz { font-weight: 700; }
.brand__labs { font-weight: 300; }
.brand__cursor { display: inline-block; width: .5em; height: .12em; background: var(--sun-600); border-radius: 2px; margin-left: .06em; transform: translateY(.02em); animation: blink 1.1s steps(1) infinite; }
.brand--light { color: #fff; }
.brand--light .brand__cursor { background: var(--gold-400); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15.5px; line-height: 1; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--sun-600); color: #fff; box-shadow: 0 8px 22px -8px rgba(217, 83, 30, .7); }
.btn--primary:hover { background: #b9440f; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(217, 83, 30, .8); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--sun-600); color: var(--sun-600); }
.btn--white { background: #fff; color: var(--night-900); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header .brand { color: #fff; }
.header .brand__cursor { background: var(--gold-400); }
.header.is-scrolled { background: rgba(255, 250, 244, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .brand { color: var(--ink); }
.header.is-scrolled .brand__cursor { background: var(--sun-600); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .82); transition: color .2s, background-color .2s; }
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.header.is-scrolled .nav__link { color: var(--text); }
.header.is-scrolled .nav__link:hover, .header.is-scrolled .nav__link.is-active { color: var(--sun-600); background: var(--sun-100); }
.header__cta { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s, background-color .25s; content: ""; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
.header.is-scrolled .nav-toggle { border-color: var(--line); }
.header.is-scrolled .nav-toggle span, .header.is-scrolled .nav-toggle span::before, .header.is-scrolled .nav-toggle span::after { background: var(--ink); }
.nav-open .nav-toggle span { background: transparent !important; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  /* céu de fim de tarde no sertão: noite no alto, brasa no horizonte */
  background:
    radial-gradient(1000px 460px at 74% 100%, rgba(255, 168, 76, .55), transparent 62%),
    radial-gradient(1400px 620px at 40% 118%, rgba(184, 57, 74, .5), transparent 64%),
    linear-gradient(180deg, #170c07 0%, #26120a 38%, #4a1f10 72%, #7a3314 100%);
  color: #e6d2bf;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(150px, 16vw, 210px);
}
.hero::before { /* estrelas surgindo */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 24px 38px, rgba(255, 236, 214, .8), transparent),
    radial-gradient(1px 1px at 110px 96px, rgba(255, 236, 214, .55), transparent),
    radial-gradient(1.4px 1.4px at 180px 22px, rgba(255, 236, 214, .7), transparent),
    radial-gradient(1px 1px at 70px 150px, rgba(255, 236, 214, .45), transparent),
    radial-gradient(1px 1px at 230px 130px, rgba(255, 236, 214, .5), transparent);
  background-size: 260px 180px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 60%);
}
.hero__sun { /* sol se pondo atrás da serra */
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(280px, 34vw, 480px); aspect-ratio: 1; border-radius: 50%;
  right: clamp(-60px, 4vw, 90px); bottom: clamp(40px, 6vw, 90px);
  background: radial-gradient(circle at 50% 42%, #ffe2a3 0%, #ffbb5c 34%, #f37a32 64%, #d9531e 100%);
  box-shadow: 0 0 120px 40px rgba(243, 122, 50, .38), 0 0 280px 120px rgba(217, 83, 30, .22);
  opacity: .92;
}
.hero__land { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: clamp(120px, 16vw, 220px); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 500; color: #fff; font-size: clamp(32px, 4.3vw, 54px); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 24px; }
.hero__lead { font-size: clamp(17px, 1.7vw, 20px); color: #dcc3ad; max-width: 52ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; font-size: 14.5px; color: #b89a84; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 18px; height: 18px; color: var(--gold-400); }

/* Editor de código (ilustração do hero) */
.editor-wrap { position: relative; }
.editor {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(48, 24, 13, .82), rgba(26, 13, 7, .9));
  border: 1px solid rgba(255, 214, 170, .16);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.editor__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.editor__dot { width: 11px; height: 11px; border-radius: 50%; background: #4a2e1f; }
.editor__dot:nth-child(1) { background: #ff5f57; } .editor__dot:nth-child(2) { background: #febc2e; } .editor__dot:nth-child(3) { background: #28c840; }
.editor__file { margin-left: 14px; font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #b89a84; }
.editor__code { margin: 0; padding: 22px 22px 26px; font: 14.5px/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; color: #f1e2d3; overflow-x: auto; counter-reset: ln; }
.editor__code .ln { display: block; white-space: pre; }
.editor__code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2ch; margin-right: 18px; text-align: right; color: #6e4a35; }
.tk-k { color: #ff9a5a; } .tk-s { color: #f2cc8f; } .tk-f { color: #ffd166; } .tk-c { color: #9c7b64; font-style: italic; } .tk-p { color: #e8836b; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--gold-400); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14.5px; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.float-card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card__icon svg { width: 20px; height: 20px; }
.float-card--a { left: -34px; bottom: -30px; }
.float-card--a .float-card__icon { background: #e7f8ef; color: var(--ok); }
.float-card--b { right: -22px; top: -26px; animation-delay: -3s; }
.float-card--b .float-card__icon { background: var(--sun-100); color: var(--sun-600); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Números ---------- */
.stats { position: relative; z-index: 2; margin-top: -26px; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat { padding: 30px 18px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat__num span { color: var(--sun-600); }
.stat__label { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px; background: linear-gradient(135deg, var(--sun-600), #f0903e); color: #fff; box-shadow: 0 10px 22px -10px rgba(217, 83, 30, .8); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -.02em; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 16px; }
.service__list { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.service__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.service__list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--sun-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9531e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.service--featured { background: var(--night-900); border-color: var(--night-900); color: #e6d2bf; }
.service--featured h3 { color: #fff; }
.service--featured p { color: #cbae98; }
.service--featured .service__list { border-color: rgba(255, 255, 255, .14); }
.service--featured .service__list li { color: #f3e3d2; }
.service--featured .service__list li::before { background-color: rgba(246, 176, 74, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6b04a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.service--featured .service__icon { background: linear-gradient(135deg, var(--gold-400), var(--sun-500)); }
.service__tag { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: rgba(246, 176, 74, .14); color: var(--gold-400); }

/* ---------- Clientes (carrossel) ---------- */
.clients { padding: clamp(56px, 7vw, 84px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients__title { text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.client { flex: none; display: flex; align-items: center; justify-content: center; height: 84px; padding: 0 clamp(32px, 5vw, 60px); }
.client img { width: auto; opacity: .5; transition: opacity .3s ease, transform .3s ease; }
.client:hover img { opacity: 1; transform: scale(1.04); }
.client--techway img { height: 25px; }
.client--brpago img { height: 42px; }
.client--beachpark img { height: 64px; }
.client--fecomercio img { height: 44px; }
.client--text span { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: #b5a192; letter-spacing: -.02em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .3s, border-color .3s; }
.step:hover { background: rgba(255, 255, 255, .06); border-color: rgba(246, 176, 74, .35); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 300; font-size: 40px; line-height: 1; margin-bottom: 22px; background: linear-gradient(90deg, var(--sun-500), var(--gold-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: #c4a690; margin: 0; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.about__text p { color: var(--text); }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-100); color: var(--sun-600); }
.value__icon svg { width: 22px; height: 22px; }
.value > div > strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.value > div > span { font-size: 14.5px; color: var(--muted); line-height: 1.5; display: block; }
.dict {
  position: relative; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--night-800), var(--night-950));
  color: #e6d2bf; box-shadow: var(--shadow-lg); overflow: hidden;
}
.dict::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 83, 30, .45), transparent 70%); }
.dict__word { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 58px); color: #fff; letter-spacing: -.04em; line-height: 1; }
.dict__phon { margin-top: 10px; font-size: 15px; color: #b89a84; }
.dict__phon em { color: var(--gold-400); font-style: normal; margin-left: 8px; }
.dict ol { margin: 28px 0 0; padding: 0 0 0 22px; display: grid; gap: 14px; }
.dict li { padding-left: 6px; font-size: 16.5px; }
.dict li::marker { color: var(--gold-400); font-weight: 600; }
.dict__foot { position: relative; z-index: 1; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; color: #f3e3d2; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); background: linear-gradient(120deg, var(--rose-500), var(--sun-600) 48%, #f2a93b); color: #fff0e4; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.02em; margin-bottom: 10px; }
.cta p { margin: 0; font-size: 18px; color: #ffe4cf; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact__list { display: grid; gap: 16px; margin-top: 30px; }
.contact__item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
a.contact__item:hover { border-color: var(--sun-600); transform: translateX(4px); }
.contact__item .value__icon { width: 46px; height: 46px; }
.contact__item small { display: block; font-size: 13px; color: var(--muted); }
.contact__item strong { color: var(--ink); font-weight: 600; font-size: 16px; word-break: break-word; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  font-size: 16px; transition: border-color .2s, background-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385695a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun-600); background: #fff; box-shadow: 0 0 0 4px rgba(217, 83, 30, .12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sun-600); }
.check a { color: var(--sun-600); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form__status { font-size: 15px; font-weight: 500; margin: 0; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Rodapé ---------- */
.footer { background: var(--night-950); color: #b89a84; padding: clamp(56px, 7vw, 80px) 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__about p { margin-top: 18px; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); color: #ead7c4; transition: background-color .2s, border-color .2s, color .2s; }
.social a:hover { background: var(--sun-600); border-color: var(--sun-600); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #a0826d; }
.footer__bottom a:hover { color: #fff; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Página interna (política) ---------- */
.page-hero { background: var(--night-950); padding: calc(var(--header-h) + 56px) 0 56px; }
.page-hero h1 { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; margin: 0; }
.page-hero p { color: #b89a84; margin: 10px 0 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--sun-600); text-decoration: underline; }
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.not-found .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(90px, 18vw, 180px); line-height: 1; letter-spacing: -.05em; }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .float-card--a { left: -12px; bottom: -24px; }
  .float-card--b { right: -8px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px; background: #fff; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav .nav__link { color: var(--ink); padding: 14px 12px; font-size: 17px; border-radius: 10px; }
  .nav .nav__link:hover, .nav .nav__link.is-active { background: var(--bg-soft); color: var(--sun-600); }
  .header__cta { margin: 10px 0 0; }
  .nav-open .header { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .nav-open .header .brand { color: var(--ink); }
  .nav-open .header .brand__cursor { background: var(--sun-600); }
  .nav-open .nav-toggle { border-color: var(--line); }
  .nav-open .nav-toggle span::before, .nav-open .nav-toggle span::after { background: var(--ink); }
  .hero__grid { grid-template-columns: 1fr; }
  .editor-wrap { max-width: 560px; }
  .services { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .about, .contact { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .stat__num { font-size: 30px; }
  .stat__label { font-size: 13.5px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .stats { margin-top: -18px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 14px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .editor__code { font-size: 12.5px; padding: 18px 14px 20px; }
  .editor__code .ln::before { margin-right: 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .client { height: 70px; }
  .client--techway img { height: 20px; }
  .client--brpago img { height: 34px; }
  .client--beachpark img { height: 52px; }
  .client--fecomercio img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
  .reveal { opacity: 1; transform: none; }
}
