/* ============================================================
   custom.css — Máquina de Leads · identidade real do site
   Tema escuro · indigo→violeta · Outfit + Inter
   ============================================================ */

:root {
  --bg:        #0a0a0f;
  --surface:   #12121a;
  --surface-2: #0f0f15;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --primary:   #6366f1;   /* indigo */
  --accent:    #8b5cf6;   /* violeta */
  --emerald:   #10b981;   /* esmeralda (CTA/positivo) */
  --emerald-2: #059669;
  --danger:    #ef4444;
  --text:      #f1f5f9;
  --muted:     #94a3b8;
  --grad:      linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-em:   linear-gradient(135deg, #10b981 0%, #059669 100%);
  --radius:    18px;
  --shadow:    0 18px 50px rgba(0,0,0,0.55);
}

/* ---------- fundo (travado escuro) ---------- */
html, body, .reveal, .reveal-viewport { background: var(--bg) !important; }
body {
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(45% 45% at 12% 12%, rgba(99,102,241,0.16), transparent 60%),
    radial-gradient(45% 45% at 88% 88%, rgba(139,92,246,0.16), transparent 60%),
    radial-gradient(40% 40% at 80% 10%, rgba(16,185,129,0.10), transparent 60%),
    linear-gradient(180deg, #0c0c12 0%, #07070a 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: bgshift 22s ease-in-out infinite alternate;
}
@keyframes bgshift {
  from { background-position: 0% 0%, 100% 100%, 50% 0%, 0 0; }
  to   { background-position: 100% 100%, 0% 0%, 50% 100%, 0 0; }
}
/* grade de pontos */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 22%, transparent 82%);
          mask-image: radial-gradient(circle at 50% 42%, #000 22%, transparent 82%);
}
/* vinheta */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 240px rgba(0,0,0,0.75);
}
.reveal { position: relative; z-index: 1; }

/* ---------- moldura ---------- */
.app-frame {
  position: fixed; inset: 22px; z-index: 40; pointer-events: none;
  border: 1px solid rgba(139,92,246,0.25); border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), inset 0 0 60px rgba(99,102,241,0.05);
}
.frame-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 46px;
  display: flex; align-items: center; gap: 9px; padding: 0 18px;
  border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(6px);
}
.frame-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.frame-bar .dot:nth-child(1){ background:#ff5f56; }
.frame-bar .dot:nth-child(2){ background:#ffbd2e; }
.frame-bar .dot:nth-child(3){ background:#27c93f; }
.frame-title {
  margin: 0 auto; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-family: 'Outfit', sans-serif; font-weight: 600;
}
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); opacity: .5; }
.corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

/* ---------- slides base ---------- */
.reveal .slides section {
  display: flex !important; flex-direction: column; justify-content: center;
  height: 100%; box-sizing: border-box; padding: 60px 78px 64px;
  text-align: left; align-items: flex-start; gap: .65rem;
}
.reveal .slides section > img, .logo-top { align-self: center; max-width: 100%; }

/* ---------- tipografia ---------- */
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% auto; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.gradient-em {
  background: var(--grad-em); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: 'Outfit', sans-serif; color: var(--text); text-transform: none;
  margin: 0; line-height: 1.08; text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.reveal h1 { font-size: 3.0rem; font-weight: 800; letter-spacing: -1px; }
.reveal h2 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.5px; }
.reveal h3 { font-size: 1.2rem; font-weight: 700; }

.kicker {
  display: inline-block; font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; color: #c7c9ff;
  padding: .28rem .75rem; border: 1px solid rgba(99,102,241,0.4); border-radius: 999px;
  background: rgba(99,102,241,0.12);
}
.lead { font-size: 1.4rem; color: var(--text); line-height: 1.35; margin: .2em 0; }
.lead b { color: var(--accent); }
.dim { color: var(--muted); }
.accent { color: var(--accent); }
.em { color: var(--emerald); }
.reveal p { color: var(--muted); font-size: 1.05rem; line-height: 1.5; margin: .25em 0; }
.reveal p.small { font-size: .92rem; }
.reveal strong { color: var(--text); }
.reveal a { color: var(--accent); text-decoration: none; }

/* ---------- ícones (sprite embutido) ---------- */
.icon { width: 22px; height: 22px; color: var(--primary); flex: none; }
.icon.icon-accent { color: var(--accent); }
.icon.icon-em { color: var(--emerald); }
.icon.icon-alert  { color: var(--danger); }
.icon.icon-soft   { color: var(--muted); }

/* ---------- layout util ---------- */
.center { text-align: center; align-items: center !important; }
.row { display: flex; gap: 1.6rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: .8rem; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.8rem; align-items: center; width: 100%; }
.split.rev { grid-template-columns: 1fr 1.05fr; }

/* ---------- cartões ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: 14px; padding: 1.0rem 1.15rem;
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,0.5); box-shadow: 0 22px 60px rgba(0,0,0,.6), 0 0 30px rgba(139,92,246,0.12); }
.card h3 { margin: 0 0 .45rem; color: var(--accent); display: flex; align-items: center; gap: .5rem; }
.card h3 .icon { width: 20px; height: 20px; color: var(--primary); }
.card p { font-size: .98rem; margin: 0; }
.card.alert { border-color: rgba(239,68,68,0.45); }
.card.alert h3 { color: var(--danger); }
.card.ok { border-color: rgba(16,185,129,0.45); }
.card.ok h3 { color: var(--emerald); }

/* listas com ícone */
.feat { list-style: none; padding: 0; margin: .3rem 0; display: flex; flex-direction: column; gap: .55rem; }
.feat li { display: flex; align-items: flex-start; gap: .6rem; color: var(--muted); font-size: 1.02rem; }
.feat li .icon { margin-top: 2px; }
.feat li b { color: var(--text); font-weight: 600; }

/* destaque de stat */
.stat { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2.6rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- grids ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 560px; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,0.045); border: 1px solid var(--line);
  border-radius: 999px; padding: .38rem .72rem; font-size: .85rem; color: var(--muted);
}
.chip .icon { width: 15px; height: 15px; color: var(--muted); }

/* tabela comparação */
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: .6rem .65rem; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text); font-weight: 600; }
.compare thead th { font-family: 'Outfit', sans-serif; color: var(--text); font-size: .9rem; border-bottom: 1px solid rgba(139,92,246,0.4); }
.compare .col-core { background: rgba(16,185,129,0.10); color: var(--emerald); font-weight: 700; border-radius: 10px; }
.compare .no { color: var(--danger); }
.compare .yes { color: var(--emerald); }

/* planos */
.plan {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.1rem; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.plan.featured {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  transform: scale(1.05); animation: pulseGlow 3.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 30px rgba(99,102,241,0.18), var(--shadow); }
  50%     { box-shadow: 0 0 55px rgba(139,92,246,0.34), var(--shadow); }
}
.plan .price { font-family: 'Outfit', sans-serif; font-size: 1.8rem; color: var(--emerald); font-weight: 800; margin: .2rem 0; }
.plan .tag { display: inline-block; background: var(--grad); color: #fff; font-weight: 700; border-radius: 999px; padding: .2rem .65rem; font-size: .74rem; font-family:'Outfit',sans-serif; }
.plan h3 { color: var(--text); }

/* botões */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--grad-em); color: #04130d; font-weight: 700; font-family: 'Outfit', sans-serif;
  padding: .75rem 1.4rem; border-radius: 999px; text-decoration: none; font-size: 1.0rem;
  box-shadow: 0 10px 30px rgba(16,185,129,0.28); transition: transform .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 18px; height: 18px; color: #04130d; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(16,185,129,0.4); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }

/* ---------- SVG de ilustração (hero) ---------- */
.art-svg { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 16px 40px rgba(99,102,241,0.25)); }
.art-svg .node { fill: #1b1b27; stroke: var(--primary); stroke-width: 2; }
.art-svg .node.warn { stroke: var(--danger); }
.art-svg .hub { fill: url(#gHub); stroke: var(--accent); stroke-width: 2.5; }
.art-svg .link { stroke: rgba(148,163,184,0.45); stroke-width: 1.6; fill: none; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
.art-svg .link.lit { stroke: var(--primary); stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.6s ease forwards; }
.art-svg .ring { fill: none; stroke: var(--emerald); stroke-width: 2; opacity: .6; transform-origin: center; animation: ring 2.6s ease-out infinite; }
.art-svg .ring.r2 { animation-delay: .9s; }
.art-svg .ring.r3 { animation-delay: 1.8s; }
.art-svg .pulse { transform-origin: center; animation: nodePulse 2.4s ease-in-out infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes nodePulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.art-svg .floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.art-svg .bar { fill: url(#gBar); transform-box: fill-box; transform-origin: bottom; animation: grow 1s ease forwards; }
@keyframes grow { from { transform: scaleY(.82); opacity:.6; } to { transform: scaleY(1); opacity:1; } }
.art-svg .arrow { stroke: var(--emerald); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- mídia / avatar ---------- */
.iris {
  width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover;
  box-shadow: 0 0 26px rgba(139,92,246,0.4); animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.iris-sm { width: 54px; height: 54px; }
.logo-top { height: 80px; width: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.55)); }
.qr { width: 124px; height: 124px; background: #fff; padding: 8px; border-radius: 12px; box-shadow: var(--shadow); }
.slide-foot { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .78rem; letter-spacing: .5px; }

/* ---------- toolbar ---------- */
.md-toolbar {
  position: fixed; z-index: 45; right: 40px; bottom: 38px; display: flex; gap: 6px; align-items: center;
  background: rgba(12,12,18,0.92); border: 1px solid var(--line); padding: 7px; border-radius: 14px;
  backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.md-toolbar button { background: transparent; border: 0; color: var(--text); font-size: 17px; cursor: pointer; padding: 7px 10px; border-radius: 9px; transition: background .15s; }
.md-toolbar button:hover { background: rgba(255,255,255,0.1); }
.md-toolbar .counter { color: var(--muted); font-size: .82rem; align-self: center; padding: 0 10px; min-width: 56px; text-align: center; }

/* ---------- Íris apresentadora ---------- */
.iris-presenter {
  position: fixed; left: 46px; bottom: 40px; z-index: 44; pointer-events: none;
  display: flex; align-items: flex-end; gap: 12px;
  opacity: 0; transform: translateY(20px); transition: opacity .45s ease, transform .45s ease;
}
.iris-presenter.show { opacity: 1; transform: none; }
.iris-presenter .iris { pointer-events: auto; cursor: pointer; flex: none; }
.iris-presenter .bubble {
  max-width: 340px; background: rgba(12,12,18,0.94); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 14px; padding: .75rem .95rem;
  font-size: .95rem; color: var(--text); line-height: 1.4; backdrop-filter: blur(8px); box-shadow: var(--shadow);
  animation: rise .5s ease both;
}
.iris-presenter .bubble b { color: var(--accent); }

/* ---------- modal ---------- */
.lead-modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(4,4,8,0.78); backdrop-filter: blur(10px); transition: opacity .35s ease; padding: 20px;
}
.lead-modal.hide { opacity: 0; pointer-events: none; }
.lead-card {
  width: min(440px, 92vw); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .65rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(139,92,246,0.35); border-radius: 20px; padding: 1.8rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(139,92,246,.12); animation: rise .5s ease both;
}
.lead-card .iris { width: 70px; height: 70px; }
.lead-card h2 { font-size: 1.5rem; margin: 0; }
.lead-card p { margin: 0; }
.lead-card input {
  width: 100%; box-sizing: border-box; margin-top: .4rem; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--text);
  font-size: 1rem; font-family: 'Inter', sans-serif; text-align: center; outline: none;
}
.lead-card input:focus { border-color: var(--primary); }
.lead-roles { display: flex; gap: .6rem; width: 100%; margin-top: .3rem; }
.lead-roles button {
  flex: 1; padding: .7rem; border-radius: 12px; cursor: pointer; font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: .9rem; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  color: var(--text); transition: all .15s ease;
}
.lead-roles button:hover, .lead-roles button.active { border-color: var(--accent); background: rgba(139,92,246,0.14); color: #d9d4ff; }
.lead-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }

/* ---------- entrada ---------- */
.reveal .slides section > * { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
