/* ===== BrokerOS — Landing (Minimalismo Estruturado, dark + roxo) ===== */
:root {
  --bg: #08070c;
  --bg-2: #0f0e16;
  --panel: #14121d;
  --panel-2: #1a1726;
  --primary: #8a2be2;
  --accent: #b026ff;
  --accent-2: #da70d6;
  --text: #e5e5e5;
  --text-dim: #9a93ad;
  --white: #ffffff;
  --border: rgba(176, 38, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --glow: 0 0 28px rgba(176, 38, 255, 0.45);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo { font-family: "Montserrat", sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 200; box-shadow: var(--glow);
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 9, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 1.35rem; color: var(--white); }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--text-dim); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--white); }
.nav .nav-cta { color: var(--white); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--white); transition: .3s; border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-accent {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  color: var(--white); box-shadow: 0 0 0 rgba(176,38,255,0);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--white); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(176,38,255,0.25); transform: translateY(-2px); }

/* ===== Eyebrow / headings ===== */
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow.center { display: block; }
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2, .section h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; }
.section-head p { margin-top: 16px; font-size: 1.1rem; }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 120px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(138,43,226,.35), rgba(176,38,255,.1) 50%, transparent 75%);
  filter: blur(20px);
}
.hero-inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
.hero .lead { margin: 26px auto 0; max-width: 660px; font-size: 1.2rem; color: var(--text); }
.lead { font-size: 1.15rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border-soft);
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: "Montserrat"; font-size: 2rem; color: var(--white); }
.hero-stats span { font-size: .9rem; color: var(--text-dim); max-width: 180px; }

/* ===== Problema ===== */
.problema h2 { text-align: center; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0; }
.pain {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 20px 22px; color: var(--text); font-size: 1rem;
}
.pain-x { color: var(--accent-2); font-weight: 700; margin-right: 10px; }
.big-line { text-align: center; font-family: "Montserrat"; font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem); margin-top: 10px; }

/* ===== Cards (agentes) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: 0 18px 50px rgba(138,43,226,.18); }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(176,38,255,.12); color: var(--accent); margin-bottom: 22px;
  border: 1px solid var(--border);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--white); }
.card p { color: var(--text-dim); }
.card p strong { color: var(--text); }

/* ===== Como funciona (scrollytelling) ===== */
.how-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.how-steps { display: flex; flex-direction: column; gap: 28px; }
.step {
  padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--border-soft);
  background: var(--panel); opacity: .45; transition: opacity .35s, border-color .35s, transform .35s, box-shadow .35s;
}
.step.active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 30px rgba(176,38,255,.18); transform: translateX(4px); }
.step-num { font-family: "Montserrat"; font-weight: 800; color: var(--accent); font-size: .95rem; }
.step h3 { font-size: 1.3rem; margin: 6px 0 8px; color: var(--white); }
.step p { color: var(--text-dim); }

.how-sticky { position: sticky; top: 130px; }
.pipeline {
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 14px;
}
.node {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-soft);
  color: var(--text-dim); font-weight: 500; transition: .35s;
}
.node .dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3450; transition: .35s; flex: none; }
.node.active { color: var(--white); border-color: var(--accent); background: rgba(176,38,255,.08); }
.node.active .dot { background: var(--accent); box-shadow: var(--glow); }
.pipeline-loop { text-align: center; color: var(--accent-2); font-size: .9rem; margin-top: 6px; }

/* ===== Recursos ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--border-soft);
  background: var(--panel); transition: border-color .3s, transform .3s;
}
.feat:hover { border-color: var(--border); transform: translateY(-4px); }
.feat h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 8px; }
.feat h3::before { content: "›"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.feat p { color: var(--text-dim); font-size: .98rem; }

/* ===== Planos ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 36px 30px; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.plan:hover { transform: translateY(-6px); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 44px rgba(176,38,255,.22); background: linear-gradient(180deg, var(--panel-2), var(--bg-2)); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(100deg, var(--primary), var(--accent)); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; box-shadow: var(--glow);
}
.plan h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 14px; }
.price { font-family: "Montserrat"; font-weight: 800; font-size: 3rem; color: var(--white); line-height: 1; }
.price .cur { font-size: 1.2rem; vertical-align: super; color: var(--text-dim); margin-right: 4px; }
.price .per { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.plan-desc { color: var(--text-dim); margin: 14px 0 22px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: .98rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.fineprint { text-align: center; color: var(--text-dim); font-size: .85rem; margin-top: 28px; }

/* ===== CTA final ===== */
.cta-final { overflow: hidden; }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side at 50% 40%, rgba(176,38,255,.22), transparent 70%);
}
.cta-final h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta-form { display: flex; gap: 12px; justify-content: center; margin: 34px auto 0; max-width: 520px; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 240px; padding: 15px 20px; border-radius: var(--radius-sm);
  background: var(--panel); border: 1px solid var(--border); color: var(--white); font-size: 1rem; font-family: inherit;
}
.cta-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 18px rgba(176,38,255,.3); }
.cta-note { margin-top: 18px; color: var(--text-dim); font-size: .9rem; }
.cta-note.ok { color: var(--accent-2); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 30px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner .logo { font-size: 1.2rem; }
.footer-inner p { margin-top: 8px; max-width: 320px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--text-dim); transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: .85rem; }

/* ===== Área do cliente (header) ===== */
.nav-login { color: var(--white) !important; border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; transition: .2s; }
.nav-login:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(176,38,255,.25); }

/* ===== Modal de lead ===== */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(4,3,8,.78); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 1; width: min(480px, 92vw);
  margin: 8vh auto 0; max-height: 84vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(176,38,255,.3); padding: 36px 32px; animation: pop .28s ease;
}
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--text-dim); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color .2s; }
.modal-close:hover { color: var(--white); }
.modal-card h3 { font-size: 1.5rem; color: var(--white); margin: 8px 0 8px; }
.lead-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--text-dim); }
.lead-form input, .lead-form select {
  padding: 13px 16px; border-radius: var(--radius-sm); background: var(--panel);
  border: 1px solid var(--border); color: var(--white); font-size: 1rem; font-family: inherit;
}
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 16px rgba(176,38,255,.28); }
.lead-msg { font-size: .88rem; min-height: 1.1em; margin: 0; color: var(--text-dim); }
.lead-msg.err { color: #ff7a9c; }
.lead-success { text-align: center; padding: 10px 0; }
.lead-check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: linear-gradient(100deg, var(--primary), var(--accent)); box-shadow: var(--glow); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards, .feat-grid, .plans { grid-template-columns: 1fr; }
  .how-inner { grid-template-columns: 1fr; gap: 30px; }
  .how-sticky { position: static; order: -1; }
  .pain-grid { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,9,15,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft);
    padding: 10px 24px 24px; transform: translateY(-130%); transition: transform .35s; align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--border-soft); font-size: 1.05rem; }
  .nav .nav-cta { margin-top: 14px; border-bottom: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 540px) {
  .section { padding: 80px 0; }
  .hero { padding: 140px 0 90px; }
  .hero-stats { gap: 28px; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
