/* ==========================================================================
   AD SYSTEM — Tecnologia • Gestão • Resultados
   SaaS moderno escuro: vidro, gradiente violeta/ciano, bento grid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #07080c;
  --bg-2: #0a0c11;

  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);

  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);

  --text: #f2f3f7;
  --text-2: #b9bccb;
  --muted: #8b8f9f;

  --violet: #8b5cf6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --green: #34d399;

  --grad: linear-gradient(135deg, #a78bfa 0%, #7c5cf6 40%, #6366f1 70%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.16));

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -34px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 24px 70px -30px rgba(124, 92, 246, 0.55);

  --font: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea { font: inherit; color: inherit; }

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05060a; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; border: 3px solid #05060a; }

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

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

.sr-skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #07080c;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}

.sr-skip:focus { top: 1rem; }

/* Atmosfera */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}

.aurora__blob--1 {
  width: 42rem; height: 42rem;
  top: -20rem; right: -10rem;
  background: radial-gradient(circle, rgba(124, 92, 246, 0.5), transparent 66%);
}

.aurora__blob--2 {
  width: 34rem; height: 34rem;
  top: 6rem; left: -14rem;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 68%);
}

.aurora__blob--3 {
  width: 40rem; height: 40rem;
  bottom: -22rem; left: 30%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.26), transparent 68%);
}

.aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* Fundo das páginas de erro */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(40rem 28rem at 78% -10%, rgba(124, 92, 246, 0.35), transparent 64%),
    radial-gradient(32rem 24rem at 8% 100%, rgba(34, 211, 238, 0.16), transparent 66%),
    var(--bg);
}

.bg-fx__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 70%);
}

.bg-fx__aurora {
  position: absolute;
  width: 34rem; height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
}

.bg-fx__aurora--1 { top: -16rem; right: -10rem; background: radial-gradient(circle, rgba(124, 92, 246, 0.4), transparent 68%); }
.bg-fx__aurora--2 { bottom: -18rem; left: -10rem; background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 68%); }

/* --------------------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.9rem); }
h3 { font-size: 1.06rem; letter-spacing: -0.018em; }

p { text-wrap: pretty; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .grad-text { color: #a78bfa; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.75rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.pill--glow {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}

/* --------------------------------------------------------------------------
   4. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), color 0.2s var(--ease);
}

.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary,
.btn--solid {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(124, 92, 246, 0.8);
}

.btn--primary:hover,
.btn--solid:hover {
  box-shadow: 0 14px 38px -14px rgba(124, 92, 246, 0.95);
  filter: brightness(1.06);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
}

.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.84rem; }
.btn--lg { padding: 0.9rem 1.5rem; font-size: 0.98rem; }
.btn--block { width: 100%; }

.i-wa { color: var(--green); }

/* --------------------------------------------------------------------------
   5. Navegação
   -------------------------------------------------------------------------- */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 12, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-shell.is-scrolled {
  background: rgba(6, 7, 11, 0.85);
  border-bottom-color: var(--border);
}

.nav-shell__inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.nav-shell__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--grad);
  transition: width 0.1s linear;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: none;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px -8px rgba(124, 92, 246, 0.9);
}

.logo__name { color: var(--text); }

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--text); background: var(--surface-2); }

.nav-shell__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { content: ""; top: -5px; left: 0; }
.nav-toggle span::after { content: ""; top: 5px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: -14rem;
  width: min(70rem, 120vw);
  height: 34rem;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 246, 0.28), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero__inner { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.badge svg { width: 13px; height: 13px; opacity: 0.6; transition: transform 0.25s var(--ease); }
.badge:hover { border-color: var(--border-2); color: var(--text); }
.badge:hover svg { transform: translateX(3px); }

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

.hero__title {
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1.35rem;
}

.hero__sub {
  max-width: 58ch;
  margin-inline: auto;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Mockup */
.mock {
  position: relative;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: 1000px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(20, 22, 30, 0.92), rgba(12, 13, 19, 0.96));
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
  text-align: left;
}

.mock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.5), transparent 40%, rgba(34, 211, 238, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mock__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mock__dots { display: flex; gap: 5px; }
.mock__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mock__url {
  flex: 1;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
  color: var(--muted);
}

.mock__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(52, 211, 153, 0.12);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green);
}

.mock__live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.mock__body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 320px;
}

.mock__side {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 1rem 0.7rem;
  border-right: 1px solid var(--border);
}

.mock__side-item {
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.mock__side-item.is-active {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(99, 102, 241, 0.25));
}

.mock__main { padding: clamp(0.9rem, 2vw, 1.35rem); }

.mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.mkpi {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
}

.mkpi small { font-size: 0.62rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.mkpi strong { font-size: clamp(0.95rem, 1.6vw, 1.15rem); font-weight: 600; letter-spacing: -0.02em; }
.mkpi em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
}
.mkpi .up { color: var(--green); }
.mkpi .down { color: #fbbf24; }

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 104px;
  margin-top: 0.9rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}

.mock__chart i {
  flex: 1;
  height: calc(var(--h) * 1%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #a78bfa, rgba(99, 102, 241, 0.35));
  transform-origin: bottom;
  animation: bar-grow 1s var(--ease) backwards;
}

.mock__chart i:nth-child(odd) { background: linear-gradient(180deg, #67e8f9, rgba(34, 211, 238, 0.28)); }
.mock__chart i:nth-child(1) { animation-delay: 0.05s; }
.mock__chart i:nth-child(2) { animation-delay: 0.1s; }
.mock__chart i:nth-child(3) { animation-delay: 0.15s; }
.mock__chart i:nth-child(4) { animation-delay: 0.2s; }
.mock__chart i:nth-child(5) { animation-delay: 0.25s; }
.mock__chart i:nth-child(6) { animation-delay: 0.3s; }

@keyframes bar-grow {
  from { transform: scaleY(0.12); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

.mock__rows { margin-top: 0.9rem; display: grid; gap: 0.4rem; }

.mrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.72rem;
  color: var(--text-2);
}

.mrow b {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
}

.mrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
}

.mrow__dot.ok { background: var(--green); }
.mrow__dot.warn { background: #fbbf24; }

/* --------------------------------------------------------------------------
   7. Segmentos
   -------------------------------------------------------------------------- */
.segments {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.segments__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding: 1.15rem 0;
}

.segments__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.segments__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.segments__list li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  color: var(--text-2);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   8. Seções
   -------------------------------------------------------------------------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.sec-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.sec-head--sticky { margin-bottom: 0; }

.sec-head__title { margin-bottom: 0.9rem; }

.sec-head__sub {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 50ch;
}

.sec-head--sticky .btn { margin-top: 1.4rem; }

/* --------------------------------------------------------------------------
   9. Bento
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bento > .card:nth-child(1) { grid-column: span 2; }
.bento > .card:nth-child(2),
.bento > .card:nth-child(3),
.bento > .card:nth-child(4),
.bento > .card:nth-child(5) { grid-column: span 1; }
.bento > .card:nth-child(6),
.bento > .card:nth-child(7),
.bento > .card:nth-child(8) { grid-column: span 2; }

.card {
  position: relative;
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(139, 92, 246, 0.16),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-card), 0 26px 60px -34px rgba(124, 92, 246, 0.6);
}

.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #c4b5fd;
}

.card__icon svg { width: 18px; height: 18px; }

.card h3 { margin-bottom: 0.4rem; }

.card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}

.card__art {
  margin-top: 1.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.card__art--bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 68px;
  padding: 0.6rem;
}

.card__art--bars i {
  flex: 1;
  height: calc(var(--h) * 1%);
  border-radius: 3px;
  background: linear-gradient(180deg, #a78bfa, rgba(99, 102, 241, 0.3));
}

.card__art--flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 0.7rem;
}

.card__art--flow span {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.65), rgba(34, 211, 238, 0.35));
}

/* --------------------------------------------------------------------------
   10. Números
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.stat {
  padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1rem, 2vw, 1.6rem);
  text-align: center;
  border-left: 1px solid var(--border);
}

.stat:first-child { border-left: 0; }

.stat__num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Processo
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}

.step {
  padding: clamp(1.2rem, 2.2vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 22px -12px rgba(124, 92, 246, 0.9);
}

.step h3 { margin-bottom: 0.4rem; }

.step p { font-size: 0.88rem; line-height: 1.65; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Sobre
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.about__media { position: relative; }

.about__frame {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 30px 80px -40px rgba(124, 92, 246, 0.5);
}

.about__frame img {
  width: 100%;
  aspect-ratio: 4 / 4.1;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.92);
}

.about__badge {
  position: absolute;
  left: 1rem;
  bottom: -1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(10, 11, 16, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.about__badge img {
  height: 26px;
  width: auto;
  padding: 3px 5px;
  background: #fff;
  border-radius: 6px;
}

.about__badge span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.checklist {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.checklist svg {
  width: 16px;
  height: 16px;
  flex: none;
  padding: 2px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 901px) {
  .sec-head--sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.faq { display: grid; gap: 0.6rem; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq__item:hover { border-color: var(--border-2); }
.faq__item[open] { background: var(--surface-2); border-color: rgba(139, 92, 246, 0.35); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.5);
}

.faq__a {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  animation: faq-in 0.3s var(--ease);
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   14. Contato
   -------------------------------------------------------------------------- */
.section--contact { position: relative; }

.section--contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: min(60rem, 110vw);
  height: 30rem;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 246, 0.16), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.contact__title { margin-bottom: 0.9rem; }

.contact__list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #c4b5fd;
}

.contact__ico svg { width: 16px; height: 16px; }

.contact__list div { display: grid; gap: 0.05rem; }

.contact__list small {
  font-size: 0.72rem;
  color: var(--muted);
}

.contact__list a,
.contact__list span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.contact__list a:hover { color: #c4b5fd; }

.form-card {
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 0.9rem;
}

.field { display: grid; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}

.req { color: #a78bfa; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: #6f7383; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--border-2); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
  background: rgba(0, 0, 0, 0.4);
}

.field textarea { resize: vertical; min-height: 6.5rem; }

.field select {
  appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b8f9f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.form-card .btn { margin-top: 1.15rem; }

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.form-note svg { width: 13px; height: 13px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}

.alert svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.alert--ok {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #6ee7b7;
}

.alert--err {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.32);
  color: #fca5a5;
}

/* --------------------------------------------------------------------------
   15. Rodapé
   -------------------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.foot__claim {
  font-size: 0.9rem;
  color: var(--muted);
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
}

.foot__grid h4 {
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.foot__links { display: grid; gap: 0.55rem; }

.foot__links a {
  width: fit-content;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.foot__links a:hover { color: var(--text); }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 0 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.foot__bottom a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   16. Flutuantes
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 95;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(22, 163, 74, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wa-float svg { width: 26px; height: 26px; }

.wa-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 40px -12px rgba(22, 163, 74, 0.9);
}

.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: calc(clamp(1rem, 2.5vw, 1.75rem) + 66px);
  z-index: 94;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(12, 13, 19, 0.9);
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  backdrop-filter: blur(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), visibility 0.25s;
}

.to-top svg { width: 15px; height: 15px; }
.to-top:hover { border-color: var(--border-2); color: var(--text); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* --------------------------------------------------------------------------
   17. Entrada
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Páginas de erro
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.error-page .eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
}

.code {
  margin-bottom: 0.75rem;
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 0.85rem;
}

.error-page p {
  color: var(--muted);
  max-width: 34rem;
  margin-inline: auto;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.9rem;
}

/* --------------------------------------------------------------------------
   19. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .card { grid-column: span 1 !important; }
  .bento > .card:nth-child(1),
  .bento > .card:nth-child(6) { grid-column: span 2 !important; }

  .faq-layout { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__frame img { aspect-ratio: 16 / 10; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-shell__end .btn { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: rgba(6, 7, 11, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
  }

  .nav.is-open { display: block; }

  .nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav a { display: block; padding: 0.75rem 0.85rem; font-size: 0.98rem; }

  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .mock__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock__kpis .mkpi:last-child { display: none; }
}

@media (max-width: 620px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: 1fr; }
  .bento > .card:nth-child(1),
  .bento > .card:nth-child(6) { grid-column: span 1 !important; }

  .form-grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }

  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
}

/* --------------------------------------------------------------------------
   20. Preferências e impressão
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav-shell,
  .wa-float,
  .to-top,
  .aurora,
  .bg-fx { display: none !important; }

  body { color: #000; background: #fff; }
}
