/* ======================================================
   🎨 PALETA + TEMAS — Socialys
   Single source of truth para todas as variáveis CSS:
   - :root              → tema claro (default)
   - html[data-theme="dark"]  → tema escuro manual
   - @media prefers-dark + :root:not([data-theme="light"]) → tema escuro automático
====================================================== */

:root {
  /* 🎨 Cores principais (tema claro) */
  --brand-primary: #051137;
  --brand-secondary: #33617f;
  --brand-accent: #73bfd5;

  /* WhatsApp (CTA) */
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  --whatsapp-active: #17A851;
  --whatsapp-focus: rgba(37, 211, 102, 0.35);

  /* 🔹 Fundo suave derivado do accent */
  --brand-tint: #e6f6fb;

  /* 📝 Texto */
  --text-primary: #0f172a;
  --text-muted: #64748b;

  /* 📦 Layout */
  --background: #ffffff;
  --background-soft: #f8fafc;
  --border-color: #e2e8f0;

  /* 🎭 Efeitos */
  --shadow-soft: 0 20px 50px rgb(109 138 215 / 44%);
  --cta-box-border: 1px solid rgb(248 251 255 / 18%);
  --cta-box-shadow: -5px 3px 50px 7px rgb(87 107 145 / 45%);
  --border-radius: 22px;

  /* Form controls / scroll — tema claro por omissão (escuro vem em prefers-dark / data-theme) */
  color-scheme: light;
}

/* ======================================================
   🌙 DARK MODE AUTOMÁTICO (prefers-color-scheme)
====================================================== */
/* Manual dark (SO claro + botão Escuro): mesmas regras que prefers-dark */
html[data-theme="dark"] {
  --brand-primary: #5a7279;
  --brand-secondary: #4b8ea8;
  --brand-accent: #598a97;
  --brand-tint: rgb(123 191 211 / 24%);
  --background: #0b1220;
  --background-soft: #0f172a;
  --border-color: rgba(148, 163, 184, 0.18);
  --text-primary: #7c9de1;
  --text-muted: #94a3b8;
  --shadow-soft: 0 20px 50px rgb(53 74 85 / 44%);
  --cta-box-border: 1px solid rgba(148, 163, 184, 0.22);
  --cta-box-shadow: -5px 3px 50px 7px rgb(53 74 85 / 44%);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {

  :root:not([data-theme="light"]) {
    /* =====================================
       🎨 Paleta adaptada para fundo escuro
    ===================================== */
    --brand-primary: #5a7279;
    --brand-secondary: #4b8ea8;
    --brand-accent: #598a97;
    --brand-tint: rgb(123 191 211 / 24%);

    --background: #0b1220;
    --background-soft: #0f172a;
    --border-color: rgba(148, 163, 184, 0.18);

    --text-primary: #7c9de1;
    --text-muted: #94a3b8;

    --shadow-soft: 0 20px 50px rgb(53 74 85 / 44%);
    --cta-box-border: 1px solid rgba(148, 163, 184, 0.22);
    --cta-box-shadow: -5px 3px 50px 7px rgb(53 74 85 / 44%);
    color-scheme: dark;
  html:not([data-theme="light"]) body {
    background: var(--background);
    color: var(--text-primary);
  }

  /* =====================================
     📦 SEÇÕES
  ===================================== */

  html:not([data-theme="light"]) .products,
  html:not([data-theme="light"]) .demo,
  html:not([data-theme="light"]) .stats,
  html:not([data-theme="light"]) .cta {
    background: var(--background);
  }

  html:not([data-theme="light"]) .features,
  html:not([data-theme="light"]) .testimonials,
  html:not([data-theme="light"]) .footer {
    background: var(--background-soft);
  }

  html:not([data-theme="light"]) .clients {
    background: #0b1220;
  }

  html:not([data-theme="light"]) .clients .section-title {
    color: #f8fafc;
  }

  html:not([data-theme="light"]) .clients .section-desc {
    color: #cbd5e1;
  }

  html:not([data-theme="light"]) .clients .section-label {
    color: var(--brand-accent);
  }

  html:not([data-theme="light"]) .client-card {
    background: #0f172a;
  }

  html:not([data-theme="light"]) .clients .client-body h3 {
    color: #f8fafc;
  }

  html:not([data-theme="light"]) .clients .client-body p {
    color: #94a3b8;
  }

  html:not([data-theme="light"]) .clients .client-body p strong {
    color: #e2e8f0;
  }

  /* =====================================
     🧭 HEADER / NAV
  ===================================== */

  html:not([data-theme="light"]) .header {
    background: rgba(11, 18, 32, 0.88);
    border-bottom: 1px solid var(--border-color);
  }

  html:not([data-theme="light"]) .logo__img {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  }

  html:not([data-theme="light"]) .menu {
    color: var(--text-primary);
  }

  html:not([data-theme="light"]) .theme-switch__track {
    background: rgba(15, 23, 42, 0.55);
    border-color: var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
  }

  html:not([data-theme="light"]) .theme-btn {
    color: var(--text-muted);
  }

  html:not([data-theme="light"]) .theme-btn i {
    color: var(--brand-primary);
    opacity: 0.75;
  }

  html:not([data-theme="light"]) .theme-btn:hover:not([aria-pressed="true"]) {
    background: rgba(115, 191, 213, 0.12);
    color: var(--text-primary);
  }

  html:not([data-theme="light"]) .theme-btn:hover:not([aria-pressed="true"]) i {
    color: var(--brand-accent);
    opacity: 1;
  }

  html:not([data-theme="light"]) .theme-btn[aria-pressed="true"] {
    color: var(--brand-accent);
    background: rgba(115, 191, 213, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  }

  html:not([data-theme="light"]) .theme-btn[aria-pressed="true"] i {
    color: var(--brand-accent);
    opacity: 1;
  }

  html:not([data-theme="light"]) button.menu-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #dd7b06;
    background: #ff980000;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 16px -8px rgba(255, 152, 0, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  }

  html:not([data-theme="light"]) button.menu-dropdown__toggle:hover,
  html:not([data-theme="light"]) button.menu-dropdown__toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -10px rgba(255, 152, 0, 0.55);
    filter: brightness(1.05);
    outline: none;
  }

  html:not([data-theme="light"]) button.menu-dropdown__toggle:focus-visible {
    outline: 3px solid rgba(255, 152, 0, 0.45);
    outline-offset: 2px;
  }

  /* Menu mobile */
  @media (max-width: 780px) {
    html:not([data-theme="light"]) .menu {
      background: var(--background);
      border-bottom: 1px solid var(--border-color);
      box-shadow: var(--shadow-soft);
    }
  }

  /* =====================================
     🧾 CARDS E BLOCOS
  ===================================== */

  html:not([data-theme="light"]) .product-card,
  html:not([data-theme="light"]) .feature-card,
  html:not([data-theme="light"]) .testimonial-card,
  html:not([data-theme="light"]) .demo-card,
  html:not([data-theme="light"]) .stats-box,
  html:not([data-theme="light"]) .demo-carousel__screen {
    background: rgba(15, 23, 42, 0.72);
    border-color: var(--border-color);
    box-shadow: var(--shadow-soft);
  }

  /* Hover mantém identidade */
  html:not([data-theme="light"]) .product-card:hover,
  html:not([data-theme="light"]) .feature-card:hover {
    border-color: var(--brand-primary);
  }

  html:not([data-theme="light"]) .product-card .product-icon {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.2);
    color: rgb(173 216 233);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 8px 22px rgba(0, 0, 0, 0.35);
  }

  html:not([data-theme="light"]) .product-card:hover .product-icon {
    border-color: rgba(115, 191, 213, 0.35);
    color: rgb(206 231 239);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 10px 26px rgba(0, 0, 0, 0.4);
  }

  /* =====================================
     🔘 BOTÕES
  ===================================== */

  html:not([data-theme="light"]) .btn-secondary {
    background: #ff980000;
    border-color: #FF9800;
    color: #ffffff;
  }

  html:not([data-theme="light"]) .btn-secondary:hover {
    background: rgba(255, 152, 0, 0.18);
  }

  /* Botões do carrossel */
  html:not([data-theme="light"]) .demo-carousel__btn {
    background: rgba(15, 23, 42, 0.72);
    border-color: var(--border-color);
    color: var(--brand-primary);
    box-shadow: var(--shadow-soft);
  }

  /* =====================================
     📝 TEXTOS
  ===================================== */

  html:not([data-theme="light"]) .check-list li,
  html:not([data-theme="light"]) .testimonial-card p {
    color: #cbd5e1;
  }

  /* =====================================
     🖼 IMAGENS / CARDS
  ===================================== */

  html:not([data-theme="light"]) .demo-card img {
    background: rgba(2, 6, 23, 0.35);
    border-color: var(--border-color);
  }

  /* =====================================
     🎛 COMPONENTES
  ===================================== */

  html:not([data-theme="light"]) .demo-carousel__dot {
    background: rgba(148, 163, 184, 0.35);
  }

  html:not([data-theme="light"]) .demo-carousel__dot.is-active {
    background: var(--brand-primary);
  }

  /* =====================================
     👤 SOCIAL / FOOTER
  ===================================== */

  html:not([data-theme="light"]) .socials a {
    background: rgba(15, 23, 42, 0.72);
    border-color: var(--border-color);
    color: var(--text-primary);
  }

  html:not([data-theme="light"]) .copyright {
    border-top: 1px solid var(--border-color);
  }

  /* =====================================
     🚀 HERO
  ===================================== */

  html:not([data-theme="light"]) .hero {
    background:
      radial-gradient(circle at 15% 20%, rgb(57 103 117 / 12%), #00000078 32%),
      radial-gradient(circle at 90% 20%, rgba(51, 97, 127, 0.10), #0000004f 35%),
      linear-gradient(276deg, #06132d, #030e2b);
  }

  html:not([data-theme="light"]) .hero::before {
    background-image:
      linear-gradient(rgb(57 103 117 / 0.09) 1px, transparent 1px),
      linear-gradient(90deg, rgb(57 103 117 / 0.09) 1px, transparent 1px);
  }

  /* =====================================
     🎚 SCROLLBAR (melhoria visual)
  ===================================== */

  html:not([data-theme="light"]) {
    scrollbar-color: var(--brand-primary) var(--background-soft);
  }

  html:not([data-theme="light"])::-webkit-scrollbar-track {
    background: var(--background-soft);
  }

  html:not([data-theme="light"])::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
    border: 2px solid var(--background-soft);
  }
}

/* SO em modo claro + utilizador escolhe Escuro: o bloco @media acima não corre */
html[data-theme="dark"] body {
  background: var(--background);
  color: var(--text-primary);
}

html[data-theme="dark"] .products,
html[data-theme="dark"] .demo,
html[data-theme="dark"] .stats,
html[data-theme="dark"] .cta {
  background: var(--background);
}

html[data-theme="dark"] .features,
html[data-theme="dark"] .testimonials,
html[data-theme="dark"] .footer {
  background: var(--background-soft);
}

html[data-theme="dark"] .header {
  background: rgba(11, 18, 32, 0.88);
  border-bottom: 1px solid var(--border-color);
}

html[data-theme="dark"] .logo__img {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .menu {
  color: var(--text-primary);
}

html[data-theme="dark"] .theme-switch__track {
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--border-color);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .theme-btn {
  color: var(--text-muted);
}

html[data-theme="dark"] .theme-btn i {
  color: var(--brand-primary);
  opacity: 0.75;
}

html[data-theme="dark"] .theme-btn:hover:not([aria-pressed="true"]) {
  background: rgba(115, 191, 213, 0.12);
  color: var(--text-primary);
}

html[data-theme="dark"] .theme-btn:hover:not([aria-pressed="true"]) i {
  color: var(--brand-accent);
  opacity: 1;
}

html[data-theme="dark"] .theme-btn[aria-pressed="true"] {
  color: var(--brand-accent);
  background: rgba(115, 191, 213, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .theme-btn[aria-pressed="true"] i {
  color: var(--brand-accent);
  opacity: 1;
}

html[data-theme="dark"] button.menu-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #dd7b06;
  background: #ff980000;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(255, 152, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

html[data-theme="dark"] button.menu-dropdown__toggle:hover,
html[data-theme="dark"] button.menu-dropdown__toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(255, 152, 0, 0.55);
  filter: brightness(1.05);
  outline: none;
}

html[data-theme="dark"] button.menu-dropdown__toggle:focus-visible {
  outline: 3px solid rgba(255, 152, 0, 0.45);
  outline-offset: 2px;
}

@media (max-width: 780px) {
  html[data-theme="dark"] .menu {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
  }
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .demo-card,
html[data-theme="dark"] .stats-box,
html[data-theme="dark"] .demo-carousel__screen {
  background: rgba(15, 23, 42, 0.72);
  border-color: var(--border-color);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .product-card:hover,
html[data-theme="dark"] .feature-card:hover {
  border-color: var(--brand-primary);
}

html[data-theme="dark"] .product-card .product-icon {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.2);
  color: rgb(173 216 233);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .product-card:hover .product-icon {
  border-color: rgba(115, 191, 213, 0.35);
  color: rgb(206 231 239);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .btn-secondary {
  background: #ff980000;
  border-color: #FF9800;
  color: #ffffff;
}

html[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 152, 0, 0.18);
}

html[data-theme="dark"] .demo-carousel__btn {
  background: rgba(15, 23, 42, 0.72);
  border-color: var(--border-color);
  color: var(--brand-primary);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .check-list li,
html[data-theme="dark"] .testimonial-card p {
  color: #cbd5e1;
}

html[data-theme="dark"] .demo-card img {
  background: rgba(2, 6, 23, 0.35);
  border-color: var(--border-color);
}

html[data-theme="dark"] .demo-carousel__dot {
  background: rgba(148, 163, 184, 0.35);
}

html[data-theme="dark"] .demo-carousel__dot.is-active {
  background: var(--brand-primary);
}

html[data-theme="dark"] .socials a {
  background: rgba(15, 23, 42, 0.72);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html[data-theme="dark"] .copyright {
  border-top: 1px solid var(--border-color);
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 15% 20%, rgb(57 103 117 / 12%), #00000078 32%),
    radial-gradient(circle at 90% 20%, rgba(51, 97, 127, 0.10), #0000004f 35%),
    linear-gradient(276deg, #06132d, #030e2b);
}

html[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(rgb(57 103 117 / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(57 103 117 / 0.09) 1px, transparent 1px);
}

html[data-theme="dark"] {
  scrollbar-color: var(--brand-primary) var(--background-soft);
}

html[data-theme="dark"]::-webkit-scrollbar-track {
  background: var(--background-soft);
}

html[data-theme="dark"]::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  border: 2px solid var(--background-soft);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-color: var(--brand-primary) var(--background-soft);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--background-soft);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  border-radius: 999px;
  border: 2px solid var(--background-soft);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-secondary), var(--brand-primary));
}

html::-webkit-scrollbar-corner {
  background: var(--background-soft);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

a,
a:any-link,
a:-webkit-any-link {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(env(safe-area-inset-left, 0px), clamp(14px, 4.5vw, 28px));
  padding-right: max(env(safe-area-inset-right, 0px), clamp(14px, 4.5vw, 28px));
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  box-shadow: 0 14px 30px rgba(5, 17, 55, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
}

.btn-secondary {
  background: #ff980000;
  border-color: #FF9800;
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 152, 0, 0.18);
}

.btn-whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fdfdfd !important;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.22);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
}

.btn-whatsapp:active {
  transform: translateY(0);
  background: var(--whatsapp-active);
  border-color: var(--whatsapp-active);
}

.btn-whatsapp:focus-visible {
  outline: 3px solid var(--whatsapp-focus);
  outline-offset: 3px;
}

.btn-demo {
  background: rgb(255 152 0);
  border-color: #fe9800;
  color: #fdfdfd !important;
}

.section-label {
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw + 0.6rem, 2.75rem);
  line-height: 1.15;
  margin-bottom: 14px;
  padding-inline: 0;
}

.section-desc {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.0625rem);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10020;
  padding-top: env(safe-area-inset-top, 0px);
  /* Sem backdrop-filter: evita “prender” o menu fixed no mobile relativamente ao header */
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  min-height: 78px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: clamp(6px, 2vw, 20px);
  padding-top: 8px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

/* Marca não deve crescer e esmagar o .menu ao centro na barra */
.nav-brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(440px, 46vw);
  padding: 2px 0;
}

.nav-brand--footer {
  max-width: 100%;
  margin-bottom: 16px;
  padding: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  min-width: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.logo:hover .logo__img {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

/* Logo à escala da barra (~62–68px útil em 78px de altura) — sem recorte */
.nav-brand .logo__img {
  display: block;
  height: clamp(54px, 8vw, 66px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
}

.logo--footer {
  margin-bottom: 0;
}

.nav-brand--footer .logo__img,
.logo--footer .logo__img {
  height: clamp(56px, 8vw, 68px);
  max-width: min(360px, 100%);
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
  flex: 1 1 auto;
  font-weight: 700;
  color: #1e293b;
}

/* Desktop: não encolher o bloco das ligações abaixo do conteúdo (min-width:0 quebra o menu em flex). */
@media (min-width: 781px) {
  .menu {
    min-width: max-content;
  }

  .menu a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  /* Barra há muitos elementos: scroll horizontal só na linha útil em tablets largos estreitos */
  .nav {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    height: 6px;
  }

  .nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.35);
  }
}

.menu a {
  position: relative;
  font-size: 15px;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 0;
  height: 3px;
  background: var(--brand-primary);
  border-radius: 10px;
  transition: 0.25s ease;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

/* =========================================================================
   MENU DROPDOWN — "Acesso" (lista de sistemas Socialys)
   ========================================================================= */
.menu-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 10025;
}

.menu-dropdown.is-open {
  z-index: 10030;
}

button.menu-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #dd7b06;
  background: #ff980000;
  color: #070b30;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(255, 152, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button.menu-dropdown__toggle:hover,
button.menu-dropdown__toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(255, 152, 0, 0.55);
  filter: brightness(1.05);
  outline: none;
}

button.menu-dropdown__toggle:focus-visible {
  outline: 3px solid rgba(255, 152, 0, 0.45);
  outline-offset: 2px;
}

.menu-dropdown__toggle > i:first-child {
  font-size: 13px;
  opacity: 0.95;
}

.menu-dropdown__chevron {
  font-size: 11px;
  transition: transform 0.22s ease;
}

.menu-dropdown.is-open .menu-dropdown__chevron {
  transform: rotate(180deg);
}

.menu-dropdown__list {
  position: fixed;
  top: 0;
  left: auto;
  right: 0;
  min-width: 280px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.35),
    0 6px 14px -8px rgba(15, 23, 42, 0.20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 10040;
}

.menu-dropdown.is-open .menu-dropdown__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* Pequeno triângulo apontando para o toggle */
.menu-dropdown__list::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: var(--background);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.menu-dropdown__list li {
  margin: 0;
}

.menu-dropdown__list a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-dropdown__list a::after {
  display: none; /* anula sublinhado do .menu a::after */
}

.menu-dropdown__list a:hover,
.menu-dropdown__list a:focus-visible {
  background: var(--background-soft, #f4f7fb);
  color: var(--brand-primary);
  outline: none;
}

.menu-dropdown__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 17px;
  color: var(--brand-primary);
  background: linear-gradient(180deg, var(--background) 0%, var(--background-soft, #f4f7fb) 100%);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 4px rgba(15, 23, 42, 0.08);
  -webkit-font-smoothing: antialiased;
}

.menu-dropdown__icon > i {
  line-height: 1;
  font-size: 1em;
  opacity: 0.92;
}

.menu-dropdown__list a:hover .menu-dropdown__icon,
.menu-dropdown__list a:focus-visible .menu-dropdown__icon {
  border-color: color-mix(in srgb, var(--brand-primary) 22%, var(--border-color));
  background: var(--background-soft, #f8fafc);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.menu-dropdown__list a:hover .menu-dropdown__icon > i,
.menu-dropdown__list a:focus-visible .menu-dropdown__icon > i {
  opacity: 1;
}

.menu-dropdown__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.menu-dropdown__name {
  font-weight: 700;
  color: inherit;
}

.menu-dropdown__desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.menu-dropdown__list a:hover .menu-dropdown__desc,
.menu-dropdown__list a:focus-visible .menu-dropdown__desc {
  color: var(--brand-primary);
  opacity: 0.85;
}

.menu-dropdown__ext {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.menu-dropdown__list a:hover .menu-dropdown__ext,
.menu-dropdown__list a:focus-visible .menu-dropdown__ext {
  opacity: 1;
  transform: translateX(0);
  color: var(--brand-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

/* Troca de tema — controlo segmentado (pill) */
.theme-switch {
  flex: 0 0 auto;
  flex-shrink: 0;
}

.nav .btn {
  flex-shrink: 0;
}

.theme-switch__track {
  display: inline-flex;
  align-items: stretch;
  padding: 4px;
  gap: 3px;
  background: var(--background-soft);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-btn i {
  font-size: 14px;
  opacity: 0.92;
  color: var(--brand-secondary);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.theme-btn:hover:not([aria-pressed="true"]) {
  color: var(--brand-primary);
  background: rgba(115, 191, 213, 0.14);
}

.theme-btn:hover:not([aria-pressed="true"]) i {
  color: var(--brand-primary);
  opacity: 1;
}

.theme-btn[aria-pressed="true"] {
  color: var(--brand-primary);
  background: #fff;
  box-shadow: 0 2px 10px rgba(5, 17, 55, 0.1);
}

.theme-btn[aria-pressed="true"] i {
  color: var(--brand-primary);
  opacity: 1;
}

.theme-btn:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.theme-btn:active:not([aria-pressed="true"]) {
  transform: scale(0.98);
}

/* Hero */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(115, 191, 213, 0.18), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(51, 97, 127, 0.14), transparent 35%),
    linear-gradient(180deg, #ffffff, var(--background-soft));
}

/* Quando o hero é o carrossel full-area, o .container/.hero-layout encostam nas bordas */
.hero > .hero-layout {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

html[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 15% 20%, rgb(8 79 103 / 13%), #3bb77a00 30%),
    radial-gradient(circle at 90% 20%, rgb(0 3 4 / 14%), #9d555500 35%),
    linear-gradient(109deg, #ddf1e2, #edfffc);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(115, 191, 213, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 191, 213, 0.10) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(32px, 4.5vw, 56px);
}

/* Variante: o próprio .hero-grid é o carrossel (full-width / full-area) */
.hero-grid--carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  width: 100%;
  border-radius: 0;
}

/* Área da imagem/controles; o CTA (.hero-actions) fica abaixo, fora do shell */
.hero-carousel__shell {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 88vh, 880px);
  overflow: hidden;
  isolation: isolate;
  background: #0b1220;
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.35);
}

.hero-grid--carousel > .hero-actions {
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(18px, 3.5vw, 28px) clamp(20px, 5vw, 40px);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw + 0.85rem, 4.5rem);
  line-height: 1.06;
  letter-spacing: clamp(-1.8px, -0.06em, -0.03em);
  margin-bottom: 24px;
  hyphens: auto;
}

.hero h1 span {
  color: var(--brand-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  margin-top: clamp(40px, 5vw, 64px);
}

/* Variante: faixa de badges dentro do carrossel, com efeito glass */
.hero-badges--inside {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  margin: 0;
  padding: clamp(16px, 2.2vw, 24px) clamp(20px, 4vw, 36px);
  background: linear-gradient(180deg, rgba(7, 22, 41, 0.0) 0%, rgba(7, 22, 41, 0.55) 30%, rgba(7, 22, 41, 0.78) 100%);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: clamp(14px, 2vw, 28px);
}

.hero-badges--inside .badge {
  color: #fff;
  font-size: 14px;
  align-items: center;
  padding: 6px 4px;
}

.hero-badges--inside .badge strong {
  color: #fff;
  font-weight: 700;
}

.hero-badges--inside .badge span {
  color: rgba(255, 255, 255, 0.78);
}

.hero-badges--inside .badge-icon {
  color: #7BD8FF;
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(123, 216, 255, 0.14);
  border: 1px solid rgba(123, 216, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.badge-icon {
  color: var(--brand-primary);
  font-size: 22px;
}

.badge strong {
  display: block;
  margin-bottom: 4px;
}

.badge span {
  color: var(--text-muted);
  line-height: 1.4;
  font-size: 13px;
}

.device-area {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.device-area__frame {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.device-area__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 24px 50px rgba(15, 23, 42, 0.14));
}

/* Mockups com fundo branco “misturam” com o hero. Com PNG já transparente, remova a classe --merge-bg no HTML. */
.device-area__frame--merge-bg .device-area__img {
  mix-blend-mode: multiply;
}

/* =========================
   Hero Carousel (full-width: viewport ocupa todo o .hero-grid)
   ========================= */
.hero-carousel__viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hero-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

.hero-carousel__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Overlay sobre o slide (camadas suaves de cor) */
.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgb(7 22 41 / 6%) 0%,
      rgb(107 141 185 / 45%) 45%,
      rgb(5 31 63 / 10%) 100%
    ),
    linear-gradient(
      154deg,
      rgb(88 116 153 / 0%) 0%,
      rgb(168 189 217 / 10%) 55%,
      rgb(7 22 41) 100%
    );
}

.hero-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.hero-carousel__btn:hover {
  background: rgba(15, 23, 42, 0.75);
}

.hero-carousel__btn:focus-visible {
  outline: 3px solid rgba(115, 216, 255, 0.8);
  outline-offset: 2px;
}

.hero-carousel__btn--prev { left: 16px; }
.hero-carousel__btn--next { right: 16px; }

.hero-carousel__btn i { font-size: 16px; line-height: 1; }

.hero-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(96px, 13vw, 132px);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  padding: 0 12px;
}

.hero-carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.hero-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-carousel__dot.is-active {
  background: #fff;
  width: 24px;
  border-radius: 999px;
}

.hero-carousel__dot:focus-visible {
  outline: 2px solid rgba(115, 216, 255, 0.9);
  outline-offset: 2px;
}

/* Esconde controles quando há apenas 1 slide */
.hero-grid--carousel[data-slide-count="1"] .hero-carousel__btn,
.hero-grid--carousel[data-slide-count="1"] .hero-carousel__dots {
  display: none;
}

@media (hover: none) {
  .hero-carousel__btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1050px) {
  .hero-carousel__dots {
    bottom: clamp(100px, 16vw, 140px);
  }
}

@media (max-width: 780px) {
  .hero-carousel__dots {
    bottom: clamp(104px, 20vw, 148px);
  }
}

@media (max-width: 480px) {
  .hero-carousel__btn--prev { left: 8px; }
  .hero-carousel__btn--next { right: 8px; }
  .hero-carousel__btn { width: 38px; height: 38px; }

  .hero-carousel__dots {
    bottom: clamp(96px, 28vw, 128px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track {
    transition: none;
  }
}

/* Sections */
section {
  padding: 45px 0;
}

.center {
  text-align: center;
}

.products {
  background: #fff;
}

/* =========================
   Legal / Policy (long-form reading)
   ========================= */
.policy {
  background: var(--background-soft);
}

.policy__header {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.policy__updated {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.policy__updated time {
  color: var(--brand-primary);
  font-weight: 700;
}

.policy__body {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 30px -18px rgba(15, 23, 42, 0.18);
  font-size: 1rem;
  line-height: 1.75;
  color: #2b3445;
}

.policy__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(115, 216, 255, 0.10), rgba(115, 216, 255, 0.04));
  border-left: 4px solid var(--brand-primary);
  border-radius: 8px;
  margin-bottom: 28px;
}

.policy__body h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
  scroll-margin-top: 110px;
}

.policy__body h3:first-of-type {
  margin-top: 12px;
}

.policy__body p {
  margin: 0 0 14px;
}

.policy__body p:last-child {
  margin-bottom: 0;
}

.policy__body strong {
  color: #0f172a;
  font-weight: 700;
}

.policy__body em {
  font-style: italic;
  color: #0f172a;
}

.policy__body a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  word-break: break-word;
}

.policy__body a:hover {
  text-decoration-thickness: 2px;
}

.policy__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.policy__list li {
  position: relative;
  padding: 6px 0 6px 26px;
  margin: 0;
}

.policy__list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(5, 17, 55, 0.10);
}

.policy__list li + li {
  border-top: 1px dashed var(--border-color);
}

/* ---- Recolher / expandir ---- */
.policy__details {
  margin-top: 8px;
  scroll-margin-top: 110px;
}

.policy__details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px -8px rgba(5, 17, 55, 0.45);
}

.policy__details > summary::-webkit-details-marker {
  display: none;
}

.policy__details > summary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(5, 17, 55, 0.55);
}

.policy__details > summary:focus-visible {
  outline: 3px solid rgba(115, 216, 255, 0.6);
  outline-offset: 3px;
}

.policy__summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.policy__details[open] .policy__summary-icon {
  transform: rotate(180deg);
}

.policy__summary-label--open {
  display: none;
}

.policy__details[open] .policy__summary-label--closed {
  display: none;
}

.policy__details[open] .policy__summary-label--open {
  display: inline;
}

.policy__summary-hint {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.policy__details-content {
  margin-top: 24px;
  animation: policyFadeIn 0.35s ease both;
}

/* ---- Índice (TOC) ---- */
.policy__toc {
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--background-soft);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-primary);
  border-radius: 12px;
}

.policy__toc-title {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.policy__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  counter-reset: toc;
}

.policy__toc-list li {
  counter-increment: toc;
  border-top: none;
  padding: 0;
}

.policy__toc-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 4px;
  font-size: 0.93rem;
  line-height: 1.4;
  color: #2b3445;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.policy__toc-link::before {
  content: counter(toc);
  flex: 0 0 auto;
  min-width: 1.6em;
  font-weight: 700;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}

.policy__toc-link:hover {
  background: #fff;
  color: var(--brand-primary);
}

.policy__toc-link:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .policy__toc-list {
    grid-template-columns: 1fr;
  }

  .policy__toc {
    padding: 14px 16px;
  }
}

@keyframes policyFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .policy__summary-icon,
  .policy__details-content {
    animation: none !important;
    transition: none !important;
  }
}

.policy__collapse-btn {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.policy__collapse-btn:hover {
  background: var(--background-soft);
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

.policy__collapse-btn:focus-visible {
  outline: 3px solid rgba(5, 17, 55, 0.25);
  outline-offset: 2px;
}

@media (max-width: 780px) {
  .policy__body {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .policy__intro {
    padding: 14px 14px;
    font-size: 1rem;
  }

  .policy__body h3 {
    font-size: 1.08rem;
    margin-top: 26px;
  }

  .policy__details > summary {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 0.94rem;
  }

  .policy__summary-hint {
    display: none;
  }
}

/* =========================
   Brief institucional (Missão / Visão — namespace compartilhado)
   ========================= */
.brief {
  position: relative;
  background:
    radial-gradient(circle at 80% 15%, rgba(115, 191, 213, 0.14), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(5, 17, 55, 0.06), transparent 50%),
    var(--background-soft);
  overflow: hidden;
}

/* Missão: fundo sólido (sem gradiente), token suave de página */
.brief--mission {
  background: var(--background-soft);
}

/* Visão: fundo sólido (sem gradiente), token suave de página */
.brief--vision {
  background: var(--background-soft);
}

/* Valores: fundo sólido (sem gradiente), alinhado ao token de página */
.brief--values {
  background: var(--background);
}

.brief::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(5, 17, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 17, 55, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.brief > .container {
  position: relative;
  z-index: 1;
}

.brief__header {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.brief__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(5, 17, 55, 0.12);
  color: var(--brand-primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.18);
}

.brief__chip i {
  font-size: 14px;
  color: var(--brand-primary);
}

.brief__statement {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.25rem, 1.6vw + 0.85rem, 2rem);
  line-height: 1.4;
  color: #1f2a44;
  letter-spacing: -0.01em;
  font-weight: 500;
  text-wrap: balance;
}

.brief__highlight {
  color: var(--brand-primary);
  font-weight: 700;
}

.brief__statement strong {
  color: #0f172a;
  font-weight: 700;
}

.brief-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: clamp(48px, 6vw, 72px) 0;
}

.pillar-card {
  position: relative;
  background: azure;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 30px);
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 240px;
  height: 100%;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), #7BD8FF);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

.pillar-card:hover,
.pillar-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.30);
  border-color: rgba(5, 17, 55, 0.18);
}

.pillar-card:hover::before,
.pillar-card:focus-within::before {
  transform: scaleX(1);
}

.pillar-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(5, 17, 55, 0.08), rgba(123, 216, 255, 0.20));
  border: 1px solid rgba(5, 17, 55, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--brand-primary);
  margin-bottom: 18px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  color: #0f172a;
  letter-spacing: -0.005em;
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.brief-commitments {
  position: relative;
  background: azure;
  border: 1px solid rgba(5, 17, 55, 0.12);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  max-width: 880px;
  margin: 0 auto;
}

.brief-commitments__title {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
}

.brief-commitments__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}

.brief-commitments__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1f2a44;
}

.brief-commitments__check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
  box-shadow: 0 0 0 4px rgba(5, 17, 55, 0.08);
}

@media (max-width: 980px) {
  .brief-pillars {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .brief-commitments__list {
    grid-template-columns: 1fr;
  }

  .brief__chip {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 46px;
  align-items: stretch;
}

.product-card,
.feature-card,
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.product-card {
  padding: 34px;
  min-height: 390px;
  transition: 0.25s ease;
  text-align: left;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
}

.product-card.featured {
  border: 2px solid var(--brand-primary);
}

.product-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-tint) 100%);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  font-size: 1.625rem;
  margin-bottom: 24px;
  border: 1px solid rgba(5, 17, 55, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(5, 17, 55, 0.07);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

.product-card:hover .product-icon {
  border-color: color-mix(in srgb, var(--brand-primary) 22%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 28px rgba(5, 17, 55, 0.1);
  color: var(--brand-secondary);
}

.product-icon > i {
  line-height: 1;
  font-size: 1em;
}

.product-card h3 {
  font-size: 28px;
  margin-bottom: 14px;
}

.product-card p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  margin-bottom: 28px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: #334155;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}

.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  color: #fff;
  background: var(--brand-primary);
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  margin-top: 2px;
  font-size: 12px;
}

.tag {
  display: inline-block;
  padding: 8px 14px;
  background: var(--brand-tint);
  color: var(--brand-secondary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
}

.features {
  background:
    radial-gradient(circle at 85% 20%, rgba(115, 191, 213, 0.14), transparent 32%),
    var(--background-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.feature-card {
  padding: 34px 24px;
  text-align: center;
  transition: 0.25s ease;
  min-height: 280px;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-primary);
}

.feature-card .icon {
  font-size: 46px;
  color: var(--brand-primary);
  margin-bottom: 18px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.demo {
  background: #fff;
}

.demo-carousel {
  position: relative;
  max-width: min(960px, 100%);
  margin: 45px auto 0;
  padding: 0 52px;
}

.demo-carousel__viewport {
  overflow: hidden;
  border-radius: 22px;
}

.demo-carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}

.demo-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 8px;
}

.demo-carousel__caption {
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.demo-carousel__screen {
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--background-soft);
}

.demo-carousel__screen img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.demo-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--brand-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: var(--shadow-soft);
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}

.demo-carousel__btn:hover {
  background: var(--brand-tint);
}

.demo-carousel__btn--prev {
  left: 0;
}

.demo-carousel__btn--next {
  right: 0;
}

.demo-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.demo-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.demo-carousel__dot.is-active {
  background: var(--brand-primary);
  transform: scale(1.2);
}

.stats {
  padding: 20px 0;
  background: #fff;
}

.stats-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: #fff;
}

.stat {
  padding: 34px;
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.stat:last-child {
  border-right: none;
}

.stat .icon {
  font-size: 34px;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.stat strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--text-muted);
}

.testimonials {
  background: var(--background-soft);
}

.clients {
  background: #fff;
}

.clients .section-title {
  color: var(--text-primary);
}

.clients .section-desc {
  color: var(--text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.clients .section-label {
  color: var(--brand-primary);
}

html[data-theme="dark"] .clients {
  background: #0b1220;
}

html[data-theme="dark"] .clients .section-title {
  color: #f8fafc;
}

html[data-theme="dark"] .clients .section-desc {
  color: #cbd5e1;
}

html[data-theme="dark"] .clients .section-label {
  color: var(--brand-accent);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 45px;
  align-items: stretch;
}

.client-card {
  min-width: 0;
  box-sizing: border-box;
  display: block;
  padding: 22px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: left;
  height: 100%;
}

html[data-theme="dark"] .client-card {
  background: #0f172a;
}

.clients .client-body h3 {
  color: var(--text-primary);
}

.clients .client-body p {
  color: var(--text-muted);
}

.clients .client-body p strong {
  color: #0f172a;
}

html[data-theme="dark"] .clients .client-body h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .clients .client-body p {
  color: #94a3b8;
}

html[data-theme="dark"] .clients .client-body p strong {
  color: #e2e8f0;
}

.client-media {
  float: left;
  width: 120px;
  height: 120px;
  margin: 0 18px 12px 0;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(115, 191, 213, 0.25), transparent 45%),
    var(--background-soft);
}

.client-media picture,
.client-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* (removido) variações de logo — cards de clientes padronizados */

.client-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.client-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.client-body {
  min-width: 0;
}

.client-card::after {
  content: "";
  display: table;
  clear: both;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 45px;
}

.testimonial-card {
  padding: 30px;
  min-height: 260px;
  height: 100%;
}

.quote {
  color: var(--brand-primary);
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
}

.testimonial-card p {
  color: #334155;
  line-height: 1.7;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-accent));
}

.person strong {
  display: block;
}

.person span {
  color: var(--text-muted);
  font-size: 14px;
}

.cta {
  background: var(--background);
  padding: 39px 0;
}

.cta-box {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 30px;
  border-radius: 28px;
  border: var(--cta-box-border);
  box-shadow: var(--cta-box-shadow);
  padding: 36px;
}

.cta-icon {
  width: 90px;
  height: 90px;
  border-radius: 26px;
  background: linear-gradient(141deg, #0b1220, #014151);
  display: grid;
  place-items: center;
  color: #bdcceb;
  font-size: 46px;
  font-weight: 900;
  box-shadow: 0 16px 35px rgb(49 65 117 / 84%);
}

.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 10px;
}

.cta p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: min(280px, 100%);
}

@media (min-width: 1051px) {
  .cta-actions {
    min-width: min(280px, 100%);
    width: auto;
  }
}

/* Footer */
.footer {
  padding: 31px 0 max(25px, env(safe-area-inset-bottom, 0px));
  background: var(--background-soft);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 34px;
  margin-bottom: 40px;
}

.footer__col-image {
  width: min(140px, 100%);
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(110, 128, 160, 0.12);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  overflow: hidden;
}

.footer__col-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer p,
.footer a {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
}

.footer h4 {
  margin-bottom: 14px;
  font-size: 17px;
}

.footer a {
  display: block;
}

.footer a.footer-link-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link-icon span[aria-hidden="true"],
.footer-link-icon i[aria-hidden="true"] {
  flex-shrink: 0;
  width: 1.35em;
  text-align: center;
  opacity: 0.88;
  margin-right: 0;
}

.footer a.footer-link-icon:hover i {
  opacity: 1;
  color: var(--brand-accent);
}

.footer a:hover {
  color: var(--brand-primary);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.socials a i {
  font-size: 17px;
  line-height: 1;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 14px;
}

/* Botão flutuante: voltar ao início */
.fab-top {
  position: fixed;
  right: max(env(safe-area-inset-right, 0px), 18px);
  bottom: max(env(safe-area-inset-bottom, 0px), 18px);
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgb(248 251 255 / 18%);
  background: #FF9800;
  color: #ffffff !important;
  box-shadow: -5px 3px 30px rgba(0, 0, 0, 0.35);
}

.fab-top i {
  font-size: 16px;
}

.fab-top span {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.fab-top:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: -5px 8px 34px rgba(0, 0, 0, 0.4);
}

.fab-top:focus-visible {
  outline: 3px solid rgba(255, 152, 0, 0.55);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .device-area {
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
  }

  .hero-carousel__shell {
    min-height: clamp(620px, 92vh, 820px);
  }

  .hero-badges--inside {
    grid-template-columns: 1fr 1fr;
    padding: clamp(14px, 3vw, 22px) clamp(16px, 4vw, 28px);
    gap: 10px 16px;
  }

  .cards-grid,
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .stats-box {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-icon {
    margin: 0 auto;
  }

  .cta-actions {
    width: 100%;
  }
}

@media (max-width: 780px) {
  .mobile-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(env(safe-area-inset-top, 0px) + 94px);
    width: 100%;
    max-width: 100vw;
    z-index: 10001;
    min-width: 0;
    max-height: min(78vh, calc(100vh - env(safe-area-inset-top, 0px) - 106px));
    max-height: min(78vh, calc(100dvh - env(safe-area-inset-top, 0px) - 106px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(16px, 4vw, 24px)
      max(env(safe-area-inset-right, 0px), clamp(14px, 4.5vw, 28px))
      max(28px, env(safe-area-inset-bottom, 0px))
      max(env(safe-area-inset-left, 0px), clamp(14px, 4.5vw, 28px));
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-130%);
    transition: 0.25s ease;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
  }

  .menu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 4px;
    min-height: 48px;
    line-height: 1.35;
    white-space: normal;
    max-width: 100%;
    flex-shrink: 0;
  }

  .menu a::after {
    bottom: 8px;
  }

  .menu.open {
    transform: translateY(0);
  }

  /* MENU DROPDOWN — modo mobile (acordeão dentro do drawer) */
  .menu-dropdown {
    width: 100%;
    display: block;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }

  .menu-dropdown__toggle {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 15px;
  }

  .menu-dropdown__list {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 4px;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: max-height 0.28s ease, padding 0.2s ease, margin 0.2s ease;
  }

  .menu-dropdown__list::before {
    display: none;
  }

  .menu-dropdown.is-open .menu-dropdown__list {
    max-height: 600px;
    margin-top: 8px;
    padding: 4px;
  }

  .menu-dropdown__list a {
    padding: 12px 10px;
    min-height: 48px;
  }

  .menu-dropdown__ext {
    opacity: 1;
    transform: none;
  }

  .nav .btn {
    display: none;
  }

  .nav-brand {
    flex: 1 1 0%;
    max-width: none;
    min-width: 0;
  }

  .nav-brand .logo__img {
    height: clamp(40px, 10.5vw, 52px);
    max-height: 52px;
  }

  .nav-brand--footer .logo__img {
    max-width: 100%;
  }

  .theme-switch__track {
    padding: 3px;
    gap: 2px;
  }

  .theme-btn {
    padding: 9px 11px;
    gap: 0;
    min-width: 40px;
  }

  .theme-btn__label {
    display: none;
  }

  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero-carousel__shell {
    min-height: clamp(640px, 100vh, 820px);
    border-radius: 0;
  }

  .hero-badges {
    grid-template-columns: 1fr 1fr;
  }

  .demo-grid {
    grid-template-columns: 1fr !important;
  }

  .demo-grid,
  .cards-grid,
  .testimonial-grid,
  .features-grid,
  .stats-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid .client-card {
    text-align: center;
  }

  .client-media {
    margin: 0 auto;
  }

  .client-media {
    float: none;
  }

  .client-body h3,
  .client-body p {
    text-align: left;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .stat:last-child {
    border-bottom: none;
  }

  section {
    padding: clamp(1.6rem, 5.6vw, 2.25rem) 0;
  }

  .center {
    text-align: center;
    padding-inline: 0;
  }

  .product-card {
    min-height: 0;
  }

  .cta-box {
    padding: clamp(20px, 5vw, 36px);
    gap: clamp(18px, 4vw, 30px);
  }

  .demo-carousel {
    padding: 0 44px;
  }

  .demo-carousel__btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: clamp(2.5rem, 12vw, 3.75rem) 0 clamp(2rem, 8vw, 3rem);
  }

  .hero-carousel__shell {
    min-height: clamp(680px, 100vh, 800px);
  }

  .hero-badges--inside {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px 18px;
  }

  .hero-badges--inside .badge {
    font-size: 13px;
  }

  .hero-badges--inside .badge-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 48px;
  }

  /* CTA do hero abaixo do carrossel: à esquerda, sem esticar em tela inteira */
  .hero-grid--carousel > .hero-actions .btn {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
  }

  .hero-badges {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cards-grid {
    gap: 18px;
    margin-top: 32px;
  }

  .features-grid {
    gap: 16px;
  }

  .cta h2 {
    word-wrap: break-word;
  }

  .cta-actions {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .demo-carousel {
    padding: 0 36px;
  }

  .demo-carousel__btn {
    width: 36px;
    height: 36px;
  }

  .demo-card img {
    height: clamp(130px, 38vw, 190px);
  }

  .product-card,
  .testimonial-card {
    padding: 24px;
  }

  .stat strong {
    font-size: clamp(2rem, 9vw, 2.625rem);
  }
}

@media (max-width: 380px) {
  .theme-switch__track {
    gap: 1px;
    padding: 2px;
    border-radius: 999px;
  }

  .theme-btn {
    min-width: 36px;
    padding: 9px;
  }

  .nav-brand .logo__img {
    height: 38px;
    max-height: 44px;
  }
}

/* Demo grid final */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 45px;
}

.demo-card {
  padding: 18px;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.demo-card h4 {
  text-align: center;
  margin-bottom: 14px;
  font-size: 16px;
}

.demo-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--background-soft);
  border: 1px solid var(--border-color);
  padding: 12px;
}

/* =========================
   Cookie Banner / LGPD
   ========================= */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: max(env(safe-area-inset-bottom, 0px), 18px);
  transform: translateX(-50%);
  width: min(960px, calc(100% - 24px));
  z-index: 11000;
  background: #0b1220;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.55),
    0 12px 30px -10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  isolation: isolate;
  animation: cookieSlideIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.cookie-banner[hidden] {
  display: none !important;
}

@keyframes cookieSlideIn {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(16px, 2.4vw, 22px) clamp(20px, 3vw, 28px);
  flex-wrap: wrap;
}

.cookie-banner__msg {
  flex: 1 1 320px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.cookie-banner__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(123, 216, 255, 0.14);
  border: 1px solid rgba(123, 216, 255, 0.25);
  color: #7BD8FF;
  font-size: 20px;
}

.cookie-banner__msg strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
  color: #fff;
}

.cookie-banner__msg p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.cookie-banner__msg a {
  color: #7BD8FF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__msg a:hover {
  color: #b3eaff;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cookie-btn:focus-visible {
  outline: 3px solid rgba(115, 216, 255, 0.6);
  outline-offset: 2px;
}

.cookie-btn--primary {
  background: #fff;
  color: #0b1220;
}

.cookie-btn--primary:hover {
  background: #7BD8FF;
  color: #0b1220;
  transform: translateY(-1px);
}

.cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cookie-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.0);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-btn--ghost:hover {
  color: #fff;
}

.cookie-banner__prefs {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(16px, 2.4vw, 22px) clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.02);
  animation: cookieFade 0.25s ease both;
}

.cookie-banner__prefs[hidden] {
  display: none !important;
}

@keyframes cookieFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner__prefs-title {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.cookie-cat {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-cat:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cookie-cat__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cookie-cat strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.cookie-cat span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cookie-switch {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
  display: inline-block;
  margin-top: 2px;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.cookie-switch__track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__track {
  background: #7BD8FF;
  border-color: #7BD8FF;
}

.cookie-switch input:checked + .cookie-switch__track::after {
  transform: translateX(18px);
  background: #0b1220;
}

.cookie-switch input:focus-visible + .cookie-switch__track {
  outline: 2px solid rgba(115, 216, 255, 0.7);
  outline-offset: 2px;
}

.cookie-switch--locked .cookie-switch__track {
  background: rgba(123, 216, 255, 0.35);
  border-color: rgba(123, 216, 255, 0.45);
  opacity: 0.85;
}

.cookie-switch--locked .cookie-switch__track::after {
  transform: translateX(18px);
}

.cookie-banner__prefs-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .cookie-banner {
    width: calc(100% - 16px);
    border-radius: 14px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }

  .cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .cookie-banner__prefs-actions {
    flex-direction: column-reverse;
  }

  .cookie-banner__prefs-actions .cookie-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-banner__prefs {
    animation: none !important;
  }
}