/* ============================================================
   VANTYX — Design System
   Sora (headings) · Inter (body) · JetBrains Mono (valores)
   ============================================================ */

:root {
  /* Primary */
  --primary-100: #E8E5FE;
  --primary-200: #C6BFFD;
  --primary-300: #A399FC;
  --primary-400: #8276FB;
  --primary-500: #6455FA;
  --primary-700: #4A3CE0;

  /* Navy / institutional */
  --navy-500: #4A5675;
  --navy-600: #2D3A5C;
  --navy-700: #1F2C4A;
  --navy-800: #15213C;
  --navy-900: #0F1A30;
  --black:     #0A0E1A;

  /* Neutrals */
  --off-white: #FAFBFD;
  --gray-50:   #F4F5F8;
  --gray-100:  #EEF0F5;
  --gray-200:  #E8EAF0;
  --gray-400:  #8A92A6;
  --gray-600:  #5C6478;

  /* States */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;
  --info:    #3B82F6;

  /* Gradients */
  --grad-primary: linear-gradient(120deg, #6455FA 0%, #4A3CE0 100%);
  --grad-hero:    linear-gradient(135deg, #6455FA 0%, #15213C 100%);
  --grad-soft:    linear-gradient(180deg, #FAFBFD 0%, #F1F0FE 100%);

  /* Type */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(21, 33, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(21, 33, 60, 0.08);
  --shadow-lg: 0 28px 64px rgba(36, 24, 120, 0.14);
  --shadow-purple: 0 22px 48px rgba(100, 85, 250, 0.28);

  /* Layout */
  --container: 1240px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--navy-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(64px, 8vw, 110px) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--primary-500);
  display: inline-block;
}
.eyebrow::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--primary-500);
  display: inline-block;
}
.eyebrow--light { color: var(--primary-200); }
.eyebrow--light::before { background: var(--primary-300); }
.eyebrow--light::after { background: var(--primary-300); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 18px 0 0;
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--gray-600);
  max-width: 60ch;
  margin-top: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 28px 56px rgba(100,85,250,.38); }
.btn-ghost {
  background: #fff;
  color: var(--navy-800);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--primary-300); color: var(--primary-700); }
.btn-on-dark {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.btn-on-dark:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-sm { padding: 11px 20px; font-size: .92rem; }

/* Botão de simulação com parceiro (Banco BV) */
.btn-partner {
  background: #fff;
  color: var(--navy-800);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 10px 24px 10px 14px;
  text-decoration: none;
}
.btn-partner:hover { transform: translateY(-3px); border-color: #002BAB; box-shadow: var(--shadow-md); }
.btn-partner img { width: 34px; height: 34px; flex-shrink: 0; }
.btn-partner .bp-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.btn-partner .bp-txt small { font-size: .7rem; font-weight: 500; color: var(--gray-400); letter-spacing: .03em; text-transform: uppercase; }
.btn-partner svg { width: 16px; height: 16px; color: var(--gray-400); }
.btn-partner:hover svg { color: #002BAB; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--primary-700);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- V watermark ---------- */
.v-mark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: var(--primary-500);
  opacity: .05;
}
.v-mark svg { width: 100%; height: 100%; display: block; }

/* ---------- Alert Bar ---------- */
.alert-bar {
  position: relative;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 48px 9px 16px;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  transition: max-height .3s ease, padding .3s ease, opacity .3s ease;
  overflow: hidden;
}
.alert-bar.hidden { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; pointer-events: none; }
.alert-bar-inner { display: flex; align-items: center; gap: 8px; }
.alert-bar-inner svg { width: 15px; height: 15px; flex-shrink: 0; color: #f5c842; }
.alert-bar-inner a { color: #f5c842; text-decoration: none; transition: opacity .2s; }
.alert-bar-inner a:hover { opacity: .8; }
.alert-bar-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: rgba(255,255,255,.6); transition: color .2s;
  display: grid; place-items: center;
}
.alert-bar-close:hover { color: #fff; }
.alert-bar-close svg { width: 14px; height: 14px; }

/* push header below alert bar */
body.has-alert-bar .site-header { top: var(--alert-bar-h, 38px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(250, 251, 253, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gray-200);
  padding: 12px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 34px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: .96rem;
  font-weight: 500;
  color: var(--navy-700);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--primary-500); transition: width .25s;
}
.nav-links a:hover { color: var(--primary-700); }
.nav-links a:hover::after { width: 100%; }
/* Dropdown menus */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.dd-arrow { transition: transform .25s; flex-shrink: 0; }
.has-dropdown:hover .dd-arrow { transform: rotate(180deg); }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
  padding: 10px 0;
  list-style: none;
  z-index: 100;
  opacity: 0;
  transition: opacity .2s;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top: none;
  border-bottom-color: #fff;
}
.has-dropdown:hover > .dropdown { display: block; opacity: 1; }
.dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: .9rem;
  font-weight: 450;
  color: var(--navy-700);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.dropdown li a::after { display: none; }
.dropdown li a:hover {
  background: var(--grad-soft);
  color: var(--primary-700);
}
.dropdown .dd-group {
  padding: 10px 20px 3px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-400);
  cursor: default;
  pointer-events: none;
  border-top: 1px solid var(--gray-100);
}
.dropdown .dd-group:first-child { border-top: none; padding-top: 6px; }
.sol-group-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-500);
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sol-group-label::after { content: ""; flex: 1; height: 1px; background: var(--gray-100); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 999;
  transition: transform .22s, box-shadow .22s;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}

/* ---------- Reveal animation (transform-only — never hides content if frozen/JS-less) ---------- */
.reveal { will-change: transform; }
html.js .reveal { transform: translateY(28px); }
@keyframes revealUp {
  from { transform: translateY(28px); }
  to   { transform: none; }
}
.reveal.in { animation: revealUp .72s cubic-bezier(.2,.8,.2,1) both; }
.reveal.in[data-delay="1"] { animation-delay: .08s; }
.reveal.in[data-delay="2"] { animation-delay: .16s; }
.reveal.in[data-delay="3"] { animation-delay: .24s; }
.reveal.in[data-delay="4"] { animation-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transform: none; }
  .reveal.in { animation: none; }
  html { scroll-behavior: auto; }
}
@media print {
  html.js .reveal { transform: none !important; }
  .reveal.in { animation: none !important; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: var(--gray-200);
  padding: 80px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer a { color: var(--gray-200); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.footer-logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-family: var(--font-body); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; font-size: .82rem; color: var(--primary-200); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: .95rem; color: rgba(255,255,255,.72); }
.footer-bottom {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: .88rem; color: rgba(255,255,255,.5);
  position: relative; z-index: 1;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.is-dark { background: var(--navy-900); color: rgba(255,255,255,.82); }
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark h4 { color: #fff; }
.is-soft { background: var(--grad-soft); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-logo img { height: 38px; }
  .has-dropdown:hover > .dropdown { display: none; opacity: 0; }
  .has-dropdown.open > .dropdown {
    display: block !important;
    opacity: 1 !important;
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--gray-50, #f7f8fa);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 0;
    margin-top: 4px;
  }
  .has-dropdown.open > .dropdown::before { display: none; }
  .dd-arrow { transition: transform .25s; }
  .has-dropdown.open > a .dd-arrow { transform: rotate(180deg); }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-primary { display: none; }
  .v-mark { width: min(55vw, 220px) !important; opacity: .035; }
}

/* ---------- Multi-select with tags ---------- */
.multi-wrap {
  position: relative;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  min-height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 6px 38px 6px 10px;
  transition: border-color .2s, box-shadow .2s;
}
.multi-wrap:focus,
.multi-wrap.open {
  border-color: var(--primary-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(100,85,250,.1);
}
.multi-tags-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  align-items: center;
  min-height: 30px;
}
.multi-placeholder {
  color: var(--gray-400);
  font-size: .95rem;
  pointer-events: none;
}
.multi-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-100);
  color: var(--primary-700);
  border-radius: 999px;
  padding: 3px 6px 3px 12px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}
.multi-tag-rm {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 18px;
  height: 18px;
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 50%;
  transition: background .12s;
}
.multi-tag-rm:hover { background: var(--primary-200); }
.multi-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  transition: transform .22s;
  pointer-events: none;
  flex-shrink: 0;
}
.multi-wrap.open .multi-chevron { transform: translateY(-50%) rotate(180deg); }
.multi-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(21,33,60,.12), 0 1px 4px rgba(21,33,60,.06);
  list-style: none;
  padding: 8px 0;
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}
.multi-wrap.open .multi-options { display: block; }
.multi-group {
  padding: 8px 16px 3px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.multi-option {
  padding: 9px 16px;
  font-size: .93rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-700);
  transition: background .12s, color .12s;
}
.multi-option:hover { background: var(--gray-50); color: var(--primary-700); }
.multi-option.sel { color: var(--primary-700); font-weight: 500; }
.multi-option::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  background: #fff;
  transition: background .15s, border-color .15s;
}
.multi-option.sel::before {
  background: var(--primary-500);
  border-color: var(--primary-500);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
