/* ============================================================
   Botzapi V2 — Redesign conceitual
   Design system proposto (comparação vs V1)
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --bg-card: #16161f;
  --bg-elev: #1c1c27;
  --border: #262634;
  --border-strong: #34344a;
  --text: #f4f4f7;
  --text-muted: #a0a0b0;
  --text-subtle: #6b6b7d;
  --accent: #25d366;
  --accent-hover: #1fbf5a;
  --accent-soft: rgba(37, 211, 102, 0.12);
  --accent-grad: linear-gradient(135deg, #25d366 0%, #0ea5e9 100%);
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --border: #e5e5ec;
  --border-strong: #d0d0dc;
  --text: #16161f;
  --text-muted: #5a5a6e;
  --text-subtle: #8b8b9c;
  --accent-soft: rgba(37, 211, 102, 0.1);
  --shadow: 0 8px 30px rgba(20, 30, 50, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 30, 50, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #04170c; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg-elev); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-elev); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #04170c; font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); transition: all 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- Hero (100% viewport) ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 96px 0 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 20% 0%, rgba(37,211,102,0.14), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(139,92,246,0.14), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent); font-size: 12.5px; font-weight: 600;
  margin-bottom: 22px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(37,211,102,0.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(37,211,102,0.25); } 50% { box-shadow: 0 0 0 6px rgba(37,211,102,0.08); } }
.hero h1 { font-size: 56px; line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 20px; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17.5px; color: var(--text-muted); max-width: 520px; margin-bottom: 30px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-proof { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-muted); }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.avatar-stack span:first-child { margin-left: 0; }
.a1 { background: linear-gradient(135deg,#25d366,#0ea5e9); }
.a2 { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.a3 { background: linear-gradient(135deg,#8b5cf6,#ec4899); }
.a4 { background: linear-gradient(135deg,#06b6d4,#3b82f6); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 13px; }

/* Hero visual — mockup do produto */
.hero-visual { position: relative; }
.hero-visual-glow {
  position: absolute; inset: -40px; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(37,211,102,0.16), transparent 65%);
}
.app-mock {
  position: relative; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar-title { flex: 1; text-align: center; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.mock-chat { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 330px; }
.bubble {
  max-width: 78%; padding: 11px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5;
}
.bubble-in { align-self: flex-start; background: var(--bg-elev); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: var(--accent); color: #04170c; border-bottom-right-radius: 4px; font-weight: 500; }
.bubble-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; }
.bubble-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-subtle); animation: bounce 1.2s infinite; }
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.mock-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: center; }
.mock-input span { flex: 1; height: 34px; background: var(--bg-elev); border-radius: 8px; }
.mock-send { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #04170c; }

.float-card {
  position: absolute; right: -22px; bottom: -20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  animation: float 5s ease-in-out infinite;
}
.float-card.left { right: auto; left: -22px; bottom: 60px; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.float-icon svg { width: 19px; height: 19px; }
.float-text b { display: block; font-size: 13.5px; font-weight: 700; }
.float-text span { font-size: 11.5px; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; color: var(--accent); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px;
}
.section-head h2 { font-size: 38px; letter-spacing: -0.03em; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 16.5px; }

/* ---------- Logos strip ---------- */
.logos-strip { padding: 36px 0; border-bottom: 1px solid var(--border); }
.logos-strip p { text-align: center; font-size: 12.5px; color: var(--text-subtle); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.logos { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; align-items: center; }
.logo-item { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-subtle); opacity: 0.7; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-grad); opacity: 0; transition: opacity 0.2s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.violet { background: rgba(139,92,246,0.12); color: var(--violet); }
.feature-icon.blue { background: rgba(14,165,233,0.12); color: #38bdf8; }
.feature-icon.amber { background: rgba(245,158,11,0.12); color: var(--amber); }
.feature h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--text-muted); font-size: 13.8px; line-height: 1.6; }

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; padding: 30px 22px; position: relative; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  background: var(--accent-soft); color: var(--accent);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }
.step-arrow { position: absolute; top: 48px; right: -20px; color: var(--text-subtle); }

/* ---------- Live demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.demo-list { display: flex; flex-direction: column; gap: 18px; }
.demo-item { display: flex; gap: 14px; align-items: flex-start; }
.demo-check {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-top: 2px;
}
.demo-check svg { width: 15px; height: 15px; }
.demo-item h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.demo-item p { font-size: 13.5px; color: var(--text-muted); }
.chat-sim {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-sim-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.chat-sim-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; color: #04170c; font-weight: 700; }
.chat-sim-name { font-weight: 700; font-size: 14.5px; }
.chat-sim-status { font-size: 12px; color: var(--accent); }
.chat-sim-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.sim-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-chip {
  padding: 8px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 600;
  background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text-muted);
  transition: all 0.15s;
}
.sim-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 40px; font-size: 14px; color: var(--text-muted); }
.pricing-toggle .active { color: var(--text); font-weight: 700; }
.toggle-track {
  width: 46px; height: 26px; border-radius: 100px; padding: 3px;
  background: var(--border-strong); position: relative; cursor: pointer; transition: background 0.2s;
}
.toggle-track.on { background: var(--accent); }
.toggle-knob { width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.toggle-track.on .toggle-knob { transform: translateX(20px); }
.save-badge { background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.plan:hover { transform: translateY(-3px); }
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card) 40%);
  box-shadow: var(--shadow);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #04170c; padding: 5px 14px;
  border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.plan-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.plan-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 22px; }
.plan-price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.plan-period { font-size: 12.5px; color: var(--text-muted); margin-bottom: 24px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-features li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.8px; }
.plan-features svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.plan-features li.disabled { color: var(--text-subtle); }
.plan-features li.disabled svg { color: var(--text-subtle); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; background: none; border: none; color: var(--text);
  font-size: 15px; font-weight: 600; text-align: left;
}
.faq-q svg { width: 18px; height: 18px; color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 22px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial-text { font-size: 14.5px; line-height: 1.65; color: var(--text); }
.testimonial-user { display: flex; align-items: center; gap: 12px; }
.testimonial-user span.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.testimonial-user b { display: block; font-size: 14px; }
.testimonial-user small { color: var(--text-muted); font-size: 12px; }

/* ---------- CTA ---------- */
.cta-block {
  position: relative; border-radius: 24px; padding: 70px 40px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(37,211,102,0.2), transparent 60%);
}
.cta-block h2 { font-size: 40px; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-block p { font-size: 16.5px; color: var(--text-muted); margin-bottom: 28px; position: relative; }
.cta-block .btn { position: relative; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-about { color: var(--text-muted); font-size: 13.5px; max-width: 280px; margin-bottom: 20px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--text-subtle); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---------- App (painel) — layout base ----------
   Cada versão do painel aplica o próprio layout por inline style:
   - app.html       → 100% viewport (zero scroll de página)
   - app-scroll.html → rolagem normal de página                    */
.app { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 250px; background: var(--bg-soft); border-right: 1px solid var(--border);
  position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 50;
}
.app-main { flex: 1; margin-left: 250px; min-width: 0; }
.app-topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
}
.side-nav { flex: 1; padding: 20px 14px; overflow-y: auto; }
.nav-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-subtle); padding: 18px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: all 0.15s; margin-bottom: 2px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-elev); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item.active svg { color: var(--accent); }
.nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text-muted); padding: 1px 8px; border-radius: 100px;
}
.side-foot { padding: 16px; border-top: 1px solid var(--border); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.user-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-grad); color: #04170c; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.user-meta { flex: 1; min-width: 0; }
.user-meta b { display: block; font-size: 13.5px; }
.user-meta span { display: block; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-content { padding: 28px; max-width: 1200px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.page-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 14.5px; font-weight: 700; }
.card-body { padding: 20px; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat-change { font-size: 12px; font-weight: 600; margin-top: 8px; }
.stat-change.up { color: var(--accent); }
.stat-change.down { color: var(--danger); }

/* Progress bar */
.progress { height: 8px; background: var(--bg-elev); border-radius: 100px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 100px; background: var(--accent-grad); transition: width 0.6s ease; }

/* Badges / status */
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.status-dot.success { background: var(--accent); box-shadow: 0 0 0 3px rgba(37,211,102,0.2); }
.status-dot.warning { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.status-dot.danger { background: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px;
}
.tag-success { background: var(--accent-soft); color: var(--accent); }
.tag-warning { background: rgba(245,158,11,0.12); color: var(--amber); }
.tag-danger { background: rgba(239,68,68,0.12); color: var(--danger); }

/* Layout helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Flex fill helpers para layout 100% viewport */
.fill { flex: 1; min-height: 0; }
.fill-h { height: 100%; }
.col { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.scroll-y { overflow-y: auto; overflow-x: hidden; }
.scroll-x { overflow-x: auto; overflow-y: hidden; }
.card-body-scroll { overflow-y: auto; overflow-x: hidden; }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 11px 14px; color: var(--text-subtle); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-soft); }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .features, .pricing, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .demo-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 120px 0 60px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .grid-2, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-sidebar { display: none; }
  .app-main { margin-left: 0; }
}
/* App em telas menores: cada versão do painel define seu próprio comportamento.
   Aqui apenas garantimos que a sidebar some em telas estreitas. */
@media (max-width: 560px) {
  .features, .pricing, .testimonials { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .cta-block h2 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card { right: 0; left: 0; bottom: -18px; }
  .float-card.left { display: none; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }
