/* ============================================================
   KLP Corporate — tema premium para corretora de seguros
   Identidade: navy profundo + verde-elétrico, tipografia Sora,
   muito espaço em branco, microanimações sutis.
   Tokens de cor injetados pelo base.html (--brand, --accent, ...).
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --gold: #f7b84a;
  --cyan: #54d7ff;
  --brand-deep: color-mix(in srgb, var(--brand) 68%, #020916);
  --shadow-sm: 0 1px 2px rgb(var(--brand-rgb) / 0.06), 0 4px 12px rgb(var(--brand-rgb) / 0.05);
  --shadow-md: 0 6px 24px rgb(var(--brand-rgb) / 0.10);
  --shadow-hero: 0 34px 90px rgb(0 0 0 / 0.34);
  --maxw: 1160px;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--brand);
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }

.btn-accent {
  background: var(--accent); color: var(--brand);
  box-shadow: 0 4px 16px rgb(var(--accent-rgb) / 0.35);
}
.btn-accent:hover { box-shadow: 0 8px 24px rgb(var(--accent-rgb) / 0.45); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: rgb(var(--brand-rgb) / 0.25);
}
.btn-ghost:hover { border-color: var(--brand); background: var(--surface); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--brand-deep) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgb(255 255 255 / 0.10);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--brand-deep) 96%, black);
  box-shadow: 0 16px 36px rgb(2 9 22 / 0.22);
}

.site-header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.75rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 48px; object-fit: contain; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--brand-deep);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
}
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: #fff; letter-spacing: -0.01em;
}

.site-nav {
  display: flex; align-items: center; gap: 0.35rem;
  margin-left: auto;
}
.nav-link, .nav-group-btn {
  font-family: var(--font-body); font-weight: 500; font-size: 0.94rem;
  color: rgb(255 255 255 / 0.82); text-decoration: none;
  padding: 0.5rem 0.8rem; border-radius: 999px;
  background: none; border: 0; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover, .nav-group-btn:hover {
  background: rgb(255 255 255 / 0.10);
  color: #fff;
}

.nav-group { position: relative; }
.nav-caret { margin-left: 0.3rem; font-size: 0.7em; opacity: 0.6; }
.nav-sub {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px;
  background: color-mix(in srgb, var(--brand-deep) 94%, #fff);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius);
  box-shadow: 0 26px 60px rgb(2 9 22 / 0.28);
  padding: 0.5rem;
  display: none; flex-direction: column;
}
.nav-group.is-open .nav-sub { display: flex; }
.nav-sub a {
  padding: 0.6rem 0.9rem; border-radius: 10px;
  text-decoration: none; color: rgb(255 255 255 / 0.82); font-size: 0.92rem;
}
.nav-sub a:hover { background: rgb(255 255 255 / 0.10); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1.5px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.10); cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; display: block; position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Seções base ---------- */

main > section { padding: clamp(3rem, 7vw, 5.5rem) var(--pad); }
main > section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-head h2 { margin-bottom: 0; max-width: 34ch; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.eyebrow-light { color: var(--accent); }

.link-arrow {
  font-weight: 600; font-size: 0.94rem;
  color: var(--brand); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  white-space: nowrap;
}
.link-arrow .arrow { transition: transform 0.18s ease; }
.link-arrow:hover .arrow { transform: translateX(3px); }

.empty { color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(820px, calc(100vh - 74px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgb(7 24 42 / 0.98) 0%, color-mix(in srgb, var(--brand) 88%, #031123) 52%, rgb(7 24 42 / 0.98) 100%),
    var(--brand-deep);
  border-bottom: 1px solid rgb(255 255 255 / 0.10);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 84%, transparent);
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -30% -10%;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 43%, rgb(var(--accent-rgb) / 0.16) 44% 45%, transparent 46% 100%),
    linear-gradient(135deg, transparent 0 55%, rgb(247 184 74 / 0.15) 56% 57%, transparent 58% 100%),
    linear-gradient(20deg, transparent 0 68%, rgb(84 215 255 / 0.12) 69% 70%, transparent 71% 100%);
  transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0);
  transition: transform 180ms ease-out;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-beam,
.hero-circuit {
  position: absolute;
  display: block;
}

.hero-beam {
  height: 1px;
  width: 46vw;
  background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / 0.78), rgb(247 184 74 / 0.55), transparent);
  box-shadow: 0 0 28px rgb(var(--accent-rgb) / 0.34);
  transform: rotate(-22deg);
  opacity: 0.78;
}

.hero-beam-a { top: 26%; right: -10vw; animation: heroBeam 8s ease-in-out infinite; }
.hero-beam-b { bottom: 16%; left: -14vw; width: 58vw; animation: heroBeam 9s ease-in-out 1.2s infinite reverse; }

.hero-circuit {
  width: min(36vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 999px;
  box-shadow:
    0 0 0 42px rgb(255 255 255 / 0.025),
    0 0 0 84px rgb(var(--accent-rgb) / 0.028);
  opacity: 0.7;
}

.hero-circuit::before,
.hero-circuit::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: inherit;
}

.hero-circuit::after {
  inset: 36%;
  border-color: rgb(247 184 74 / 0.22);
}

.hero-circuit-a { top: 12%; right: 8%; animation: heroTrace 14s linear infinite; }
.hero-circuit-b { bottom: -18%; left: 18%; animation: heroTrace 18s linear infinite reverse; opacity: 0.42; }

.hero-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600;
  color: rgb(255 255 255 / 0.88);
  background: rgb(255 255 255 / 0.09);
  border: 1px solid rgb(255 255 255 / 0.16);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(12px);
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.25);
}
.hero-title {
  margin-bottom: 0.5em;
  color: #fff;
  max-width: 11ch;
  text-wrap: balance;
}
.hero-summary {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgb(255 255 255 / 0.76); max-width: 48ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero .btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.07);
}

.hero .btn-ghost:hover {
  border-color: rgb(255 255 255 / 0.42);
  background: rgb(255 255 255 / 0.12);
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

.hero-proof-row span {
  display: inline-flex;
  flex-direction: column;
  min-width: 132px;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.075);
  color: rgb(255 255 255 / 0.62);
  font-size: 0.78rem;
  line-height: 1.25;
  backdrop-filter: blur(10px);
}

.hero-proof-row strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.hero-media {
  position: relative;
  align-self: stretch;
  display: grid;
  align-items: center;
}

.hero-media-shell {
  position: relative;
  min-height: clamp(420px, 48vw, 580px);
  display: grid;
  align-items: center;
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
  transform-style: preserve-3d;
}

.hero-image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 34px;
  box-shadow: var(--shadow-hero);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.04)),
    rgb(255 255 255 / 0.08);
  padding: 10px;
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border-radius: 25px;
  background:
    linear-gradient(180deg, transparent 0 58%, rgb(2 9 22 / 0.54) 100%),
    linear-gradient(90deg, rgb(var(--brand-rgb) / 0.28), transparent 44%);
}

.hero-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: none;
  aspect-ratio: 4 / 3.55; object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-floating {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 0.12rem;
  min-width: 154px;
  padding: 0.95rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 20px;
  background: color-mix(in srgb, var(--brand-deep) 70%, transparent);
  color: #fff;
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.24);
  backdrop-filter: blur(16px) saturate(1.25);
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-floating-primary {
  left: -8%;
  bottom: 18%;
}

.hero-floating-secondary {
  right: -4%;
  top: 17%;
  animation-delay: 1.3s;
}

.hero-floating-kicker {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-floating strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1;
}

.hero-floating span:last-child {
  color: rgb(255 255 255 / 0.68);
  font-size: 0.78rem;
  max-width: 16ch;
}

.hero-scanline {
  position: absolute;
  z-index: 5;
  left: 2%;
  right: 2%;
  top: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
  box-shadow: 0 0 18px rgb(84 215 255 / 0.55);
  animation: heroScan 4.8s ease-in-out infinite;
  opacity: 0.78;
}

/* ---------- Stats ---------- */

.stats { background: var(--brand); padding-top: clamp(2.2rem, 5vw, 3.5rem); padding-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.stats-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label { color: rgb(255 255 255 / 0.75); font-size: 0.95rem; }

/* ---------- Serviços ---------- */

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid rgb(var(--brand-rgb) / 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgb(var(--accent-rgb) / 0.5);
}
.service-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.4rem; flex: 1; }
.service-card-index {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  color: var(--accent); letter-spacing: 0.1em;
}
.service-card-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; line-height: 1.25; color: var(--ink);
}
.service-card-summary { color: var(--muted); font-size: 0.92rem; flex: 1; }

/* ---------- Parceiros ---------- */

.partners { background: var(--surface); border-block: 1px solid rgb(var(--brand-rgb) / 0.06); }
.partners-title {
  text-align: center; color: var(--muted);
  font-size: 0.95rem; font-weight: 500;
  margin-bottom: 2.2rem;
}
.partners-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 2.6rem; align-items: center;
}
.partner-logo {
  height: 40px; width: auto;
  filter: grayscale(1); opacity: 0.55;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.partner-logo:hover { filter: none; opacity: 1; }
.partner-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: rgb(var(--brand-rgb) / 0.45);
  transition: color 0.2s ease;
}
.partner-name:hover { color: var(--brand); }

/* ---------- Método ---------- */

.method-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.method-step {
  background: var(--surface);
  border: 1px solid rgb(var(--brand-rgb) / 0.07);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
}
.method-num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgb(var(--accent-rgb) / 0.14);
  color: var(--brand);
  font-family: var(--font-display); font-weight: 800;
  margin-bottom: 1rem;
}
.method-step h3 { margin-bottom: 0.4rem; }
.method-step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.method-cta { text-align: center; margin-top: 2.4rem; }

/* ---------- Depoimentos ---------- */

.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid rgb(var(--brand-rgb) / 0.07);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.testimonial blockquote {
  margin: 0; font-size: 1rem; color: var(--ink);
  flex: 1;
}
.testimonial blockquote::before { content: "“"; color: var(--accent); font-family: var(--font-display); font-size: 1.6rem; line-height: 0; margin-right: 0.15rem; }
.testimonial figcaption { display: grid; grid-template-columns: auto 1fr; gap: 0 0.8rem; align-items: center; }
.testimonial-avatar {
  grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}
.testimonial-author { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { color: var(--muted); font-size: 0.85rem; }

/* ---------- News ---------- */

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.post-card {
  background: var(--surface);
  border: 1px solid rgb(var(--brand-rgb) / 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: rgb(var(--brand-rgb) / 0.05); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: rgb(var(--brand-rgb) / 0.25);
}
.post-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.chip {
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase; margin: 0;
}
.post-card h3 { font-size: 1.08rem; margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.post-card-summary { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(800px 400px at 90% 120%, rgb(var(--accent-rgb) / 0.25), transparent 60%),
    var(--brand);
  color: #fff;
}
.cta-band-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgb(255 255 255 / 0.75); margin: 0; }
.cta-band-actions { display: flex; gap: 0.8rem; }

.cta-band-page { border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); margin-top: 3rem; }

/* ---------- Page hero / artigos ---------- */

.page-hero { text-align: center; padding-bottom: 1rem; }
.page-hero-lead { color: var(--muted); max-width: 52ch; margin: 0 auto 1.5rem; font-size: 1.08rem; }
.not-found { padding-bottom: clamp(3rem, 7vw, 5.5rem); }

.article { max-width: 780px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--pad); }
.article-head { margin-bottom: 2rem; }
.article-meta { color: var(--muted); font-size: 0.9rem; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.back-link:hover { color: var(--brand); }
.article-figure { margin: 0 0 2rem; }
.article-figure img { border-radius: var(--radius-lg); width: 100%; }
.lead { font-size: 1.15rem; color: var(--muted); }
.article-body { font-size: 1.02rem; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body img { border-radius: var(--radius); }

/* FAQ via <details> no corpo da página */
.article-body details {
  background: var(--surface);
  border: 1px solid rgb(var(--brand-rgb) / 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-bottom: 0.8rem;
}
.article-body details[open] { border-color: rgb(var(--accent-rgb) / 0.5); }
.article-body summary {
  font-family: var(--font-display); font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.article-body summary::-webkit-details-marker { display: none; }
.article-body summary::after {
  content: "+"; font-size: 1.3rem; color: var(--accent);
  transition: transform 0.2s ease;
}
.article-body details[open] summary::after { transform: rotate(45deg); }

/* ---------- Galeria de página ---------- */

.page-gallery { position: relative; margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.page-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.page-gallery-track::-webkit-scrollbar { display: none; }
.page-gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.page-gallery-slide img { width: 100%; display: block; }
.page-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgb(255 255 255 / 0.9); color: var(--ink);
  font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow-sm);
}
.page-gallery-arrow.prev { left: 12px; }
.page-gallery-arrow.next { right: 12px; }
.page-gallery-count {
  position: absolute; bottom: 12px; right: 14px;
  background: rgb(var(--brand-rgb) / 0.75); color: #fff;
  font-size: 0.8rem; padding: 0.25rem 0.7rem; border-radius: 999px;
}

/* ---------- Formulário ---------- */

.page-form {
  background: var(--surface);
  border: 1px solid rgb(var(--brand-rgb) / 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  margin-top: 3rem;
}
.page-form-title { font-size: 1.5rem; }
.page-form-intro { color: var(--muted); margin-bottom: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-bottom: 1.4rem; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row-wide { grid-column: 1 / -1; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.req { color: var(--accent); }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgb(var(--brand-rgb) / 0.14);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.18);
}
.form-error { color: #c62828; font-size: 0.85rem; }
.form-success {
  background: rgb(var(--accent-rgb) / 0.14);
  border: 1px solid rgb(var(--accent-rgb) / 0.4);
  color: var(--ink);
  padding: 0.9rem 1.2rem; border-radius: var(--radius);
  font-weight: 500;
}
.form-hp { position: absolute; left: -9999px; }

/* ---------- Page index ---------- */

.page-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.page-index-card {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  background: var(--surface);
  border: 1px solid rgb(var(--brand-rgb) / 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-decoration: none; color: var(--ink); font-weight: 600;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.page-index-card:hover { border-color: rgb(var(--accent-rgb) / 0.6); transform: translateY(-2px); }

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--brand); color: rgb(255 255 255 / 0.8);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.cta-band + .site-footer, section.cta-band ~ .site-footer { margin-top: 0; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 2rem;
  display: grid; grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-mark { background: var(--accent); color: var(--brand); }
.footer-tagline { margin-top: 1rem; font-size: 0.92rem; color: rgb(255 255 255 / 0.65); }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem; }
.footer-column h3 {
  color: #fff; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-column ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-column a { color: rgb(255 255 255 / 0.75); text-decoration: none; font-size: 0.92rem; }
.footer-column a:hover { color: var(--accent); }
.footer-rich a { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding: 1.2rem var(--pad);
  text-align: center; font-size: 0.85rem; color: rgb(255 255 255 / 0.55);
}

.social-links--footer { display: flex; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.social-links--footer a { color: rgb(255 255 255 / 0.75); text-decoration: none; font-size: 0.9rem; }
.social-links--footer a:hover { color: var(--accent); }

/* ---------- Motion ---------- */

@keyframes heroBeam {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-22deg); opacity: 0.45; }
  50% { transform: translate3d(-5vw, 18px, 0) rotate(-22deg); opacity: 0.92; }
}

@keyframes heroTrace {
  to { transform: rotate(360deg); }
}

@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 42px); }
  50% { transform: translate3d(0, -12px, 42px); }
}

@keyframes heroScan {
  0%, 100% { transform: translateY(0); opacity: 0.22; }
  50% { transform: translateY(250px); opacity: 0.84; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .post-card { transition: none; }
  .hero::after,
  .hero-beam,
  .hero-circuit,
  .hero-floating,
  .hero-scanline {
    animation: none;
    transform: none;
  }
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: initial; }
  .hero-media-shell {
    min-height: auto;
    transform: none;
  }
  .hero-title {
    max-width: 13ch;
  }
  .hero-floating {
    position: static;
    min-width: 0;
    animation: none;
  }
  .hero-media-shell {
    gap: 0.8rem;
  }
  .hero-scanline {
    display: none;
  }
  .hero-proof-row span {
    flex: 1 1 160px;
  }
  .header-cta { display: none; }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 61px 0 auto 0;
    background: color-mix(in srgb, var(--brand-deep) 96%, black);
    border-bottom: 1px solid rgb(255 255 255 / 0.12);
    box-shadow: 0 26px 60px rgb(2 9 22 / 0.32);
    flex-direction: column; align-items: stretch;
    padding: 0.8rem var(--pad) 1.2rem;
    display: none; z-index: 49;
  }
  .site-nav.is-open { display: flex; }
  .nav-link, .nav-group-btn { width: 100%; text-align: left; padding: 0.8rem 0.6rem; border-radius: 10px; }
  .nav-group-btn { display: flex; justify-content: space-between; }
  .nav-sub { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 0.9rem; background: transparent; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .brand-logo { height: 42px; }
  .site-header-inner { gap: 0.85rem; }
  .hero-title { max-width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-proof-row { display: grid; grid-template-columns: 1fr; }
  .hero-image-frame { border-radius: 24px; padding: 7px; }
  .hero-image-frame::before { inset: 7px; border-radius: 18px; }
  .hero-img { border-radius: 18px; aspect-ratio: 4 / 3; }
}

/* ============================================================
   HXS — Hero Showcase cinematográfico (esfera de proteção 3D,
   satélites de segmentos, cenas com transição e parallax).
   Namespace próprio; independente do hero anterior.
   ============================================================ */

.hxs {
  --hxs-gold: #f7b84a;
  --hxs-cyan: #54d7ff;
  --hxs-hue: 0deg;
  --hxs-spin: 26s;
  --hxs-px: 0;   /* pointer x [-1..1] */
  --hxs-py: 0;   /* pointer y [-1..1] */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(860px, calc(100svh - 74px));
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(1100px 700px at 72% 30%, color-mix(in srgb, var(--brand) 55%, #04101f) 0%, transparent 60%),
    linear-gradient(160deg, #050d1c 0%, #071a30 46%, #04101f 100%);
  border-bottom: 1px solid rgb(255 255 255 / 0.10);
}

/* ---- fundo: aurora, grid em fuga, estrelas ---- */

.hxs-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hxs-aurora {
  position: absolute;
  width: 58vw; height: 58vw;
  border-radius: 50%;
  filter: blur(90px) hue-rotate(var(--hxs-hue));
  opacity: 0.5;
  transition: filter 1.2s ease;
}
.hxs-aurora-a {
  top: -24vw; right: -14vw;
  background: radial-gradient(circle at 40% 60%, rgb(var(--accent-rgb) / 0.5), transparent 65%);
  animation: hxsAurora 16s ease-in-out infinite alternate;
}
.hxs-aurora-b {
  bottom: -30vw; left: -16vw;
  background: radial-gradient(circle at 60% 40%, rgb(84 215 255 / 0.32), transparent 62%);
  animation: hxsAurora 20s ease-in-out infinite alternate-reverse;
}

.hxs-grid {
  position: absolute; inset: -20% -6%;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  transform:
    perspective(900px) rotateX(58deg)
    translate3d(calc(var(--hxs-px) * -18px), calc(var(--hxs-py) * -10px), 0);
  transform-origin: 50% 120%;
  mask-image: radial-gradient(80% 90% at 50% 66%, black 30%, transparent 78%);
  opacity: 0.7;
}

.hxs-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 24%, rgb(255 255 255 / 0.75), transparent 100%),
    radial-gradient(1px 1px at 34% 68%, rgb(255 255 255 / 0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 14%, rgb(247 184 74 / 0.8), transparent 100%),
    radial-gradient(1px 1px at 72% 52%, rgb(255 255 255 / 0.55), transparent 100%),
    radial-gradient(1.5px 1.5px at 86% 30%, rgb(84 215 255 / 0.7), transparent 100%),
    radial-gradient(1px 1px at 22% 84%, rgb(255 255 255 / 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 78%, rgb(255 255 255 / 0.5), transparent 100%);
  animation: hxsTwinkle 5.5s ease-in-out infinite alternate;
}

/* ---- layout ---- */

.hxs-layout {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 6rem) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* ---- cenas (texto) ---- */

.hxs-copy { position: relative; min-height: clamp(420px, 56vh, 620px); }

.hxs-scene {
  position: absolute;
  inset: 0 0 auto 0;
  visibility: hidden;
  pointer-events: none;
}
.hxs-scene.is-active { visibility: visible; pointer-events: auto; }

.hxs-scene > * {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
}
.hxs-scene.is-active > * {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hxs-scene.is-active > *:nth-child(1) { transition-delay: 0.05s; }
.hxs-scene.is-active > *:nth-child(2) { transition-delay: 0.14s; }
.hxs-scene.is-active > *:nth-child(3) { transition-delay: 0.26s; }
.hxs-scene.is-active > *:nth-child(4) { transition-delay: 0.38s; }
.hxs-scene.is-leaving {
  visibility: visible;
}
.hxs-scene.is-leaving > * {
  opacity: 0;
  transform: translateY(-20px);
  filter: blur(6px);
  transition:
    opacity 0.4s cubic-bezier(0.55, 0, 0.55, 0.2),
    transform 0.4s cubic-bezier(0.55, 0, 0.55, 0.2),
    filter 0.4s cubic-bezier(0.55, 0, 0.55, 0.2);
}

.hxs-kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.78);
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.14);
  padding: 0.45rem 1rem; border-radius: 999px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
}
.hxs-kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hxs-gold);
  box-shadow: 0 0 12px rgb(247 184 74 / 0.9);
}

.hxs-title {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 13ch;
  margin-bottom: 0.45em;
  text-wrap: balance;
}

.hxs-title.is-kinetic {
  word-spacing: 0.04em;
}

.hxs-word {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-right: 0.08em;
  transform-origin: 50% 76%;
  will-change: transform, color, text-shadow;
}

.hxs-word:last-child {
  margin-right: 0;
}

.hxs-word.is-keyword {
  z-index: 2;
}

.hxs-word.is-keyword::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: -0.05em;
  height: 0.08em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--hxs-gold), var(--hxs-cyan));
  box-shadow: 0 0 20px rgb(var(--accent-rgb) / 0.44);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}

.hxs-title.is-playing .hxs-word {
  animation: hxsWordFocus var(--word-duration, 7s) ease-in-out infinite;
  animation-delay: var(--word-delay, 0s);
}

.hxs-title.is-playing .hxs-word.is-keyword {
  animation-name: hxsKeywordFocus;
}

.hxs-title.is-playing .hxs-word.is-keyword::after {
  animation: hxsKeywordUnderline var(--word-duration, 7s) ease-in-out infinite;
  animation-delay: var(--word-delay, 0s);
}

.hxs-lead {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.6;
  color: rgb(255 255 255 / 0.72);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hxs-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hxs .btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.06);
}
.hxs .btn-ghost:hover { border-color: rgb(255 255 255 / 0.45); background: rgb(255 255 255 / 0.12); }

/* ---- controle das cenas ---- */

.hxs-ui {
  position: absolute;
  left: 0; bottom: -1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.hxs-step {
  position: relative;
  width: 44px; height: 4px;
  border: 0; border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease;
}
.hxs-step:hover { background: rgb(255 255 255 / 0.32); }
.hxs-step-fill {
  position: absolute; inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--hxs-gold));
  border-radius: inherit;
}
.hxs-step.is-active .hxs-step-fill {
  transform: scaleX(1);
  transition: transform var(--hxs-hold, 8s) linear;
}
.hxs.is-paused .hxs-step.is-active .hxs-step-fill { transition-play-state: paused; }
.hxs-count {
  margin-left: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em;
  color: rgb(255 255 255 / 0.55);
}

/* ---- palco 3D ---- */

.hxs-stage {
  position: relative;
  height: clamp(400px, 52vh, 560px);
  display: grid;
  place-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hxs-orb {
  position: relative;
  width: clamp(250px, 30vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transform:
    rotateY(calc(var(--hxs-px) * 14deg))
    rotateX(calc(var(--hxs-py) * -12deg));
  filter: hue-rotate(var(--hxs-hue));
  transition: filter 1.2s ease;
}

.hxs-halo {
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.28) 0%, rgb(var(--accent-rgb) / 0.07) 42%, transparent 68%);
  animation: hxsPulse 5s ease-in-out infinite;
}

.hxs-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / 0.2);
  box-shadow:
    inset 0 0 30px rgb(var(--accent-rgb) / 0.12),
    0 0 26px rgb(var(--accent-rgb) / 0.14);
}
.hxs-ring::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--hxs-gold);
  box-shadow: 0 0 14px rgb(247 184 74 / 0.95);
}
.hxs-ring-a { transform: rotate3d(1, 0.15, 0, 68deg); animation: hxsSpin var(--hxs-spin) linear infinite; }
.hxs-ring-b {
  inset: 7%;
  border-color: rgb(84 215 255 / 0.35);
  transform: rotate3d(0.2, 1, 0.12, 74deg);
  animation: hxsSpin calc(var(--hxs-spin) * 0.72) linear infinite reverse;
}
.hxs-ring-b::before { background: var(--hxs-cyan); box-shadow: 0 0 14px rgb(84 215 255 / 0.95); }
.hxs-ring-c {
  inset: -9%;
  border-color: rgb(247 184 74 / 0.28);
  transform: rotate3d(0.5, 0.8, 0.2, 78deg);
  animation: hxsSpin calc(var(--hxs-spin) * 1.35) linear infinite;
}

.hxs-equator {
  position: absolute; inset: 24%;
  border-radius: 50%;
  border: 1px dashed rgb(255 255 255 / 0.22);
  animation: hxsSpinFlat 40s linear infinite;
}

.hxs-core {
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.22), transparent 46%),
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--brand) 72%, #0a2440) 0%, #071a30 78%);
  border: 1px solid rgb(255 255 255 / 0.22);
  box-shadow:
    0 0 60px rgb(var(--accent-rgb) / 0.35),
    inset 0 0 34px rgb(var(--accent-rgb) / 0.18);
  animation: hxsBreathe 6s ease-in-out infinite;
}
.hxs-core svg { width: 44%; height: auto; filter: drop-shadow(0 0 10px rgb(var(--accent-rgb) / 0.65)); }

/* ---- satélites (segmentos) ---- */

.hxs-sats { position: absolute; inset: 0; transform-style: preserve-3d; }

.hxs-sat {
  --depth: 40;
  position: absolute;
  top: var(--ly, 50%); left: var(--lx, 50%);
  transform:
    translate(-50%, -50%)
    translate3d(
      calc(var(--hxs-px) * var(--depth) * 1px),
      calc(var(--hxs-py) * var(--depth) * 0.8px),
      0
    );
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.85);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: color-mix(in srgb, #071a30 62%, transparent);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.3);
  backdrop-filter: blur(14px) saturate(1.2);
  animation: hxsFloat 7s ease-in-out var(--sd, 0s) infinite;
  transition: border-color 0.6s ease, box-shadow 0.6s ease, color 0.6s ease, opacity 0.6s ease;
}
.hxs-sat::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.4);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}
.hxs-sat.is-lit {
  color: #fff;
  border-color: rgb(var(--accent-rgb) / 0.75);
  box-shadow: 0 18px 46px rgb(var(--accent-rgb) / 0.28);
}
.hxs-sat.is-lit::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgb(var(--accent-rgb) / 0.95);
}
.hxs[data-scene="1"] .hxs-sat:not(.is-lit),
.hxs[data-scene="2"] .hxs-sat:not(.is-lit),
.hxs[data-scene="3"] .hxs-sat:not(.is-lit) { opacity: 0.45; }

/* ---- variação por cena ---- */

.hxs[data-scene="1"] { --hxs-hue: -14deg; --hxs-spin: 20s; }
.hxs[data-scene="2"] { --hxs-hue: 18deg; --hxs-spin: 24s; }
.hxs[data-scene="3"] { --hxs-hue: 42deg; --hxs-spin: 13s; }

/* ---- hint de scroll ---- */

.hxs-hint {
  position: absolute;
  left: 50%; bottom: 1.2rem;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
}
.hxs-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  animation: hxsHint 2.2s ease-in-out infinite;
}

/* ---- keyframes ---- */

@keyframes hxsSpin { to { transform: rotate3d(1, 0.15, 0, 68deg) rotate(360deg); } }
@keyframes hxsSpinFlat { to { transform: rotate(360deg); } }
@keyframes hxsAurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
}
@keyframes hxsTwinkle { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes hxsPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes hxsBreathe {
  0%, 100% { box-shadow: 0 0 60px rgb(var(--accent-rgb) / 0.35), inset 0 0 34px rgb(var(--accent-rgb) / 0.18); }
  50% { box-shadow: 0 0 90px rgb(var(--accent-rgb) / 0.5), inset 0 0 44px rgb(var(--accent-rgb) / 0.26); }
}
@keyframes hxsFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}
@keyframes hxsHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes hxsWordFocus {
  0%, 6%, 100% {
    color: #fff;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgb(255 255 255 / 0);
  }
  12% {
    color: color-mix(in srgb, var(--accent) 72%, #fff);
    transform: translateY(-0.045em) scale(1.07);
    text-shadow: 0 0 24px rgb(var(--accent-rgb) / 0.38);
  }
  22% {
    color: #fff;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgb(255 255 255 / 0);
  }
}

@keyframes hxsKeywordFocus {
  0%, 5%, 100% {
    color: #fff;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgb(255 255 255 / 0);
  }
  13% {
    color: var(--hxs-gold);
    transform: translateY(-0.075em) scale(1.16);
    text-shadow:
      0 0 18px rgb(247 184 74 / 0.62),
      0 0 42px rgb(var(--accent-rgb) / 0.34);
  }
  24% {
    color: color-mix(in srgb, var(--hxs-cyan) 48%, #fff);
    transform: translateY(-0.025em) scale(1.045);
    text-shadow: 0 0 22px rgb(84 215 255 / 0.28);
  }
  32% {
    color: #fff;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgb(255 255 255 / 0);
  }
}

@keyframes hxsKeywordUnderline {
  0%, 6%, 100% {
    opacity: 0;
    transform: scaleX(0);
  }
  13%, 23% {
    opacity: 0.9;
    transform: scaleX(1);
  }
  34% {
    opacity: 0;
    transform: scaleX(1);
  }
}

/* ---- responsivo / acessibilidade ---- */

@media (max-width: 960px) {
  .hxs { min-height: calc(100svh - 61px); }
  .hxs-layout {
    grid-template-columns: 1fr;
    padding-top: clamp(2.5rem, 7vh, 4rem);
    gap: 0.5rem;
  }
  .hxs-stage { order: -1; height: clamp(260px, 34vh, 340px); }
  .hxs-orb { width: clamp(190px, 46vw, 250px); }
  .hxs-sat { font-size: 0.7rem; padding: 0.42rem 0.7rem; }
  .hxs-copy { min-height: clamp(340px, 46vh, 460px); }
  .hxs-title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .hxs-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hxs-ring-a, .hxs-ring-b, .hxs-ring-c, .hxs-equator,
  .hxs-halo, .hxs-core, .hxs-sat, .hxs-aurora, .hxs-stars, .hxs-hint span,
  .hxs-word, .hxs-word.is-keyword::after {
    animation: none;
  }
  .hxs-scene > *, .hxs-scene.is-leaving > * { transition: opacity 0.3s ease; transform: none; filter: none; }
  .hxs-step.is-active .hxs-step-fill { transition: none; transform: scaleX(1); }
  .hxs-word.is-keyword {
    color: var(--hxs-gold);
  }
  .hxs-word.is-keyword::after {
    opacity: 0.75;
    transform: scaleX(1);
  }
}

/* ---------- Clientes KLP (cards de foto) ---------- */

.testimonial-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgb(var(--brand-rgb) / 0.07);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-photo img { display: block; width: 100%; height: auto; }
.testimonial-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Podcast ---------- */

.podcast {
  background:
    radial-gradient(700px 380px at 88% 10%, rgb(var(--accent-rgb) / 0.18), transparent 60%),
    var(--brand-deep, var(--brand));
  color: #fff;
}
.podcast-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.podcast h2 { color: #fff; max-width: 22ch; }
.podcast-lead { color: rgb(255 255 255 / 0.75); max-width: 52ch; margin-bottom: 1.8rem; }
.podcast-platforms { display: flex; flex-wrap: wrap; gap: 1rem; }
.podcast-platforms a {
  display: block;
  width: min(240px, 44%);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.podcast-platforms a:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgb(0 0 0 / 0.35); }
.podcast-platforms img { display: block; width: 100%; height: auto; }
.podcast-visual { display: grid; place-items: center; }
.podcast-wave {
  width: 100%;
  max-width: 460px;
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgb(var(--accent-rgb) / 0.35));
  animation: hxsPulse 5s ease-in-out infinite;
}

@media (max-width: 960px) {
  .podcast-inner { grid-template-columns: 1fr; }
  .podcast-visual { order: -1; }
  .podcast-wave { max-width: 320px; }
}

/* Grade de fotos de clientes: 4 por linha em desktop */
.testimonials-grid:has(.testimonial-photo) {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

/* ---------- Instagram ---------- */

.insta { background: var(--surface); border-top: 1px solid rgb(var(--brand-rgb) / 0.06); }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}
.insta-tile {
  position: relative;
  display: block;
  /* mesma proporcao das artes sociais da KLP (1066x600) — sem corte */
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgb(var(--brand-rgb) / 0.07);
  background: var(--brand-deep, var(--brand));
}
.insta-tile img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.insta-tile:hover img { transform: scale(1.04); }
.insta-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff;
  background: rgb(var(--brand-rgb) / 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.insta-tile:hover .insta-overlay, .insta-tile:focus-visible .insta-overlay { opacity: 1; }
.insta-overlay svg { width: 34px; height: 34px; }
