/* ==========================================================================
   Velfy — Gateway de Pagamentos
   Design system + estilos globais
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Superfícies */
  --bg:            #06080c;
  --bg-soft:       #0a0e14;
  --surface:       #0d1219;
  --surface-2:     #121924;
  --surface-3:     #18202d;

  /* Traços */
  --border:        rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);

  /* Texto */
  --text:          #e9eef7;
  --text-soft:     #b6c1d2;
  --muted:         #8592a6;
  --faint:         #5d6a7e;

  /* Marca */
  --brand:         #a855f7;  /* acento claro: texto, icones, bordas */
  --brand-strong:  #7c3aed;  /* botoes solidos (texto branco) */
  --brand-soft:    #c084fc;  /* realces sobre fundo escuro */
  --brand-deep:    #631286;  /* roxo oficial da marca */
  --brand-ink:     #ffffff;
  --fuchsia:       #e879f9;
  --cyan:          #22d3ee;
  --pink:          #f472b6;
  --success:       #22c55e;  /* semantico: pago, aprovado, no ar */
  --amber:         #f7b955;
  --rose:          #f76a8c;

  --grad:      linear-gradient(135deg, var(--brand) 0%, var(--fuchsia) 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,.16), rgba(232,121,249,.16));

  /* Tipografia */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Métrica */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-md: 0 18px 40px -18px rgba(0,0,0,.75);
  --shadow-lg: 0 40px 90px -30px rgba(0,0,0,.9);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

::selection { background: rgba(168,85,247,.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1d2635; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3548; }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(168,85,247,.07);
  border: 1px solid rgba(168,85,247,.2);
  padding: 6px 12px;
  border-radius: 99px;
}
.eyebrow--fuchsia { color: #f0abfc; background: rgba(232,121,249,.09); border-color: rgba(232,121,249,.26); }
.eyebrow--cyan   { color: #7ee7f7; background: rgba(36,211,238,.08); border-color: rgba(36,211,238,.24); }

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

.section { position: relative; padding: clamp(72px, 11vw, 132px) 0; }
.section--tight { padding: clamp(56px, 8vw, 88px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  margin-top: 20px;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  margin-top: 18px;
  max-width: 62ch;
}
.section-head--center p { margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, box-shadow .25s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--brand-strong);
  color: var(--brand-ink);
  box-shadow: 0 10px 30px -12px rgba(168,85,247,.65);
}
.btn--primary:hover { background: #8b5cf6; box-shadow: 0 16px 40px -14px rgba(168,85,247,.8); }

.btn--ghost {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); }

.btn--lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Fundo decorativo ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-fx__orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.bg-fx__orb--1 { width: 620px; height: 620px; top: -260px; left: 50%; translate: -50% 0; background: rgba(168,85,247,.22); }
.bg-fx__orb--2 { width: 480px; height: 480px; top: 180px; right: -180px; background: rgba(232,121,249,.2); }
.bg-fx__orb--3 { width: 420px; height: 420px; top: 620px; left: -200px; background: rgba(94,17,128,.34); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.is-stuck {
  background: rgba(6,8,12,.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f4f4f5;
}
/* A marca e a onda roxa da Velfy; sobre fundo escuro ela recebe um
   degrade mais claro para nao sumir no preto. */
.logo__mark {
  width: 34px;
  flex: none;
  display: block;
}
.logo__mark > * { fill: url(#velfyGrad); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .18s, background-color .18s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__actions .btn { height: 40px; font-size: 14.5px; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  place-items: center;
  align-content: center;
}
.nav__toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle span + span { margin-top: 4.5px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(6,8,12,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--gutter) 26px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.nav.is-open .nav__mobile { display: block; }
.nav__mobile > a {
  display: block;
  padding: 13px 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav__mobile > a:hover { color: var(--text); }
.nav__mobile-cta { display: grid; gap: 10px; margin-top: 20px; }

@media (max-width: 1140px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: grid; }
  .nav.is-open { background: rgba(6,8,12,.92); backdrop-filter: blur(14px); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(120px, 16vw, 168px) 0 clamp(60px, 8vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.hero__title {
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
  margin-top: 24px;
}
.hero__sub {
  color: var(--text-soft);
  font-size: clamp(16px, 1.9vw, 19px);
  margin-top: 22px;
  max-width: 54ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 13.5px;
}
.hero__note li { display: flex; align-items: center; gap: 7px; }
.hero__note svg { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* ==========================================================================
   Janela de código (compartilhada)
   ========================================================================== */
.code-window {
  position: relative;
  background: linear-gradient(180deg, #0c1119 0%, #090d13 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.code-window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(168,85,247,.4), transparent 38%, transparent 65%, rgba(232,121,249,.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.code-window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b3444; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.code-window__file {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  margin-left: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.code-window__badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--brand);
  border: 1px solid rgba(168,85,247,.24);
  background: rgba(168,85,247,.07);
  padding: 3px 8px;
  border-radius: 6px;
  flex: none;
}
.code-window__body {
  padding: 18px 4px 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
pre.code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #c7d2e3;
  margin: 0;
  tab-size: 2;
}
pre.code .ln {
  display: inline-block;
  width: 44px;
  padding-right: 16px;
  text-align: right;
  color: #384558;
  user-select: none;
  flex: none;
}
.tok-key   { color: #d8b4fe; }
.tok-str   { color: #7dd3fc; }
.tok-num   { color: #fcd34d; }
.tok-fn    { color: #f0abfc; }
.tok-var   { color: #a5b4fc; }
.tok-com   { color: #4b5a70; font-style: italic; }
.tok-punct { color: #64748b; }
.tok-prop  { color: #e2e8f0; }

/* ---------- Abas ---------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.tabs button:hover { color: var(--text-soft); }
.tabs button[aria-selected="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.tabs button[aria-selected="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
}

.tab-panel[hidden] { display: none; }

/* ---------- Botão copiar ---------- */
.copy-btn {
  position: absolute;
  top: 56px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(13,18,25,.9);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s, color .2s, border-color .2s;
}
.code-window:hover .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.copy-btn.is-done { color: var(--success); border-color: rgba(34,197,94,.45); }
.copy-btn svg { width: 13px; height: 13px; }

/* ---------- Cartão flutuante de status ---------- */
.float-card {
  position: absolute;
  right: -14px;
  bottom: -30px;
  width: min(300px, 78%);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(15, 21, 30, .92);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.float-card__icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(34,197,94,.12);
  color: var(--success);
  border: 1px solid rgba(34,197,94,.3);
}
.float-card__icon svg { width: 19px; height: 19px; }
.float-card strong { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.float-card span { display: block; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.float-card__amount { margin-left: auto; font-weight: 600; font-size: 15px; color: var(--success); }

/* ---------- Ticker de logos / marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
  white-space: nowrap;
  transition: color .2s;
}
.marquee__item:hover { color: var(--text-soft); }
.marquee__item svg { width: 20px; height: 20px; opacity: .7; }

/* ---------- Números ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
  padding: clamp(24px, 3.4vw, 34px);
  text-align: center;
}
.stat__value {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* ==========================================================================
   Cartões genéricos
   ========================================================================== */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform .28s var(--ease), border-color .28s, background-color .28s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--brand);
  margin-bottom: 20px;
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ---------- Métodos de pagamento ---------- */
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method { display: flex; flex-direction: column; }
.method::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--m-color, var(--brand)), transparent);
  opacity: .55;
}
.method--pix    { --m-color: #a855f7; }
.method--boleto { --m-color: #22d3ee; }
.method--card   { --m-color: #f472b6; }
.method .card__icon { color: var(--m-color); background: color-mix(in srgb, var(--m-color) 12%, transparent); border-color: color-mix(in srgb, var(--m-color) 28%, transparent); }
.method__head { display: flex; align-items: center; gap: 12px; }
.method__tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--m-color);
  border: 1px solid color-mix(in srgb, var(--m-color) 30%, transparent);
  background: color-mix(in srgb, var(--m-color) 8%, transparent);
  padding: 3px 8px;
  border-radius: 6px;
}
.method__list { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.method__list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-soft); }
.method__list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--m-color); }
.method__rate {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
}
.method__rate b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--m-color, var(--text)); }
.method__rate span { font-size: 12.5px; color: var(--faint); }

/* ---------- Grade de recursos ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; }
.feature__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
}

/* ---------- Como funciona (passos) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: .12em;
}
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-top: 14px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.step__line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
}
.step__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: left;
  transition: transform .9s var(--ease);
}
:root.has-js .is-visible .step__line::after { transform: scaleX(1); }
.step:nth-child(2) .step__line::after { transition-delay: .18s; }
.step:nth-child(3) .step__line::after { transition-delay: .36s; }

/* ==========================================================================
   Layout dividido (texto + visual)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__visual { order: -1; }
.split__text h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 600;
  margin-top: 20px;
}
.split__text p { color: var(--muted); margin-top: 18px; font-size: clamp(15px, 1.6vw, 17px); }
.split__list { display: grid; gap: 14px; margin-top: 28px; }
.split__list li { display: flex; gap: 12px; font-size: 15px; color: var(--text-soft); }
.split__list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand); }
.split__list b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Mockup do painel — reproduz o app real, que é claro. É uma ilha de tema
   claro dentro da página escura, então as cores aqui são explícitas e não
   usam os tokens do site. Ocupa a largura toda da seção.
   ========================================================================== */
.app {
  --a-bg:       #ffffff;
  --a-canvas:   #fbfaff;
  --a-line:     #ece8f4;
  --a-ink:      #1c1230;
  --a-muted:    #6d7280;
  --a-purple:   #631286;
  --a-purple-2: #7c3aed;
  --a-soft:     #f4f0fb;

  background: var(--a-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--a-ink);
}

.app__topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--a-line);
}
.app__icon { width: 20px; height: 20px; flex: none; color: var(--a-muted); }
.app__crumb { font-size: 13.5px; font-weight: 500; }
.app__crumb::before { content: "|"; color: #d9d3e6; margin-right: 12px; }
.app__topbar .app__icon:last-child { margin-left: auto; }

.app__body { display: grid; grid-template-columns: 212px minmax(0, 1fr); }

.app__side { border-right: 1px solid var(--a-line); padding: 16px 12px; }
.app__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 8px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .09em;
}
.app__logo svg { width: 26px; flex: none; }
.app__logo svg > * { fill: var(--a-purple); }

.app__nav { display: grid; gap: 2px; }
.app__nav span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--a-muted);
  white-space: nowrap;
}
.app__nav span.is-active { background: var(--a-soft); color: var(--a-purple); font-weight: 600; }
.app__nav i { width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .4; flex: none; }
.app__nav span.is-active i { opacity: 1; }
.app__soon {
  margin-left: auto;
  font-style: normal;
  font-size: 9.5px;
  color: #9aa1ad;
  border: 1px solid var(--a-line);
  border-radius: 99px;
  padding: 1px 7px;
}

.app__main { background: var(--a-canvas); padding: 20px; min-width: 0; }
.app__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app__hi { font-size: 22px; font-weight: 700; letter-spacing: -.025em; color: var(--a-purple); }
.app__filter {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--a-line);
  border-radius: 9px;
  background: var(--a-bg);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--a-ink);
  white-space: nowrap;
}
.app__filter svg { width: 13px; height: 13px; color: var(--a-muted); }

.app__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.appcard {
  background: var(--a-bg);
  border: 1px solid var(--a-line);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 0;
}
.appcard--wide { grid-column: span 2; }
.appcard--full { grid-column: 1 / -1; }
.appcard--muted { opacity: .55; }

.appcard__label { font-size: 12px; font-weight: 500; color: var(--a-muted); }
.appcard__value {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -.035em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.appcard__note { font-size: 11.5px; color: var(--a-muted); margin-top: 7px; }
.appcard__btn {
  display: block;
  margin-top: 14px;
  padding: 10px;
  border-radius: 9px;
  background: var(--a-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* Card do total de vendas: valor à esquerda, quebra por método à direita */
.appcard--wide .appcard__row { display: flex; align-items: flex-start; gap: 20px; }
.appcard--wide .appcard__row > div:first-child { flex: 1; min-width: 0; }

.appsplit { display: grid; gap: 9px; flex: none; }
.appsplit div { border-left: 3px solid var(--a-purple); padding-left: 9px; }
.appsplit em { font-style: normal; display: block; font-size: 10.5px; color: var(--a-muted); }
.appsplit b { font-size: 12.5px; font-weight: 600; }

/* Taxas de aprovação */
.apprate { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.apprate__name { font-size: 11.5px; color: var(--a-muted); width: 44px; flex: none; }
.apprate__bar { flex: 1; height: 21px; border-radius: 6px; background: #edeaf3; position: relative; }
.apprate__bar b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  min-width: 38px;
  background: var(--a-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding-left: 9px;
  border-radius: 6px;
}
.apprate--zero .apprate__bar { background: transparent; }
.apprate--zero .apprate__bar b {
  position: static;
  width: auto;
  height: 21px;
  padding: 0 10px;
  background: #6b7280;
  border-radius: 6px;
}

/* Saúde da conta */
.apphealth__bars { display: flex; gap: 7px; margin-top: 13px; }
.apphealth__bars i { height: 5px; border-radius: 3px; flex: 1; }
.apphealth__bars i:nth-child(1) { background: #ef4444; }
.apphealth__bars i:nth-child(2) { background: #d97706; }
.apphealth__bars i:nth-child(3) { background: #10b981; }
.apphealth__score { display: flex; align-items: baseline; gap: 9px; margin-top: 13px; }
.apphealth__score b { font-size: 24px; font-weight: 700; letter-spacing: -.035em; }
.apphealth__score span { font-size: 11.5px; color: var(--a-muted); }
.apphealth__metrics { display: flex; gap: 14px; margin-top: 14px; }
.apphealth__metrics div { border-left: 3px solid var(--a-purple); padding-left: 8px; }
.apphealth__metrics em { font-style: normal; display: block; font-size: 10.5px; color: var(--a-muted); }
.apphealth__metrics b { font-size: 12.5px; font-weight: 600; }

/* Gráfico de vendas */
.appchart__head { display: flex; align-items: center; justify-content: space-between; }
.appchart__head strong { font-size: 13.5px; font-weight: 600; }
.appchart__head span { font-size: 11.5px; color: #10b981; font-weight: 600; }
.appchart__svg { width: 100%; height: auto; margin-top: 12px; display: block; }

@media (max-width: 980px) {
  .app__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appcard--wide, .appcard--full { grid-column: span 2; }
}


@media (max-width: 620px) {
  .app__side { display: none; }
  .app__body { grid-template-columns: 1fr; }
  .app__grid { grid-template-columns: 1fr; }
  .appcard--wide, .appcard--full { grid-column: auto; }
  .app__main { padding: 16px 14px; }
  .app__hi { font-size: 19px; }
  .appcard--wide .appcard__row { flex-direction: column; gap: 14px; }
  .appsplit { grid-template-columns: repeat(3, 1fr); }
}

/* Pontos abaixo do mockup */
.painel__points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 30px;
  margin-top: clamp(38px, 5vw, 58px);
}
.painel__points li { display: flex; gap: 11px; font-size: 14px; color: var(--text-soft); }
.painel__points svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--brand); }
.painel__points b { color: var(--text); font-weight: 600; }
.painel__points code { font-family: var(--mono); font-size: .86em; color: var(--brand-soft); }

@media (max-width: 980px) { .painel__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .painel__points { grid-template-columns: 1fr; } }

/* ==========================================================================
   Terminal / webhook
   ========================================================================== */
.terminal {
  background: #070a0f;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.terminal__body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  min-height: 346px;
  overflow-x: auto;
}
.terminal__line { white-space: pre; }
.terminal__prompt { color: var(--brand); }
.terminal__out { color: var(--muted); }
.terminal__ok { color: var(--success); }
.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--brand);
  vertical-align: -2px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ==========================================================================
   Integrações
   ========================================================================== */
.integrations { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 14px; }
.integration {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.025);
  transition: border-color .25s, transform .25s var(--ease), background-color .25s;
}
.integration:hover { border-color: var(--border-strong); transform: translateY(-3px); background: rgba(255,255,255,.045); }
.integration__logo {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  color: var(--text-soft);
}
.integration b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.integration span { font-size: 11.5px; color: var(--faint); font-family: var(--mono); }

/* ==========================================================================
   Segurança
   ========================================================================== */
.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec-card { text-align: left; }
.sec-card .card__icon { color: var(--cyan); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
}
.badge svg { width: 14px; height: 14px; color: var(--brand); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  padding: 22px 4px;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .2s;
}
.faq__q:hover { color: var(--brand); }
.faq__q svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex: none;
  color: var(--muted);
  transition: transform .3s var(--ease), color .2s;
}
.faq__item.is-open .faq__q svg { transform: rotate(45deg); color: var(--brand); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--muted); font-size: 15px; padding: 0 4px 24px; max-width: 68ch; }
.faq__a code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text-soft);
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(168,85,247,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 600;
  margin-top: 22px;
}
.cta p { color: var(--text-soft); margin-top: 18px; max-width: 56ch; margin-inline: auto; font-size: clamp(15px, 1.7vw, 18px); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.015));
  padding-top: clamp(48px, 7vw, 76px);
  margin-top: clamp(60px, 8vw, 100px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer__about p { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.footer__social a:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,.05); }
.footer__social svg { width: 17px; height: 17px; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.footer__col ul { display: grid; gap: 11px; margin-top: 18px; }
.footer__col a { font-size: 14px; color: var(--text-soft); transition: color .2s; }
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-size: 13px;
}
.footer__bottom a { color: var(--muted); transition: color .18s; }
.footer__bottom a:hover { color: var(--brand-soft); }

/* ==========================================================================
   Animações de entrada
   ========================================================================== */
/* O estado padrão é VISÍVEL. A animação só é armada depois que o main.js
   confirma que está rodando, adicionando .has-js no <html>. Se o script não
   carregar, falhar ao executar ou o JS estiver desligado, a página continua
   legível em vez de ficar em branco. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
:root.has-js .reveal { opacity: 0; transform: translateY(22px); }
:root.has-js .reveal.is-visible { opacity: 1; transform: none; }

/* Mesma lógica para a barra de progresso dos passos. */
:root.has-js .step__line::after { transform: scaleX(0); }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  :root.has-js .reveal { opacity: 1; transform: none; }
  :root.has-js .step__line::after { transform: scaleX(1); }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1080px) {
  .features, .methods, .steps { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 900px) {
  .hero { padding-top: 116px; }
  .hero__grid { grid-template-columns: 1fr; gap: 52px; }
  .hero__visual { max-width: 620px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__visual { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .float-card { right: 0; bottom: -22px; }
}

@media (max-width: 640px) {
  .features, .methods, .steps, .security { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__about { grid-column: 1 / -1; }
  .dash__kpis { grid-template-columns: 1fr; }
  .chart__bars { height: 96px; }
  .float-card { position: static; width: 100%; margin-top: 14px; animation: none; }
  .copy-btn { opacity: 1; top: auto; bottom: 10px; right: 12px; }
  .code-window__body { padding-bottom: 52px; }
  .hero__title { font-size: clamp(33px, 9vw, 44px); }
  pre.code { font-size: 12px; }
  pre.code .ln { width: 34px; padding-right: 10px; }
  .btn { width: 100%; }
  .hero__cta .btn, .cta__actions .btn { flex: 1 1 100%; }
  .marquee__track { gap: 34px; }
}

@media (max-width: 400px) {
  .code-window__badge { display: none; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Impressão ---------- */
@media print {
  .nav, .bg-fx, .marquee, .cta { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Páginas de conteúdo (políticas, termos)
   ========================================================================== */
.legal { padding: clamp(112px, 14vw, 152px) 0 clamp(60px, 8vw, 90px); }

.legal__head { max-width: 780px; margin-bottom: clamp(38px, 5vw, 56px); }
.legal__head h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 600;
  margin-top: 20px;
}
.legal__lead { color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); margin-top: 18px; max-width: 64ch; }
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.legal__grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--border);
  padding-left: 18px;
}
.legal__toc h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin-bottom: 14px;
}
.legal__toc ol { display: grid; gap: 9px; counter-reset: toc; }
.legal__toc a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  transition: color .18s;
}
.legal__toc a:hover { color: var(--brand-soft); }
.legal__toc a.is-current { color: var(--brand); font-weight: 500; }

/* Prosa */
.prose { max-width: 74ch; }
.prose > section { scroll-margin-top: 96px; }
.prose > section + section { margin-top: clamp(38px, 5vw, 54px); }
.prose h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 600;
  padding-top: 4px;
}
.prose h3 {
  font-size: clamp(16px, 1.8vw, 18px);
  letter-spacing: -.015em;
  font-weight: 600;
  margin-top: 28px;
  color: var(--text);
}
.prose p, .prose li { color: var(--text-soft); font-size: 15.5px; line-height: 1.75; }
.prose p { margin-top: 16px; }
.prose h2 + p, .prose h3 + p { margin-top: 14px; }
.prose ul, .prose ol { margin-top: 16px; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
  opacity: .75;
}
.prose ol { counter-reset: item; }
.prose ol li { position: relative; padding-left: 28px; counter-increment: item; }
.prose ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand);
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand); }
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text-soft);
}

.prose__note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  background: rgba(168,85,247,.05);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 16px 20px;
  margin-top: 22px;
}
.prose__note p { margin-top: 0; font-size: 14.5px; }
.prose__note p + p { margin-top: 10px; }

/* Campo a preencher antes de publicar */
.todo {
  background: rgba(247,185,85,.14);
  color: var(--amber);
  border: 1px dashed rgba(247,185,85,.45);
  border-radius: 5px;
  padding: 1px 7px;
  font-family: var(--mono);
  font-size: .86em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 22px;
    order: 2;
    margin-top: 46px;
  }
  .legal__toc ol { grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
}

@media (max-width: 560px) {
  .legal__toc ol { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Velfy Awards
   ========================================================================== */
.awards-hero { padding: clamp(112px, 14vw, 156px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.awards-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 600;
  margin-top: 22px;
}
.awards-hero p {
  color: var(--text-soft);
  font-size: clamp(16px, 1.9vw, 19px);
  margin: 20px auto 0;
  max-width: 60ch;
}
.awards-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* Trilha de faixas */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.tier {
  --t-a: #a855f7;
  --t-b: #7c3aed;
  --t-ink: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px 26px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.tier:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.tier::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--t-a), transparent);
}
.tier--scale { --t-a: #e879f9; --t-b: #c026d3; }
.tier--prime { --t-a: #f0b23a; --t-b: #b97d13; --t-ink: #2a1c00; }
.tier--elite { --t-a: #e2e8f2; --t-b: #98a5b8; --t-ink: #12161d; }

/* A placa */
.plate {
  position: relative;
  display: grid;
  place-items: center;
  gap: 7px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  padding: 18px 14px;
  background: linear-gradient(150deg, var(--t-a), var(--t-b) 78%);
  color: var(--t-ink);
  box-shadow: 0 18px 40px -22px var(--t-a);
}
.plate::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid currentColor;
  border-radius: 7px;
  opacity: .32;
  pointer-events: none;
}
.plate__mark { width: 34px; flex: none; }
.plate__mark > * { fill: currentColor; }
.plate__name {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
}
.plate__sub {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .72;
}

.tier__goal {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t-a);
  margin-top: 22px;
}
.tier__value {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 600;
  letter-spacing: -.035em;
  margin-top: 6px;
}
.tier__name { font-size: 15px; font-weight: 600; color: var(--text-soft); margin-top: 4px; }
.tier__desc { color: var(--muted); font-size: 14px; margin-top: 14px; flex: 1; }
.tier__prize {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
}
.tier__prize svg { width: 16px; height: 16px; flex: none; color: var(--t-a); }

/* Como funciona / regras */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--brand);
}
.rule h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin-top: 12px; }
.rule p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.fineprint {
  margin-top: clamp(34px, 4vw, 46px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  background: rgba(255,255,255,.02);
}
.fineprint h3 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.fineprint ul { display: grid; gap: 10px; margin-top: 16px; }
.fineprint li { position: relative; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.fineprint li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--faint);
}

@media (max-width: 1000px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
  .plate { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Integrações e parcerias
   ========================================================================== */
.integra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .integra { grid-template-columns: 1fr; } }

.integra-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform .3s var(--ease), border-color .3s;
}
.integra-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

/* Velfy ── parceiro */
.plug { display: flex; align-items: center; gap: 0; }
.plug__node {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
}
.plug__node--velfy svg { width: 26px; }
.plug__node--velfy svg > * { fill: url(#velfyGrad); }

/* Logo de parceiro sobre chip claro: as marcas da Zedy e da UTMify são
   escuras e sumiriam no fundo do site. O chip preserva a cor original
   delas em vez de inverter a marca de outra empresa. */
.plug__node--parceiro {
  background: #ffffff;
  border-color: rgba(255,255,255,.34);
  padding: 9px;
  overflow: hidden;
}
.plug__node--parceiro img { width: 100%; height: auto; display: block; }
.plug__wire {
  flex: none;
  width: 34px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 5px, transparent 5px 10px);
}

.integra-card__tag {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-soft);
}
.integra-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; margin-top: 10px; }
.integra-card > p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.integra-card ul { display: grid; gap: 11px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.integra-card li { display: flex; gap: 10px; font-size: 14px; color: var(--text-soft); }
.integra-card li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }

.integra-card__foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--success);
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.24);
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--soon { color: var(--amber); background: rgba(247,185,85,.1); border-color: rgba(247,185,85,.26); }

/* Faixa "e o resto do seu stack" */
.stackrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.stackrow span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  border-radius: 99px;
  padding: 7px 14px;
}

