:root {
  color-scheme: light;
  --page: #f5f7ff;
  --surface: #ffffff;
  --ink: #0e1038;
  --ink-soft: #363b65;
  --muted: #6b6f97;
  --line: #dbe0f5;
  --line-strong: #bac1ed;
  --blue: #4445f8;
  --blue-deep: #0e1038;
  --green: #28bd7d;
  --slot: #edf0ff;
  --slot-line: #ccd3ff;
  --radius: 10px;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(68, 69, 248, 0.07), transparent 520px),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::selection {
  background: var(--green);
  color: #fff;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Header ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 52px);
  padding: 0 clamp(22px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 1px 0 var(--line),
    0 4px 16px rgba(17, 19, 58, 0.06),
    0 12px 40px rgba(17, 19, 58, 0.04);
  backdrop-filter: blur(20px);
}

/* Compensa o cabeçalho fixo ao navegar pelas âncoras do menu */
main[id],
section[id],
article[id] {
  scroll-margin-top: 112px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(260px, 23vw, 370px);
  height: auto;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px clamp(12px, 1.6vw, 24px);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 160ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
  outline: none;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Botão sanduíche (oculto no desktop, exibido no mobile) */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(700px, calc(100svh - 132px));
  overflow: hidden;
  background: var(--blue-deep);
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 16, 56, 0.97), rgba(14, 16, 56, 0.78) 46%, rgba(68, 69, 248, 0.42)),
    linear-gradient(135deg, rgba(40, 189, 125, 0.32), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: min(700px, calc(100svh - 132px));
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 64px 0 70px;
}

/* ─── Tipografia ────────────────────────────────────────── */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(880px, 100%);
  margin-bottom: 24px;
  font-size: 4.35rem;
  font-weight: 860;
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.65rem;
  font-weight: 830;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

p {
  color: var(--ink-soft);
}

.hero-lede {
  width: min(710px, 100%);
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
}

/* ─── Botões ────────────────────────────────────────────── */

.button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
}

.button-primary {
  background: var(--green);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #fff;
  color: var(--blue);
}

.button-secondary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--green);
  border-color: var(--green);
}

/* ─── Seções ────────────────────────────────────────────── */

.section {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.section h2 {
  color: var(--blue-deep);
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 118px) 0;
}

.hero + .intro-section .section-inner {
  padding-top: 72px;
}

.section-copy {
  max-width: 720px;
}

.section-copy p,
.section-heading p,
.section-lede {
  font-size: 1.02rem;
}

.section-copy p:last-child,
.section-heading p:last-child,
.section-lede:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 42px;
}

.section strong {
  color: var(--blue-deep);
}

/* ─── Layouts de grade ──────────────────────────────────── */

.intro-layout,
.feature-layout,
.two-column-layout,
.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.feature-layout {
  grid-template-columns: minmax(320px, 0.94fr) minmax(0, 1fr);
}

.two-column-layout {
  align-items: start;
}

/* ─── Closing / CTA ─────────────────────────────────────── */

#parcerias .closing-layout > div {
  grid-column: 1 / -1;
}

#parcerias .section-inner {
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.closing-layout {
  margin-top: 72px;
  padding: clamp(36px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(68, 69, 248, 0.97), rgba(14, 16, 56, 0.97) 55%, rgba(40, 189, 125, 0.42)),
    var(--blue-deep);
  color: #fff;
  box-shadow: 0 24px 64px rgba(14, 16, 56, 0.28), 0 8px 24px rgba(14, 16, 56, 0.14);
}

.closing-layout h2 {
  color: #fff;
}

.closing-layout p {
  color: rgba(255, 255, 255, 0.74);
}

.closing-layout strong {
  color: #fff;
}

.closing-layout .button-secondary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.closing-layout .button-secondary:hover,
.closing-layout .button-secondary:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--blue);
}

/* ─── Slots de imagem (placeholders) ───────────────────── */

.image-slot {
  position: relative;
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--slot-line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, transparent calc(50% - 1px), rgba(68, 69, 248, 0.22) 50%, transparent calc(50% + 1px)),
    linear-gradient(45deg, transparent calc(50% - 1px), rgba(40, 189, 125, 0.16) 50%, transparent calc(50% + 1px)),
    repeating-linear-gradient(0deg, rgba(68, 69, 248, 0.04) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(68, 69, 248, 0.04) 0 1px, transparent 1px 32px),
    var(--slot);
  color: var(--ink-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.image-slot span,
.image-slot small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.image-slot strong {
  display: block;
  max-width: 400px;
  margin: 6px 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.22;
}

.hero .hero-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  padding: clamp(20px, 3vw, 44px);
  text-align: right;
  box-shadow: none;
}

.hero .hero-slot::before {
  position: absolute;
  top: 0;
  right: 0;
  width: min(42vw, 560px);
  height: 100%;
  background: linear-gradient(180deg, rgba(68, 69, 248, 0.34), rgba(40, 189, 125, 0.18));
  content: "";
  pointer-events: none;
}

.hero-slot {
  color: rgba(255, 255, 255, 0.74);
}

.hero-slot strong {
  color: #fff;
}

.portrait-slot {
  aspect-ratio: 4 / 5;
}

.technical-slot {
  aspect-ratio: 3 / 2;
}

.section-video-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}

.section-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: inherit;
  object-fit: cover;
  object-position: center;
}

.diagram-slot {
  aspect-ratio: 4 / 3;
}

.dashboard-slot {
  margin-bottom: 22px;
  aspect-ratio: 21 / 9;
}

.closing-slot {
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

/* ─── Content grid (cards genéricos) ───────────────────── */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.content-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(68, 69, 248, 0.04),
    0 6px 20px rgba(68, 69, 248, 0.06),
    0 18px 44px rgba(17, 19, 58, 0.05);
  transition: border-color 200ms ease, border-left-color 200ms ease;
}

.content-grid article:hover {
  border-color: var(--line-strong);
  border-left-color: var(--blue);
}

.content-grid article p:last-child {
  margin-bottom: 0;
}

/* ─── Seção de Pesquisa ─────────────────────────────────── */

.research-section {
  background:
    linear-gradient(150deg, rgba(68, 69, 248, 0.98) 0%, rgba(48, 50, 200, 0.96) 55%, rgba(14, 16, 56, 0.94) 100%);
}

.research-section h2,
.research-section .section-heading p {
  color: #fff;
}

.research-section .content-grid article {
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: transparent;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.12);
}

.research-section .content-grid article:hover {
  border-color: rgba(255, 255, 255, 0.28);
  border-left-color: var(--green);
}

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

/* ─── Seção Fronteira / Validações ──────────────────────── */

.frontier-section,
.validation-section {
  background: var(--surface);
}

/* ─── Seção Validações (#validacoes) ────────────────────── */

#validacoes .section-inner {
  padding-top: 22px;
  padding-bottom: 56px;
}

#validacoes .section-heading {
  max-width: 960px;
  margin-bottom: 46px;
}

#validacoes h2 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 4.3rem;
  line-height: 1.02;
}

#validacoes .section-heading p {
  max-width: 810px;
}

/* ─── Fundos das seções claras ──────────────────────────── */

.intro-section,
.assets-section,
.impact-section {
  background: var(--page);
}

/* ─── Seção de Modelagem (escura) ───────────────────────── */

.model-section {
  position: relative;
  overflow: hidden;
  background: var(--blue-deep);
}

.model-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 16, 56, 0.96), rgba(14, 16, 56, 0.80) 50%, rgba(68, 69, 248, 0.40)),
    linear-gradient(135deg, rgba(40, 189, 125, 0.26), transparent 45%);
}

.model-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.model-section .section-inner {
  position: relative;
  z-index: 2;
}

.model-section h2,
.model-section .section-heading p {
  color: #fff;
}

.model-section .model-panel {
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: transparent;
  background: rgba(255, 255, 255, 0.06);
  transition: background 200ms ease, border-color 200ms ease, border-left-color 200ms ease;
}

.model-section .model-panel:hover {
  border-color: rgba(255, 255, 255, 0.28);
  border-left-color: var(--green);
  background: rgba(255, 255, 255, 0.1);
}

.model-section .model-panel h3 {
  color: #fff;
}

.model-section .model-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.model-status {
  margin-bottom: 26px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
}

.model-status strong {
  color: #8df0c2;
}

/* ─── Stack list ────────────────────────────────────────── */

.stack-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  margin-bottom: 30px;
}

.stack-list article {
  padding: 22px 0 22px 18px;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-left-color 200ms ease;
}

.stack-list article:hover {
  border-left-color: var(--blue);
}

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

/* ─── Model grid / panels ───────────────────────────────── */

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.model-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 1px 3px rgba(68, 69, 248, 0.04),
    0 8px 24px rgba(17, 19, 58, 0.06);
  transition: border-color 200ms ease, border-left-color 200ms ease;
}

.model-panel:hover {
  border-color: var(--line-strong);
  border-left-color: var(--blue);
}

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

/* ─── Validation grid ───────────────────────────────────── */

.validation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 54px;
}

.validation-grid article {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(68, 69, 248, 0.04),
    0 6px 18px rgba(17, 19, 58, 0.05);
  overflow: hidden;
  transition: border-color 200ms ease;
}

.validation-grid article::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  content: "";
  border-radius: var(--radius) var(--radius) 0 0;
}

.validation-grid article:hover {
  border-color: var(--blue);
}

.validation-grid p {
  margin-bottom: 0;
}

/* ─── Logo grid (parceiros) ─────────────────────────────── */

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

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  height: 88px;
  transition: border-color 200ms ease;
}

.logo-slot:hover {
  border-color: var(--line-strong);
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 200ms ease, opacity 200ms ease;
}

.logo-slot:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-slot--climate img {
  filter: grayscale(100%) brightness(0.5) contrast(1.2);
  opacity: 1;
}

.logo-slot--climate:hover {
  background: #1d4938;
  border-color: #1d4938;
}

/* ─── Footer ────────────────────────────────────────────── */

.footer-outer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer nav span {
  color: var(--line-strong);
}

.site-footer a {
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--blue);
  outline: none;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--blue);
  outline: none;
}

.social-link svg {
  display: block;
}

/* ─── Responsivo: tablet ────────────────────────────────── */

@media (max-width: 980px) {
  .site-header {
    gap: 16px;
    min-height: 76px;
  }

  main[id],
  section[id],
  article[id] {
    scroll-margin-top: 88px;
  }

  .brand-logo {
    width: clamp(210px, 44vw, 300px);
  }

  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 3rem;
  }

  #validacoes h2 {
    font-size: 3.15rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 4px clamp(18px, 4vw, 56px) 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(17, 19, 58, 0.1);
    backdrop-filter: blur(20px);
    font-size: 0.95rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

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

  .intro-layout,
  .feature-layout,
  .two-column-layout,
  .closing-layout {
    grid-template-columns: 1fr;
  }

  .feature-layout .image-slot {
    order: 2;
  }

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

/* ─── Responsivo: mobile ────────────────────────────────── */

@media (max-width: 700px) {

  h1 {
    font-size: 2.08rem;
    line-height: 1.15;
  }

  h2 {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  #validacoes h2 {
    font-size: 2.5rem;
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 56px 0 48px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(14, 16, 56, 0.88), rgba(14, 16, 56, 0.78)),
      linear-gradient(135deg, rgba(68, 69, 248, 0.26), rgba(40, 189, 125, 0.12));
  }

  .section-inner,
  .hero-content,
  .site-footer {
    width: min(100% - 36px, 1180px);
  }

  .footer-outer {
    border-top: none;
  }

  .content-grid,
  .model-grid,
  .validation-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    text-align: center;
  }

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

  .logo-slot {
    height: 72px;
    padding: 10px 12px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 0;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

/* ─── Responsivo: mobile pequeno ────────────────────────── */

@media (max-width: 440px) {
  h1 {
    font-size: 1.95rem;
  }

  .image-slot {
    padding: 14px;
  }
}

/* ─── Acessibilidade: movimento reduzido ────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ─── Modal de Contatos ─────────────────────────────────── */

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(14, 16, 56, 0.94), rgba(68, 69, 248, 0.82));
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(18px);
  z-index: 900;
  animation: contactModalFade 180ms ease both;
}

.contact-modal-overlay[hidden] {
  display: none;
}

.contact-modal-card {
  position: relative;
  overflow: auto;
  max-height: calc(100svh - 48px);
  width: min(100%, 500px);
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.95)),
    var(--surface);
  box-shadow:
    0 24px 80px rgba(14, 16, 56, 0.34),
    0 10px 28px rgba(14, 16, 56, 0.22);
  overscroll-behavior: contain;
  animation: contactModalRise 220ms ease both;
}

.contact-modal-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  content: "";
}

.contact-modal-hero {
  position: relative;
  z-index: 1;
  padding-right: 34px;
  margin-bottom: 24px;
}

.contact-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-modal-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(40, 189, 125, 0.16);
  content: "";
}

.contact-modal-card h2 {
  font-size: clamp(1.62rem, 5vw, 2.35rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.08;
  margin-bottom: 12px;
}

.contact-modal-hero p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.contact-modal-list {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-modal-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contact-modal-list a:hover,
.contact-modal-list a:focus-visible {
  border-color: rgba(68, 69, 248, 0.48);
  box-shadow: 0 14px 28px rgba(68, 69, 248, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.contact-modal-list a > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.contact-modal-list strong {
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-modal-list strong + span {
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
}

.contact-modal-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(68, 69, 248, 0.13), rgba(40, 189, 125, 0.16));
  color: var(--blue);
}

.contact-modal-note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(186, 193, 237, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
  background: var(--blue-deep);
  color: #fff;
  outline: none;
  transform: rotate(90deg);
}

@keyframes contactModalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes contactModalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 440px) {
  .contact-modal-overlay {
    padding: 16px;
  }

  .contact-modal-card {
    max-height: calc(100svh - 32px);
    padding: 28px 20px 22px;
  }

  .contact-modal-hero {
    padding-right: 42px;
  }

  .contact-modal-list a {
    align-items: flex-start;
    min-height: 56px;
  }

  .contact-modal-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

/* ─── Banner de consentimento de cookies (LGPD) ─────────── */

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cookie-consent-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-consent-text {
  flex: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: var(--blue);
  font-weight: 700;
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-btn {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cookie-btn-accept {
  background: var(--green);
  color: #fff;
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus-visible {
  background: var(--blue);
  outline: none;
}

.cookie-btn-reject {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.cookie-btn-reject:hover,
.cookie-btn-reject:focus-visible {
  border-color: var(--ink-soft);
  outline: none;
}

@media (max-width: 700px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 0;
  }

  .cookie-consent-actions {
    justify-content: flex-end;
  }
}

/* ── Páginas legais (termos, privacidade, compliance) ──────────────
   Base compartilhada dos documentos jurídicos. O que é específico de
   uma página (main branco, callout, assinatura, override de margem)
   fica no <style> inline da respectiva página. */
.legal-content {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 76px) 0 80px;
}
.compliance-document {
  color: #050505;
  font-family: Arial, Helvetica, sans-serif;
}
.compliance-logo {
  display: block;
  width: 156px;
  height: auto;
  margin: 0 auto 38px;
}
.compliance-heading {
  margin-bottom: clamp(56px, 8vw, 86px);
  text-align: center;
}
.compliance-heading h1 {
  margin: 0 auto 36px;
  color: #050505;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  text-transform: uppercase;
}
.compliance-subtitle {
  margin: 0 auto;
  color: #050505;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
.compliance-version {
  margin: 42px 0 0;
  color: #555;
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
}
.compliance-section {
  margin-top: 44px;
}
.compliance-section h2 {
  margin: 0 0 20px;
  color: #2f5597;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}
.compliance-section h3 {
  margin: 24px 0 12px;
  color: #2f5597;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.compliance-section p {
  margin: 0 0 14px;
  color: #050505;
  font-size: 19px;
  line-height: 1.55;
  text-align: justify;
}
.compliance-section strong {
  font-weight: 700;
}

@media (max-width: 700px) {
  .legal-content {
    width: min(100% - 36px, 820px);
    padding-top: 48px;
  }
  .compliance-logo {
    width: 116px;
  }
  .compliance-heading h1,
  .compliance-subtitle,
  .compliance-section h2,
  .compliance-section h3,
  .compliance-section p,
  .compliance-version {
    font-size: 1rem;
  }
  .compliance-section p {
    text-align: left;
  }
}
