:root {
  --radius: 18px;
  --radius2: 24px;
  --header-offset: 74px;
  /* Largura útil: sobe em ecrãs largos para reduzir faixas vazias nas laterais */
  --container: 1120px;
  --page-gutter: clamp(16px, 3vw, 40px);

  /* Brand tokens (ajuste aqui quando você enviar as cores oficiais) */
  /* Paleta InvestoCia (vermelho/preto/branco em tonalidades) */
  --brand-1: #4a000f; /* vinho institucional oficial (mais escuro) */
  --brand-2: #7a001c; /* apoio vinho */
  --ink: #07070a; /* quase preto */
  --paper: #ffffff; /* branco */

  --header-bg: var(--brand-1);
  --header-fg: rgba(255, 255, 255, 0.92);
  --header-fg-muted: rgba(255, 255, 255, 0.78);

  /* Default theme = dark */
  --bg: #09090c;
  --bg2: #0d0d12;
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.085);
  --surface3: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.58);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

/* Light theme overrides */
html[data-theme="light"] {
  --bg: #f0ecef;
  --bg2: #e6e0e5;
  --paper: #f3eef1;
  --surface: rgba(7, 7, 10, 0.05);
  --surface2: rgba(7, 7, 10, 0.075);
  --surface3: rgba(7, 7, 10, 0.12);
  --stroke: rgba(7, 7, 10, 0.15);
  --text: rgba(7, 7, 10, 0.9);
  --muted: rgba(7, 7, 10, 0.72);
  --muted2: rgba(7, 7, 10, 0.6);
  --shadow: 0 18px 60px rgba(0, 16, 32, 0.14);

  --header-bg: var(--brand-1);
  --header-fg: rgba(255, 255, 255, 0.95);
  --header-fg-muted: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .footer .brand__logo img {
  content: url("./assets/investocia-logo-wine.svg");
  filter: none;
}

@media (min-width: 1200px) {
  :root {
    --container: min(1240px, 92vw);
  }
}

@media (min-width: 1440px) {
  :root {
    --container: min(1360px, 90vw);
  }
}

@media (min-width: 1680px) {
  :root {
    --container: min(1480px, 88vw);
  }
}

@media (min-width: 1920px) {
  :root {
    --container: min(1600px, 86vw);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  padding-top: var(--header-offset);
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

main [id] {
  scroll-margin-top: calc(var(--header-offset) + 14px);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
}

.skip-link:focus {
  left: 10px;
  z-index: 999;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--header-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 45%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand-1) 30%, transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand__logo {
  display: block;
  height: 44px;
  width: auto;
  color: #ffffff;
}

.brand__logo svg,
.brand__logo img {
  display: block;
  height: 100%;
  width: auto;
}

.brand__logo img {
  /* cores explícitas no SVG - sem filtro de inversão */
}

.brand__logo--small {
  height: 32px;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background:
    radial-gradient(14px 14px at 35% 35%, rgba(255, 255, 255, 0.85), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.brand--small .brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.brand__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--header-fg);
  letter-spacing: 0.1px;
}

.brand__name--wordmark {
  font-family: "Belwe Bold", "Belwe", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 42px;
  line-height: 1;
  color: var(--header-fg);
}

.brand__name--wordmark::after {
  content: "";
  display: block;
  margin-top: 6px;
  height: 2px;
  width: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.brand__name--footer {
  font-size: 34px;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--header-fg);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--header-fg);
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-select {
  min-width: 110px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: color-mix(in srgb, var(--header-bg) 86%, #ffffff 14%);
  color: var(--header-fg);
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__links a {
  color: var(--header-fg-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--header-fg);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__summary {
  list-style: none;
  cursor: pointer;
  color: var(--header-fg-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  user-select: none;
}

.nav-dropdown__summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown__summary::after {
  content: " \25BE";
  font-size: 10px;
  opacity: 0.85;
  margin-left: 2px;
}

.nav-dropdown[open] .nav-dropdown__summary::after {
  content: " \25B4";
}

.nav-dropdown__summary:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--header-fg);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--header-bg) 94%, #000);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.nav-dropdown__panel a {
  color: var(--header-fg-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-dropdown__panel a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--header-fg);
}

@media (max-width: 1180px) {
  .nav__links {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 2px;
    column-gap: 8px;
    max-width: min(640px, calc(100vw - 200px - 2 * var(--page-gutter)));
  }
  .nav__links a {
    font-size: 13px;
    padding: 8px 8px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-1);
  color: #ffffff;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--brand-1) 18%, transparent);
}

.btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

html[data-theme="light"] .btn--ghost {
  background: rgba(74, 0, 15, 0.08);
  border-color: rgba(74, 0, 15, 0.24);
  color: rgba(74, 0, 15, 0.92);
}

html[data-theme="light"] .btn--ghost:hover {
  background: rgba(74, 0, 15, 0.14);
}

html[data-theme="light"] .btn--primary {
  background: #5a0d1f;
  box-shadow: 0 14px 30px rgba(90, 13, 31, 0.24);
}

.hero {
  padding: 66px 0 26px;
  position: relative;
  min-height: 72vh;
  min-height: 72dvh;
  display: flex;
  align-items: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.54;
  filter: saturate(1.05) contrast(1.06);
  background: var(--bg);
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 76%;
  animation: heroSlideSequence 61s linear infinite;
  animation-fill-mode: both;
}

.hero__slide--1 {
  background-image: url("./assets/Legado.png");
  animation-delay: 0s;
  z-index: 1;
}

.hero__slide--2 {
  background-image: url("./assets/investocia2.png");
  animation-delay: 12.2s;
  z-index: 2;
}

.hero__slide--3 {
  background-image: url("./assets/investocia3.png");
  background-position: center bottom;
  background-size: cover;
  animation-delay: 24.4s;
  z-index: 3;
}

.hero__slide--4 {
  background-image: url("./assets/investocia4.png");
  animation-delay: 36.6s;
  z-index: 4;
}

.hero__slide--5 {
  background-image: url("./assets/investocia5.png");
  animation-delay: 48.8s;
  z-index: 5;
}

/* ~1s fade-in, 10s visível, ~1s fade-out, 0,2s vazio; ciclo 61s (5 slides). Sem movimento lateral. */
@keyframes heroSlideSequence {
  0% {
    opacity: 0;
  }
  1.64% {
    opacity: 1;
  }
  18.03% {
    opacity: 1;
  }
  19.67% {
    opacity: 0;
  }
  20%,
  100% {
    opacity: 0;
  }
}

html[data-theme="light"] .hero__media {
  opacity: 0.48;
  filter: saturate(0.96) contrast(1.02);
}

html[data-theme="light"] .hero::after {
  background: linear-gradient(
    100deg,
    rgba(18, 10, 14, 0.46) 0%,
    rgba(18, 10, 14, 0.34) 42%,
    rgba(18, 10, 14, 0.22) 68%,
    rgba(18, 10, 14, 0.16) 100%
  );
}

html[data-theme="light"] .hero h1 {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] .hero .lead,
html[data-theme="light"] .hero .eyebrow {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.36);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  max-width: min(1040px, 100%);
}

.hero__panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-self: stretch;
  align-items: flex-end;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 12px;
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--brand-1) 85%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-1) 25%, transparent);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.3vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.8px;
  max-width: min(24ch, 100%);
  text-wrap: balance;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 72ch;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
}

.hero__meta > div {
  padding: 14px 14px;
  border-radius: var(--radius);
  background: rgba(16, 16, 22, 0.88);
  border: 1px solid color-mix(in srgb, var(--stroke) 65%, transparent);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
}

.hero__meta dt {
  color: var(--muted2);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.hero__meta dd {
  margin: 6px 0 0;
  font-weight: 650;
  font-size: 16px;
}

.hero__meta-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.panel {
  width: 100%;
  max-width: 430px;
  margin-top: auto;
  border-radius: var(--radius2);
  background: rgba(14, 14, 20, 0.56);
  border: 1px solid color-mix(in srgb, var(--stroke) 90%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  animation: panelPulse 7s ease-in-out infinite;
}

.panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: transparent;
  pointer-events: none;
}

@keyframes panelPulse {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 22px 70px color-mix(in srgb, var(--brand-2) 26%, rgba(0, 0, 0, 0.35));
  }
}

.panel__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel__title {
  color: var(--muted2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.panel__link {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.dot--active {
  background: var(--brand-1);
  transform: scale(1.08);
}

.panel__body {
  position: relative;
  z-index: 1;
  padding: 14px 14px 14px;
}

.kpi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.36);
  border-radius: 14px;
}

html[data-theme="light"] .kpi {
  border-color: rgba(7, 7, 10, 0.28);
}

.kpi__label {
  color: var(--muted2);
  font-weight: 700;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.2px;
}

.kpi__value {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.spark {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 120px;
  padding: 16px 6px 6px;
}

.bar {
  height: var(--h);
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-1) 88%, #ffffff 12%);
  box-shadow: 0 18px 30px color-mix(in srgb, var(--brand-2) 10%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.market-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.market-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.20);
}

.market-list li span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  flex: 1;
  line-height: 1.3;
}

.market-list li strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  margin-left: 10px;
}

.panel__note {
  margin: 8px 0 0;
  color: var(--muted2);
  font-size: 13px;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.article-list li a {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(0, 0, 0, 0.20);
}

.article-list__meta {
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.article-list li strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.blog-hero {
  padding-top: 44px;
  padding-bottom: 0;
}

.blog-hero .lead {
  margin-bottom: 14px;
}

.blog-card {
  display: grid;
  gap: 10px;
}

.chip-group.blog-filters {
  justify-content: flex-start;
  margin: 0 0 12px;
}

.section.blog-listing-section {
  padding-top: 0;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted2);
  font-size: 13px;
  font-weight: 600;
}

.blog-post {
  margin-top: 18px;
  border-radius: var(--radius2);
  border: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  background: rgba(14, 14, 20, 0.92);
  padding: 22px 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.blog-post__title {
  margin-top: 0;
  margin-bottom: 10px;
  max-width: none;
}

.blog-post__date {
  margin: 0 0 16px;
  color: var(--muted2);
  font-weight: 700;
  font-size: 13px;
}

.blog-post p {
  color: var(--muted);
  line-height: 1.75;
}

.section {
  padding: 52px 0;
  background: rgba(255, 255, 255, 0.015);
}

.section--alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.2px;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.section__head h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.1px;
}

.section__head--stack {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.vergilius-capabilities-head {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .section__head--stack {
    grid-template-columns: 1fr;
  }
  .section__head-action {
    justify-self: start;
    white-space: normal;
  }

  .section {
    padding: 36px 0;
  }

  .hero {
    padding: 48px 0 22px;
  }

  .blog-post {
    padding: 16px 16px;
  }

  .guide,
  .product-spotlight {
    padding: 18px 16px 16px;
  }

  .chip-group {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero__meta {
    grid-template-columns: 1fr;
  }

  .brand__logo {
    height: 38px;
  }

  .spark {
    gap: 6px;
    height: 100px;
    padding: 12px 4px 4px;
  }
}

.section__head-action {
  white-space: nowrap;
}

/* Guia por perfil (pathfinder) */
.guide {
  border-radius: var(--radius2);
  border: 1px solid color-mix(in srgb, var(--stroke) 80%, transparent);
  background: rgba(14, 14, 20, 0.55);
  padding: 22px 22px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.guide__intro {
  max-width: 62ch;
  margin-bottom: 20px;
}

.guide__lead {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.guide__steps {
  display: grid;
  gap: 18px;
}

.guide__step {
  display: grid;
  gap: 10px;
}

.guide__n {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-2) 70%, var(--muted2));
}

.guide__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-chip {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--stroke) 85%, transparent);
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.path-chip:hover {
  background: var(--surface2);
  border-color: color-mix(in srgb, var(--brand-2) 40%, var(--stroke));
}

.path-chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-2) 65%, #fff);
  outline-offset: 2px;
}

.guide__footnote {
  margin: 18px 0 0;
  font-size: 13px;
}

.eyebrow--dark::before {
  background: color-mix(in srgb, var(--brand-1) 55%, transparent);
}

/* Destaque do produto Vergilius */
.product-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 26px;
  align-items: stretch;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 20, 0.75);
  padding: 28px 28px 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.product-spotlight__copy h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 8px 0 12px;
  max-width: 22ch;
}

.product-spotlight__lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 58ch;
}

.product-spotlight__list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.product-spotlight__list li {
  margin: 8px 0;
}

.product-spotlight__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-spotlight__aside {
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand-1) 45%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, var(--brand-1) 18%, rgba(0, 0, 0, 0.2));
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.product-spotlight__tag {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  font-weight: 800;
  color: color-mix(in srgb, var(--brand-2) 75%, #fff);
}

.product-spotlight__aside-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* Métricas de impacto (estilo cases) */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.impact-stat {
  border-radius: var(--radius2);
  padding: 20px 18px;
  background: rgba(14, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.impact-stat__value {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height:1.1;
  color: var(--text);
}

.impact-stat__label {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Panorama editorial */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-card {
  border-radius: var(--radius2);
  padding: 18px 18px 16px;
  background: rgba(13, 13, 19, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-2) 35%, var(--stroke));
}

.featured-card__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.featured-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.15px;
  line-height: 1.3;
}

.featured-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.featured-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Contato + newsletter */
.cta--split {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: stretch;
  gap: 18px;
}

.cta__main {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-height: 100%;
}

.cta__copy {
  max-width: 68ch;
}

.newsletter-card {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 22, 0.9);
  padding: 18px 18px 16px;
  display: grid;
  align-content: start;
  min-height: 100%;
}

.waitlist-card {
  margin: 0 0 14px;
  border-color: color-mix(in srgb, var(--brand-1) 38%, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--brand-1) 16%, rgba(14, 14, 20, 0.9));
}

.newsletter-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.2px;
}

.newsletter-card__desc {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
}

.form--compact {
  grid-template-columns: 1fr;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

html[data-theme="light"] .guide,
html[data-theme="light"] .product-spotlight,
html[data-theme="light"] .impact-stat,
html[data-theme="light"] .featured-card,
html[data-theme="light"] .newsletter-card {
  background: rgba(247, 247, 250, 0.96);
  border-color: rgba(24, 24, 30, 0.12);
}

html[data-theme="light"] .waitlist-card {
  background: rgba(243, 237, 241, 0.95);
  border-color: rgba(92, 0, 18, 0.2);
}

html[data-theme="light"] .product-spotlight__aside {
  background: rgba(92, 0, 18, 0.08);
  border-color: rgba(92, 0, 18, 0.22);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border-radius: var(--radius2);
  padding: 22px 22px;
  background: rgba(14, 14, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-2) 34%, var(--stroke));
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.22);
}

.card h3 {
  margin: 4px 0 10px;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin: 6px 0;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--stroke) 85%, transparent);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.chip--active {
  background: color-mix(in srgb, var(--brand-1) 70%, transparent);
  border-color: color-mix(in srgb, var(--brand-1) 80%, transparent);
  color: #ffffff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 40%, transparent) inset;
}

.chip:hover {
  background: var(--surface2);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.insight-card {
  border-radius: var(--radius2);
  padding: 22px 22px 20px;
  background: rgba(13, 13, 19, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-2) 40%, var(--stroke));
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.26);
}

.insight-card__tag {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
  color: color-mix(in srgb, var(--brand-2) 80%, #ffffff 20%);
}

.insight-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.1px;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.insight-card__meta {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted2);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
}

.about-layout > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.about-intro {
  border-radius: var(--radius2);
  border: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  background: rgba(14, 14, 20, 0.82);
  padding: 26px 26px 22px;
}

.about-layout .quote {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-intro h2 {
  margin: 6px 0 10px;
  font-size: 24px;
  letter-spacing: -0.1px;
}

.about-intro__lead {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
}

.about-principles-head {
  grid-column: 1 / -1;
  margin: 6px 0 2px;
}

.insights-grid--about {
  grid-column: 1 / -1;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.10);
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(14, 14, 20, 0.92);
  padding: 16px 16px;
  position: relative;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: transparent;
  pointer-events: none;
}

.step__n {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-2) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-2) 30%, transparent);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.step__body {
  position: relative;
  z-index: 1;
}

.step h3 {
  margin: 12px 0 6px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 20, 0.92);
  padding: 14px 16px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

.quote {
  border-radius: var(--radius2);
  border: 1px solid color-mix(in srgb, var(--stroke) 70%, transparent);
  background: rgba(14, 14, 20, 0.92);
  padding: 18px 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.quote p {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--text);
}

.quote__by {
  color: var(--muted2);
  font-weight: 700;
  font-size: 13px;
}

.cta {
  border-radius: calc(var(--radius2) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 20, 0.94);
  padding: 18px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: var(--shadow);
  border-image: none;
}

html[data-theme="light"] .hero__meta > div,
html[data-theme="light"] .card,
html[data-theme="light"] .insight-card,
html[data-theme="light"] .step,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .quote,
html[data-theme="light"] .cta,
html[data-theme="light"] .about-intro {
  background: rgba(243, 237, 241, 0.95);
  border-color: rgba(92, 0, 18, 0.2);
}

html[data-theme="light"] .panel {
  background: rgba(242, 236, 240, 0.62);
  border-color: rgba(92, 0, 18, 0.22);
  box-shadow: 0 14px 34px rgba(7, 7, 10, 0.10);
}

html[data-theme="light"] .market-list li {
  background: rgba(242, 236, 240, 0.84);
  border-color: rgba(92, 0, 18, 0.22);
}

html[data-theme="light"] .article-list li a {
  background: rgba(242, 236, 240, 0.84);
  border-color: rgba(92, 0, 18, 0.22);
}

html[data-theme="light"] .blog-post {
  background: rgba(243, 237, 241, 0.95);
  border-color: rgba(92, 0, 18, 0.2);
}

html[data-theme="light"] .modal__dialog {
  background: rgba(243, 237, 241, 0.98);
  border-color: rgba(92, 0, 18, 0.2);
  box-shadow: 0 22px 56px rgba(7, 7, 10, 0.2);
}

html[data-theme="light"] .timeline .step {
  background: rgba(243, 237, 241, 0.98);
  border-color: rgba(92, 0, 18, 0.24);
  box-shadow: 0 14px 34px rgba(7, 7, 10, 0.12);
}

html[data-theme="light"] .timeline .step h3 {
  color: rgba(7, 7, 10, 0.92);
}

html[data-theme="light"] .timeline .step p {
  color: rgba(7, 7, 10, 0.74);
}

html[data-theme="light"] .timeline .step__n {
  background: rgba(92, 0, 18, 0.14);
  border-color: rgba(92, 0, 18, 0.34);
  color: rgba(7, 7, 10, 0.92);
}

html[data-theme="light"] .section--alt {
  background: rgba(88, 58, 67, 0.08);
  border-top: 1px solid rgba(7, 7, 10, 0.14);
  border-bottom: 1px solid rgba(7, 7, 10, 0.14);
}

html[data-theme="light"] .section {
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .insight-card__tag,
html[data-theme="light"] .product-spotlight__tag,
html[data-theme="light"] .modal__tag {
  color: rgba(92, 0, 18, 0.94);
}

html[data-theme="light"] .eyebrow::before {
  background: rgba(92, 0, 18, 0.88);
  box-shadow: 0 10px 24px rgba(92, 0, 18, 0.28);
}

html[data-theme="light"] .form input,
html[data-theme="light"] .form textarea {
  background: rgba(239, 233, 237, 0.95);
  border-color: rgba(7, 7, 10, 0.2);
  color: rgba(7, 7, 10, 0.9);
}

html[data-theme="light"] .form input::placeholder,
html[data-theme="light"] .form textarea::placeholder {
  color: rgba(7, 7, 10, 0.46);
}

html[data-theme="light"] .list li::marker,
html[data-theme="light"] .product-spotlight__list li::marker {
  color: rgba(92, 0, 18, 0.78);
}

html[data-theme="light"] .footer__links a {
  color: rgba(7, 7, 10, 0.82);
}

html[data-theme="light"] .footer__meta {
  color: rgba(7, 7, 10, 0.78);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted2);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form input,
.form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
  padding: 12px 12px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: color-mix(in srgb, var(--brand-2) 55%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-2) 14%, transparent);
}

.form__full {
  grid-column: 1 / -1;
}

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

.form__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.modal__dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 14, 20, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  padding: 24px 24px 20px;
  display: grid;
  gap: 10px;
}

.modal__tag {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  font-weight: 800;
  color: color-mix(in srgb, var(--brand-2) 75%, #fff);
}

.modal__title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.2px;
}

.modal__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal__actions {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  padding: 34px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.35fr 0.78fr 1.22fr;
  gap: 16px;
  align-items: start;
}

.footer__panel {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 20, 0.82);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
  padding: 18px 18px;
  min-height: 100%;
}

.footer__links {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer__links a {
  color: var(--muted);
  font-weight: 650;
  font-size: 15px;
  padding: 6px 8px;
  border-radius: 12px;
}

@media (min-width: 1360px) {
  .section {
    padding: 64px 0;
  }

  .about-layout {
    gap: 28px;
  }

  .about-intro {
    padding: 30px 30px 26px;
  }

  .about-intro__lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .insight-card {
    padding: 24px 24px 22px;
  }

  .insight-card h3 {
    font-size: 19px;
    line-height: 1.35;
  }

  .product-spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 30px;
    padding: 32px 32px 28px;
  }

  .product-spotlight__list li {
    margin: 10px 0;
  }

  .cards {
    gap: 20px;
  }

  .card {
    padding: 24px 24px;
  }
}

.footer__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.footer__meta p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  max-width: 56ch;
}

html[data-theme="light"] .footer__panel {
  background: rgba(243, 237, 241, 0.96);
  border-color: rgba(92, 0, 18, 0.2);
  box-shadow: 0 14px 34px rgba(7, 7, 10, 0.12);
}

/* Tablet: 2 colunas onde o desktop usa 3–4 */
@media (max-width: 1100px) {
  .cards,
  .featured-grid,
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 980px) {
  :root {
    --header-offset: 72px;
  }
  .brand__name--wordmark {
    font-size: 34px;
  }
  .brand__name--footer {
    font-size: 28px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .hero {
    min-height: auto;
    min-height: 60vh;
    min-height: 60dvh;
  }
  .hero__panel {
    align-self: auto;
  }
  .hero__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section__head {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .pill-grid {
    justify-content: flex-start;
  }
  .cta {
    grid-template-columns: 1fr;
  }
  .cta--split {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .product-spotlight {
    grid-template-columns: 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  :root {
    --header-offset: 70px;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: absolute;
    right: var(--page-gutter);
    top: calc(100% + 8px);
    width: min(420px, calc(100vw - 2 * var(--page-gutter)));
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--header-bg) 92%, #000);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
  }
  .nav__links[data-open="true"] {
    display: flex;
  }
  .nav__links a {
    padding: 12px 12px;
  }
  .nav-dropdown__summary {
    padding: 12px 12px;
    width: 100%;
  }
  .nav-dropdown__panel {
    position: static;
    margin: 4px 0 0 4px;
    min-width: auto;
    border: 0;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
    padding: 6px 0 8px 8px;
  }
  .nav-dropdown__panel a {
    padding: 10px 12px;
  }
  .impact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 68px;
  }

  .hero {
    min-height: 54vh;
    min-height: 54dvh;
  }

  .hero__meta > div {
    padding: 12px 12px;
  }

  .about-intro,
  .product-spotlight,
  .card,
  .insight-card,
  .featured-card,
  .footer__panel {
    padding: 16px 14px;
  }

  .modal {
    padding: 12px;
  }

  .modal__dialog {
    width: min(560px, calc(100vw - 20px));
    padding: 16px 14px;
  }

  .modal__title {
    font-size: 22px;
  }

  .modal__actions .btn {
    width: 100%;
  }
}
