/* ============================================
   RIAD PRO — Landing Page
   HTML5 + CSS puro, dark theme, mobile first
   ============================================ */

/* ---------- Variáveis CSS ---------- */
:root {
  --primary: #5E5FEF;
  --primary-glow: rgba(94, 95, 239, 0.35);
  --primary-subtle: rgba(94, 95, 239, 0.12);
  --primary-border: rgba(94, 95, 239, 0.4);
  --bg-dark: #0F1123;
  --bg-card: #16182E;
  --bg-elevated: #1C1E38;
  --bg-section: #13152A;
  --bg-footer: #0D0F1E;
  --text-primary: #F4F4F6;
  --text-secondary: #A0A0B0;
  --text-muted: #6B6B7B;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --navbar-height: 72px;
  --container-max: 1200px;
  --transition: 0.2s ease;
  --ecosystem-flash-duration: 22s;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Navbar flutuante (fixa no scroll) ---------- */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: var(--container-max);
  width: calc(100% - 48px);
  min-height: var(--navbar-height);
  border-radius: 999px;
  background: rgba(28, 30, 56, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(94, 95, 239, 0.08);
  transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar--scrolled {
  max-width: 560px;
  width: calc(100% - 96px);
}

.navbar__inner {
  max-width: 100%;
  margin: 0;
  padding: 0 28px;
  min-height: var(--navbar-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 140px;
}

.navbar__spacer {
  width: 140px;
  justify-self: end;
  pointer-events: none;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.navbar__toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}
.navbar__toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar.is-open .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar.is-open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}
.navbar.is-open .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__menu {
  display: none;
}

.navbar__logo-img {
  height: 36px;
  width: 140px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.navbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 28px;
}

.navbar__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.navbar__link:hover {
  color: var(--text-primary);
}

.navbar__link.is-active {
  color: var(--text-primary);
}

.navbar__cta {
  flex-shrink: 0;
}

/* Navbar sem botão CTA (só links) */
.navbar__inner:not(:has(.navbar__cta)) {
  gap: 24px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    box-shadow var(--transition), border-color var(--transition);
}

.btn--primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn--primary:hover {
  background-color: #6E6FFF;
  box-shadow: 0 0 28px var(--primary-glow);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
}

.btn--outline:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.btn--outline-light {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--outline-dark {
  background: #fff;
  color: var(--bg-dark);
  border: 1.5px solid rgba(94, 95, 239, 0.4);
}
.btn--outline-dark:hover {
  background: rgba(94, 95, 239, 0.08);
  border-color: var(--primary);
  color: var(--bg-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(24px + var(--navbar-height) + 24px) 24px 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-subtle), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 50%, rgba(94, 95, 239, 0.08), transparent 45%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(94, 95, 239, 0.06), transparent 40%);
  pointer-events: none;
}

/* Grid geométrico sutil no fundo (estilo ToDesktop) */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 95, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 95, 239, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero__content {
  margin-bottom: 56px;
}

.hero__headline {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero__headline-accent {
  position: relative;
  color: var(--primary);
  display: inline-block;
  box-shadow: 0 0 32px var(--primary-glow);
}

.hero__subheadline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Blocos de características (3 colunas, estilo ToDesktop) */
.hero__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
  text-align: left;
}

.hero__feature {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero__feature:hover {
  border-color: rgba(94, 95, 239, 0.2);
  box-shadow: 0 0 24px var(--primary-subtle);
}

.hero__feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--primary-subtle);
}

.hero__feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero__feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero__tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Ecossistema (estilo Olist) ---------- */
.ecosystem {
  background: var(--bg-dark);
}

.ecosystem__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.ecosystem__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ecosystem.is-in-view .ecosystem__title {
  opacity: 1;
  transform: translateY(0);
}

.ecosystem__diagram {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.ecosystem.is-in-view .ecosystem__diagram {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ecosystem__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

.ecosystem.is-in-view .ecosystem__lines {
  opacity: 1;
}

.ecosystem__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.5s ease 0.25s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
}

.ecosystem.is-in-view .ecosystem__center {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ecosystem__center-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Animação: fundo branco aparece e some em intervalo (efeito aleatório por delay) */
/* Flash dispara ao exibir o bloco (0%) e repete no meio do ciclo; transição lenta */
@keyframes ecosystemWhiteFlash {
  0% {
    background: rgba(255, 255, 255, 0.98);
    color: var(--bg-dark);
    --module-icon: var(--primary);
  }
  5% {
    background: rgba(255, 255, 255, 0.98);
    color: var(--bg-dark);
    --module-icon: var(--primary);
  }
  12% {
    background: rgba(94, 95, 239, 0.14);
    color: var(--text-primary);
    --module-icon: rgba(255, 255, 255, 0.9);
  }
  42% {
    background: rgba(94, 95, 239, 0.14);
    color: var(--text-primary);
    --module-icon: rgba(255, 255, 255, 0.9);
  }
  47% {
    background: rgba(255, 255, 255, 0.98);
    color: var(--bg-dark);
    --module-icon: var(--primary);
  }
  53% {
    background: rgba(255, 255, 255, 0.98);
    color: var(--bg-dark);
    --module-icon: var(--primary);
  }
  60% {
    background: rgba(94, 95, 239, 0.14);
    color: var(--text-primary);
    --module-icon: rgba(255, 255, 255, 0.9);
  }
  100% {
    background: rgba(94, 95, 239, 0.14);
    color: var(--text-primary);
    --module-icon: rgba(255, 255, 255, 0.9);
  }
}

.ecosystem__module {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(94, 95, 239, 0.14);
  border: 1px solid rgba(94, 95, 239, 0.35);
  border-radius: 999px;
  white-space: nowrap;
  transform: translate(-50%, -50%) scale(0.5);
  box-shadow:
    0 0 0 1px rgba(94, 95, 239, 0.2),
    0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease,
    opacity 0.45s ease;
  opacity: 0;
  /* Animação do flash só roda quando a seção está visível */
  animation: ecosystemWhiteFlash var(--ecosystem-flash-duration) ease-in-out infinite;
  animation-play-state: paused;
}

.ecosystem.is-in-view .ecosystem__module {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation-play-state: running;
}

/* Extração Inteligente não entra na animação — mantém cor diferente fixa */
.ecosystem__module--highlight {
  animation: none;
  background: rgba(94, 95, 239, 0.35);
  color: var(--text-primary);
  border-color: rgba(94, 95, 239, 0.5);
  box-shadow:
    0 0 0 1px rgba(94, 95, 239, 0.25),
    0 0 24px var(--primary-subtle);
}

/* Stagger na entrada: cada módulo aparece com um pequeno atraso */
.ecosystem__diagram > .ecosystem__module:nth-child(3) { transition-delay: 0.3s; }
.ecosystem__diagram > .ecosystem__module:nth-child(4) { transition-delay: 0.35s; animation-delay: 0s; }
.ecosystem__diagram > .ecosystem__module:nth-child(5) { transition-delay: 0.45s; animation-delay: 1s; }
.ecosystem__diagram > .ecosystem__module:nth-child(6) { transition-delay: 0.55s; animation-delay: 2.2s; }
.ecosystem__diagram > .ecosystem__module:nth-child(7) { transition-delay: 0.4s; animation-delay: 0.4s; }
.ecosystem__diagram > .ecosystem__module:nth-child(8) { transition-delay: 0.6s; animation-delay: 3.5s; }
.ecosystem__diagram > .ecosystem__module:nth-child(9) { transition-delay: 0.5s; animation-delay: 1.8s; }
.ecosystem__diagram > .ecosystem__module:nth-child(10) { transition-delay: 0.65s; animation-delay: 4.8s; }

/* Hover: zoom-in (mantém translate -50% -50%) */
.ecosystem.is-in-view .ecosystem__module:hover {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(94, 95, 239, 0.5);
  box-shadow:
    0 0 0 1px rgba(94, 95, 239, 0.35),
    0 0 20px var(--primary-subtle),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.ecosystem__module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--module-icon, rgba(255, 255, 255, 0.9));
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.ecosystem.is-in-view .ecosystem__module--highlight:hover {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 0 1px rgba(94, 95, 239, 0.4),
    0 0 28px var(--primary-glow),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.ecosystem__module--highlight .ecosystem__module-icon {
  color: rgba(255, 255, 255, 0.95);
}

/* Posições dos módulos (elipse ao redor do centro) */
.ecosystem__module[data-pos="top"] {
  left: 50%;
  top: 14%;
}

.ecosystem__module[data-pos="top-right"] {
  left: 76%;
  top: 28%;
}

.ecosystem__module[data-pos="right"] {
  left: 88%;
  top: 50%;
}

.ecosystem__module[data-pos="bottom-right"] {
  left: 76%;
  top: 72%;
}

.ecosystem__module[data-pos="bottom"] {
  left: 50%;
  top: 86%;
}

.ecosystem__module[data-pos="bottom-left"] {
  left: 24%;
  top: 72%;
}

.ecosystem__module[data-pos="left"] {
  left: 12%;
  top: 50%;
}

.ecosystem__module[data-pos="top-left"] {
  left: 24%;
  top: 28%;
}

/* ---------- Ecossistema: responsivo ---------- */
@media (max-width: 600px) {
  .ecosystem__diagram {
    max-width: 100%;
    min-height: 320px;
  }

  .ecosystem__center {
    width: 96px;
    height: 96px;
    font-size: 0.875rem;
  }

  .ecosystem__module {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .ecosystem__module-icon svg {
    width: 14px;
    height: 14px;
  }
}

/* ---------- Automação com IA (estilo Olist/ERP) ---------- */
.automacao {
  background: var(--bg-card);
}

.automacao__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .automacao__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 100px 24px;
  }
}

.automacao__title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.automacao__title-accent {
  color: var(--primary);
  display: block;
}

@media (min-width: 600px) {
  .automacao__title-accent {
    display: inline;
  }
}

.automacao__subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
}

.automacao__list {
  list-style: none;
  margin-bottom: 32px;
}

.automacao__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.automacao__item:last-child {
  margin-bottom: 0;
}

.automacao__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(94, 95, 239, 0.35);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.automacao__check svg {
  width: 14px;
  height: 14px;
}

.automacao__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.automacao__visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .automacao__visual {
    min-height: 380px;
  }
}

/* Mockup desktop com vídeo */
.automacao__desktop {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.automacao__desktop-screen {
  width: 100%;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: #1a1a2e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16/10;
}

.automacao__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.automacao__desktop-base {
  width: 110%;
  max-width: 720px;
  height: 20px;
  background: linear-gradient(180deg, #2a2a3e 0%, #222234 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- Seção com abas (estilo Bloxs) ---------- */
.tabs-section {
  background: var(--bg-section);
}

.tabs-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.tabs-section__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.3;
}

.tabs-section__nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  max-width: 100%;
}

.tabs-section__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: center;
  line-height: 1.3;
  min-width: 0;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tabs-section__tab:first-child {
  border-radius: 10px 0 0 0;
}

.tabs-section__tab:last-child {
  border-radius: 0 10px 0 0;
}

.tabs-section__tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.tabs-section__tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(94, 95, 239, 0.12);
}

.tabs-section__tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.tabs-section__tab:hover .tabs-section__tab-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.tabs-section__tab.is-active .tabs-section__tab-icon {
  background: var(--primary-subtle);
  color: var(--primary);
}

@media (max-width: 640px) {
  .tabs-section__inner {
    padding-left: 0;
    padding-right: 0;
  }
  .tabs-section__title {
    padding-left: 24px;
    padding-right: 24px;
  }
  .tabs-section__panels {
    padding-left: 24px;
    padding-right: 24px;
  }
  .tabs-section__nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    overscroll-behavior-x: contain;
  }
  .tabs-section__nav::-webkit-scrollbar {
    display: none;
  }
  .tabs-section__tab {
    min-width: 150px;
    flex-shrink: 0;
    padding: 14px 12px 12px;
    font-size: 0.8125rem;
  }
  .tabs-section__tab:first-child {
    border-radius: 10px 0 0 0;
  }
  .tabs-section__tab:last-child {
    border-radius: 0 10px 0 0;
  }
  .tabs-section__tab-icon {
    width: 36px;
    height: 36px;
  }
  .tabs-section__tab-icon svg {
    width: 18px;
    height: 18px;
  }
}

.tabs-section__panels {
  position: relative;
  min-height: 320px;
}

.tabs-section__panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.tabs-section__panel.is-active {
  display: grid;
}

.tabs-section__panel.is-active .tabs-section__content,
.tabs-section__panel.is-active .tabs-section__visual {
  animation: tabPanelSlideUp 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tabs-section__panel .tabs-section__content,
.tabs-section__panel .tabs-section__visual {
  opacity: 0;
  transform: translateY(28px);
}

@keyframes tabPanelSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .tabs-section__panel.is-active {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

.tabs-section__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.tabs-section__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.tabs-section__item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.tabs-section__item:last-child {
  margin-bottom: 0;
}

.tabs-section__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(94, 95, 239, 0.35);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs-section__check svg {
  width: 14px;
  height: 14px;
}

.tabs-section__item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.tabs-section__item-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.tabs-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tabs-section__cta-arrow {
  font-size: 1.125rem;
  line-height: 1;
}

.tabs-section__visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .tabs-section__visual {
    min-height: 360px;
  }
}

.tabs-section__screen {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #fff;
}

.tabs-section__screen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: middle;
}

/* Zoom na imagem de auditoria para reduzir espaço em branco */
#panel-auditoria .tabs-section__screen-img {
  transform: scale(1.4);
  transform-origin: center center;
}

.tabs-section__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0f5 0%, #e8e8f0 100%);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- Seções vazias (estrutura) ---------- */
.section {
  padding: 80px 24px;
}

/* Fundo apenas nas seções vazias (dashboard, geracao, etc.) */
.section:not(.ecosystem):not(.automacao):not(.tabs-section) {
  background: var(--bg-card);
}

.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

#dashboard { }
#geracao { }
#modelos { }
#auditoria { }

/* ---------- Footer ---------- */
.footer {
  padding: 32px 24px;
  background: var(--bg-footer);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

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

.footer__logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Bloco final CTA ---------- */
.final-cta {
  position: relative;
  padding: 88px 24px 100px;
  text-align: center;
  background: var(--bg-card);
  overflow: hidden;
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(94, 95, 239, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(94, 95, 239, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(94, 95, 239, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  margin-bottom: 24px;
}

.final-cta__badge-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.final-cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.final-cta__subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.final-cta__buttons .btn {
  min-width: 180px;
}

@media (max-width: 600px) {
  .final-cta {
    padding: 64px 20px 80px;
  }
  .final-cta__buttons {
    flex-direction: column;
  }
  .final-cta__buttons .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- Hero: 3 colunas de features no desktop ---------- */
@media (min-width: 768px) {
  .hero__features {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ---------- Navbar: menu hambúrguer no mobile ---------- */
@media (max-width: 600px) {
  .navbar {
    top: 16px;
    width: calc(100% - 32px);
    position: fixed;
  }

  .navbar--scrolled {
    width: calc(100% - 48px);
    max-width: none;
  }

  .navbar__nav {
    display: none;
  }

  .navbar__spacer {
    display: none;
  }

  .navbar__toggle {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  .navbar__menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 16px;
    background: rgba(28, 30, 56, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    gap: 4px;
  }

  .navbar.is-open .navbar__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar__menu-link {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .navbar__menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
  }

  .navbar__menu-link:active {
    background: rgba(94, 95, 239, 0.15);
  }

  .navbar__menu-link.is-active {
    background: rgba(94, 95, 239, 0.15);
    color: var(--text-primary);
  }

  .navbar__inner {
    padding: 0 20px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__features {
    gap: 20px;
  }

  .hero__feature {
    padding: 20px;
  }
}
