/* ============================================================
   PERIVON — Design System
   Premium · Tecnológico · Empresarial · Mobile-first
   ============================================================ */

:root {
  --bg: #0a0c12;
  --bg-soft: #0e1119;
  --bg-elev: #121624;
  --card: #131726;
  --card-2: #171c2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f4f8;
  --muted: #9aa3b4;
  --muted-2: #6b7280;
  --accent: #6e5bff;
  --accent-2: #00c2ff;
  --grad: linear-gradient(120deg, #6e5bff 0%, #00c2ff 100%);
  --grad-soft: linear-gradient(120deg, rgba(110, 91, 255, 0.16), rgba(0, 194, 255, 0.16));
  --danger: #ff5c5c;
  --warn: #ffb020;
  --success: #2bd97c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection { background: rgba(110, 91, 255, 0.4); color: #fff; }

.container { width: min(var(--container), 92%); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.text-muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.78rem; }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; } .mt-5 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Section scaffolding ---------- */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow.no-line::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn .wa-icon { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.btn-sm .wa-icon { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(110, 91, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(110, 91, 255, 0.5); }

.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }

.btn-whatsapp { background: #22c55e; color: #fff; box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3); }
.btn-whatsapp:hover { background: #1fb256; box-shadow: 0 14px 40px rgba(34, 197, 94, 0.42); }

.btn-lg { padding: 18px 34px; font-size: 1.02rem; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 12, 18, 0.78);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; }
.brand .accent { color: var(--accent-2); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.15s ease; position: relative; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--grad);
  border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px; color: var(--text); }
.nav-toggle svg { display: block; }

@media (max-width: 1060px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 12, 18, 0.98); border-bottom: 1px solid var(--border);
    padding: 8px 6% 18px; transform: translateY(-130%); transition: transform 0.28s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .header-cta .nav-toggle { display: inline-flex; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #22c55e; color: #fff; font-weight: 600; font-size: 0.92rem;
  padding: 14px 20px; border-radius: 999px; box-shadow: 0 10px 34px rgba(34, 197, 94, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(34, 197, 94, 0.55); }
.wa-float .pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; position: relative; flex: none;
}
.wa-float .pulse-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6); animation: pulse 1.8s ease-out infinite;
}
.wa-float .wa-icon { width: 22px; height: 22px; flex: none; border-radius: 50%; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 640px) { .wa-float { right: 12px; bottom: 12px; padding: 13px 16px; } .wa-float span.wa-label { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(110, 91, 255, 0.22), transparent 60%),
    radial-gradient(800px 460px at 0% 20%, rgba(0, 194, 255, 0.14), transparent 60%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
.hero-proof b { display: block; color: var(--text); font-size: 1.35rem; font-family: var(--font-head); }

/* ---------- Pipeline (PROBLEMA → DADOS → ALERTA → AÇÃO → RESULTADO) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 3.2rem; }
.pipe-step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; position: relative; transition: transform 0.2s ease, border-color 0.2s ease;
}
.pipe-step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pipe-step .num { font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--accent-2); }
.pipe-step h4 { margin: 8px 0 4px; font-size: 0.98rem; }
.pipe-step p { font-size: 0.82rem; color: var(--muted); }
.pipe-arrow { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--accent-2); opacity: 0.7; z-index: 2; }
@media (max-width: 920px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipe-arrow { display: none; }
}
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card-hover:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--card-2); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.28); margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; stroke: var(--accent-2); }

/* ---------- Pillar / solution cards ---------- */
.pillar { display: grid; gap: 20px; }
.pillar-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pillar-card .tagline { font-size: 0.9rem; font-family: var(--font-head); font-weight: 700; color: var(--accent-2); }
.pillar-card h3 { font-size: 1.55rem; }
.pillar-card .meta { color: var(--muted); font-size: 0.9rem; }
.pillar-card ul { margin-top: 12px; display: grid; gap: 8px; }
.pillar-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.pillar-card ul li svg { flex: none; margin-top: 3px; stroke: var(--success); }
.pillar-card .btn { margin-top: auto; align-self: flex-start; }
.pillar-card .glow {
  position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%;
  filter: blur(60px); opacity: 0.25; pointer-events: none;
}

/* ---------- Method (P.E.R.I.V.O.N.) ---------- */
.method-list { display: grid; gap: 12px; }
.method-item { display: grid; grid-template-columns: 70px 1fr; gap: 20px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.method-item .letter {
  width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(110, 91, 255, 0.35);
}
.method-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.method-item p { color: var(--muted); font-size: 0.95rem; }
.method-item em { color: var(--accent-2); font-style: normal; font-weight: 600; }
@media (max-width: 620px) { .method-item { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Phrase / quote block ---------- */
.phrase-block {
  background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.25); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3.2rem); position: relative;
}
.phrase-block .quote-mark { font-family: var(--font-head); font-size: 3.4rem; line-height: 0.6; color: var(--accent); position: absolute; top: 22px; left: 24px; }
.phrase-block p { font-family: var(--font-head); font-size: clamp(1.15rem, 2.6vw, 1.65rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.phrase-block .sub { color: var(--muted); margin-top: 14px; font-size: 0.95rem; }

/* ---------- Journey / steps ---------- */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: j; }
.journey .step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.journey .step::before {
  counter-increment: j; content: "0" counter(j);
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--accent-2);
}
.journey .step h4 { margin: 12px 0 6px; font-size: 1.05rem; }
.journey .step p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } }

/* ---------- Faq ---------- */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; color: var(--text); text-align: left;
  padding: 20px 22px; font-size: 1rem; font-weight: 600; font-family: var(--font-head);
}
.faq-q .chev { transition: transform 0.25s ease; color: var(--accent-2); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }
.faq-a-inner p + p { margin-top: 10px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 12px;
  color: var(--text); padding: 13px 16px; font-size: 0.95rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 91, 255, 0.22);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 5px; }

.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.form-note { font-size: 0.78rem; color: var(--muted-2); margin-top: 12px; text-align: center; }
.form-note a { color: var(--accent-2); }

/* pill radio group */
.pill-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.pill-option {
  position: relative; cursor: pointer;
}
.pill-option input { position: absolute; opacity: 0; pointer-events: none; }
.pill-option span {
  display: block; text-align: center; padding: 13px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--muted);
  font-size: 0.88rem; font-weight: 500; transition: all 0.16s ease;
}
.pill-option input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(110,91,255,0.35); }

/* ---------- Calculator ---------- */
.calc-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.calc-tab {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: 0.9rem; transition: all 0.16s ease;
}
.calc-tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 24px rgba(110,91,255,0.35); }

.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }

.calc-result {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  position: sticky; top: calc(var(--header-h) + 20px);
}
@media (max-width: 900px) { .calc-result { position: static; } }

.scenario { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 12px; background: var(--bg-soft); }
.scenario .lbl { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.scenario .val { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; margin-top: 4px; }
.scenario.conservador .val { color: var(--warn); }
.scenario.provavel .val { color: var(--accent-2); }
.scenario.otimista .val { color: var(--success); }
.scenario .note { font-size: 0.78rem; color: var(--muted-2); margin-top: 4px; }
.premissas { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border-strong); font-size: 0.8rem; color: var(--muted-2); }
.premissas ul { margin-top: 8px; display: grid; gap: 5px; }
.premissas li { display: flex; gap: 8px; }
.premissas li::before { content: "—"; color: var(--accent-2); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--bg-soft); outline: none; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); cursor: pointer; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid #fff; }

/* ---------- Diagnostic wizard ---------- */
.wizard { max-width: 760px; margin-inline: auto; }
.wizard-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; }
.wp-bar { flex: 1; height: 5px; background: var(--bg-soft); border-radius: 5px; overflow: hidden; }
.wp-fill { height: 100%; width: 0; background: var(--grad); transition: width 0.35s ease; }
.wp-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; min-width: 90px; text-align: right; }

.wizard-step { display: none; animation: fadeUp 0.35s ease; }
.wizard-step.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.wizard-step .q-num { font-family: var(--font-head); color: var(--accent-2); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; }
.wizard-step h2 { margin: 8px 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.wizard-step .q-hint { color: var(--muted); margin-bottom: 22px; }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

/* diagnostic result cards */
.result-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 14px; }
.result-card h4 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin-bottom: 8px; }
.result-card h4 .badge { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-soft); }
.result-card h4 .badge svg { width: 15px; height: 15px; stroke: var(--accent-2); }
.result-card p { color: var(--muted); font-size: 0.94rem; }

.alert-card { border-color: rgba(255, 92, 92, 0.4); background: rgba(255, 92, 92, 0.06); }
.opportunity-card { border-color: rgba(43, 217, 124, 0.4); background: rgba(43, 217, 124, 0.05); }

/* ---------- Stats band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat .value { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 8px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); }
.timeline li { position: relative; margin-bottom: 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline h4 { font-size: 1.02rem; }
.timeline p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Tags / chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border-strong); font-size: 0.82rem; font-weight: 600; color: var(--text); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

/* ---------- Contact list ---------- */
.contact-rows { display: grid; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; transition: transform 0.15s ease, border-color 0.15s ease; }
.contact-row:hover { transform: translateX(4px); border-color: var(--border-strong); }
.contact-row .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--grad-soft); display: grid; place-items: center; flex: none; }
.contact-row .ic svg { width: 20px; height: 20px; stroke: var(--accent-2); }
.contact-row .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; }
.contact-row .val { font-weight: 600; }

/* ---------- Video cards ---------- */
.video-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16/9; background: var(--bg-soft); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: linear-gradient(140deg, rgba(110,91,255,0.25), rgba(0,194,255,0.15)); }
.video-poster .play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(110,91,255,0.5); transition: transform 0.2s ease;
}
.video-poster:hover .play { transform: scale(1.1); }
.video-poster .cat { position: absolute; top: 14px; left: 14px; }
.video-body { padding: 18px 20px; }
.video-body h4 { font-size: 1rem; }
.video-body .meta { font-size: 0.8rem; color: var(--muted-2); margin-top: 4px; }

/* ---------- Segment sections ---------- */
.segment { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--border); }
.segment:first-child { border-top: 1px solid var(--border); }
.segment:nth-child(even) { direction: rtl; }
.segment:nth-child(even) > * { direction: ltr; }
@media (max-width: 860px) { .segment { grid-template-columns: 1fr; gap: 24px; } .segment:nth-child(even) { direction: ltr; } }
.seg-map { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.seg-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.seg-card.problema .tag { color: var(--danger); }
.seg-card.impacto .tag { color: var(--warn); }
.seg-card.solucao .tag { color: var(--success); }
.seg-card p { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 520px) { .seg-map { grid-template-columns: 1fr; } }

/* ---------- Banner / CTA ---------- */
.cta-banner { position: relative; overflow: hidden; background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.3); border-radius: 26px; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(110,91,255,0.35), transparent 60%),
    radial-gradient(420px 220px at 80% 100%, rgba(0,194,255,0.3), transparent 60%);
}
.cta-banner h2 { max-width: 22ch; margin-inline: auto; }
.cta-banner p { color: var(--muted); max-width: 58ch; margin: 14px auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.8rem; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { color: var(--muted-2); opacity: 0.6; }

/* ---------- Page header (interior) ---------- */
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 300px at 70% -20%, rgba(110, 91, 255, 0.18), transparent 60%);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 34ch; }
.footer-col h5 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-2); }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-elev); border: 1px solid var(--border-strong); display: grid; place-items: center; transition: all 0.15s ease; }
.footer-socials a:hover { border-color: var(--accent); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; stroke: var(--muted); transition: stroke 0.15s ease; }
.footer-socials a:hover svg { stroke: var(--accent-2); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; color: var(--muted-2); font-size: 0.82rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: var(--accent-2); }

/* ---------- Prose (articles / legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 2.2rem 0 0.8rem; font-size: 1.5rem; }
.prose h3 { margin: 1.8rem 0 0.6rem; font-size: 1.15rem; }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; color: var(--muted); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 1.4rem 0; color: var(--text); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); font-family: var(--font-head); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 96px; right: 20px; z-index: 120; max-width: min(360px, 90vw);
  background: var(--card-2); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow); display: none; gap: 12px; align-items: flex-start;
}
.toast.show { display: flex; animation: fadeUp 0.3s ease; }
.toast .t-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-soft); display: grid; place-items: center; flex: none; }
.toast .t-ic svg { width: 14px; height: 14px; stroke: var(--accent-2); }
.toast .t-title { font-weight: 700; font-size: 0.9rem; }
.toast .t-msg { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .toast { right: 12px; bottom: 80px; } }

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--border); border: none; }
.relative { position: relative; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.badge-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.35); color: var(--accent-2); }

/* ============================================================
   V2 — Refinamentos (Inteligência Operacional)
   ============================================================ */

/* ---------- Hero visual (dashboard de operação) ---------- */
.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 980px) { .hero-layout { grid-template-columns: 1fr; } .hero-dash { order: -1; } }

.dash {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 16px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.dash::before {
  content: ""; position: absolute; inset: -40% auto auto -30%; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(110,91,255,0.22), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.dash-grid { display: grid; gap: 12px; position: relative; }
.dash-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
}
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.dash-live { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.dash-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(43,217,124,0.5); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(43,217,124,0.5); } 70% { box-shadow: 0 0 0 8px rgba(43,217,124,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,124,0); } }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.dash-kpi { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.dash-kpi .kpi-label { display: block; font-size: 0.68rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.dash-kpi .kpi-val { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin: 2px 0; }
.dash-kpi .kpi-delta { font-size: 0.68rem; font-weight: 600; }
.kpi-delta.up { color: var(--success); }
.kpi-delta.warn { color: var(--warn); }
.kpi-delta.alert { color: var(--danger); }

.dash-alert { border-color: rgba(255, 92, 92, 0.4); background: rgba(255, 92, 92, 0.06); }
.dash-alert .dash-alert-title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--danger); }
.dash-alert .dash-alert-msg { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.dash-alert .dash-alert-action { font-size: 0.78rem; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.dash-alert .dash-alert-action svg { width: 13px; height: 13px; stroke: var(--success); flex: none; }

.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-list { display: grid; gap: 8px; margin-top: 10px; }
.dash-item { display: flex; align-items: center; gap: 9px; font-size: 0.78rem; color: var(--muted); }
.dash-item .st { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dash-item .st.ok { background: var(--success); }
.dash-item .st.wait { background: var(--warn); }
.dash-item .st.off { background: var(--danger); }
.dash-item b { color: var(--text); font-weight: 600; }
.dash-spark { margin-top: 10px; }

/* ---------- Exemplo concreto (chips) ---------- */
.exemplo {
  display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  background: var(--bg-soft); border: 1px dashed var(--border-strong); border-radius: 10px;
  padding: 9px 12px; font-size: 0.8rem; color: var(--muted); line-height: 1.45;
}
.exemplo svg { width: 14px; height: 14px; stroke: var(--accent-2); flex: none; margin-top: 2px; }
.exemplo b { color: var(--text); font-weight: 600; }
.exemplo .ex-tag { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-2); font-weight: 700; margin-bottom: 2px; }

/* ---------- Etapas do método (timeline horizontal) ---------- */
.method-timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; }
.method-timeline::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 30px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0.35;
}
.mt-step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; transition: transform 0.2s ease, border-color 0.2s ease; }
.mt-step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.mt-step .mt-letter {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff;
  background: var(--grad); box-shadow: 0 6px 20px rgba(110,91,255,0.3); position: relative; z-index: 1;
}
.mt-step .mt-title { font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; display: block; }
.mt-step .mt-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.4; margin-top: 5px; }
@media (max-width: 1020px) { .method-timeline { grid-template-columns: repeat(3, 1fr); } .method-timeline::before { display: none; } }
@media (max-width: 620px) { .method-timeline { grid-template-columns: 1fr; } }

/* ---------- Resultados que podem ser medidos ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
@media (max-width: 1020px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
.ind {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 14px;
  display: grid; gap: 8px; min-height: 100%;
}
.ind .ind-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.28); display: grid; place-items: center; }
.ind .ind-ic svg { width: 18px; height: 18px; stroke: var(--accent-2); }
.ind .ind-label { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; line-height: 1.3; }
.ind .ind-note { font-size: 0.7rem; color: var(--muted-2); line-height: 1.4; }

/* ---------- Visual de solução (mockups) ---------- */
.ops-demo { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 16px; background: linear-gradient(160deg, rgba(255,255,255,0.02), transparent); position: relative; overflow: hidden; }
.ops-demo::before { content: ""; position: absolute; inset: -50% auto auto -30%; width: 220px; height: 220px; background: radial-gradient(circle, rgba(110,91,255,0.18), transparent 65%); filter: blur(8px); }
.ops-demo .demo-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; position: relative; }
.ops-demo .demo-body { position: relative; margin-top: 12px; display: grid; gap: 10px; }

/* ---------- Ajustes de hierarquia / espaço ---------- */
.section-head { margin-bottom: clamp(1.8rem, 4.5vw, 3rem); }
.btn-lg { padding: 18px 32px; font-size: 1.02rem; }
@media (max-width: 620px) { .btn-lg { padding: 16px 24px; font-size: 0.95rem; width: 100%; } .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; } }
p { text-rendering: optimizeLegibility; }

/* ---------- Selo "Inteligência Operacional" ---------- */
.eyebrow-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.3);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow-brand .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); animation: livePulse 2s infinite; }

/* ---------- Painel de "pontos cegos" (diagnóstico em destaque) ---------- */
.spotlight {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 44px); align-items: center;
  background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.3); border-radius: 24px; padding: clamp(28px, 5vw, 52px);
  position: relative; overflow: hidden;
}
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 240px at 15% 0%, rgba(110,91,255,0.25), transparent 60%), radial-gradient(420px 220px at 90% 100%, rgba(0,194,255,0.2), transparent 60%); }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight .sl-list { display: grid; gap: 10px; margin: 18px 0 22px; }
.spotlight .sl-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.spotlight .sl-item svg { width: 16px; height: 16px; stroke: var(--accent-2); flex: none; margin-top: 3px; }
.spotlight .sl-item b { color: var(--text); }
.spot-card { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 22px; }
.spot-card .sc-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.spot-card .sc-sub { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.spot-card .sc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; font-size: 0.82rem; }
.spot-card .sc-row .lbl { color: var(--muted-2); }
.spot-card .sc-row .val { font-family: var(--font-head); font-weight: 700; }
.spot-card .sc-row .val.warn { color: var(--warn); }
.spot-card .sc-row .val.up { color: var(--success); }

/* ---------- Demonstração visual "Na prática" (pilares) ---------- */
.ops-demo {
  background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden;
  font-family: var(--font-body); max-width: 860px; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
}
.ops-demo .ops-header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.ops-demo .ops-body { padding: 20px 22px; display: grid; gap: 16px; }
.ops-demo .ops-alert { display: flex; align-items: flex-start; gap: 12px; background: rgba(255,176,60,0.08); border: 1px solid rgba(255,176,60,0.35); border-radius: 14px; padding: 14px 16px; }
.ops-demo .ops-alert.alert-red { background: rgba(255,92,92,0.08); border-color: rgba(255,92,92,0.35); }
.ops-demo .ops-alert strong { font-family: var(--font-head); }
.ops-demo .ops-alert .ops-muted { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.ops-demo .ops-alert-ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: rgba(255,176,60,0.18); color: var(--warn); }
.ops-demo .ops-alert.alert-red .ops-alert-ic { background: rgba(255,92,92,0.18); color: #ff8f8f; }
.ops-demo .ops-tag { margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--success); background: rgba(61,220,150,0.12); border: 1px solid rgba(61,220,150,0.3); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ops-demo .ops-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .ops-demo .ops-gauges { grid-template-columns: 1fr; } }
.ops-demo .ops-gauge { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 0.78rem; color: var(--muted-2); }
.ops-demo .ops-gauge .ops-gv { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.ops-demo .ops-gauge .ops-gv.warn { color: var(--warn); }
.ops-demo .ops-gauge .ops-gv.ok { color: var(--success); }
.ops-demo .ops-rows { display: grid; gap: 8px; }
.ops-demo .ops-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 0.86rem; }
.ops-demo .ops-row .ops-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: #0a0c12; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ops-demo .ops-row .ops-status { margin-left: auto; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.ops-status.st-new { color: var(--accent-2); background: rgba(0,194,255,0.12); border: 1px solid rgba(0,194,255,0.3); }
.ops-status.st-ok { color: var(--success); background: rgba(61,220,150,0.12); border: 1px solid rgba(61,220,150,0.3); }
.ops-status.st-warn { color: var(--warn); background: rgba(255,176,60,0.12); border: 1px solid rgba(255,176,60,0.3); }
.ops-status.st-muted { color: var(--muted-2); background: rgba(148,157,184,0.12); border: 1px solid rgba(148,157,184,0.25); }
.ops-demo .ops-arrow { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.82rem; color: var(--muted-2); padding: 10px 0 2px; }
.ops-demo .ops-arrow .ops-chip { font-family: var(--font-head); font-weight: 700; background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.3); color: var(--accent-2); border-radius: 999px; padding: 4px 12px; }
.ops-demo .ops-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .ops-demo .ops-kpis { grid-template-columns: repeat(2, 1fr); } }
.ops-demo .ops-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ops-demo .ops-kpi .ops-gv { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.ops-demo .ops-kpi .ops-kl { font-size: 0.74rem; color: var(--muted-2); }
.ops-demo .ops-mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 56px; padding-top: 8px; }
.ops-demo .ops-bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(110,91,255,0.85), rgba(110,91,255,0.3)); }
.ops-demo .ops-bar.alt { background: linear-gradient(180deg, rgba(0,194,255,0.85), rgba(0,194,255,0.3)); }
.ops-demo .ops-bar.hl { background: linear-gradient(180deg, var(--success), rgba(61,220,150,0.35)); }

/* ---------- Logo com imagem própria ---------- */
.brand img.brand-logo { width: auto; height: 34px; max-width: 190px; object-fit: contain; }
.brand--has-logo .brand-word { display: none; }

/* ---------- Hero com vídeo de fundo ---------- */
.hero-video-wrap { min-height: 92svh; display: flex; align-items: center; }
.hero-video-wrap .container { position: relative; z-index: 2; width: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1.2s ease; background: #0a0c12; }
.hero-video.is-ready { opacity: 1; }
.hero-video.is-done { opacity: 0; }
.hero-video.is-failed { display: none; }
.hero-video-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,12,18,0.72) 0%, rgba(10,12,18,0.5) 45%, rgba(10,12,18,0.86) 100%); pointer-events: none; }
.hero-layout--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-layout--center h1, .hero-layout--center .lead { margin-inline: auto; }
.hero-layout--center .hero-actions, .hero-layout--center .hero-proof { justify-content: center; }
.hero-layout--center .eyebrow-brand { justify-content: center; }
.hero-content { will-change: opacity, transform; }
.hero-content.pre-video { opacity: 0; }
.hero-content.content-in { animation: heroContentIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes heroContentIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sinais de dinheiro sumindo ---------- */
.signal-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; max-width: 900px; margin: 0 auto; }
@media (max-width: 720px) { .signal-list { grid-template-columns: 1fr; } }
.signal-list .sl-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.signal-list .sl-item svg { width: 16px; height: 16px; stroke: var(--accent-2); flex: none; margin-top: 3px; }

/* ---------- Central de Inteligência e Gestão ---------- */
.central-panel { background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; max-width: 960px; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.central-panel .ops-header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.central-panel .ops-body { padding: 20px 22px; display: grid; gap: 18px; }
.central-panel .ops-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 720px) { .central-panel .ops-kpis { grid-template-columns: repeat(2, 1fr); } }
.central-panel .ops-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.central-panel .ops-kpi .ops-gv { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.central-panel .ops-kpi .ops-gv.up { color: var(--accent-2); }
.central-panel .ops-kpi .ops-gv.up.ok { color: var(--success); }
.central-panel .ops-kpi .ops-kl { font-size: 0.74rem; color: var(--muted-2); }
.central-opps { display: grid; gap: 8px; }
.central-opp { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 0.88rem; }
.central-opp .ops-status { flex: none; }

/* ---------- Tecnologia como ferramenta ---------- */
.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 760px; margin: 0 auto; }
.tech-chips .tag { font-size: 0.82rem; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--border-strong); padding: 8px 16px; border-radius: 999px; letter-spacing: 0.02em; text-transform: none; }

/* ============================================================
   ÁREA INTERNA — GERADOR DE PROPOSTAS COMERCIAIS
   Módulo isolado. Reaproveita o design system da Perivon.
   ============================================================ */
.int-topbar {
  position: sticky; top: 0; z-index: 80;
  background: rgba(10, 12, 18, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.int-topbar .int-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 62px; }
.int-topbar .brand { gap: 10px; }
.int-topbar .int-nav { display: flex; align-items: center; gap: 16px; font-size: 0.88rem; color: var(--muted); }
.int-topbar .int-nav a:hover { color: var(--text); }
.int-topbar .int-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.3); padding: 5px 10px; border-radius: 999px; }

/* ---------- Tela de bloqueio (senha) ---------- */
.lock-screen { min-height: 70vh; display: grid; place-items: center; padding: 40px 0; }
.lock-card { width: min(440px, 92%); background: var(--card); border: 1px solid var(--border-strong); border-radius: 20px; padding: 40px 36px; text-align: center; box-shadow: var(--shadow); }
.lock-card .lock-ic { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.3); display: grid; place-items: center; }
.lock-card .lock-ic svg { width: 24px; height: 24px; stroke: var(--accent-2); }
.lock-card h2 { font-size: 1.4rem; }
.lock-card p { font-size: 0.9rem; color: var(--muted); margin: 10px 0 22px; }
.lock-note { font-size: 0.74rem; color: var(--muted-2); margin-top: 18px; line-height: 1.5; }
.lock-error { color: var(--danger); font-size: 0.82rem; margin-top: 10px; min-height: 1.2em; }

/* ---------- Toolbar e listagem ---------- */
.app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.app-toolbar h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.app-toolbar .sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.app-search { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 16px; min-width: 240px; }
.app-search input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 0.9rem; }
.app-search svg { width: 16px; height: 16px; stroke: var(--muted-2); flex: none; }

.app-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip { background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 0.78rem; font-weight: 600; transition: all 0.15s ease; }
.filter-chip:hover { color: var(--text); }
.filter-chip.active { background: var(--grad-soft); border-color: rgba(110,91,255,0.45); color: var(--accent-2); }

.prop-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prop-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.prop-table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.prop-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.prop-table tbody tr { transition: background 0.15s ease; }
.prop-table tbody tr:hover { background: var(--bg-soft); }
.prop-table .p-num { font-family: var(--font-head); font-weight: 600; color: var(--accent-2); white-space: nowrap; }
.prop-table .p-client b { display: block; font-weight: 600; }
.prop-table .p-client span { display: block; font-size: 0.78rem; color: var(--muted-2); }
.prop-table .p-title { color: var(--muted); }
.prop-table .p-val { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.prop-table .p-actions { display: flex; gap: 6px; justify-content: flex-end; }
.prop-row-actions button, .prop-row-actions a { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--muted); border-radius: 9px; padding: 7px 10px; font-size: 0.78rem; transition: all 0.15s ease; }
.prop-row-actions button:hover, .prop-row-actions a:hover { color: var(--text); border-color: var(--accent); }
.prop-row-actions svg { width: 14px; height: 14px; stroke: currentColor; }

@media (max-width: 760px) {
  .prop-table thead { display: none; }
  .prop-table, .prop-table tbody, .prop-table tr, .prop-table td { display: block; width: 100%; }
  .prop-table tr { padding: 14px; border-bottom: 1px solid var(--border); }
  .prop-table td { border: none; padding: 4px 0; }
  .prop-table td::before { content: attr(data-label); display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; margin-bottom: 2px; }
  .prop-table .p-actions { justify-content: flex-start; margin-top: 8px; }
}

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { width: 44px; height: 44px; stroke: var(--muted-2); margin: 0 auto 14px; }
.empty-state h3 { font-size: 1.15rem; }
.empty-state p { color: var(--muted); font-size: 0.9rem; margin: 8px auto 20px; max-width: 380px; }

/* ---------- Status ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-rascunho { color: var(--muted); background: rgba(148,157,184,0.12); border: 1px solid rgba(148,157,184,0.3); }
.status-enviada { color: var(--accent-2); background: rgba(0,194,255,0.12); border: 1px solid rgba(0,194,255,0.3); }
.status-em_negociacao { color: var(--warn); background: rgba(255,176,60,0.12); border: 1px solid rgba(255,176,60,0.3); }
.status-aprovada { color: var(--success); background: rgba(61,220,150,0.12); border: 1px solid rgba(61,220,150,0.3); }
.status-recusada { color: var(--danger); background: rgba(255,92,92,0.12); border: 1px solid rgba(255,92,92,0.3); }
.status-expirada { color: var(--muted-2); background: rgba(148,157,184,0.08); border: 1px dashed rgba(148,157,184,0.35); }

/* ---------- Stepper do editor ---------- */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; overflow-x: auto; }
.step-item { display: flex; align-items: center; gap: 8px; flex: none; }
.step-item .s-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--muted-2); }
.step-item .s-lbl { font-size: 0.82rem; color: var(--muted-2); font-weight: 600; white-space: nowrap; }
.step-item.active .s-num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(110,91,255,0.4); }
.step-item.active .s-lbl { color: var(--text); }
.step-item.done .s-num { background: var(--grad-soft); border-color: rgba(110,91,255,0.4); color: var(--accent-2); }
.step-line { width: 22px; height: 1px; background: var(--border-strong); flex: none; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeUp 0.25s ease; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.step-actions .right { display: flex; gap: 10px; flex-wrap: wrap; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }

/* ---------- Seleção de modelos ---------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.model-option { position: relative; cursor: pointer; }
.model-option input { position: absolute; opacity: 0; pointer-events: none; }
.model-option .m-card { display: block; height: 100%; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 14px; padding: 16px 14px; text-align: center; transition: all 0.16s ease; }
.model-option .m-card b { display: block; font-family: var(--font-head); font-size: 0.9rem; margin-top: 8px; line-height: 1.25; }
.model-option .m-card span { display: block; font-size: 0.72rem; color: var(--muted-2); margin-top: 4px; }
.model-option .m-ic { width: 40px; height: 40px; margin: 0 auto; border-radius: 11px; background: var(--grad-soft); border: 1px solid rgba(110,91,255,0.28); display: grid; place-items: center; }
.model-option .m-ic svg { width: 19px; height: 19px; stroke: var(--accent-2); }
.model-option input:checked + .m-card { border-color: var(--accent); background: var(--card-2); box-shadow: 0 0 0 3px rgba(110,91,255,0.22); }
.model-option input:checked + .m-card b { color: var(--text); }

/* ---------- Escopo (itens dinâmicos) ---------- */
.scope-item { display: grid; grid-template-columns: 1.4fr 2fr 80px 120px 120px 40px; gap: 10px; align-items: center; margin-bottom: 10px; }
.scope-item input { width: 100%; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); padding: 11px 13px; font-size: 0.9rem; }
.scope-item input:focus { outline: none; border-color: var(--accent); }
.scope-item .s-total { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; text-align: right; white-space: nowrap; }
.scope-item .s-rm { background: none; border: none; color: var(--muted-2); padding: 6px; }
.scope-item .s-rm:hover { color: var(--danger); }
.scope-item .s-rm svg { width: 18px; height: 18px; stroke: currentColor; }
.scope-head { display: grid; grid-template-columns: 1.4fr 2fr 80px 120px 120px 40px; gap: 10px; padding: 0 0 6px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; }
@media (max-width: 900px) {
  .scope-head { display: none; }
  .scope-item { grid-template-columns: 1fr 1fr; }
  .scope-item .s-rm { grid-column: 1 / -1; justify-self: end; }
  .scope-item .s-total { grid-column: 1 / -1; text-align: right; }
}

.summary-box { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 14px; padding: 20px 22px; }
.summary-box .sb-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.summary-box .sb-row:last-of-type { border-bottom: none; }
.summary-box .sb-row .lbl { color: var(--muted-2); }
.summary-box .sb-row .val { font-weight: 600; text-align: right; }
.summary-box .sb-total { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; }
.summary-box .sb-total .gradient-text { display: block; }

/* ---------- Documento (proposta profissional) ---------- */
.doc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.doc-toolbar .left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-statusbar { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; margin-bottom: 18px; }
.doc-statusbar select { background: var(--bg); border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; padding: 7px 10px; font-size: 0.82rem; }

.doc-sheet {
  max-width: 820px; margin: 0 auto; background: #ffffff; color: #10141f; border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); overflow: hidden; font-size: 14px; line-height: 1.55;
}
.doc-sheet a { color: #4f46e5; }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 36px 44px 26px; background: linear-gradient(120deg, #0d0f1a 0%, #171a2c 100%); color: #fff; }
.doc-head .dh-brand img { max-height: 46px; width: auto; }
.doc-head .dh-brand .dh-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #8b93ff; margin-top: 8px; }
.doc-head .dh-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.doc-head .dh-sub { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.doc-head .dh-meta { text-align: right; font-size: 12px; }
.doc-head .dh-meta .m-row { display: flex; justify-content: flex-end; gap: 10px; padding: 3px 0; }
.doc-head .dh-meta .m-row b { font-weight: 600; }
.doc-head .dh-meta .m-row span { color: rgba(255,255,255,0.6); }
.doc-body { padding: 32px 44px 8px; }
.doc-body h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #ececf1; }
.doc-body h3:first-child { margin-top: 0; }
.doc-body p { margin-bottom: 8px; color: #232838; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.doc-grid .d-cell .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; font-weight: 700; }
.doc-grid .d-cell .val { font-weight: 600; margin-top: 2px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.doc-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; border-bottom: 1px solid #d8dbe4; padding: 7px 8px; }
.doc-table td { padding: 9px 8px; border-bottom: 1px solid #ececf1; vertical-align: top; }
.doc-table td.num, .doc-table th.num { text-align: right; white-space: nowrap; }
.doc-total { margin-top: 14px; display: flex; justify-content: flex-end; }
.doc-total .t-box { min-width: 240px; border-radius: 10px; background: #f4f5f8; padding: 14px 18px; text-align: right; }
.doc-total .t-lbl { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.08em; }
.doc-total .t-val { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.doc-foot { padding: 20px 44px 36px; }
.doc-foot .df-box { border: 1px solid #ececf1; border-radius: 12px; padding: 16px 18px; }
.doc-foot .df-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 22px; }
.doc-foot .df-cell .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; font-weight: 700; }
.doc-foot .df-cell .val { font-weight: 600; margin-top: 2px; font-size: 13px; }
.doc-foot .df-cell .val.small { font-weight: 400; color: #4b5563; }
.doc-sig { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.doc-sig .sig-box { text-align: center; }
.doc-sig .sig-line { border-top: 1px solid #c8ccd6; padding-top: 8px; font-size: 12px; color: #4b5563; }
.doc-stamp { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid #d8dbe4; border-radius: 6px; padding: 4px 8px; color: #6b7280; margin-bottom: 6px; }
.doc-stamp.ok { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.doc-stamp.warn { color: #b45309; border-color: #fcd34d; background: #fffbeb; }

@media print {
  body { background: #fff; }
  .int-topbar, .doc-toolbar, .doc-statusbar, .toast, .site-footer { display: none !important; }
  .doc-wrap { padding: 0; }
  .doc-sheet { box-shadow: none; margin: 0; border-radius: 0; }
  .doc-head { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
.doc-wrap { padding: 10px 0 60px; }
.doc-statusbar .status-pill { flex: none; }
