/* ==========================================================
   Royal Solutions · estilos globais
   Paleta e tipografia: Plataforma de Marca
   ========================================================== */

:root {
  --royal: #1B2A6B;
  --royal-900: #0F1A47;
  --royal-800: #152259;
  --tech: #2F6BFF;
  --tech-100: #E6EEFF;
  --gold: #E0B64A;
  --ink: #2B2F36;
  --muted: #5E6573;
  --line: #E3E7EF;
  --ice: #F5F7FA;
  --white: #FFFFFF;

  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -24px rgba(15, 26, 71, .35);
  --shadow-sm: 0 8px 24px -12px rgba(15, 26, 71, .25);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--royal); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--tech); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--ice { background: var(--ice); }
.section--dark { background: var(--royal-900); color: #C9D2EE; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--tech);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section--dark .eyebrow { color: #8FB0FF; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #AEB9DA; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--tech); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-title); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--royal); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -12px rgba(47, 107, 255, .7); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost::after { background: var(--white); }
.btn--ghost:hover { color: var(--royal); }
.btn--outline { --bg: transparent; --fg: var(--royal); box-shadow: inset 0 0 0 1.5px var(--royal); }
.btn--outline:hover { color: var(--white); }
.btn--wa { --bg: #1FAF5A; }
.btn--wa::after { background: #178a47; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-weight: 700; color: var(--tech); font-size: .95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--royal); }
.logo__img { display: block; height: 40px; aspect-ratio: 1373 / 281; background: currentColor; -webkit-mask: url(../img/logo-royal-solutions.png) center / contain no-repeat; mask: url(../img/logo-royal-solutions.png) center / contain no-repeat; }
@media (max-width: 600px) { .logo__img { height: 32px; } }
.logo__mark { width: 42px; height: 34px; flex: none; }
.logo__mark .crown { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.logo__mark .base { stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; }
.logo__mark .jewel { fill: var(--gold); }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-title); }
.logo__text b { font-weight: 800; font-size: 1.28rem; letter-spacing: .06em; }
.logo__text span { font-weight: 500; font-size: .62rem; letter-spacing: .5em; margin-top: 4px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header--over { color: var(--white); }
.header--over .logo { color: var(--white); }
.header.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.header.is-solid .logo { color: var(--royal); }
.header.is-hidden { transform: translateY(-100%); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link, .nav__drop > button {
  position: relative; padding: 10px 14px; border-radius: 10px; border: 0; background: none; color: inherit;
  font-family: var(--font-title); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__drop { position: relative; }
.nav__drop > button svg { width: 12px; height: 12px; transition: transform .3s; }
.nav__drop:hover > button svg, .nav__drop:focus-within > button svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 10px;
  background: var(--white); color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav__menu a:hover { background: var(--ice); color: var(--tech); }
.header__cta { padding: 12px 20px; font-size: .88rem; }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: inherit; position: relative; }
.is-solid .burger { background: var(--ice); }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 13px; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.burger span { top: 22px; }
.burger span::before { content: ""; left: 0; top: -7px; }
.burger span::after { content: ""; left: 0; top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--white); color: var(--ink);
    overflow-y: auto; transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .menu-open .nav { transform: none; }
  .menu-open .header { background: var(--white); color: var(--ink); }
  .menu-open .header .logo { color: var(--royal); }
  .nav__link, .nav__drop > button { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 12px 12px; min-width: 0; }
  .nav .btn { margin-top: 24px; justify-content: center; }
}
@media (min-width: 1041px) { .nav .btn { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; background: var(--royal-900);
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero__media { position: absolute; inset: -6% 0 0 0; z-index: 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(15, 26, 71, .96) 0%, rgba(15, 26, 71, .86) 38%, rgba(27, 42, 107, .45) 70%, rgba(27, 42, 107, .2) 100%),
    linear-gradient(0deg, rgba(15, 26, 71, .7), transparent 40%);
}
.hero__grid { position: absolute; inset: 0; z-index: 1; opacity: .55; pointer-events: none; }
.hero__grid line { stroke: rgba(143, 176, 255, .18); stroke-width: 1; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s var(--ease) forwards; }
.hero__grid line:nth-child(2n) { animation-delay: .25s; }
.hero__grid line:nth-child(3n) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__glow {
  position: absolute; z-index: 1; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(47, 107, 255, .35), transparent 65%);
  left: var(--gx, 70%); top: var(--gy, 40%); transform: translate(-50%, -50%);
  transition: left .8s var(--ease), top .8s var(--ease); filter: blur(10px);
}
.hero .container { position: relative; z-index: 2; }
.hero__content { max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #8FB0FF, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #C9D2EE; max-width: 58ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; font-size: .92rem; color: #C9D2EE; }
.hero__chips li { display: flex; align-items: center; gap: 10px; }
.hero__chips svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(255, 255, 255, .5);
}
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--white); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hero--page { min-height: 78svh; }
.breadcrumb { font-size: .85rem; color: #AEB9DA; margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--white); }

/* texto que sobe palavra por palavra */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + 150ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Marquee ---------- */
.marquee { background: var(--royal); color: var(--white); padding: 22px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-title); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .02em; white-space: nowrap; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto (destaque por scroll) ---------- */
.manifesto__text { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.25; letter-spacing: -.02em; color: var(--royal); max-width: 22ch; margin-bottom: 40px; }
.manifesto__text .mw { opacity: .16; transition: opacity .4s; }
.manifesto__text .mw.on { opacity: 1; }
.manifesto__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.manifesto__aside p { color: var(--muted); }

/* ---------- Serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ice); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.07); }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__num { font-family: var(--font-title); font-weight: 700; font-size: .78rem; color: var(--gold); letter-spacing: .16em; margin-bottom: 10px; }
.card ul { margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: .94rem; }
.card li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.card li:last-child { border-bottom: 0; }
.card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 2px; background: var(--tech); transform: rotate(45deg); }
.card .link-arrow { margin-top: auto; }

/* ---------- Segmentos ---------- */
.segments { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.seg {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 360px;
  color: var(--white); display: flex; align-items: flex-end; isolation: isolate;
}
.seg:nth-child(1) { grid-column: span 7; min-height: 460px; }
.seg:nth-child(2) { grid-column: span 5; min-height: 460px; }
.seg:nth-child(3) { grid-column: span 5; }
.seg:nth-child(4) { grid-column: span 7; }
.seg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.seg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15, 26, 71, .94) 0%, rgba(15, 26, 71, .35) 55%, rgba(15, 26, 71, .1) 100%); transition: background .6s; }
.seg:hover img { transform: scale(1.06); }
.seg:hover::before { background: linear-gradient(0deg, rgba(27, 42, 107, .97) 0%, rgba(47, 107, 255, .45) 70%, rgba(47, 107, 255, .2) 100%); }
.seg__body { padding: clamp(24px, 3vw, 36px); width: 100%; }
.seg__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); margin-bottom: 14px; }
.seg h3 { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.seg p { color: #D6DDF2; max-width: 44ch; margin-bottom: 16px; }
.seg .link-arrow { color: var(--gold); }

/* ---------- Tecnologia ---------- */
.tech { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.features { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 4px; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(47, 107, 255, .16); color: #8FB0FF; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h4 { color: var(--white); font-size: 1.05rem; margin: 2px 0 4px; }
.feature p { margin: 0; font-size: .95rem; color: #AEB9DA; }

.dash-wrap { position: relative; }
.dash-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; margin-left: auto; }
.dash-photo img { width: 100%; height: 100%; object-fit: cover; }
.dash {
  position: absolute; left: 0; bottom: 8%; width: min(380px, 88%);
  background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55);
}
.dash__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash__top b { font-family: var(--font-title); color: var(--royal); font-size: .95rem; }
.dash__live { font-size: .72rem; font-weight: 600; color: #1FAF5A; display: flex; align-items: center; gap: 6px; }
.dash__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1FAF5A; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 175, 90, .6); } 100% { box-shadow: 0 0 0 10px rgba(31, 175, 90, 0); } }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--ice); border-radius: 12px; padding: 12px; }
.kpi strong { display: block; font-family: var(--font-title); font-size: 1.35rem; color: var(--royal); line-height: 1.1; }
.kpi span { font-size: .7rem; color: var(--muted); }
.dash__bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.dash__bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(0deg, var(--tech), #8FB0FF); height: 0; transition: height 1.2s var(--ease); }
.dash.is-in .dash__bars i { height: var(--h); }
.dash__note { font-size: .7rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Etapas ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 27px; left: 28px; height: 2px; width: calc(100% - 56px); background: linear-gradient(90deg, var(--tech), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease); }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; z-index: 1; }
.step__n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: 0 0 0 2px var(--line); font-family: var(--font-title); font-weight: 800; color: var(--royal); margin-bottom: 22px; }
.step p { color: var(--muted); font-size: .96rem; }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.value { background: var(--white); padding: clamp(26px, 3vw, 40px); transition: background .4s; }
.value:hover { background: var(--ice); }
.value__icon { width: 44px; height: 44px; color: var(--tech); margin-bottom: 18px; }
.value p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Quem somos (bloco) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; position: relative; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__badge { position: absolute; left: 20px; bottom: 20px; background: var(--white); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.about__badge b { font-family: var(--font-title); color: var(--royal); display: block; }

/* ---------- Dores (páginas de segmento) ---------- */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s, transform .4s var(--ease); }
.pain:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pain__q { font-family: var(--font-title); font-weight: 800; font-size: .8rem; color: #C2410C; background: #FFF1E8; border-radius: 10px; padding: 6px 10px; height: fit-content; }
.pain h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pain p { color: var(--muted); margin: 0 0 10px; font-size: .96rem; }
.pain__fix { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink); font-weight: 500; }
.pain__fix svg { width: 20px; height: 20px; color: #1FAF5A; flex: none; margin-top: 2px; }

/* bloco imagem + texto alternado */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-row + .split-row { margin-top: clamp(56px, 8vw, 110px); }
.split-row--rev .split-row__img { order: 2; }
.split-row__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.split-row__img img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--tech); flex: none; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font-family: var(--font-title); font-weight: 700; color: var(--royal); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--tech); border-bottom: 2px solid var(--tech); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 70ch; }

/* ---------- Orçamento ---------- */
.quote { position: relative; overflow: hidden; background: var(--royal-900); color: #C9D2EE; }
.quote__bg { position: absolute; inset: 0; opacity: .22; }
.quote__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--royal-900) 30%, rgba(15, 26, 71, .7)); z-index: 1; }
.quote .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.quote h2 { color: var(--white); }
.quote__contacts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.quote__contacts li { display: flex; gap: 14px; align-items: center; }
.quote__contacts svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.quote__contacts a:hover { color: var(--white); }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.form h3 { margin-bottom: 4px; }
.form__hint { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--ice);
  font: inherit; font-size: .98rem; color: var(--ink); transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--tech); background: var(--white); box-shadow: 0 0 0 4px var(--tech-100); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 16px 0 20px; }
.consent input { margin-top: 3px; accent-color: var(--tech); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--tech); text-decoration: underline; }
.form__error { color: #C2410C; font-size: .85rem; min-height: 1.2em; margin: -8px 0 10px; }

/* ---------- Footer ---------- */
.footer { background: #0A1233; color: #93A0C6; padding: 80px 0 30px; font-size: .94rem; }
.footer .logo { color: var(--white); margin-bottom: 18px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; padding-top: 26px; font-size: .82rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #1FAF5A; color: var(--white); display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(31, 175, 90, .8); transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: pulse-wa 2.4s infinite; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(31, 175, 90, .55); } 100% { box-shadow: 0 0 0 18px rgba(31, 175, 90, 0); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 0 12% 0 round var(--radius)); transition: clip-path 1.3s var(--ease); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* barra de progresso de leitura */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70; background: linear-gradient(90deg, var(--tech), var(--gold)); transform-origin: left; transform: scaleX(0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tech, .about, .quote .container, .manifesto__grid, .split-row { grid-template-columns: 1fr; }
  .split-row--rev .split-row__img { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .dash-photo { margin: 0 auto; }
  .dash { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .cards, .pains, .values { grid-template-columns: 1fr; }
  .segments { grid-template-columns: 1fr; }
  .seg, .seg:nth-child(n) { grid-column: auto; min-height: 340px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps::before, .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; height: calc(100% - 56px); }
  .steps.is-in::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__scroll { display: none; }
  .dash { position: relative; left: auto; transform: none; margin: -80px auto 0; bottom: auto; }
  .pain { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
  .manifesto__text .mw { opacity: 1; }
}

/* ajustes de contraste */
.hero .eyebrow, .quote .eyebrow { color: #A9C2FF; }
.quote .lead { color: #AEB9DA; }
.hero h1 em { background-image: linear-gradient(90deg, #A9C2FF 0%, #C9D6FF 35%, var(--gold) 75%); }
.menu-open .wa-float { opacity: 0; pointer-events: none; }
