@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Geist+Mono:wght@100..900&display=swap');.via-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--via-navy-04);
  border: 1px solid var(--via-border-soft);
  color: var(--via-ink-2);
  font-family: var(--via-font);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.006em;
  cursor: pointer;
  transition:
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    transform .2s ease;
}

.via-theme-toggle:hover {
  background: var(--via-navy-08);
  border-color: var(--via-navy-18);
  color: var(--via-text-primary);
  transform: translateY(-1px);
}

[data-theme="dark"] .via-theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.74);
}

[data-theme="dark"] .via-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--via-white);
}

.via-theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  color: var(--via-accent);
}

[data-theme="dark"] .via-theme-toggle__icon {
  color: var(--via-accent-light, var(--via-accent));
}

.via-theme-toggle__label {
  letter-spacing: -0.004em;
}
/* ==============================================================
   COMMAND PALETTE — Cmd+K · modal glass dark sobre scrim navy
   ============================================================== */

.vds-cmdk {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 22, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 40px;
  animation: vds-cmdk-scrim-in 200ms var(--via-ease-out);
}
@keyframes vds-cmdk-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vds-cmdk-inner {
  width: 100%;
  max-width: 620px;
  background: var(--via-glass-card);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--via-edge-hi);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    0 32px 80px rgba(0,0,0,0.40),
    0 12px 24px rgba(0,0,0,0.20);
  overflow: hidden;
  animation: vds-cmdk-card-in 280ms var(--via-ease-out);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
@keyframes vds-cmdk-card-in {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.vds-cmdk-inner header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 0.5px solid var(--via-navy-08);
  color: var(--via-text-muted);
}
.vds-cmdk-inner header input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--via-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--via-text-primary);
}
.vds-cmdk-inner header input::placeholder { color: var(--via-gray-400); font-weight: 400; }
.vds-cmdk-inner header .close {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--via-navy-08);
  color: var(--via-text-body);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--via-t);
}
.vds-cmdk-inner header .close:hover { background: var(--via-navy-12); color: var(--via-text-primary); }

.vds-cmdk-inner ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}
.vds-cmdk-inner li {
  list-style: none;
  border-radius: var(--via-radius-md);
  cursor: pointer;
  transition: background 150ms;
}
.vds-cmdk-inner li:not(.vds-cmdk__heading):not(.empty) {
  padding: 10px 14px;
}
.vds-cmdk-inner li.active {
  background: linear-gradient(90deg, var(--via-navy-08), var(--via-navy-04));
}
.vds-cmdk-inner li.empty {
  font-family: var(--via-font);
  font-size: 13px;
  color: var(--via-text-muted);
  padding: 32px;
  text-align: center;
}
.vds-cmdk-inner li.vds-cmdk__heading {
  font-family: var(--via-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--via-text-muted);
  padding: 16px 14px 6px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vds-cmdk__row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vds-cmdk__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.vds-cmdk-inner li .kbd {
  font-family: var(--via-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--via-text-muted);
  background: var(--via-gray-100);
  padding: 4px 8px;
  border-radius: var(--via-radius-xs);
  min-width: 100px;
  text-align: center;
  flex-shrink: 0;
}
.vds-cmdk-inner li.active .kbd { background: var(--via-navy); color: var(--via-white); }
.vds-cmdk-inner li .t {
  font-family: var(--via-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--via-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vds-cmdk-inner li .d {
  font-family: var(--via-font);
  font-size: 11.5px;
  color: var(--via-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vds-cmdk-inner li.active .d { color: var(--via-text-body); }
.vds-cmdk-inner li .arr { color: var(--via-gray-400); flex-shrink: 0; }
.vds-cmdk-inner li.active .arr { color: var(--via-text-primary); }

.vds-cmdk-inner footer {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 22px;
  border-top: 0.5px solid var(--via-navy-08);
  background: var(--via-gray-50);
}
.vds-cmdk-inner footer .hint {
  font-family: var(--via-font);
  font-size: 10px;
  color: var(--via-text-muted);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vds-cmdk-inner footer kbd {
  font-family: var(--via-font-mono);
  font-size: 9px;
  font-weight: 600;
  background: var(--via-surface);
  border: 0.5px solid var(--via-navy-12);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--via-text-primary);
}
.vds-cmdk-inner footer .count {
  margin-left: auto;
  font-family: var(--via-font-mono);
  font-size: 10px;
  color: var(--via-text-muted);
  letter-spacing: 0.08em;
}
/* ==============================================================
   SCROLL PROGRESS — barra navy ultrafina no topo, vive global
   ============================================================== */

.vds-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: var(--via-navy-04);
}
.vds-scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--via-navy) 0%, var(--via-blue) 60%, var(--via-blue-soft) 100%);
  box-shadow: 0 1px 6px var(--via-navy-30);
  transition: transform 80ms linear;
}
/* ==============================================================
   SHELL — header (sticky glass) + sidebar (hairline) + main + footer
   ============================================================== */

.vds-shell {
  display: grid;
  grid-template-rows: 64px 1fr auto;
  grid-template-columns: 280px 1fr;
  grid-template-areas:
    'header header'
    'sidebar main'
    'footer footer';
  min-height: 100vh;
  background: var(--via-bg);
}

/* ---------- HEADER ---------- */
.vds-header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: var(--via-glass-card);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 0.5px solid var(--via-navy-12);
}
.vds-header-left { display: flex; align-items: center; gap: 12px; }
.vds-drawer-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--via-text-body);
  cursor: pointer;
  transition: var(--via-t);
}
.vds-drawer-toggle:hover { background: var(--via-navy-08); color: var(--via-text-primary); }

.vds-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--via-text-primary);
  text-decoration: none;
}
.vds-brand-mark {
  height: 28px;
  width: auto;
  display: block;
}
.vds-brand-tag {
  font-family: var(--via-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--via-ls-label);
  text-transform: uppercase;
  color: var(--via-text-muted);
  padding: 4px 9px;
  border: 0.5px solid var(--via-navy-12);
  border-radius: var(--via-radius-pill);
  background: var(--via-navy-04);
}

.vds-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vds-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 14px;
  min-width: 260px;
  font-family: var(--via-font);
  font-size: 13px;
  color: var(--via-text-muted);
  background: var(--via-navy-04);
  border: 0.5px solid var(--via-navy-12);
  border-radius: var(--via-radius-pill);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: var(--via-t);
}
.vds-search:hover {
  border-color: var(--via-navy-40);
  background: var(--via-navy-08);
}
.vds-search .vds-kbd {
  margin-left: auto;
  font-family: var(--via-font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--via-text-muted);
  padding: 2px 6px;
  border: 0.5px solid var(--via-navy-12);
  border-radius: var(--via-radius-xs);
  background: var(--via-navy-06);
}

.vds-header-link {
  font-family: var(--via-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--via-text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--via-radius-pill);
  transition: var(--via-t);
}
.vds-header-link:hover { color: var(--via-text-primary); background: var(--via-navy-04); }

/* ---------- SIDEBAR ---------- */
.vds-sidebar {
  grid-area: sidebar;
  border-right: 0.5px solid var(--via-navy-12);
  background: var(--via-bg);
  padding: 32px 24px 64px;
  overflow-y: auto;
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
}

.vds-sidebar-group { margin-bottom: 28px; }
.vds-sidebar-group:last-child { margin-bottom: 0; }

.vds-sidebar-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--via-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--via-text-body);
  margin: 0 0 12px;
  padding: 0 10px;
}
.vds-sidebar-eyebrow-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--via-navy-12), var(--via-navy-04));
  color: var(--via-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--via-navy-20);
  flex-shrink: 0;
}

.vds-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vds-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  font-family: var(--via-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--via-text-body);
  text-decoration: none;
  border-radius: var(--via-radius-sm);
  transition: var(--via-t);
  position: relative;
}
.vds-sidebar-link:hover {
  color: var(--via-text-primary);
  background: var(--via-navy-04);
}
.vds-sidebar-link.active {
  color: var(--via-text-primary);
  background: var(--via-navy-08);
  font-weight: 600;
}
.vds-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--via-navy);
  border-radius: 2px;
}
.vds-sidebar-soon {
  font-family: var(--via-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--via-gray-400);
  padding: 2px 6px;
  border: 0.5px solid var(--via-navy-12);
  border-radius: var(--via-radius-pill);
}

/* ---------- MAIN ---------- */
.vds-main {
  grid-area: main;
  padding: 56px 64px 96px;
  max-width: 1080px;
  width: 100%;
}

/* Page transition: subtle fade + slide on route change */
.vds-page-transition {
  animation: vds-fade-in 380ms var(--via-ease-out);
}
@keyframes vds-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .vds-page-transition { animation: none; }
}

/* ---------- FOOTER editorial expandido ---------- */
.vds-footer {
  grid-area: footer;
  border-top: 0.5px solid var(--via-navy-12);
  padding: 56px 64px 32px;
  background: linear-gradient(180deg, var(--via-bg), var(--via-gray-50));
}
.vds-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid var(--via-navy-08);
}
.vds-footer-brand-col { display: flex; flex-direction: column; gap: 16px; }
.vds-footer-tag {
  font-family: var(--via-font);
  font-size: 13px;
  line-height: 1.55;
  color: var(--via-text-body);
  margin: 0;
  max-width: 260px;
}
.vds-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.vds-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vds-footer-col li a {
  font-family: var(--via-font);
  font-size: 13px;
  color: var(--via-text-body);
  text-decoration: none;
  transition: var(--via-t);
}
.vds-footer-col li a:hover { color: var(--via-text-primary); }
.vds-footer-h {
  font-family: var(--via-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--via-text-muted);
  margin: 0 0 14px;
}

.vds-footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--via-font);
  font-size: 11px;
  color: var(--via-text-muted);
}
.vds-footer-bottom-dot { color: var(--via-gray-300); }
.vds-footer-bottom-meta {
  margin-left: auto;
  font-family: var(--via-font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--via-text-muted);
}

/* ---------- MOBILE DRAWER ---------- */
.vds-drawer-scrim {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  z-index: 40;
  background: rgba(2, 22, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: vds-cmdk-scrim-in 200ms var(--via-ease-out);
}

@media (max-width: 960px) {
  .vds-shell { grid-template-columns: 1fr; grid-template-areas: 'header' 'main' 'footer'; }
  .vds-sidebar {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--via-glass-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 0.5px solid var(--via-navy-12);
    transform: translateX(-100%);
    transition: transform 320ms var(--via-ease-out);
    z-index: 45;
    box-shadow: 0 24px 48px var(--via-navy-20);
    padding: 24px 20px 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .vds-shell.drawer-open .vds-sidebar { transform: translateX(0); }
  .vds-shell.drawer-open .vds-drawer-scrim { display: block; }
  .vds-drawer-toggle { display: inline-flex; }
  .vds-main { padding: 32px 20px 64px; max-width: 100%; min-width: 0; }
  .vds-footer { padding: 40px 20px 24px; }
  .vds-footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .vds-footer-cols { grid-template-columns: 1fr 1fr; }
  .vds-footer-bottom-meta { margin-left: 0; width: 100%; }
  .vds-search { display: none; }
  .vds-brand-tag { display: none; }
  .vds-header-link { display: none; }
  .vds-header { padding: 0 16px; }
  .vds-header-left { gap: 8px; min-width: 0; flex-shrink: 1; }
  .vds-header-right { gap: 6px; flex-shrink: 0; }
}

/* Brand logo · default: ambos visíveis em block */
.vds-brand-mono, .vds-brand-wordmark { display: block; }

/* Logo "auto" · alterna preto↔branco conforme o tema (variant="auto").
   Mostra preto no claro, branco no escuro · troca instantânea no toggle. */
.vds-brand-img--dark { display: none; }
[data-theme="dark"] .vds-brand-img--light { display: none; }
[data-theme="dark"] .vds-brand-img--dark { display: block; }

/* Mobile estrito · 560-px-down: esconder wordmark, só monograma
   (precisa vencer a regra de tema acima → repete com [data-theme]) */
@media (max-width: 560px) {
  .vds-brand-wordmark { display: none; }
  [data-theme="dark"] .vds-brand-wordmark { display: none; }
}
/* ==============================================================
   Page-level styles (Home, foundations, glass, components, etc.)
   ============================================================== */

/* ---- HOME HERO — assinatura visual ---- */
.vds-home-hero {
  position: relative;
  padding: 96px 64px 80px;
  border-radius: 40px;
  margin-bottom: 32px;
  overflow: hidden;
  color: var(--via-white);
}
.vds-home-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  font-family: var(--via-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.004em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  line-height: 1.4;
}
.vds-home-hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--via-font-display);
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--via-white);
  margin: 0 0 28px;
  max-width: 880px;
}
.vds-home-hero-title em {
  font-style: normal;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
}
.vds-home-hero-lede {
  position: relative;
  z-index: 2;
  font-family: var(--via-font);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 0 40px;
}
.vds-home-hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.vds-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--via-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.004em;
  cursor: pointer;
  text-decoration: none;
  transition: all 240ms var(--via-ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.vds-btn.primary {
  background: var(--via-surface-onnavy);
  /* superfície SEMPRE branca · re-pina texto pra navy nos 2 temas */
  --via-text-primary: var(--via-navy);
  color: var(--via-text-primary);
  box-shadow: 0 8px 24px rgba(10, 31, 59, 0.38), inset 0 1px 0 var(--via-edge-hi);
}
.vds-btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  transition: left 600ms var(--via-ease-out);
}
.vds-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(10, 31, 59, 0.48), inset 0 1px 0 var(--via-edge-hi); }
.vds-btn.primary:hover::before { left: 100%; }
.vds-btn.ghost-light {
  background: rgba(255,255,255,0.10);
  color: var(--via-white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.20);
}
.vds-btn.ghost-light:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}

/* Stats inline no hero */
.vds-home-hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.vds-home-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vds-home-hero-stat .num {
  font-family: var(--via-font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--via-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vds-home-hero-stat .lbl {
  font-family: var(--via-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}

@media (max-width: 720px) {
  .vds-home-hero {
    padding: 48px 24px 40px;
    border-radius: 24px;
    margin-bottom: 20px;
  }
  .vds-home-hero-title {
    font-size: clamp(36px, 9vw, 56px);
    margin: 0 0 20px;
  }
  .vds-home-hero-lede {
    font-size: 15px;
    margin: 0 0 28px;
  }
  .vds-home-hero-pill { margin-bottom: 22px; }
  .vds-home-hero-actions {
    gap: 8px;
    margin-bottom: 40px;
    flex-direction: column;
    align-items: stretch;
  }
  .vds-home-hero-actions .vds-btn {
    justify-content: center;
    padding: 13px 22px;
  }
  .vds-home-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .vds-home-hero-stat .num { font-size: 38px; }

  /* Home grid em mobile: 1 coluna */
  .vds-home-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 10px;
    border-radius: 24px;
  }
  .vds-home-card {
    padding: 24px 22px 56px;
    border-radius: 22px;
  }
  .vds-home-card-title { font-size: 21px; }
}

/* ---- Home grid ---- */
.vds-home-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 80px;
  padding: 32px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 80% at 10% 0%, var(--via-navy-08) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 100%, var(--via-navy-06) 0%, transparent 55%),
    linear-gradient(135deg, var(--via-gray-50), var(--via-gray-100));
  border: 0.5px solid var(--via-navy-08);
}
.vds-home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 72px;
  background: var(--via-glass-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--via-edge-hi);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    inset 0 -1px 0 var(--via-edge-lo),
    0 12px 32px var(--via-navy-08),
    0 2px 8px var(--via-navy-04);
  text-decoration: none;
  color: inherit;
  transition: var(--via-t);
  overflow: hidden;
}
.vds-home-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: var(--via-glass-sheen);
  border-top-left-radius: 28px;
  pointer-events: none;
}
.vds-home-card > * { position: relative; z-index: 1; }
.vds-home-card:hover {
  border-color: var(--via-edge-hi);
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    inset 0 -1px 0 var(--via-edge-lo),
    0 24px 56px var(--via-navy-14),
    0 4px 12px var(--via-navy-06);
  transform: translateY(-2px);
}
.vds-home-card-title {
  font-family: var(--via-font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--via-text-primary);
  margin: 4px 0 0;
}
.vds-home-card-body {
  font-family: var(--via-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--via-text-body);
  margin: 0;
}
.vds-home-card-arrow {
  position: absolute;
  bottom: 24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--via-surface-onnavy);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--via-edge-hi);
  color: var(--via-text-primary);
  box-shadow: inset 0 1px 0 var(--via-edge-hi), 0 4px 12px var(--via-navy-06);
  z-index: 2 !important;
  transition: var(--via-t);
}
.vds-home-card:hover .vds-home-card-arrow {
  background: linear-gradient(180deg, var(--via-navy), var(--via-navy-deep));
  border-color: rgba(10,31,59,0.95);
  color: var(--via-white);
  box-shadow: 0 8px 20px var(--via-navy-30);
}
/* Dark: chip branco vira chip de vidro escuro sutil (senão 3 bolinhas
   brancas berrantes nos cantos dos cards) · seta clara · pop no hover */
[data-theme="dark"] .vds-home-card-arrow {
  background: var(--via-navy-08);
  color: var(--via-text-primary);
  border-color: var(--via-border);
  box-shadow: inset 0 1px 0 var(--via-edge-hi), 0 4px 12px rgba(0,0,0,0.25);
}

/* ---- Home stats ---- */
.vds-home-stats {
  padding: 36px 36px 32px;
  background: linear-gradient(135deg, var(--via-navy), var(--via-navy-deep));
  color: var(--via-white);
  border-radius: var(--via-radius-xl);
  position: relative;
  overflow: hidden;
}
.vds-home-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 0%, rgba(46,76,118,0.45) 0%, transparent 60%);
  pointer-events: none;
}
.vds-home-stats .vds-eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 24px; position: relative; }
.vds-home-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.vds-home-stat { display: flex; flex-direction: column; gap: 6px; }
.vds-home-stat-num {
  font-family: var(--via-font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--via-white);
}
.vds-home-stat-lbl {
  font-family: var(--via-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 720px) {
  .vds-home-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Brand grid em atmosfera atmosférica + tiles vidro suspenso ---- */
.vds-brand-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 32px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%,  rgba(30,58,95,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 65% 75% at 100% 100%, var(--via-navy-14) 0%, transparent 55%),
    linear-gradient(135deg, var(--via-stage-soft) 0%, var(--via-stage-1) 100%);
  border: 0.5px solid var(--via-navy-12);
  overflow: hidden;
}
.vds-brand-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--via-noise);
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  border-radius: inherit;
}
.vds-brand-grid > * { position: relative; z-index: 1; }

.vds-brand-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--via-t);
}
.vds-brand-tile:hover { transform: translateY(-2px); }
.vds-brand-tile-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--via-glass-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--via-edge-hi);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    inset 0 -1px 0 var(--via-edge-lo),
    0 12px 32px var(--via-navy-10),
    0 2px 6px var(--via-navy-04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}
.vds-brand-tile-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 40%;
  background: var(--via-glass-sheen);
  border-top-left-radius: 20px;
  pointer-events: none;
}
.vds-brand-tile:hover .vds-brand-tile-img {
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    0 20px 48px var(--via-navy-16);
}
.vds-brand-tile-img.dark {
  background: linear-gradient(135deg, var(--via-navy), var(--via-navy-deep));
  border: 1px solid rgba(10,31,59,0.95);
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    0 12px 32px rgba(10,31,59,0.24);
}
.vds-brand-tile-img.dark::before { background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent); }
.vds-brand-tile-img img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.vds-brand-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}
.vds-brand-tile-name {
  font-family: var(--via-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--via-text-primary);
}
.vds-brand-tile-desc {
  font-family: var(--via-font);
  font-size: 12px;
  color: var(--via-text-muted);
}

/* ---- Spacing scale visual em atmosfera ---- */
.vds-spacing-scale {
  position: relative;
  padding: 24px 32px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%,  rgba(30,58,95,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 65% 75% at 100% 100%, var(--via-navy-10) 0%, transparent 55%),
    linear-gradient(135deg, var(--via-stage-soft) 0%, var(--via-stage-1) 100%);
  border: 0.5px solid var(--via-navy-12);
  overflow: hidden;
}
.vds-spacing-scale::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--via-noise);
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
  border-radius: inherit;
}
.vds-spacing-scale > * { position: relative; z-index: 1; }
.vds-spacing-row {
  display: grid;
  grid-template-columns: 100px 60px 1fr;
  gap: 24px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--via-navy-10);
}
.vds-spacing-row:last-child { border-bottom: none; }
.vds-spacing-token {
  font-family: var(--via-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--via-text-primary);
}
.vds-spacing-px {
  font-family: var(--via-font-mono);
  font-size: 12px;
  color: var(--via-text-body);
}
.vds-spacing-bar {
  height: 10px;
  background: linear-gradient(90deg, var(--via-navy), var(--via-blue) 70%, var(--via-blue-soft));
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 10px var(--via-navy-18);
}

/* ---- Radii tiles em atmosfera + glass ---- */
.vds-radii-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 32px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%,  rgba(30,58,95,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 65% 75% at 100% 100%, var(--via-navy-10) 0%, transparent 55%),
    linear-gradient(135deg, var(--via-stage-soft) 0%, var(--via-stage-1) 100%);
  border: 0.5px solid var(--via-navy-12);
}
.vds-radii-tile {
  position: relative;
  aspect-ratio: 1.6 / 1;
  background: var(--via-glass-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--via-edge-hi);
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    0 8px 24px var(--via-navy-10),
    0 2px 6px var(--via-navy-04);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: var(--via-t);
}
.vds-radii-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: var(--via-glass-sheen);
  pointer-events: none;
}
.vds-radii-tile > * { position: relative; z-index: 1; }
.vds-radii-tile:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--via-edge-hi), 0 16px 36px var(--via-navy-16); }
.vds-radii-label {
  font-family: var(--via-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--via-text-muted);
}
.vds-radii-value {
  font-family: var(--via-font-mono);
  font-size: 14px;
  color: var(--via-text-primary);
}

/* ---- Shadow tiles flutuando real ---- */
.vds-shadow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  padding: 56px 40px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%,  rgba(30,58,95,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 65% 75% at 100% 100%, var(--via-navy-10) 0%, transparent 55%),
    linear-gradient(135deg, var(--via-gray-100) 0%, var(--via-stage-1) 100%);
  border: 0.5px solid var(--via-navy-12);
  overflow: hidden;
}
.vds-shadow-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--via-noise);
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
  border-radius: inherit;
}
.vds-shadow-grid > * { position: relative; z-index: 1; }
.vds-shadow-card {
  width: 100%;
  height: 140px;
  background: var(--via-surface);
  border: 1px solid var(--via-edge-hi);
  border-radius: var(--via-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--via-font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--via-text-primary);
  letter-spacing: 0.08em;
  transition: var(--via-t);
}
.vds-shadow-card:hover { transform: translateY(-2px); }

/* ---- Motion easing ---- */
.vds-motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.vds-motion-card {
  position: relative;
  padding: 24px;
  background: var(--via-glass-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--via-edge-hi);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    inset 0 -1px 0 var(--via-edge-lo),
    0 12px 32px var(--via-navy-08),
    0 2px 6px var(--via-navy-04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.vds-motion-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 40%;
  background: var(--via-glass-sheen);
  pointer-events: none;
}
.vds-motion-card > * { position: relative; z-index: 1; }
.vds-motion-track {
  position: relative;
  height: 36px;
  background:
    radial-gradient(220px 36px at 0% 50%, var(--via-navy-05), transparent 70%),
    linear-gradient(180deg, var(--via-navy-04), var(--via-navy-02));
  border: 1px solid var(--via-border-soft);
  border-radius: var(--via-radius-pill);
  overflow: hidden;
}

.vds-motion-dot {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: 6px;
  background: linear-gradient(135deg, var(--via-navy), var(--via-blue));
  border-radius: 50%;
  animation: vds-slide 2400ms infinite;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 4px 10px -2px rgba(10, 31, 59, 0.35);
}
@keyframes vds-slide {
  0%, 10% { left: 0; }
  50%, 60% { left: calc(100% - 36px); }
  100% { left: 0; }
}

/* ---- Typography spec ---- */
.vds-type-row {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--via-border-soft);
  position: relative;
  transition: padding 200ms ease;
}

.vds-type-row::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: transparent;
  border-radius: 0 2px 2px 0;
  transition: background 220ms ease;
}

.vds-type-row:hover::before {
  background: linear-gradient(180deg, var(--via-navy), transparent 70%);
  opacity: 0.5;
}

.vds-type-row:last-child {
  border-bottom: none;
}

.vds-type-label {
  font-family: var(--via-font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--via-text-soft);
}

.vds-type-sample {
  color: var(--via-text-primary);
  letter-spacing: -0.01em;
}

.vds-type-meta {
  font-family: var(--via-font-mono);
  font-size: 10.5px;
  color: var(--via-text-soft);
  text-align: right;
  letter-spacing: 0.04em;
  font-feature-settings: 'tnum' 1;
}

/* ---- Icon grid ---- */
.vds-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.vds-icon-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0.5px solid var(--via-navy-08);
  border-radius: var(--via-radius-md);
  color: var(--via-text-primary);
  transition: var(--via-t);
}
.vds-icon-cell:hover {
  background: var(--via-navy-04);
  border-color: var(--via-navy-40);
}
.vds-icon-cell span {
  font-family: var(--via-font-mono);
  font-size: 9px;
  color: var(--via-text-muted);
}
/* ==============================================================
   404 — atmosférica, com "404" gigante decorativo
   ============================================================== */

.vds-404 {
  position: relative;
  border-radius: 40px;
  padding: 120px 64px;
  overflow: hidden;
  color: var(--via-white);
  min-height: 540px;
  display: flex;
  align-items: center;
}
.vds-404-inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
}
.vds-404-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  font-family: var(--via-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.004em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  white-space: nowrap;
  line-height: 1.4;
}
.vds-404 h1 {
  font-family: var(--via-font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--via-white);
  margin: 0 0 24px;
}
.vds-404 h1 em {
  font-style: normal;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
}
.vds-404 p {
  font-family: var(--via-font);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  margin: 0 0 40px;
}

/* "404" gigante decorativo no fundo */
.vds-404-big {
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: var(--via-font-display);
  font-size: clamp(280px, 30vw, 460px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .vds-404 { padding: 80px 32px; border-radius: 28px; min-height: 420px; }
  .vds-404-big { font-size: 200px; bottom: -30px; right: -10px; }
}
/* ==============================================================
   DOCS components — page headers, sections, swatches, code, etc.
   ============================================================== */

/* ---- Eyebrow ---- */
.vds-eyebrow {
  font-family: var(--via-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--via-text-muted);
  margin: 0;
}

/* ---- Docs page header ---- */
.vds-docs-header {
  margin-bottom: 56px;
  max-width: 760px;
}
.vds-docs-header .vds-eyebrow { margin-bottom: 18px; }
.vds-docs-title {
  font-family: var(--via-font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--via-text-primary);
  margin: 0 0 20px;
}
.vds-docs-title em {
  font-family: var(--via-font-display);
  font-style: normal;
  font-weight: 400;
  color: var(--via-text-muted);
}
.vds-docs-lede {
  font-family: var(--via-font);
  font-size: 19px;
  line-height: 1.55;
  color: var(--via-text-body);
  margin: 0;
  max-width: 640px;
}

/* ---- Section block ---- */
.vds-section {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 0.5px solid var(--via-navy-12);
}
.vds-section:first-of-type { border-top: none; padding-top: 0; }
.vds-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.vds-section-title {
  font-family: var(--via-font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--via-text-primary);
  margin: 0;
}
.vds-section-meta {
  font-family: var(--via-font-mono);
  font-size: 11px;
  color: var(--via-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .vds-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 22px;
  }
  .vds-section-title {
    font-size: 26px;
  }
  .vds-section-meta {
    white-space: normal;
    font-size: 10.5px;
    line-height: 1.4;
  }
}
.vds-section-body p {
  font-family: var(--via-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--via-text-body);
  margin: 0 0 16px;
  max-width: 640px;
}
.vds-section-body p em {
  font-family: var(--via-font-display);
  font-style: italic;
  color: var(--via-text-primary);
  font-weight: 400;
}

/* ---- Swatch grid em atmosfera atmosférica ---- */
.vds-swatch-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%,  rgba(30,58,95,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 65% 75% at 100% 100%, var(--via-navy-10) 0%, transparent 55%),
    linear-gradient(135deg, var(--via-stage-soft) 0%, var(--via-stage-1) 100%);
  border: 0.5px solid var(--via-navy-12);
  overflow: hidden;
}
.vds-swatch-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--via-noise);
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
  border-radius: inherit;
}
.vds-swatch-grid > * { position: relative; z-index: 1; }

.vds-swatch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  transition: var(--via-t);
}
.vds-swatch:hover { transform: translateY(-2px); }
.vds-swatch-tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    0 8px 20px var(--via-navy-10),
    0 2px 6px var(--via-navy-04);
  transition: var(--via-t);
}
.vds-swatch:hover .vds-swatch-tile {
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    0 16px 36px var(--via-navy-16);
}
.vds-swatch-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}
.vds-swatch-name {
  font-family: var(--via-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--via-text-primary);
}
.vds-swatch-hex {
  font-family: var(--via-font-mono);
  font-size: 11px;
  color: var(--via-text-muted);
}
.vds-swatch-token {
  font-family: var(--via-font-mono);
  font-size: 10px;
  color: var(--via-gray-400);
}

/* ---- Token table ---- */
.vds-token-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.vds-token-table th,
.vds-token-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--via-navy-08);
  font-family: var(--via-font);
}
.vds-token-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--via-text-muted);
  padding-bottom: 12px;
}
.vds-token-table td.tok {
  font-family: var(--via-font-mono);
  font-size: 12px;
  color: var(--via-text-primary);
  width: 35%;
}
.vds-token-table td.val {
  font-family: var(--via-font-mono);
  font-size: 12px;
  color: var(--via-text-body);
  width: 20%;
}
.vds-token-table td.use {
  font-size: 13px;
  color: var(--via-text-body);
}

/* ---- Code block ---- */
.vds-code {
  display: block;
  background: var(--via-gray-50);
  border: 0.5px solid var(--via-navy-12);
  border-radius: var(--via-radius-md);
  padding: 18px 20px;
  font-family: var(--via-font-mono);
  font-size: 12.5px;
  color: var(--via-text-primary);
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.vds-code-inline {
  display: inline-block;
  font-family: var(--via-font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: var(--via-radius-xs);
  background: var(--via-gray-100);
  color: var(--via-text-primary);
}

/* ---- Stage (for live demos) ---- */
.vds-stage {
  width: 100%;
  border: 0.5px solid var(--via-navy-12);
  border-radius: var(--via-radius-lg);
  padding: 40px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, var(--via-navy-04) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 100% 100%, var(--via-navy-02) 0%, transparent 55%),
    var(--via-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.vds-stage.dark {
  background:
    radial-gradient(ellipse 60% 80% at 20% 10%, rgba(46,76,118,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(30,58,95,0.30) 0%, transparent 60%),
    linear-gradient(135deg, var(--via-navy) 0%, var(--via-navy-deep) 100%);
  border-color: transparent;
}
.vds-stage.gray {
  background: linear-gradient(135deg, var(--via-stage-soft) 0%, var(--via-stage-1) 100%);
}

/* ---- Anatomy callout box ---- */
.vds-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--via-gray-50);
  border: 0.5px solid var(--via-navy-08);
  border-radius: var(--via-radius-lg);
}
.vds-callout-info { display: flex; flex-direction: column; gap: 12px; }
.vds-callout-info h4 {
  font-family: var(--via-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--via-text-primary);
  margin: 0;
}
.vds-callout-info p {
  font-family: var(--via-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--via-text-body);
  margin: 0;
}
.vds-callout.warning { background: var(--via-navy-04); border-color: var(--via-navy-25); }
.vds-callout.warning h4 { color: var(--via-text-primary); }

/* ---- Inline pill ---- */
.vds-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--via-radius-pill);
  font-family: var(--via-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--via-navy-04);
  color: var(--via-text-primary);
  border: 0.5px solid var(--via-navy-12);
}

/* ---- Two-col grid for do/don't ---- */
.vds-do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.vds-do, .vds-dont {
  padding: 20px;
  border-radius: var(--via-radius-md);
  border: 0.5px solid var(--via-navy-12);
  /* bg-2 (não bg) · senão no dark o card fica idêntico à página = some */
  background: var(--via-bg-2);
  color: var(--via-text-body);
}
.vds-do { border-left: 2px solid var(--via-success); }
.vds-dont { border-left: 2px solid var(--via-danger); }
.vds-do-title, .vds-dont-title {
  font-family: var(--via-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.vds-do-title { color: var(--via-success); }
.vds-dont-title { color: var(--via-danger); }
/* ============================================
   <RouteLoader> · editorial skeleton durante lazy chunk
   ============================================ */
.vds-route-loader {
  max-width: var(--via-container, 1280px);
  margin: 0 auto;
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: vds-loader-fade-in .18s ease-out;
}

@keyframes vds-loader-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vds-route-loader__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vds-route-loader__eyebrow,
.vds-route-loader__title,
.vds-route-loader__lede,
.vds-route-loader__block {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--via-navy-04) 0%,
    var(--via-navy-08) 50%,
    var(--via-navy-04) 100%
  );
  background-size: 200% 100%;
  animation: vds-shimmer 1.6s linear infinite;
}

[data-theme="dark"] .vds-route-loader__eyebrow,
[data-theme="dark"] .vds-route-loader__title,
[data-theme="dark"] .vds-route-loader__lede,
[data-theme="dark"] .vds-route-loader__block {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
}

.vds-route-loader__eyebrow {
  height: 12px;
  width: 240px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.vds-route-loader__title {
  height: 48px;
  width: 80%;
  max-width: 760px;
}

.vds-route-loader__title--short {
  width: 60%;
  max-width: 560px;
}

.vds-route-loader__lede {
  height: 16px;
  width: 70%;
  max-width: 640px;
  margin-top: 12px;
}

.vds-route-loader__lede--short {
  width: 50%;
  max-width: 480px;
}

.vds-route-loader__block {
  height: 220px;
  margin-top: 32px;
  border-radius: 22px;
}

.vds-route-loader__block--alt {
  height: 320px;
  margin-top: 14px;
}

@keyframes vds-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}



/* ==============================================================
   VIVER DE IA — Design System site
   Fonts + tokens + minimal reset.
   ============================================================== */
/* =============================================================
   VIVER DE IA — Design System
   White-first · navy + grays + black · glass on light surfaces
   ============================================================= */
/* Fonts: load via Google Fonts in consuming HTML
   @import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Geist+Mono:wght@100..900&display=swap');
*/
:root {
  /* ========== COLORS ========================================== */

  /* Navy — the brand color. Used for primary text and primary surfaces. */
  --via-navy:        #0A1F3B;   /* primary navy */
  --via-navy-deep:   #02162A;   /* deep, used for full-bleed dark moments */
  --via-navy-darker: #010B1A;   /* darkest, footers / borders */
  --via-blue:        #1E3A5F;   /* mid azul-escuro */
  --via-blue-soft:   #2A4A6E;   /* hover state on navy / borders on navy */

  /* Navy transparency stops (for hairlines, hovers, soft surfaces) */
  --via-navy-80: rgba(10, 31, 59, 0.80);
  --via-navy-60: rgba(10, 31, 59, 0.60);
  --via-navy-40: rgba(10, 31, 59, 0.40);
  --via-navy-30: rgba(10, 31, 59, 0.30);
  --via-navy-25: rgba(10, 31, 59, 0.25);
  --via-navy-22: rgba(10, 31, 59, 0.22);
  --via-navy-20: rgba(10, 31, 59, 0.20);
  --via-navy-18: rgba(10, 31, 59, 0.18);
  --via-navy-16: rgba(10, 31, 59, 0.16);
  --via-navy-14: rgba(10, 31, 59, 0.14);
  --via-navy-12: rgba(10, 31, 59, 0.12);
  --via-navy-10: rgba(10, 31, 59, 0.10);
  --via-navy-08: rgba(10, 31, 59, 0.08);
  --via-navy-06: rgba(10, 31, 59, 0.06);
  --via-navy-05: rgba(10, 31, 59, 0.05);
  --via-navy-04: rgba(10, 31, 59, 0.04);
  --via-navy-03: rgba(10, 31, 59, 0.03);
  --via-navy-02: rgba(10, 31, 59, 0.02);

  /* Grayscale — the secondary palette */
  --via-gray-50:  #F7F8FA;   /* page bg (alt) */
  --via-gray-100: #F0F2F5;   /* subtle surface */
  --via-gray-200: #E4E7EC;   /* hairline border */
  --via-gray-300: #D0D5DD;   /* stronger border */
  --via-gray-400: #98A2B3;   /* muted text on light */
  --via-gray-500: #667085;   /* secondary text */
  --via-gray-600: #475467;   /* tertiary text */
  --via-gray-700: #344054;   /* body emphasis */
  --via-gray-800: #1D2939;   /* close to navy */
  --via-gray-900: #101828;   /* near black */

  --via-black: #000000;
  --via-white: #FFFFFF;

  /* Page / surface tokens — LIGHT-FIRST */
  --via-bg:           var(--via-white);
  --via-bg-2:         var(--via-gray-50);
  --via-bg-3:         var(--via-gray-100);
  --via-surface:      var(--via-white);
  --via-surface-elev: var(--via-white);

  /* Semantic text */
  --via-text-primary:  var(--via-navy);
  --via-text-body:     var(--via-gray-700);
  --via-text-muted:    #5C6677;   /* AA ≥4.5 em cards tint (#f0f2f3) · era gray-500 */
  --via-text-faint:    var(--via-gray-400);
  --via-text-inverse:  var(--via-white);

  /* Semantic borders */
  --via-border-hairline: var(--via-gray-200);
  --via-border:          var(--via-gray-300);
  --via-border-soft:     rgba(10, 31, 59, 0.08);  /* hairline editorial · 392+ usos */
  --via-border-strong:   var(--via-navy-40);

  /* Status — desaturated, navy-adjacent */
  --via-success: #1F8A5B;
  --via-warning: #0A1F3B;
  --via-danger:  #B83A3A;

  /* ========== EDITORIAL INK SCALE =============================
     Aliases curtos · 100% mapeados nos CSS dos componentes (700+ usos)
     Não remover sem migrar todas as referências.
     ============================================================ */
  --via-text:        var(--via-gray-700);   /* corpo padrão */
  --via-text-soft:   #5C6677;   /* secondary 289+ usos · AA em cards tint · era gray-500 */
  --via-ink-2:       #5E6B82;               /* texto secundário editorial · 76+ usos */
  --via-ink-3:       #5F6981;               /* texto terciário · timestamps · 102+ usos · AA ≥4.5 em off-white */

  /* ========== ACCENT (navy / cinza · paleta restrita) ==========
     Paleta canônica VIA: branco · off-white · cinza · azul-escuro · navy · preto.
     Sem gold/amarelo/dourado em nenhum nível — accent é só intensidade
     editorial dentro da própria família navy + cinza.
     ============================================================ */
  --via-accent:       var(--via-navy);        /* navy primário · CTA · headers fortes */
  --via-accent-deep:  var(--via-navy-deep);   /* navy mais profundo · gradient stops */
  --via-accent-soft:  var(--via-gray-300);    /* cinza claro · gradient highlights */
  --via-accent-warm:  var(--via-navy-deep);   /* alias semântico legado · navy-deep */
  --via-accent-light: var(--via-gray-300);    /* alias semântico legado · cinza claro */

  /* ========== CORAL (destrutivo only) ========================= */
  --via-coral:       #B85C5C;               /* destrutivo · cancel · error */
  --via-coral-dark:  #8C2C2C;               /* destrutivo texto */
  --via-coral-deep:  #A14848;               /* destrutivo hover */

  /* ========== ALIASES (compat) ================================
     Aliases curtos pra Geist Display / Mono · 159+ usos
     ============================================================ */
  --via-display: var(--via-font-display);
  --via-mono:    var(--via-font-mono);

  /* ========== BG SOFT (surfaces) ============================== */
  --via-bg-soft: rgba(10, 31, 59, 0.025);   /* card soft alternate */
}
/* =============================================================
   DARK MODE · [data-theme="dark"] no <html>
   Mantém navy como cor central · troca surfaces white → navy-dark
   ============================================================= */
[data-theme="dark"] {
  /* =================================================
     SURFACES · escala com mais separação entre camadas
     Tons levemente warm pra não ficar "preto técnico"
     ================================================= */
  --via-bg:           #0B1220;    /* canvas principal · warm dark */
  --via-bg-2:         #131C30;    /* surface alt · separação clara */
  --via-bg-3:         #1B273F;    /* surface elevated */
  --via-surface:      #131C30;    /* card base */
  --via-surface-elev: #1B273F;    /* card elevado · modals/popovers */
  --via-bg-soft:      rgba(255, 255, 255, 0.04);

  /* =================================================
     GRAYS CLAROS como SUPERFÍCIE · adaptam no dark
     Razão: gray-50/100 são usados SÓ como background
     (0 usos como texto) em ~66 lugares · seções, painéis,
     command palette, docs, mockups. No dark precisam virar
     painel escuro sutil, senão viram "mancha clara" (ex: o
     rodapé que clareava embaixo, o container dos cards da home).
     gray-200+ NÃO adaptam (são usados como texto claro). */
  --via-gray-50:  #0F1729;        /* painel sutil · 1 passo acima do canvas */
  --via-gray-100: #17213A;        /* painel · 2 passos acima */
  /* STAGE · backdrops/wells/avatares que usam gray-200/300/400 como FUNDO.
     Não dá pra adaptar gray-200/300/400 direto (são usados como TEXTO claro
     em contexto escuro). Então: tokens de palco que no light valem o mesmo
     cinza (no-op) e no dark viram superfície escura. Migração via
     scripts/fix-stage-bg.mjs (só backgrounds). */
  --via-stage-soft: #1B273F;      /* era gray-200 (#E4E7EC) */
  --via-stage-1:    #131C30;      /* era gray-300 (#D0D5DD) */
  --via-stage-2:    #0B1220;      /* era gray-400 (#98A2B3) */

  /* =================================================
     TEXT · cores SÓLIDAS (não rgba com opacity)
     Razão: rgba(white, 0.X) sobre dark = alfa-composted
     em cinza escurecido, perde contraste WCAG
     ================================================= */
  --via-text-primary: #F4F6FA;   /* near-white · headlines, links primários */
  --via-text-body:    #D0D5DD;   /* gray-300 sólido · body text · WCAG AAA */
  --via-text-muted:   #AEB8C6;   /* secondary · passa AA mesmo sobre vidro elevado · ainda claramente "quieto" vs body */
  --via-text-faint:   #9CA5B5;   /* helper · o mais discreto, mas legível sobre vidro */
  --via-text-inverse: var(--via-navy);

  --via-text:      #D0D5DD;
  --via-text-soft: #AEB8C6;
  --via-ink-2:     #B4BBC9;
  --via-ink-3:     #AEB8C6;

  /* =================================================
     BORDERS · mais visíveis que antes (0.06 → 0.12)
     ================================================= */
  --via-border-hairline: rgba(255, 255, 255, 0.10);
  --via-border:          rgba(255, 255, 255, 0.18);
  --via-border-soft:     rgba(255, 255, 255, 0.12);
  --via-border-strong:   rgba(255, 255, 255, 0.30);

  /* =================================================
     NAVY ALPHAS · TODOS invertidos pra rgba(white, X)
     Razão: em dark, navy alpha real fica invisível sobre
     bg dark. Atmospheres radiais, hairlines, backgrounds
     sutis precisam usar white com mesma intensidade.
     ================================================= */
  --via-navy-02: rgba(255, 255, 255, 0.025);
  --via-navy-03: rgba(255, 255, 255, 0.035);
  --via-navy-04: rgba(255, 255, 255, 0.045);
  --via-navy-05: rgba(255, 255, 255, 0.055);
  --via-navy-06: rgba(255, 255, 255, 0.07);
  --via-navy-08: rgba(255, 255, 255, 0.09);
  --via-navy-10: rgba(255, 255, 255, 0.11);
  --via-navy-12: rgba(255, 255, 255, 0.13);
  --via-navy-14: rgba(255, 255, 255, 0.15);
  --via-navy-16: rgba(255, 255, 255, 0.17);
  --via-navy-18: rgba(255, 255, 255, 0.19);
  --via-navy-20: rgba(255, 255, 255, 0.22);
  --via-navy-22: rgba(255, 255, 255, 0.24);
  --via-navy-25: rgba(255, 255, 255, 0.28);
  --via-navy-30: rgba(255, 255, 255, 0.32);
  --via-navy-40: rgba(255, 255, 255, 0.42);
  --via-navy-60: rgba(255, 255, 255, 0.55);
  --via-navy-80: rgba(255, 255, 255, 0.72);

  color-scheme: dark;
}
/* If prefers-color-scheme: dark and no explicit theme set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    /* Note: light é nosso padrão da marca · esse bloco só ativa
       quando NÃO há [data-theme] no <html> · útil pra evitar flash
       em casos extremos (SSR sem hidratação) */
    --via-bg:           #0B1220;
    --via-bg-2:         #131C30;
    --via-surface:      #131C30;
    --via-text-primary: #F4F6FA;
    --via-text-body:    #D0D5DD;
    --via-text:         #D0D5DD;
    --via-text-soft:    #98A2B3;
    --via-ink-2:        #B4BBC9;
    --via-ink-3:        #98A2B3;
    --via-border-soft:  rgba(255, 255, 255, 0.12);
    color-scheme: dark;
  }
}
/* =================================================
   GLASS SURFACES · tokens semânticos (resolvem dark sozinhos)
   =================================================
   --via-glass-card  · superfície de card glass forte
   --via-glass-card-2· superfície de card glass média (alt)
   Componentes usam var(--via-glass-card) em vez de gradient
   branco hardcoded → adapta light/dark automaticamente.
   Substituição em massa feita via scripts/migrate-glass.mjs
   ================================================= */
:root {
  --via-glass-card:   linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 250, 0.74));
  --via-glass-card-2: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 248, 250, 0.62));
  /* Superfície branca FIXA · pra botões/cards SOBRE hero navy (navy nos
     2 temas) · NÃO adapta · sempre clara porque texto sobre ela é navy */
  --via-surface-onnavy: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%);
  /* Edge highlight (a "linha de luz" no topo dos cards glass) · forte em
     light, sutil em dark · senão vira moldura branca berrante no escuro */
  --via-edge-hi: rgba(255, 255, 255, 0.95);
  /* Edge highlight inferior/sutil · 1px de luz na base · quase nulo em dark */
  --via-edge-lo: rgba(255, 255, 255, 0.4);
  /* Sheen · o "brilho" branco que desce do topo dos cards glass (::before).
     Forte em light (vidro pega luz), quase nulo em dark (vidro escuro reflete
     pouco) · senão o topo do card vira um lavado branco berrante no escuro */
  --via-glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
}
[data-theme="dark"] {
  --via-glass-card:   linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  --via-glass-card-2: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  /* onnavy NÃO muda · permanece branco mesmo em dark */
  --via-edge-hi: rgba(255, 255, 255, 0.08);
  --via-edge-lo: rgba(255, 255, 255, 0.05);
  --via-glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  /* accent-warm = alias legado de navy-deep · só usado como COR DE TEXTO (33x,
     ênfase: keynote, main stage…) · navy-deep não adapta → invisível no dark.
     Vira texto claro pra continuar legível sobre superfícies escuras. */
  --via-accent-warm: var(--via-text-primary);
  /* coral-dark = texto destrutivo/erro (#8C2C2C) · 42 usos como cor de texto
     sobre fundo coral-tint · escuro demais no dark → coral CLARO legível,
     mantendo o sinal "erro/destrutivo" */
  --via-coral-dark: #E89B9B;
  /* danger (#B83A3A) usado como texto de erro em campos · clareia no dark */
  --via-danger: #E58A8A;
}
/* Google Search ad · headline azul precisa virar variante dark-safe */
[data-theme="dark"] .vds-pa-gs-headline,
[data-theme="dark"] .vds-pa-gs-sitelinks strong {
  color: #8AB4F8;  /* Google blue acessível em dark · WCAG AA */
}
/* Anatomy rows · quote/content slides em dark */
[data-theme="dark"] .vds-slide.quote .vds-quote-body,
[data-theme="dark"] .vds-slide.content h3 {
  color: var(--via-text-primary) !important;
}
[data-theme="dark"] .vds-slide-bullets strong,
[data-theme="dark"] .vds-slide-bullets p {
  color: var(--via-text-body) !important;
}
/* =============================================================
   SYSTEM TOKENS · fora de :root principal pra resolver dependência
   circular com os media queries acima. Tudo abaixo é base do DS.
   ============================================================= */
:root {
  /* ========== TYPOGRAPHY ====================================== */

  /* Single-family system: Geist (variable sans, Vercel).
     Same family for display + UI. Geist Mono para código.
     Italic é synthesized em Geist (não tem italic axis) — contraste
     editorial vem por peso + cor (não por inclinação). */
  --via-font-display: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --via-font:         'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --via-font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Weights */
  --via-fw-light:    300;
  --via-fw-regular:  400;
  --via-fw-medium:   500;
  --via-fw-semibold: 600;
  --via-fw-bold:     700;
  --via-fw-black:    900;

  /* Type scale */
  --via-fs-hero:    5rem;       /* 80px */
  --via-fs-display: 3.5rem;     /* 56px */
  --via-fs-h1:      2.5rem;     /* 40px */
  --via-fs-h2:      2rem;       /* 32px */
  --via-fs-h3:      1.5rem;     /* 24px */
  --via-fs-h4:      1.125rem;   /* 18px */
  --via-fs-body:    1rem;       /* 16px */
  --via-fs-sm:      0.875rem;   /* 14px */
  --via-fs-xs:      0.75rem;    /* 12px */
  --via-fs-label:   0.6875rem;  /* 11px */

  /* Letter-spacing buckets — Geist precisa menos tight no display */
  --via-ls-brand: 0.32em;
  --via-ls-mark:  0.22em;
  --via-ls-label: 0.18em;
  --via-ls-wide:  0.08em;
  --via-ls-tight: -0.015em;
  --via-ls-tighter: -0.025em;

  /* Line heights */
  --via-lh-tight:  1.02;
  --via-lh-snug:   1.2;
  --via-lh-normal: 1.5;
  --via-lh-loose:  1.65;

  /* ========== SPACING ========================================= */
  --via-space-1:   4px;
  --via-space-2:   8px;
  --via-space-3:   12px;
  --via-space-4:   16px;
  --via-space-5:   20px;
  --via-space-6:   24px;
  --via-space-8:   32px;
  --via-space-10:  40px;
  --via-space-12:  48px;
  --via-space-16:  64px;
  --via-space-20:  80px;
  --via-space-24:  96px;
  --via-space-32:  128px;

  /* ========== RADII =========================================== */
  --via-radius-xs:   4px;
  --via-radius-sm:   8px;
  --via-radius-md:   12px;
  --via-radius-lg:   20px;
  --via-radius-xl:   28px;
  --via-radius-2xl:  40px;
  --via-radius-pill: 999px;

  /* ========== BORDERS ========================================= */
  --via-border-fine:   0.5px solid var(--via-border-hairline);
  --via-border-1:      1px solid var(--via-border);
  --via-border-strong: 1px solid var(--via-navy-40);

  /* ========== SHADOWS ========================================= */
  /* Navy-tinted, gentle. The brand never uses gray-black shadows. */
  --via-shadow-xs: 0 1px 2px rgba(10,31,59,0.04);
  --via-shadow-sm: 0 2px 6px rgba(10,31,59,0.05), 0 1px 2px rgba(10,31,59,0.03);
  --via-shadow-md: 0 6px 18px rgba(10,31,59,0.07), 0 1px 3px rgba(10,31,59,0.04);
  --via-shadow-lg: 0 16px 40px rgba(10,31,59,0.10), 0 2px 8px rgba(10,31,59,0.05);
  --via-shadow-xl: 0 32px 80px rgba(10,31,59,0.14), 0 4px 16px rgba(10,31,59,0.06);

  /* Glass-specific shadow: inner highlight + soft outer drop */
  --via-shadow-glass-light:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(255,255,255,0.30),
    0 12px 32px rgba(10,31,59,0.08),
    0 2px 8px rgba(10,31,59,0.04);

  --via-shadow-glass-dark:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 16px 40px rgba(0,0,0,0.30),
    0 4px 12px rgba(0,0,0,0.15);

  --via-shadow-focus: 0 0 0 3px rgba(10,31,59,0.15);

  /* ========== BLUR =========================================== */
  --via-blur-sm: blur(8px)  saturate(140%);
  --via-blur-md: blur(16px) saturate(160%);
  --via-blur-lg: blur(28px) saturate(180%);
  --via-blur-xl: blur(48px) saturate(180%);

  /* ========== MOTION ========================================== */
  --via-ease:        cubic-bezier(0.32, 0.08, 0.24, 1);
  --via-ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --via-t-fast:      120ms var(--via-ease);
  --via-t:           180ms var(--via-ease);
  --via-t-slow:      360ms var(--via-ease);

  /* ========== LAYOUT ========================================== */
  --via-container: 1280px;
  --via-content:   760px;
  --via-narrow:    560px;

  /* ========== SIGNATURE ATMOSPHERES =========================== */
  /* Mesh light — base cinza-azulada com 4 stops de cor navy */
  --via-mesh-light:
    radial-gradient(ellipse 60% 70% at 12% 0%,  rgba(30,58,95,0.28) 0%,  transparent 55%),
    radial-gradient(ellipse 50% 60% at 95% 8%,  rgba(46,76,118,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 80% at 100% 100%, rgba(10,31,59,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 5% 100%, rgba(30,58,95,0.18) 0%, transparent 55%),
    linear-gradient(135deg, #CCD4DD 0%, #A7B2C0 100%);

  /* Mesh navy — fundo dark dramático com glow azul */
  --via-mesh-navy:
    radial-gradient(ellipse 60% 70% at 12% 0%,  rgba(46,76,118,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 95% 8%,  rgba(30,58,95,0.50)  0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 100% 100%, rgba(2,22,42,0.85) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 5% 100%, rgba(46,76,118,0.40) 0%, transparent 55%),
    linear-gradient(135deg, #0A1F3B 0%, #02162A 100%);

  /* Noise texture: data-URI SVG turbulence em 4% opacity */
  --via-noise:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");

  /* Glow navy — aura sutil pra elementos navy sólidos */
  --via-glow-navy:
    0 0 0 1px rgba(10,31,59,0.05),
    0 8px 24px rgba(10,31,59,0.20),
    0 16px 48px rgba(10,31,59,0.14);

  --via-glow-navy-strong:
    0 0 0 1px rgba(10,31,59,0.10),
    0 16px 48px rgba(10,31,59,0.30),
    0 32px 80px rgba(10,31,59,0.20);
}
/* =============================================================
   SIGNATURE UTILITIES
   ============================================================= */
/* Atmosphere wrappers — drop on any container */
.via-mesh-light {
  background: var(--via-mesh-light);
  position: relative;
}
.via-mesh-navy {
  background: var(--via-mesh-navy);
  color: var(--via-white);
  position: relative;
}
/* Noise overlay — add on top of any mesh */
.via-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--via-noise);
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
  border-radius: inherit;
}
/* =============================================================
   BASE
   ============================================================= */
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--via-font);
  font-weight: var(--via-fw-regular);
  font-size: var(--via-fs-body);
  line-height: var(--via-lh-loose);
  color: var(--via-text-body);
  background: var(--via-bg);
}
/* Headings · color usa :where() pra ter specificity ZERO.
   Qualquer container com `color: #fff` (cards navy escuros, glass dark, etc)
   sobrescreve sem precisar de override por classe — o color herda da cadeia. */
:where(h1, h2, h3, h4) { color: var(--via-text-primary); }
h1, h2, h3, h4 { margin: 0; }
h1 { font-family: var(--via-font-display); font-weight: 500; font-size: var(--via-fs-h1); line-height: var(--via-lh-tight); letter-spacing: var(--via-ls-tighter); }
h2 { font-family: var(--via-font-display); font-weight: 500; font-size: var(--via-fs-h2); line-height: var(--via-lh-snug);  letter-spacing: var(--via-ls-tighter); }
h3 { font-family: var(--via-font); font-weight: var(--via-fw-semibold); font-size: var(--via-fs-h3); line-height: var(--via-lh-snug); letter-spacing: var(--via-ls-tight); }
h4 { font-family: var(--via-font); font-weight: var(--via-fw-semibold); font-size: var(--via-fs-h4); }
/* Cards/heroes em superfície navy escura — herdam color pra ficarem brancos.
   Resolve bug onde `h1,h2,h3,h4 { color: var(--via-text-primary) }` global
   sobrescrevia `color: #fff` setado no container ancestral.

   Cobre: .via-mesh-navy · .via-glass-dark · [data-on-dark] (utility opt-in)
   e cards específicos que usam fundo navy direto (sem class semântica). */
.via-mesh-navy h1, .via-mesh-navy h2, .via-mesh-navy h3, .via-mesh-navy h4,
.via-glass-dark h1, .via-glass-dark h2, .via-glass-dark h3, .via-glass-dark h4,
[data-on-dark] h1, [data-on-dark] h2, [data-on-dark] h3, [data-on-dark] h4,
.vds-bs-promise h1, .vds-bs-promise h2, .vds-bs-promise h3, .vds-bs-promise h4 {
  color: inherit;
}
/* ===============================================================
   FIX SISTÊMICO · gradient text em containers escuros
   ===============================================================
   Quando um <em> dentro de h1-h4 está em container escuro (mesh navy,
   glass dark, on-dark, ou cards navy customizados), o gradient navy→
   navy-deep com -webkit-text-fill-color: transparent fica INVISÍVEL
   (texto escuro sobre fundo escuro).

   Solução: dentro desses containers, qualquer `em` ganha gradient
   white→gray-200 que contrasta corretamente. Specificity alta (3 níveis)
   pra sobrescrever a regra do componente.
   =============================================================== */
.via-mesh-navy :is(h1, h2, h3, h4) em,
.via-glass-dark :is(h1, h2, h3, h4) em,
[data-on-dark] :is(h1, h2, h3, h4) em,
.vds-bs-promise :is(h1, h2, h3, h4) em,
.vds-cnx-offer.featured :is(h1, h2, h3, h4) em,
.vds-wiz-aside :is(h1, h2, h3, h4) em,
.vds-st-overview :is(h1, h2, h3, h4) em,
.vds-faq-contact :is(h1, h2, h3, h4) em,
.vds-auth-card :is(h1, h2, h3, h4) em,
.vds-auth-card-2fa :is(h1, h2, h3, h4) em,
.vds-live-hero :is(h1, h2, h3, h4) em,
.vds-mm :is(h1, h2, h3, h4) em {
  background: linear-gradient(135deg, var(--via-white) 0%, rgba(255, 255, 255, 0.78) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: var(--via-white); /* fallback se gradient não suportado */
}
/* ── Fix sistêmico · clip do glifo itálico em gradient-text ──────────────
   `background-clip: text` pinta o gradiente só dentro da caixa inline do <em>.
   O glifo itálico inclina pra direita e seu traço final ("o", "t", "s"…)
   ultrapassa a borda da caixa em ~3–6px — região que o gradiente não pinta,
   então o último glifo aparece cortado. (Palavras terminadas em "." não mostram
   o bug: o ponto ocupa essa folga.) padding-right estende a caixa de pintura
   pra cobrir o overhang; margin-right negativo cancela 100% do deslocamento de
   layout (medido: texto seguinte move 0px). No-op visual em <em> sem gradiente. */
:is(h1, h2, h3, h4, h5) em,
:is(h1, h2, h3, h4, h5) i {
  padding-right: 0.16em;
  margin-right: -0.16em;
}
p { margin: 0; }
a { color: var(--via-navy); text-decoration: none; }
a:hover { text-decoration: underline; }
/* links crus (sem classe) · navy some no dark → azul claro legível */
[data-theme="dark"] a:not([class]) { color: #8FB8F6; }
/* =============================================================
   GLASS — light-first
   ============================================================= */
/* Light glass: white-tinted, used on gray-50 / gray-100 surfaces */
.via-glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.42) 100%);
  backdrop-filter: var(--via-blur-md);
  -webkit-backdrop-filter: var(--via-blur-md);
  border: 1px solid rgba(255,255,255,0.80);
  border-radius: var(--via-radius-lg);
  box-shadow: var(--via-shadow-glass-light);
}
.via-glass-strong {
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.58) 100%);
  backdrop-filter: var(--via-blur-lg);
  -webkit-backdrop-filter: var(--via-blur-lg);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--via-radius-lg);
  box-shadow: var(--via-shadow-glass-light);
}
/* Dark glass: used in the rare full-bleed navy moments (footer, CTA) */
.via-glass-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: var(--via-blur-md);
  -webkit-backdrop-filter: var(--via-blur-md);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--via-radius-lg);
  box-shadow: var(--via-shadow-glass-dark);
  color: var(--via-white);
}
/* Liquid pill — for status / announcement labels */
.via-liquid {
  background: linear-gradient(180deg, rgba(255,255,255,0.80), rgba(255,255,255,0.55));
  backdrop-filter: var(--via-blur-md);
  -webkit-backdrop-filter: var(--via-blur-md);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--via-radius-pill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 4px 16px rgba(10,31,59,0.08);
}
/* Dark: vidro branco hardcoded vira vidro escuro translúcido (senão estes
   utilitários viram blocos brancos berrantes no tema escuro) */
[data-theme="dark"] .via-glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .via-glass-strong {
  background: linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.05) 100%);
  border-color: rgba(255,255,255,0.14);
}
[data-theme="dark"] .via-liquid {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border-color: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 var(--via-edge-hi), 0 4px 16px rgba(0,0,0,0.3);
}
/* .vds-onlight · superfície SEMPRE clara (demos de vidro claro, peças que
   mostram fundo branco de propósito) · re-pina o texto pra escuro nos 2 temas
   senão o texto claro do dark fica branco-no-branco. */
.vds-onlight {
  --via-text-primary: var(--via-navy);
  --via-text-body: var(--via-gray-700);
  --via-text-muted: var(--via-gray-500);
  --via-text-soft: var(--via-gray-500);
  --via-text-faint: var(--via-gray-400);
}
/* =============================================================
   SURFACES
   ============================================================= */
.via-surface {
  background: var(--via-surface);
  border: var(--via-border-fine);
  border-radius: var(--via-radius-md);
}
.via-card {
  background: var(--via-white);
  border: var(--via-border-fine);
  border-radius: var(--via-radius-lg);
  padding: var(--via-space-6);
}
.via-card-dark {
  background: var(--via-navy);
  border-radius: var(--via-radius-lg);
  padding: var(--via-space-6);
  color: var(--via-white);
}
/* =============================================================
   TYPE UTILITIES
   ============================================================= */
.via-hero {
  font-family: var(--via-font-display);
  font-size: clamp(2.5rem, 6vw, var(--via-fs-hero));
  font-weight: 500;
  line-height: var(--via-lh-tight);
  letter-spacing: var(--via-ls-tighter);
  color: var(--via-text-primary);
}
.via-display {
  font-family: var(--via-font-display);
  font-size: clamp(2rem, 4.5vw, var(--via-fs-display));
  font-weight: 500;
  line-height: var(--via-lh-tight);
  letter-spacing: var(--via-ls-tighter);
  color: var(--via-text-primary);
}
.via-label {
  font-family: var(--via-font);
  font-size: var(--via-fs-label);
  font-weight: var(--via-fw-semibold);
  letter-spacing: var(--via-ls-label);
  text-transform: uppercase;
  color: var(--via-text-muted);
}
.via-wordmark {
  font-family: var(--via-font);
  font-weight: 300;
  letter-spacing: var(--via-ls-brand);
  text-transform: uppercase;
  color: currentColor;
}
/* ==============================================================
   VIVER DE IA · form-fields global
   --------------------------------------------------------------
   Estilos canônicos pra .via-field / .val / .lbl quando o markup
   é construído inline (sem usar o componente <Input> da library).

   Importado GLOBALMENTE via index.css. Antes esses estilos viviam
   em src/pages/components/form.css (lazy-loaded), o que causava
   bug quando o usuário aterrissava direto em /showcase/settings
   ou outras páginas que usam .via-field sem importar form.css.

   Resultado anterior: inputs caíam no default do browser e
   ficavam com bg dark (preto/cinza) em uma página light.

   Não substitui o componente <Input> da library — esse continua
   sendo o caminho preferido. Mas pra páginas de showcase que
   precisam de field com label + textarea + customização, esse
   CSS garante consistência editorial sem precisar importar nada.
   ============================================================== */
.via-field {
  position: relative;
  padding: 14px 18px;
  background: var(--via-glass-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--via-edge-hi);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    inset 0 -1px 0 var(--via-edge-lo),
    0 1px 0 0 rgba(10,31,59,0.04),
    0 8px 20px -8px var(--via-navy-10),
    0 3px 8px -3px var(--via-navy-06);
  transition: all 240ms cubic-bezier(.16, 1, .3, 1);
  isolation: isolate;
}
.via-field::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(260px 100px at 0% 0%, rgba(30,58,95,0.05), transparent 60%),
    radial-gradient(200px 80px at 100% 100%, rgba(10,31,59,0.03), transparent 60%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  transition: opacity 240ms cubic-bezier(.16, 1, .3, 1);
}
.via-field:hover:not(.disabled):not(.focused):not(:focus-within) {
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    inset 0 -1px 0 var(--via-edge-lo),
    0 12px 28px -10px var(--via-navy-14),
    0 4px 12px -4px var(--via-navy-08);
  transform: translateY(-1px);
}
.via-field:hover::before { opacity: 1; }
.via-field:focus-within,
.via-field.focused {
  border-color: var(--via-navy);
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    0 0 0 4px var(--via-navy-10),
    0 10px 24px -8px var(--via-navy-22),
    0 4px 10px -4px var(--via-navy-14);
}
.via-field .lbl {
  display: block;
  font-family: var(--via-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--via-text-muted);
  margin-bottom: 6px;
  transition: color 200ms;
}
.via-field:focus-within .lbl,
.via-field.focused .lbl { color: var(--via-text-primary); }
.via-field .val,
.via-field input.val,
.via-field textarea.val {
  width: 100%;
  font-family: var(--via-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--via-text-primary);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  resize: none;
  line-height: 1.5;
  letter-spacing: -0.008em;
}
.via-field textarea.val {
  min-height: 64px;
  font-weight: 400;
}
.via-field .val::placeholder {
  color: var(--via-text-muted);
  font-weight: 400;
  opacity: 0.7;
}
/* Error state */
.via-field.error {
  border-color: var(--via-danger);
  box-shadow:
    inset 0 1px 0 var(--via-edge-hi),
    0 0 0 4px rgba(184,58,58,0.12),
    0 6px 18px rgba(184,58,58,0.08);
}
.via-field.error .lbl { color: var(--via-danger); }
.via-field.error .val { color: var(--via-danger); }
/* Disabled state */
.via-field.disabled {
  background: linear-gradient(180deg, rgba(247,248,250,0.92), rgba(240,242,245,0.74));
  border-color: rgba(208,213,221,0.95);
  opacity: 0.65;
  cursor: not-allowed;
}
.via-field.disabled .val { cursor: not-allowed; }
*, *::before, *::after { box-sizing: border-box; }
html, body, #root {
  margin: 0;
  padding: 0;
  height: 100%;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--via-font);
  font-weight: 400;
  font-size: var(--via-fs-body);
  line-height: var(--via-lh-loose);
  color: var(--via-text-body);
  background: var(--via-bg);
}
#root { display: flex; flex-direction: column; min-height: 100%; }
::selection {
  background: rgba(10, 31, 59, 0.92);
  color: var(--via-white);
}
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }
/* ============================================
   Accessible focus rings · keyboard-only navigation
   Removes outline by default, adds navy ring only for :focus-visible
   ============================================ */
*:focus { outline: none; }
*:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--via-white),
    0 0 0 4px rgba(10, 31, 59, 0.5);
  border-radius: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--via-white),
    0 0 0 4px var(--via-navy-60);
}
/* On dark surfaces, focus ring uses a brighter navy layer */
.via-mesh-navy *:focus-visible,
.via-on-dark *:focus-visible,
[data-on-dark] *:focus-visible {
  box-shadow:
    0 0 0 2px var(--via-white),
    0 0 0 4px var(--via-navy-60);
}
/* ============================================
   Reduced motion respect
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
