/* ============================================================
   VALLEY SISTEMAS — STYLE.CSS
   Design premium dark, tecnológico, inspirado em
   Stripe, Apple, Vercel, Linear, Framer, Supabase, Clerk, Webflow.
   ============================================================ */

/* ============================================================
   1. RESET & VARIÁVEIS GLOBAIS
   ============================================================ */
:root {
  --bg-deep: #050816;
  --bg-elev: #0F172A;
  --bg-elev-2: #111B33;

  --primary: #2563EB;
  --primary-2: #3B82F6;
  --accent: #7C3AED;

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --glass: rgba(15, 23, 42, 0.55);
  --glass-hi: rgba(15, 23, 42, 0.75);

  --grad-primary: linear-gradient(135deg, #3B82F6 0%, #7C3AED 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(124,58,237,0.16));
  --grad-stroke: linear-gradient(135deg, rgba(59,130,246,0.55), rgba(124,58,237,0.55));

  --shadow-sm: 0 4px 16px rgba(2, 6, 23, 0.35);
  --shadow-md: 0 18px 40px rgba(2, 6, 23, 0.5);
  --shadow-lg: 0 30px 80px rgba(2, 6, 23, 0.65);
  --glow-primary: 0 0 40px rgba(59, 130, 246, 0.35);
  --glow-accent: 0 0 60px rgba(124, 58, 237, 0.3);

  --font-display: 'Plus Jakarta Sans', 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', 'Manrope', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --t-fast: 0.18s ease;
  --t-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-2); }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border-radius: 10px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }


/* ============================================================
   2. BACKGROUND TECNOLÓGICO GLOBAL
   ============================================================ */
.tech-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at top, #0a1330 0%, #050816 55%, #020410 100%);
}

.tech-grid {
  position: absolute;
  inset: -50% -50% -50% -50%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  animation: gridDrift 60s linear infinite;
}

@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(-60px, -60px); }
}

.tech-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: orbFloat 20s ease-in-out infinite;
}

.tech-orb--1 { width: 600px; height: 600px; background: #2563EB; top: -200px; left: -150px; }
.tech-orb--2 { width: 500px; height: 500px; background: #7C3AED; top: 40%; right: -200px; animation-delay: -7s; }
.tech-orb--3 { width: 450px; height: 450px; background: #1d4ed8; bottom: -150px; left: 30%; animation-delay: -14s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.08); }
  66% { transform: translate(-40px, 40px) scale(0.95); }
}

.tech-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}


/* ============================================================
   3. TIPOGRAFIA & UTILIDADES
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

.section { position: relative; padding: 110px 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-2);
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  margin-bottom: 24px;
}

.section-eyebrow span {
  width: 6px; height: 6px;
  background: var(--primary-2);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.prose p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.1em;
}

.prose strong { color: var(--text); font-weight: 600; }


/* ============================================================
   4. BOTÕES PREMIUM
   ============================================================ */
.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #fff;
  padding: 14px 26px;
  background: var(--grad-primary);
  border: none;
  border-radius: 100px;
  transition: all var(--t-base);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
  opacity: 0;
  transition: opacity var(--t-base);
}

.btn-premium > * { position: relative; z-index: 1; }

.btn-premium:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-premium:hover::before { opacity: 1; }

.btn-premium.btn-lg { padding: 16px 30px; font-size: 1rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: all var(--t-base);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-2);
  transform: translateY(-2px);
}

.btn-ghost.btn-lg { padding: 16px 30px; font-size: 1rem; }


/* ============================================================
   5. TOPBAR — contato no topo
   ============================================================ */
.topbar {
  position: relative;
  z-index: 1051;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__item i { color: var(--primary-2); font-size: 0.95rem; }


/* ============================================================
   6. NAVBAR PREMIUM
   ============================================================ */
.navbar-premium {
  top: 38px;
  padding: 14px 0;
  background: transparent;
  transition: all var(--t-base);
  z-index: 1050;
}

.navbar-premium.scrolled {
  top: 0;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

/* Marca: container da logo no header */
.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  transition: transform var(--t-base);
}

.navbar-brand:hover { transform: translateY(-1px); }

/* Logo no header — PNG branco da Valley, sem hacks de blend */
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.22));
  transition: height var(--t-base), filter var(--t-base);
}

.navbar-premium.scrolled .brand-logo {
  height: 32px;
}

.navbar-brand:hover .brand-logo {
  filter: drop-shadow(0 4px 18px rgba(59, 130, 246, 0.5));
}

.navbar-toggler {
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.4rem;
  padding: 6px 10px;
}
.navbar-toggler:focus { box-shadow: none; }

.navbar-premium .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 100px;
  transition: all var(--t-fast);
  position: relative;
}

.navbar-premium .nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}


/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; }

.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.float-shape--1 { width: 350px; height: 350px; background: var(--primary); top: 10%; left: -100px; animation: orbFloat 18s ease-in-out infinite; }
.float-shape--2 { width: 280px; height: 280px; background: var(--accent); top: 50%; right: 5%; animation: orbFloat 22s ease-in-out infinite reverse; }
.float-shape--3 { width: 220px; height: 220px; background: #06b6d4; bottom: 5%; left: 35%; opacity: 0.3; animation: orbFloat 26s ease-in-out infinite; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 28px;
}

.hero-badge__dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-subtitle em {
  color: var(--text);
  font-style: italic;
  font-weight: 500;
}

.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; }

.hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-trust__item i { font-size: 1.1rem; color: var(--primary-2); }


/* ============================================================
   8. MOCKUP DO SISTEMA
   ============================================================ */
.hero-mockup, .actus-mockup { position: relative; perspective: 1500px; }

.mockup-window {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(9, 14, 33, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(59, 130, 246, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: perspective(1500px) rotateY(-6deg) rotateX(4deg);
  transition: transform var(--t-slow);
}

.hero-mockup:hover .mockup-window,
.actus-mockup:hover .mockup-window {
  transform: perspective(1500px) rotateY(-2deg) rotateX(1deg);
}

.actus-mockup .mockup-window { transform: perspective(1500px) rotateY(6deg) rotateX(4deg); }
.actus-mockup:hover .mockup-window { transform: perspective(1500px) rotateY(2deg) rotateX(1deg); }

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(2, 6, 23, 0.6);
  border-bottom: 1px solid var(--border);
}

.mockup-dot { width: 12px; height: 12px; border-radius: 50%; background: #334155; }
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-url {
  margin-left: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 5px 14px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 100px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.mockup-url i { color: #22c55e; font-size: 0.7rem; }

.mockup-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
}

.mockup-body--alt { grid-template-columns: 1fr; padding: 20px; }

.mockup-sidebar {
  padding: 20px 14px;
  background: rgba(2, 6, 23, 0.4);
  border-right: 1px solid var(--border);
}

.mockup-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 24px;
  padding: 0 8px;
}

.mockup-logo-mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--grad-primary);
  box-shadow: 0 0 10px var(--primary);
}

.mockup-menu { display: flex; flex-direction: column; gap: 4px; }

.mockup-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--t-fast);
}

.mockup-menu-item i { font-size: 0.95rem; }

.mockup-menu-item.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary-2);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.mockup-content { padding: 20px; }

.mockup-content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mockup-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.mockup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.mockup-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #22c55e;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
}

.mockup-pill i { font-size: 0.5rem; animation: pulse 2s ease-in-out infinite; }

.mockup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mockup-card {
  padding: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mockup-card-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.mockup-card-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 4px;
}

.mockup-card-trend {
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mockup-card-trend.up { color: #22c55e; }
.mockup-card-trend.down { color: #ef4444; }

.mockup-chart {
  padding: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mockup-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mockup-chart-tag {
  color: #22c55e;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 100px;
}

.mockup-chart-svg { width: 100%; height: 80px; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--glass-hi);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  animation: floatY 5s ease-in-out infinite;
  z-index: 2;
}

.float-card i {
  font-size: 1.5rem;
  color: var(--primary-2);
  filter: drop-shadow(0 0 10px var(--primary-2));
}

.float-card-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.float-card-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.float-card--1 { bottom: -30px; left: -20px; }
.float-card--2 { top: 20px; right: -30px; animation-delay: -2s; }
.float-card--3 { bottom: 30px; right: -20px; animation-delay: -3s; max-width: 240px; }
.float-card--3 .float-card-value { font-size: 0.8rem; line-height: 1.35; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: #fff;
  padding: 8px 14px;
  background: var(--grad-primary);
  border: none;
  border-radius: 100px;
}

.panel-list { display: flex; flex-direction: column; gap: 8px; }

.panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--t-fast);
}

.panel-row:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

.panel-row__icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9px;
  color: var(--primary-2);
  font-size: 1rem;
}

.panel-row__main { flex: 1; display: flex; flex-direction: column; }

.panel-row__main strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.panel-row__main span { font-size: 0.7rem; color: var(--text-dim); }

.panel-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.panel-status--ok { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.25); }
.panel-status--warn { background: rgba(234, 179, 8, 0.1); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.25); }
.panel-status--neutral { background: rgba(148, 163, 184, 0.08); color: var(--text-muted); border: 1px solid var(--border); }


/* ============================================================
   9. QUICK BENEFITS — 3 destaques
   ============================================================ */
.quick-benefits { padding: 60px 0 0; }

.qb-card {
  height: 100%;
  padding: 32px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--t-base);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.qb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.qb-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-md);
}

.qb-card:hover::before { transform: scaleX(1); }

.qb-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  background: var(--grad-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  font-size: 1.4rem;
  color: var(--primary-2);
  margin-bottom: 18px;
  transition: all var(--t-base);
}

.qb-card:hover .qb-card__icon {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--glow-primary);
}

.qb-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.qb-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}


/* ============================================================
   10. FEATURE CARDS (Soluções + Recursos)
   ============================================================ */
.feature-card {
  position: relative;
  height: 100%;
  padding: 32px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--t-base);
  overflow: hidden;
}

.feature-card--compact { padding: 26px 22px; }

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-md), 0 0 40px rgba(59, 130, 246, 0.18);
}

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

.feature-card > * { position: relative; z-index: 1; }

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--grad-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  font-size: 1.5rem;
  color: var(--primary-2);
  margin-bottom: 22px;
  transition: all var(--t-base);
}

.feature-card--compact .feature-card__icon {
  width: 48px; height: 48px;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.feature-card:hover .feature-card__icon {
  background: var(--grad-primary);
  color: #fff;
  transform: scale(1.05) rotate(-3deg);
  box-shadow: var(--glow-primary);
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card--compact h4 { font-size: 1.02rem; margin-bottom: 8px; }

.feature-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-card--compact p { font-size: 0.88rem; }


/* ============================================================
   11. QUEM SOMOS — Missão, Visão, Valores
   ============================================================ */
.visual-card {
  position: relative;
  height: 100%;
  min-height: 240px;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.18), transparent 50%),
    radial-gradient(circle at bottom left, rgba(124,58,237,0.16), transparent 50%),
    var(--glass-hi);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.visual-card__inner { position: relative; z-index: 1; }

.visual-card__bg-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14rem;
  color: var(--primary-2);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.visual-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}

.visual-card__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.mvv-card {
  height: 100%;
  padding: 32px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--t-base);
}

.mvv-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mvv-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.mvv-card__head i {
  font-size: 1.5rem;
  color: var(--primary-2);
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 12px;
}

.mvv-card__head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.mvv-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.mvv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mvv-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.mvv-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-2);
}


/* ============================================================
   12. INTEGRAÇÕES — CHIPS
   ============================================================ */
.integrations {
  margin-top: 70px;
  padding: 44px 36px;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,0.1), transparent 50%),
    var(--glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.integrations__head { margin-bottom: 28px; text-align: center; }

.integrations__head .section-eyebrow { margin-bottom: 14px; }

.integrations__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
}

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

.integration-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: all var(--t-base);
}

.integration-chip:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.integration-chip i { color: var(--primary-2); font-size: 1rem; }


/* ============================================================
   13. PROJETOS — MAPA
   ============================================================ */
.map-wrap {
  position: relative;
  padding: 32px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.map-svg { width: 100%; height: auto; }

.map-dot {
  fill: var(--primary-2);
  filter: drop-shadow(0 0 8px var(--primary-2));
  animation: dotPulse 2.5s ease-in-out infinite;
}

.map-dot:nth-child(2n) { animation-delay: -0.7s; }
.map-dot:nth-child(3n) { animation-delay: -1.4s; }
.map-dot:nth-child(5n) { animation-delay: -2s; fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}


/* ============================================================
   14. CTA FINAL
   ============================================================ */
.cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background:
    radial-gradient(circle at 30% 30%, rgba(59,130,246,0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(124,58,237,0.15), transparent 50%),
    var(--glass-hi);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(59,130,246,0.25), transparent 60%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}


/* ============================================================
   15. CONTATO
   ============================================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--t-base);
}

.contact-info__item:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateX(4px);
}

.contact-info__item > i {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 11px;
  color: var(--primary-2);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info__item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-info__item span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form */
.contact-form {
  padding: 36px 32px;
  background: var(--glass-hi);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: var(--shadow-md);
}

.form-label-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.form-label-premium i { color: var(--primary-2); font-size: 0.95rem; }

.form-control-premium {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: all var(--t-base);
  outline: none;
}

.form-control-premium::placeholder { color: var(--text-dim); }

.form-control-premium:focus {
  border-color: var(--primary-2);
  background: rgba(2, 6, 23, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea.form-control-premium { resize: vertical; min-height: 110px; }


/* ============================================================
   16. FOOTER PREMIUM
   ============================================================ */
.footer {
  position: relative;
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.6));
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  transition: transform var(--t-base);
}

.footer-brand:hover { transform: translateY(-2px); }

.footer-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.2));
}

.footer-about {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--t-base);
}

.footer-social a:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a { font-size: 0.93rem; color: var(--text-muted); }
.footer-list a:hover { color: var(--text); }

.footer-contact {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: anywhere; /* o e-mail longo não alarga a página no celular */
}

.footer-contact i {
  color: var(--primary-2);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom p { margin: 0; }

.footer-bottom__links { display: flex; gap: 24px; align-items: center; }

.footer-bottom__links a {
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom__links a:hover { color: var(--primary-2); }


/* ============================================================
   17. FLOATING WHATSAPP
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  z-index: 1040;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: all var(--t-base);
}

.floating-whatsapp:hover {
  color: #fff;
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.6);
}

/* ---------- Voltar ao topo (empilhado acima do WhatsApp) ---------- */
.back-to-top {
  --btt-size: 50px;
  position: fixed;
  right: calc(24px + (56px - var(--btt-size)) / 2);
  bottom: calc(24px + 56px + 14px);
  width: var(--btt-size); height: var(--btt-size);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.15rem;
  color: var(--primary-2);
  background: var(--glass-hi);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base),
              color var(--t-fast), box-shadow var(--t-base);
  overflow: hidden;
  isolation: isolate;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Preenchimento em degradê que surge no hover */
.back-to-top::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--grad-primary);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: -1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #fff;
  box-shadow: var(--shadow-md), var(--glow-primary);
}
.back-to-top:hover::before,
.back-to-top:focus-visible::before { opacity: 1; transform: scale(1); }

.back-to-top:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; }

.back-to-top .bi { position: relative; -webkit-text-stroke: 0.6px currentColor; transition: transform var(--t-base); }
.back-to-top:hover .bi { transform: translateY(-3px); }
.back-to-top:active { transform: scale(0.94); }

/* Anel de progresso da leitura */
.back-to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.back-to-top__ring circle { fill: none; stroke-width: 2.5; }
.back-to-top__track { stroke: var(--border-strong); }
.back-to-top__progress {
  stroke: url(#bttGrad);
  stroke-linecap: round;
  stroke-dasharray: 150.8;   /* 2πr, r = 24 */
  stroke-dashoffset: 150.8;
  transition: stroke-dashoffset 0.12s linear;
}

@media (max-width: 575.98px) {
  .back-to-top { --btt-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top, .back-to-top::before, .back-to-top .bi { transition: opacity 0.2s; }
}


/* ============================================================
   18. RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1199.98px) {
  .topbar { font-size: 0.78rem; padding: 6px 0; }
  .topbar__inner { justify-content: center; }
}

@media (max-width: 991.98px) {
  .topbar { display: none; }
  .navbar-premium { top: 0; }

  .navbar-premium {
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .navbar-premium .navbar-collapse {
    margin-top: 16px;
    padding: 16px;
    background: var(--glass-hi);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
  }

  .navbar-premium .nav-link { padding: 12px 16px !important; }

  .brand-logo { height: 32px; }

  .hero { padding: 130px 0 70px; }

  .section { padding: 70px 0; }

  .hero-mockup, .actus-mockup {
    margin-top: 40px;
    transform: scale(0.92);
  }

  .mockup-window { transform: none !important; }

  .float-card--1, .float-card--2, .float-card--3 { display: none; }

  .integrations { padding: 32px 22px; }

  .contact-form { padding: 28px 22px; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.85rem; }

  .brand-logo { height: 30px; }
  .footer-logo { height: 40px; }

  .cta-card { padding: 50px 24px; }

  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }

  .mockup-body { grid-template-columns: 1fr; min-height: auto; }
  .mockup-sidebar { display: none; }
  .mockup-cards { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .feature-card { padding: 24px 20px; }
  .feature-card--compact { padding: 22px 18px; }
  .qb-card { padding: 26px 22px; }
  .mvv-card { padding: 26px 22px; }
  .integration-chip { font-size: 0.8rem; padding: 8px 14px; }
}


/* ============================================================
   19. AOS — Sobrescritas suaves
   ============================================================ */
[data-aos] { will-change: transform, opacity; }


/* =====================================================================
   18. FORMULARIO DE CONTATO — consentimento, retorno e antispam
   ===================================================================== */

/* Armadilha antispam: fora da tela, invisivel e ignorada por leitores
   de tela. Nao usar display:none — alguns robos detectam e ignoram. */
.form-armadilha {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consentimento {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-dim);
  cursor: pointer;
}

.form-consentimento input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--primary-2);
  cursor: pointer;
}

.form-consentimento:hover span { color: var(--text); }

.form-retorno {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.form-retorno--ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.form-retorno--erro {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Campo reprovado na validacao */
.form-control-premium.campo-invalido {
  border-color: rgba(239, 68, 68, 0.6);
}

/* Botao durante o envio */
#botaoEnviar[disabled] {
  opacity: 0.6;
  cursor: progress;
}


/* =====================================================================
   20. TEMA CLARO — ativado por data-theme="light" no <html>
   O tema escuro continua sendo o padrão definido em :root.
   ===================================================================== */

/* Botão de alternância de tema (navbar) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  font-size: 1.1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--t-base);
}

.theme-toggle:hover {
  border-color: var(--primary-2);
  color: var(--primary-2);
  transform: rotate(-15deg);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

/* Mostra só o ícone do tema para o qual o clique vai trocar */
.theme-toggle .bi-sun { display: none; }
[data-theme="light"] .theme-toggle .bi-sun { display: inline; }
[data-theme="light"] .theme-toggle .bi-moon-stars { display: none; }

[data-theme="light"] {
  color-scheme: light;

  --bg-deep: #F5F7FB;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #EEF2F8;

  --primary-2: #2563EB;

  --text: #0B1220;
  --text-muted: #475569;
  --text-dim: #64748B;

  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-hi: rgba(255, 255, 255, 0.88);

  --grad-soft: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(124,58,237,0.12));

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.14);
  --glow-primary: 0 0 30px rgba(59, 130, 246, 0.25);
}

[data-theme="light"] ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #cbd5e1, #94a3b8); }

/* Fundo */
[data-theme="light"] .tech-background {
  background: radial-gradient(ellipse at top, #E6EDFC 0%, #F5F7FB 55%, #EEF1F7 100%);
}
[data-theme="light"] .tech-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
}
[data-theme="light"] .tech-orb { opacity: 0.16; }
[data-theme="light"] .float-shape { opacity: 0.2; }
[data-theme="light"] .float-shape--3 { opacity: 0.12; }

/* Botões */
[data-theme="light"] .btn-ghost,
[data-theme="light"] .theme-toggle { background: rgba(255, 255, 255, 0.7); }
[data-theme="light"] .btn-ghost:hover { background: #fff; }

/* Topbar e navbar */
[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .navbar-premium.scrolled { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .navbar-premium .nav-link:hover { background: rgba(15, 23, 42, 0.05); }

/* Logos: texto branco vira navy (mesma cor do logo-valley-navy.svg) */
[data-theme="light"] .brand-logo path[fill="#FFFFFF"],
[data-theme="light"] .footer-logo path[fill="#FFFFFF"] { fill: #101A29; }
[data-theme="light"] .brand-logo,
[data-theme="light"] .footer-logo { filter: none; }

/* Mockups do sistema */
[data-theme="light"] .mockup-window {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.97));
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.12);
}
[data-theme="light"] .mockup-bar { background: rgba(241, 245, 249, 0.95); }
[data-theme="light"] .mockup-url { background: #fff; }
[data-theme="light"] .mockup-sidebar { background: rgba(241, 245, 249, 0.6); }
[data-theme="light"] .mockup-card,
[data-theme="light"] .mockup-chart,
[data-theme="light"] .panel-row { background: #fff; }
[data-theme="light"] .panel-row:hover { background: #F8FAFC; }

/* Cores de status mais escuras para manter contraste no fundo claro */
[data-theme="light"] .mockup-pill,
[data-theme="light"] .mockup-chart-tag,
[data-theme="light"] .mockup-card-trend.up,
[data-theme="light"] .panel-status--ok { color: #15803D; }
[data-theme="light"] .mockup-card-trend.down { color: #B91C1C; }
[data-theme="light"] .panel-status--warn { color: #A16207; }

/* Integrações e formulário */
[data-theme="light"] .integration-chip { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .form-control-premium,
[data-theme="light"] .form-control-premium:focus { background: #fff; }
[data-theme="light"] .form-retorno--ok { color: #15803D; }
[data-theme="light"] .form-retorno--erro { color: #B91C1C; }

/* Rodapé */
[data-theme="light"] .footer { background: linear-gradient(180deg, transparent, rgba(226, 232, 240, 0.7)); }

@media (max-width: 991.98px) {
  [data-theme="light"] .navbar-premium { background: rgba(255, 255, 255, 0.88); }
}


/* =====================================================================
   21. HERO — ILUSTRAÇÃO ANIMADA (ato notarial digital)
   Estado padrão = cena completa (sem JS / movimento reduzido).
   A classe .is-playing, controlada pelo script, roda a sequência.
   ===================================================================== */
.hero-visual {
  --hv-paper: rgba(15, 23, 42, 0.94);
  --hv-paper-back: rgba(30, 41, 59, 0.55);
  --hv-paper-stroke: rgba(148, 163, 184, 0.2);
  --hv-line: rgba(148, 163, 184, 0.2);
  --hv-line-strong: rgba(148, 163, 184, 0.42);
  --hv-ink: #F8FAFC;
  --hv-ink-muted: #94A3B8;
  --hv-ring: rgba(96, 165, 250, 0.22);
  --hv-dot: rgba(96, 165, 250, 0.22);

  position: relative;
  container: hv / inline-size;
  max-width: 640px;
  margin-left: auto;
}

[data-theme="light"] .hero-visual {
  --hv-paper: #FFFFFF;
  --hv-paper-back: rgba(255, 255, 255, 0.55);
  --hv-paper-stroke: rgba(15, 23, 42, 0.08);
  --hv-line: #E2E8F0;
  --hv-line-strong: #CBD5E1;
  --hv-ink: #0B1220;
  --hv-ink-muted: #64748B;
  --hv-ring: rgba(37, 99, 235, 0.16);
  --hv-dot: rgba(37, 99, 235, 0.16);
}

.hv-stage { position: relative; aspect-ratio: 600 / 520; }
.hv-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------- Fundo ---------- */
.hv-dot-grid { fill: var(--hv-dot); }

.hv-ring circle { fill: none; stroke: var(--hv-ring); }
.hv-ring--a circle { stroke-width: 1.2; stroke-dasharray: 2 10; }
.hv-ring--b circle { stroke-width: 1; stroke-dasharray: 60 18; }
.hv-ring, .hv-orbit { transform-origin: 300px 262px; }
.hv-ring--a { animation: hvSpin 80s linear infinite; }
.hv-ring--b { animation: hvSpin 50s linear infinite reverse; }
.hv-orbit { animation: hvSpin 26s linear infinite; }
.hv-orbit-dot { fill: #3B82F6; filter: drop-shadow(0 0 6px #3B82F6); }
.hv-orbit-dot--alt { fill: #7C3AED; filter: drop-shadow(0 0 6px #7C3AED); }

@keyframes hvSpin { to { transform: rotate(360deg); } }

.hv-links path {
  fill: none;
  stroke: var(--primary-2);
  stroke-opacity: 0.45;
  stroke-width: 1.4;
  stroke-dasharray: 3 5;
  animation: hvDash 1.2s linear infinite;
}
@keyframes hvDash { to { stroke-dashoffset: -16; } }

.hv-packets circle { fill: #22D3EE; filter: drop-shadow(0 0 5px #22D3EE); }

.hv-particles circle {
  fill: var(--primary-2);
  opacity: 0;
  transform-box: fill-box;
  animation: hvRise 7s ease-in infinite;
}
.hv-particles circle:nth-child(2) { animation-delay: -1s; animation-duration: 8s; }
.hv-particles circle:nth-child(3) { animation-delay: -2.4s; }
.hv-particles circle:nth-child(4) { animation-delay: -3.1s; animation-duration: 9s; }
.hv-particles circle:nth-child(5) { animation-delay: -4.2s; }
.hv-particles circle:nth-child(6) { animation-delay: -5s; animation-duration: 8.5s; }
.hv-particles circle:nth-child(7) { animation-delay: -5.8s; }
.hv-particles circle:nth-child(8) { animation-delay: -6.5s; animation-duration: 7.5s; }

@keyframes hvRise {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 0.7; }
  100% { transform: translateY(-140px); opacity: 0; }
}

/* ---------- Documento ---------- */
.hv-float { animation: hvFloat 6s ease-in-out infinite; }
@keyframes hvFloat { 50% { transform: translateY(-7px); } }

.hv-paper {
  fill: var(--hv-paper);
  stroke: var(--hv-paper-stroke);
  filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.16)) drop-shadow(0 0 30px rgba(59, 130, 246, 0.12));
}
.hv-paper--back { fill: var(--hv-paper-back); filter: none; }

.hv-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  fill: var(--hv-ink);
}
.hv-sub { font-family: var(--font-body); font-size: 8px; fill: var(--hv-ink-muted); }
.hv-divider { stroke: var(--hv-line); stroke-width: 1; }

.hv-line { fill: var(--hv-line); transform-box: fill-box; transform-origin: left center; }
.hv-line--strong { fill: var(--hv-line-strong); }

.hv-hl { transform-box: fill-box; transform-origin: left center; }
.hv-hl rect { fill: rgba(59, 130, 246, 0.09); stroke: rgba(59, 130, 246, 0.35); stroke-width: 1; }
.hv-hl circle { fill: #16A34A; }
.hv-hl path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hv-sign {
  fill: none;
  stroke: url(#hvBrand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.hv-seal__outer { fill: var(--hv-paper); stroke: url(#hvBrand); stroke-width: 1.5; stroke-dasharray: 2.5 2; }
.hv-seal__check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hv-seal__text { font-family: var(--font-display); font-weight: 700; font-size: 5.6px; letter-spacing: 0.06em; fill: var(--primary-2); }

.hv-seal-ripple circle {
  fill: none;
  stroke: #7C3AED;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.hv-beam { opacity: 0; }

/* ---------- Sequência (uma vez por ciclo) ---------- */
.is-playing .hv-emblem,
.is-playing .hv-title,
.is-playing .hv-sub,
.is-playing .hv-divider { animation: hvFadeIn 0.5s ease both; }

.is-playing .hv-line { animation: hvWrite 0.45s cubic-bezier(0.4, 0, 0.2, 1) calc(300ms + var(--i) * 170ms) both; }

.is-playing .hv-beam { animation: hvScan 2.8s linear 1.5s both; }

.is-playing .hv-hl--1 { animation: hvMark 0.4s ease-out 2.65s both; }
.is-playing .hv-hl--2 { animation: hvMark 0.4s ease-out 2.95s both; }
.is-playing .hv-hl--3 { animation: hvMark 0.4s ease-out 3.2s both; }

.is-playing .hv-sign { animation: hvSign 1.5s ease-in-out 4.4s both; }

.is-playing .hv-seal { animation: hvStamp 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) 6s both; }
.is-playing .hv-seal-ripple circle { animation: hvRipple 1s ease-out 6.3s; }

.hero-visual.is-ending .hv-doc,
.hero-visual.is-ending .hv-done { opacity: 0; transition: opacity 0.6s ease; }

@keyframes hvFadeIn { from { opacity: 0; } }
@keyframes hvWrite { from { transform: scaleX(0); opacity: 0.4; } }
@keyframes hvMark { from { transform: scaleX(0.4); opacity: 0; } }
@keyframes hvSign { from { stroke-dashoffset: 1; } }
@keyframes hvStamp {
  0%   { transform: scale(2.4) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes hvRipple {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}
@keyframes hvScan {
  0%   { transform: translateY(90px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(430px); opacity: 0; }
}

/* ---------- Módulos (chips) ---------- */
.hv-chips { position: absolute; inset: 0; pointer-events: none; }

.hv-chip {
  position: absolute;
  width: 29%;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.5cqw 1.6cqw;
  background: var(--glass-hi);
  border: 1px solid var(--border-strong);
  border-radius: 2.4cqw;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  pointer-events: auto;
}

.hv-chip--bio  { left: 0;     top: 21%; }
.hv-chip--ia   { right: 0;    top: 15%; }
.hv-chip--icp  { right: 0;    top: 62%; }
.hv-chip--enot { left: 0;     top: 75%; }

.hv-chip__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.4cqw; height: 6.4cqw;
  font-size: 3.4cqw;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 1.8cqw;
  transition: all var(--t-base);
}

.hv-chip__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.hv-chip__label {
  font-size: max(9px, 1.55cqw);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-chip__status {
  display: flex;
  align-items: center;
  gap: 0.9cqw;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: max(11px, 2.05cqw);
  color: var(--text);
  white-space: nowrap;
}

.hv-chip__status [data-text] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.hv-chip__dot {
  flex: 0 0 auto;
  width: 1.2cqw; height: 1.2cqw;
  min-width: 6px; min-height: 6px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
}

.hv-chip__bar {
  display: block;
  height: 3px;
  margin-top: 0.8cqw;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.hv-chip__bar span { display: block; height: 100%; width: var(--hv-progress, 100%); background: var(--grad-primary); }

/* Estados controlados pelo script */
.hv-chip[data-state="idle"] .hv-chip__icon { background: var(--border); color: var(--text-dim); }
.hv-chip[data-state="idle"] .hv-chip__status { color: var(--text-dim); }
.hv-chip[data-state="idle"] .hv-chip__dot { background: var(--text-dim); box-shadow: none; }

.hv-chip[data-state="pending"] { border-color: rgba(59, 130, 246, 0.55); box-shadow: var(--shadow-md), 0 0 0 4px rgba(59, 130, 246, 0.1); }
.hv-chip[data-state="pending"] .hv-chip__dot { background: #F59E0B; box-shadow: 0 0 8px rgba(245, 158, 11, 0.7); animation: pulse 1s ease-in-out infinite; }

.hv-done {
  position: absolute;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: max(11px, 2cqw);
  color: #15803D;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-theme="dark"] .hv-done { color: #4ADE80; }
.hero-visual.is-playing:not(.is-done) .hv-done { opacity: 0; transform: translate(-50%, 8px); }

/* ---------- Telas estreitas: módulos viram uma grade abaixo da cena ---------- */
@container hv (max-width: 520px) {
  .hv-links, .hv-packets { display: none; }
  .hv-chips {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
  }
  .hv-chip { position: static; width: auto; gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .hv-chip__icon { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 10px; }
  .hv-chip__status { gap: 6px; }
  .hv-chip__bar { margin-top: 4px; }
  .hv-done { position: static; display: flex; width: fit-content; margin: 14px auto 0; transform: none; }
  .hero-visual.is-playing:not(.is-done) .hv-done { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hv-ring, .hv-orbit, .hv-float, .hv-links path, .hv-particles circle { animation: none; }
  .hv-packets { display: none; }
}

/* Título do hero um pouco menor para equilibrar com a ilustração */
.hero-title { font-size: clamp(2.25rem, 4.4vw, 3.6rem); }


/* ============================================================
   PARCEIROS — Voxel & Dasti, DINDICADORES e DSGA
   ============================================================ */
/* Cada logo tem duas versões; o tema decide qual aparece */
.partner-logo--dark { display: none; }
[data-theme="dark"] .partner-logo--light { display: none; }
[data-theme="dark"] .partner-logo--dark { display: block; }

.partner-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  background:
    radial-gradient(circle at top left, rgba(0, 134, 205, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(234, 91, 12, 0.08), transparent 55%),
    var(--glass-hi);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.partner-card__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 48px;
  border-right: 1px solid var(--border-strong);
}

.partner-card__brand img { width: 100%; max-width: 300px; height: auto; }

.partner-card__body h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.partner-card__body p { font-size: 1.02rem; margin-bottom: 18px; }

.partner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-2);
  text-decoration: none;
  transition: gap var(--t-fast), color var(--t-fast);
}
.partner-card__link:hover { gap: 12px; color: var(--accent); }

.partner-products-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.partner-products-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.product-card { display: flex; flex-direction: column; padding: 36px 32px; }

.product-card__logo {
  display: flex;
  align-items: center;
  height: 64px;
  margin-bottom: 26px;
}
.product-card__logo img { height: 100%; width: auto; max-width: 100%; }

.product-card h4 { font-size: 1.15rem; }
.product-card p { flex: 1; }

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.product-card__tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 100px;
}
.product-card__tags i { color: var(--primary-2); }

.product-card .partner-card__link { margin-top: 20px; }

@media (max-width: 767.98px) {
  .partner-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    text-align: center;
  }
  .partner-card__brand {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
  }
  .partner-card__brand img { max-width: 240px; }
  .partner-products-label { margin-top: 40px; }
  .product-card { padding: 28px 24px; }
  .product-card__logo { height: 52px; }
}

/* Celular: o gutter g-5 (3rem) passa do padding do container e gera rolagem lateral */
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}
