/* ==========================================================================
   LuxDomus — site institucional
   Cores e tipografia seguem o sistema de marca LuxDomus:
   azul-marinho bem escuro como base, dourado só nos destaques,
   títulos em serifada (Playfair Display) e texto em Mulish.
   ========================================================================== */

/* ---------- Fontes (arquivos locais, licença SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #000b16;
  --navy-900: #001425;
  --navy-850: #041b31;
  --navy-800: #0b2540;
  --navy-700: #12304f;
  --hairline: #24405f;
  --hairline-soft: rgba(36, 64, 95, 0.6);
  --ink: #f9f6f0;
  --muted: #b4bfce;
  --muted-2: #8a98ab;
  --gold-300: #f3d58a;
  --gold-500: #e3a63a;
  --gold-700: #b98524;
  --cream: #f9f6f0;
  --cream-200: #f1ebdf;
  --ink-dark: #0b1a30;
  --muted-dark: #4a5568;
  --hairline-light: #d9d0bf;
  --ok: #5ccf8e;
  --gold-grad: linear-gradient(115deg, #b98524 0%, #e3a63a 34%, #f3d58a 50%, #e3a63a 66%, #b98524 100%);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
::selection { background: rgba(227, 166, 58, 0.35); color: var(--ink); }
section[id], main[id] { scroll-margin-top: calc(var(--header-h) - 2px); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--gold-500); color: var(--navy-900);
  padding: 10px 16px; border-radius: 4px; font-weight: 800;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
.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;
}
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Tipografia ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-500);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold-grad); flex: none; }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.015em;
  margin-top: 22px; text-wrap: balance;
}
.gold {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.08em; margin-right: -0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.75; color: var(--muted); }
.br-m { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px; border-radius: 4px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-position 0.6s var(--ease),
              background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn .icon { width: 19px; height: 19px; }
.btn-gold {
  background: var(--gold-grad); background-size: 220% 100%; background-position: 0% 0;
  color: var(--navy-900);
  box-shadow: 0 12px 32px -14px rgba(227, 166, 58, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 44px -16px rgba(227, 166, 58, 0.75); }
.btn-ghost { border: 1px solid rgba(249, 246, 240, 0.28); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-300); transform: translateY(-2px); }
.btn-navy { background: var(--navy-900); color: var(--ink); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 11.5px; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: rgba(0, 20, 37, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(36, 64, 95, 0.75);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 31px; width: auto; }
.main-nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.main-nav a {
  position: relative; padding: 6px 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted);
  transition: color 0.3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 4px;
  border: 1px solid rgba(249, 246, 240, 0.22);
  align-items: center; justify-content: center; color: var(--ink);
}
.menu-toggle .icon { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(227, 166, 58, 0.12), transparent 60%),
    var(--navy-900);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(30px, 8vw, 40px); line-height: 1.2;
  padding: 12px 0; border-bottom: 1px solid var(--hairline-soft);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a .icon { color: var(--gold-500); width: 22px; height: 22px; }
.mobile-menu-foot { display: grid; gap: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  background:
    radial-gradient(900px 620px at 76% 40%, rgba(227, 166, 58, 0.09), transparent 62%),
    var(--navy-900);
}
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  transition: filter 1.4s var(--ease);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-900) 0%, rgba(0, 20, 37, 0.78) 16%, rgba(0, 20, 37, 0.15) 46%, rgba(0, 20, 37, 0) 62%),
    linear-gradient(0deg, var(--navy-900) 0%, rgba(0, 20, 37, 0) 26%),
    linear-gradient(180deg, rgba(0, 20, 37, 0.75) 0%, rgba(0, 20, 37, 0) 24%);
}
.hero.lights-off .hero-media img { filter: brightness(0.26) saturate(0.45) contrast(1.05); }
.hero-ld {
  position: absolute; z-index: 2;
  top: calc(var(--header-h) + 30px); right: var(--gutter);
  width: 50px; height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}
.hero-inner { position: relative; }
.hero-copy { max-width: 640px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(52px, 6.8vw, 106px); line-height: 0.98; letter-spacing: -0.022em;
  margin: 28px 0 30px;
}
.hero h1 .gold { display: inline-block; }
.hero .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.hero-note .icon { width: 18px; height: 18px; color: var(--gold-500); stroke-width: 2; }

.light-card {
  position: absolute; z-index: 3; left: calc(44% + 56px); bottom: 72px;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px 14px 14px; border-radius: 16px;
  background: rgba(3, 15, 28, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(249, 246, 240, 0.16);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.light-icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(227, 166, 58, 0.14); color: var(--gold-300);
  transition: background-color 0.4s, color 0.4s;
}
.light-icon .icon { width: 21px; height: 21px; }
.light-text { display: grid; line-height: 1.25; }
.light-text small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.light-text strong { font-size: 15px; font-weight: 800; margin-top: 3px; }
.light-text em { font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hero.lights-off .light-icon { background: rgba(255, 255, 255, 0.06); color: var(--muted-2); }

.switch {
  position: relative; width: 50px; height: 28px; border-radius: 30px; margin-left: 8px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.35s var(--ease);
}
.switch span {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease);
}
.switch[aria-checked="true"] { background: var(--gold-grad); }
.switch[aria-checked="true"] span { transform: translateX(22px); }

/* ---------- Faixa de diferenciais ---------- */
.trust {
  background: var(--navy-850);
  border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 16px; align-items: flex-start; padding: 32px 26px; border-left: 1px solid var(--hairline-soft); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item .icon { width: 28px; height: 28px; color: var(--gold-500); margin-top: 2px; }
.trust-item strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.35; }
.trust-item span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Seções ---------- */
.section { position: relative; padding: clamp(92px, 11vw, 156px) 0; }
.section-head {
  display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: end;
  gap: clamp(28px, 6vw, 96px); margin-bottom: clamp(48px, 6vw, 84px);
}
.section-head > p { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 480px; }
.with-plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/planta.svg") right -120px top 40px / min(1100px, 92vw) auto no-repeat;
  opacity: 0.17;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.with-plan { isolation: isolate; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); }
.pillar { padding: 36px 36px 0 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--hairline); }
.pillar .num { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--gold-500); }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 32px); margin: 14px 0 12px; }
.pillar p { color: var(--muted); font-size: 15.5px; }

/* Soluções: cada frente com resumo e escopo técnico */
.services { background: var(--navy-950); }
.spec { border-top: 1px solid var(--hairline); }
.spec-row {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
  padding: clamp(36px, 4vw, 52px) 0; border-bottom: 1px solid var(--hairline);
}
.spec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: start; }
.spec-icon {
  grid-row: 1 / span 2;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  color: var(--gold-300); border: 1px solid rgba(227, 166, 58, 0.45); background: rgba(227, 166, 58, 0.06);
}
.spec-icon .icon { width: 26px; height: 26px; stroke-width: 1.4; }
.spec-head h3 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.15;
  margin-top: 9px; text-wrap: balance;
}
.spec-head p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-top: 12px; max-width: 400px; }
.scope-wrap summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--gold-500);
  pointer-events: none;
}
.scope-wrap summary::-webkit-details-marker { display: none; }
.scope-wrap summary .faq-icon { display: none; }
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.scope li {
  position: relative; padding: 14px 0 14px 24px; border-top: 1px solid var(--hairline);
  font-size: 14.5px; line-height: 22px; color: var(--ink);
}
.scope li::before { content: ""; position: absolute; left: 0; top: 25px; width: 11px; height: 1px; background: var(--gold-500); }
.nowrap { white-space: nowrap; }

/* Para cada obra */
.segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.segment {
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(180deg, rgba(11, 37, 64, 0.55), rgba(11, 37, 64, 0.12));
  transition: border-color 0.45s, transform 0.45s var(--ease);
}
.segment:hover { border-color: rgba(227, 166, 58, 0.45); transform: translateY(-4px); }
.segment-art {
  aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
  background:
    radial-gradient(70% 60% at 50% 70%, rgba(227, 166, 58, 0.12), transparent 70%),
    var(--navy-850);
}
.segment-art svg { width: 92%; height: auto; }
.segment-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.segment h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; line-height: 1.15; }
.segment p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.segment ul { margin-top: 22px; display: grid; gap: 10px; }
.segment li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--ink); }
.segment li::before { content: ""; width: 14px; height: 1px; background: var(--gold-500); flex: none; transform: translateY(-4px); }

/* Ilustrações: janelas acendem ao entrar na tela */
.art-line { stroke: #4a76a3; stroke-width: 1.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art-soft { stroke: #2b4b6e; stroke-width: 1; fill: none; }
.art-lit { opacity: 0.12; transition: opacity 0.9s var(--ease); }
.art-glow { opacity: 0; transition: opacity 1.2s var(--ease); }
.is-visible .art-lit { opacity: var(--o, 1); }
.is-visible .art-glow { opacity: 0.85; }
.is-visible .art-lit:nth-of-type(2n) { transition-delay: 0.25s; }
.is-visible .art-lit:nth-of-type(3n) { transition-delay: 0.5s; }
.is-visible .art-lit:nth-of-type(5n) { transition-delay: 0.75s; }

/* Automação */
.automation {
  background:
    radial-gradient(800px 560px at 78% 50%, rgba(227, 166, 58, 0.10), transparent 64%),
    var(--navy-950);
}
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .lead { margin-top: 26px; max-width: 520px; }
.automation .split { grid-template-columns: 0.8fr 1.2fr; }
.checklist { margin-top: 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: center; font-size: 15.5px; font-weight: 600; }
.checklist li .icon {
  width: 28px; height: 28px; padding: 6px; border-radius: 50%; stroke-width: 2.2;
  color: var(--gold-300); background: rgba(227, 166, 58, 0.12);
}
.device-note { margin-top: 16px; font-size: 12px; color: var(--muted-2); text-align: center; }

/* Telas reais do painel: tablet com o celular sobreposto no canto */
.devices { position: relative; padding: 0 6% 9% 0; }
.tablet {
  position: relative; margin: 0; padding: 11px; border-radius: 28px;
  background: linear-gradient(150deg, #1e2a36 0%, #070b10 60%);
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.tablet::before {
  content: ""; position: absolute; top: 50%; left: 4px; width: 3px; height: 3px; border-radius: 50%;
  background: #2b3846; transform: translateY(-50%);
}
.tablet img { width: 100%; height: auto; border-radius: 18px; }
.phone-shot {
  position: absolute; right: 0; bottom: 0; width: 23.5%; margin: 0; padding: 5px; border-radius: 24px;
  background: linear-gradient(150deg, #2a3744 0%, #070b10 65%);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.phone-shot img { width: 100%; height: auto; border-radius: 19px; }

/* LD Assist */
.assist .split { grid-template-columns: 0.95fr 1.05fr; }
.assist-device { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: min(320px, 82vw); padding: 11px; border-radius: 48px;
  background: linear-gradient(150deg, #24303c 0%, #070b10 65%);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; border-radius: 20px;
  background: #05080c; transform: translateX(-50%); z-index: 2;
}
.app {
  position: relative; border-radius: 38px; overflow: hidden; aspect-ratio: 9 / 19;
  padding: 60px 18px 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d2238 0%, #071526 100%);
  color: #f4f1ea;
}
.app-bar { display: flex; align-items: center; gap: 10px; }
.app-bar img { width: 24px; height: auto; }
.app-bar strong { font-size: 15px; font-weight: 800; flex: 1; }
.app-bar .icon { width: 20px; height: 20px; color: #9fb0c3; }
.app-hello { margin-top: 22px; }
.app-hello p { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.app-hello span { font-size: 12.5px; color: #9fb0c3; }
.app-cta {
  margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 12px; background: var(--gold-grad); color: var(--navy-900);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.app-cta .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.app-label { margin: 20px 0 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #8293a7; }
.app-list { display: grid; gap: 8px; }
.app-list li {
  display: grid; gap: 6px; padding: 12px 13px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06);
}
.app-list strong { font-size: 12.5px; font-weight: 800; line-height: 1.3; }
.app-list span { font-size: 11px; color: #8fa0b4; }
.pill { justify-self: start; font-style: normal; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.pill.ok { color: #7fe0a6; background: rgba(92, 207, 142, 0.14); }
.pill.gold { color: var(--gold-300); background: rgba(227, 166, 58, 0.16); }
.pill.blue { color: #9cc6ff; background: rgba(110, 168, 255, 0.15); }
.app-tabs {
  margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 12px 4px 22px; border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10.5px; font-weight: 700; color: #7f90a4; text-align: center;
}
.app-tabs .on { color: var(--gold-300); }

/* Como trabalhamos */
.process { background: var(--navy-950); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px;
  background: linear-gradient(90deg, var(--gold-700), var(--hairline) 40%, var(--hairline));
}
.step { position: relative; padding: 0 28px 0 0; }
.step-num {
  position: relative; display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--gold-300);
  background: var(--navy-950); border: 1px solid rgba(227, 166, 58, 0.55);
}
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin: 28px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }
.badge {
  display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 30px;
  font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-300); background: rgba(227, 166, 58, 0.12); border: 1px solid rgba(227, 166, 58, 0.35);
}

/* Perguntas frequentes */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-intro > p:not(.kicker) { color: var(--muted); margin: 22px 0 30px; max-width: 360px; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-300); }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1.5px; background: var(--gold-500);
  transition: transform 0.35s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 48px 28px 0; color: var(--muted); font-size: 15.5px; line-height: 1.8; }

/* Contato */
.contact { background: var(--cream); color: var(--ink-dark); }
.contact .kicker { color: var(--gold-700); }
.contact .lead { color: var(--muted-dark); margin-top: 24px; max-width: 520px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-points { margin-top: 34px; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 14px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink-dark); }
.contact-points .icon { color: var(--gold-700); }
.contact-card {
  background: #fff; padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--hairline-light);
  box-shadow: 0 40px 80px -50px rgba(11, 26, 48, 0.45);
}
.contact-card .btn { min-height: 60px; font-size: 13px; }
.contact-line {
  display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hairline-light);
  transition: color 0.3s;
}
.contact-line:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-line:first-of-type { margin-top: 10px; }
.contact-line > .icon { color: var(--gold-700); }
.contact-line span { display: grid; flex: 1; line-height: 1.35; font-size: 16px; font-weight: 700; }
.contact-line small { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); }
.contact-line .arrow { width: 18px; height: 18px; color: var(--muted-dark); transition: transform 0.3s var(--ease), color 0.3s; }
.contact-line:hover { color: var(--gold-700); }
.contact-line:hover .arrow { transform: translate(2px, -2px); color: var(--gold-700); }

/* Rodapé */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--hairline-soft); padding: 72px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 180px; height: auto; }
.footer-brand p { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--muted); }
.footer-col { display: grid; align-content: start; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-col > p { font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 6px; }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hairline-soft);
  font-size: 12.5px; color: var(--muted-2);
}
.footer-bottom a:hover { color: var(--ink); }

/* Botão flutuante do WhatsApp */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); background-size: 220% 100%; color: var(--navy-900);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(227, 166, 58, 0.12);
  opacity: 0; transform: translateY(16px) scale(0.92); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.wa-fab .icon { width: 27px; height: 27px; }
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* Animação de entrada (só com JavaScript ativo) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.segments-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.segments-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsivo ---------- */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 26px 22px; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--hairline-soft); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .hero {
    flex-direction: column; align-items: stretch; justify-content: flex-end;
    min-height: auto; padding: 0 0 72px;
  }
  .hero-media { position: relative; width: 100%; height: 62svh; min-height: 420px; max-height: 620px; }
  .hero-media::after {
    background:
      linear-gradient(0deg, var(--navy-900) 0%, rgba(0, 20, 37, 0.35) 34%, rgba(0, 20, 37, 0) 60%),
      linear-gradient(180deg, rgba(0, 20, 37, 0.8) 0%, rgba(0, 20, 37, 0) 30%);
  }
  .hero-inner { margin-top: -40px; }
  .hero h1 { font-size: clamp(46px, 11vw, 76px); margin: 22px 0 22px; }
  .hero-ld { top: calc(var(--header-h) + 18px); width: 40px; }
  .light-card { left: var(--gutter); right: auto; bottom: auto; top: calc(62svh - 196px); }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .spec-head p { max-width: 560px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--hairline); }
  .segments-grid { grid-template-columns: 1fr; max-width: 620px; }
  .split, .assist .split, .automation .split { grid-template-columns: 1fr; }
  .assist .assist-device { order: 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .brand img { height: 27px; }
  .hero-actions .btn { width: 100%; }
  .hero .kicker { font-size: 10.5px; letter-spacing: 0.13em; }
  .hero .kicker::before { display: none; }
  .light-card { gap: 12px; padding: 12px 12px 12px 12px; }
  .light-icon { width: 36px; height: 36px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(3) { border-left: 0; padding: 22px 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--hairline-soft); }
  .hero .kicker { line-height: 1.75; }
  .br-m { display: inline; }
  .sep-d { display: none; }
  .spec-row { padding: 30px 0; gap: 16px; }
  .spec-head { column-gap: 16px; align-items: center; }
  .spec-icon { grid-row: auto; width: 48px; height: 48px; }
  .spec-icon .icon { width: 22px; height: 22px; }
  .spec-head h3 { margin-top: 0; }
  .spec-head p { grid-column: 1 / -1; margin-top: 14px; }
  .scope { grid-template-columns: minmax(0, 1fr); }
  .devices { padding: 0 4% 12% 0; }
  .tablet { padding: 7px; border-radius: 18px; }
  .tablet img { border-radius: 12px; }
  .phone-shot { width: 27%; padding: 3px; border-radius: 15px; }
  .phone-shot img { border-radius: 12px; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step h3 { margin-top: 20px; }
  .faq-answer { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .wa-fab { right: 16px; bottom: 16px; }
}

@media (max-width: 520px) {
  /* no celular o escopo vira uma lista que abre com um toque */
  .scope-wrap summary {
    pointer-events: auto; cursor: pointer; min-height: 50px; padding: 0;
    border-top: 1px solid var(--hairline);
  }
  .scope-wrap summary .faq-icon { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
