/* ==========================================================
   VERTEX — Estilo
   Off-white + verde-petróleo + esmeralda vibrante · fintech sério
   ========================================================== */

:root {
  --bg:        #F6F5F1;
  --bg-2:      #ECEAE3;
  --ink:       #0B1F1A;
  --ink-2:     #4A5C56;
  --line:      #DEDBD1;
  --emerald:   #17E8A6;
  --emerald-2: #0FCB90;
  --teal:      #0B3B32;
  --white:     #FFFFFF;
  --amber:     #FFB020;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(11,31,26,.06);
  --shadow:    0 16px 44px rgba(11,31,26,.10);
  --shadow-lg: 0 26px 70px rgba(11,31,26,.16);

  --container: 1200px;
  --gutter: 24px;

  --f-display: 'Sora', 'Inter', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'IBM Plex Mono', 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--teal); color: var(--bg); }
.section--gray { background: var(--bg-2); }
.section--ink { background: var(--ink); color: var(--bg); }

.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 60px);
}
.display--xl { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.035em; }
.display em { font-style: normal; color: var(--emerald-2); }
.section--dark .display em,
.section--ink .display em { color: var(--emerald); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--emerald);
  display: inline-block;
}
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-2);
  max-width: 620px;
  line-height: 1.6;
}
.section--dark .lede, .section--ink .lede { color: rgba(246,245,241,0.72); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #14332C; box-shadow: var(--shadow); }
.btn--emerald { background: var(--emerald); color: var(--ink); }
.btn--emerald:hover { background: var(--emerald-2); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost, .section--ink .btn--ghost { color: var(--bg); border-color: rgba(246,245,241,0.25); }
.section--dark .btn--ghost:hover, .section--ink .btn--ghost:hover { border-color: var(--emerald); }
.btn--large { padding: 18px 32px; font-size: 15.5px; }
.btn__arrow {
  display: inline-flex;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.btn--primary .btn__arrow, .btn--ghost .btn__arrow { background: var(--emerald); color: var(--ink); }
.btn--emerald .btn__arrow { background: var(--ink); color: var(--emerald); }

/* -------- Topbar -------- */
.topbar {
  background: var(--ink);
  color: rgba(246,245,241,0.8);
  padding: 10px 0;
  font-family: var(--f-mono);
  font-size: 12.5px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--emerald); display: inline-block; }

/* -------- Header -------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,245,241,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
.header__logo {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header__logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-size: 15px;
  font-weight: 800;
}
.header__nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.header__nav a {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background .18s ease;
  color: var(--ink-2);
}
.header__nav a:hover, .header__nav a.is-active { background: var(--bg-2); color: var(--ink); }
.header__actions { display: flex; gap: 10px; align-items: center; }
.header__menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--bg-2);
  align-items: center;
  justify-content: center;
}

/* -------- Hero -------- */
.hero {
  padding: 72px 0 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 64px;
}
.hero__title { margin-top: 18px; }
.hero__lede { margin-top: 20px; }
.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero__proof {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__proof-item {
  display: flex;
  flex-direction: column;
}
.hero__proof-num {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}
.hero__proof-label { font-size: 12.5px; color: var(--ink-2); }

.hero__panel {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero__panel::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(23,232,166,0.35), transparent 70%);
}
.hero__panel-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,245,241,0.55);
  margin-bottom: 18px;
  display: block;
}
.hero__panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(246,245,241,0.1);
}
.hero__panel-row:last-child { border-bottom: 0; }
.hero__panel-row-label { font-size: 13.5px; color: rgba(246,245,241,0.75); }
.hero__panel-row-value {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--emerald);
}
.hero__panel-bar {
  height: 6px;
  background: rgba(246,245,241,0.1);
  border-radius: 999px;
  margin-top: 24px;
  overflow: hidden;
}
.hero__panel-bar-fill {
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, var(--emerald-2), var(--emerald));
  border-radius: 999px;
}
.hero__panel-caption {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(246,245,241,0.55);
}

.hero__logos {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}
.hero__logos-label {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.hero__logos-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  opacity: .7;
}

/* -------- Section head -------- */
.section__head { margin-bottom: 48px; max-width: 680px; }
.section__head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
  flex-wrap: wrap;
}
.section__head h2 { margin-top: 12px; }

/* -------- Service cards -------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald);
  box-shadow: var(--shadow);
}
.service-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-card__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-card__desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.service-card__link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card:hover .service-card__link { color: var(--emerald-2); }

/* -------- Steps -------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.step {
  padding: 28px 24px 28px 0;
  border-top: 1.5px solid rgba(246,245,241,0.15);
  position: relative;
}
.step__num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--emerald);
  display: block;
  margin-bottom: 12px;
}
.step__title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step__desc { font-size: 14px; color: rgba(246,245,241,0.65); line-height: 1.5; }

/* -------- Differentials -------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diff-card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--emerald);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.diff-card__title { font-family: var(--f-display); font-size: 19px; font-weight: 700; }
.diff-card__desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* -------- Stats strip -------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats-strip__item {
  background: var(--bg);
  border: 1.5px solid var(--line);
  padding: 32px 24px;
}
.stats-strip__num {
  font-family: var(--f-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
}
.stats-strip__num span { color: var(--emerald-2); }
.stats-strip__label { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }

/* -------- Dual CTA (empresa / devedor) -------- */
.dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dual-cta__card {
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dual-cta__card--dark { background: var(--ink); color: var(--bg); }
.dual-cta__card--emerald { background: var(--emerald); color: var(--ink); }
.dual-cta__card h3 { font-family: var(--f-display); font-size: 26px; font-weight: 700; margin: 0; }
.dual-cta__card p { font-size: 14.5px; opacity: .8; line-height: 1.55; }
.dual-cta__card--dark p { color: rgba(246,245,241,0.75); }
.dual-cta__card--emerald p { color: rgba(11,31,26,0.75); }
.dual-cta__card .btn { align-self: flex-start; margin-top: 8px; }

/* -------- Page head -------- */
.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: 16px; }
.breadcrumb {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb__current { color: var(--ink); font-weight: 500; }

/* -------- Service detail list -------- */
.service-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.service-nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-nav a {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border: 1.5px solid transparent;
}
.service-nav a:hover { background: var(--bg-2); }
.service-nav a.is-active { background: var(--ink); color: var(--emerald); }

.service-block {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; margin-bottom: 0; }
.service-block__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-block h2 { font-size: 30px; }
.service-block__desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; margin-top: 14px; max-width: 640px; }
.service-block__points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.service-block__points li {
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: 12px;
}
.service-block__points li::before {
  content: '✓';
  color: var(--emerald-2);
  font-weight: 700;
  flex-shrink: 0;
}
.service-block__cta { margin-top: 24px; }

/* -------- About -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.about-grid p { font-size: 16px; color: var(--ink-2); line-height: 1.75; margin: 0 0 20px; }
.legal-box {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 8px;
}
.legal-box dl { display: grid; grid-template-columns: 1fr 2fr; gap: 10px 16px; margin: 0; }
.legal-box dt { font-size: 12px; color: var(--ink-2); font-family: var(--f-mono); }
.legal-box dd { font-size: 14px; margin: 0; font-weight: 500; }

/* -------- Negocie (devedor) -------- */
.negocie-hero {
  background: var(--ink);
  color: var(--bg);
  padding: 72px 0;
}
.negocie-hero .lede { color: rgba(246,245,241,0.75); }
.negocie-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.negocie-step {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.negocie-step__num {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.negocie-step h3 { font-family: var(--f-display); font-size: 17px; margin: 0 0 8px; }
.negocie-step p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* -------- Contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-2);
  border-radius: var(--radius);
}
.contact-info-item__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.contact-info-item span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.form { display: grid; gap: 16px; padding: 36px; background: var(--bg-2); border-radius: var(--radius-lg); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-content: center; }
.flash { padding: 16px 20px; border-radius: 14px; margin-bottom: 20px; font-size: 14px; }
.flash--ok { background: var(--emerald); color: var(--ink); }
.flash--err { background: #FF6B5A; color: var(--white); }

/* -------- CTA final -------- */
.cta-final {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
}
.cta-final__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------- Footer -------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 72px 0 0;
  margin-top: 60px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__logo {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.footer__logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--emerald);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.footer p { color: rgba(246,245,241,0.6); font-size: 13.5px; line-height: 1.6; margin: 0 0 8px; }
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--emerald);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: rgba(246,245,241,0.75); }
.footer ul a:hover { color: var(--emerald); }
.footer__legal { font-family: var(--f-mono); font-size: 12px; color: rgba(246,245,241,0.45); line-height: 1.6; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(246,245,241,0.45);
  gap: 20px;
  flex-wrap: wrap;
}

/* -------- Modal -------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11,31,26,0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--bg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__menu-btn { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .dual-cta { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-nav { position: static; flex-direction: row; overflow-x: auto; }
  .service-block__points { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .negocie-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .cta-final { padding: 48px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__proof { gap: 20px; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
}
