/* =========================================================
   Monitor DJE — Landing page
   Tema alinhado ao app: base #111827 (gray-900), Figtree.
   ========================================================= */

:root {
  --bg:        #0b0f19;
  --bg-2:      #111827;
  --bg-3:      #161f31;
  --card:      #131b2b;
  --border:    #253044;
  --border-2:  #2f3c54;

  --text:      #eef2f8;
  --muted:     #9aa7bd;
  --muted-2:   #6b7890;

  --brand:     #38bdf8;   /* sky-400 */
  --brand-2:   #0ea5e9;   /* sky-500 */
  --accent:    #34d399;   /* emerald-400 */
  --danger:    #f87171;   /* red-400   */
  --warn:      #fbbf24;   /* amber-400 */

  --radius:    16px;
  --radius-sm: 11px;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.6);
  --max:       1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

strong { color: #fff; font-weight: 700; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04121e;
  box-shadow: 0 10px 30px -10px rgba(56,189,248,.5);
}
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(56,189,248,.65); }
.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--brand); }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ===== Topbar urgência ===== */
.topbar {
  background: linear-gradient(90deg, rgba(248,113,113,.14), rgba(251,191,36,.14));
  border-bottom: 1px solid var(--border);
  color: #f4d9b8;
  font-size: .86rem;
  text-align: center;
  padding: .55rem 16px;
}
.topbar strong { color: #fff; }
.topbar .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); margin-right: .5rem;
  box-shadow: 0 0 0 0 rgba(248,113,113,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(248,113,113,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(248,113,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(248,113,113,0); }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,25,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-2);
  color: var(--brand);
}
.brand-name { font-size: 1.15rem; letter-spacing: -.01em; }
.brand-accent { color: var(--brand); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-size: .93rem; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: .6rem; }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px;
  background:
    radial-gradient(680px 340px at 78% 8%, rgba(56,189,248,.16), transparent 60%),
    radial-gradient(540px 320px at 12% 30%, rgba(52,211,153,.10), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.25); padding: .35rem .75rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 800; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.12rem; margin: 1.3rem 0 1.8rem; max-width: 34em; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-badges {
  list-style: none; padding: 0; margin: 1.8rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .9rem; color: var(--muted);
}
.hero-badges li { white-space: nowrap; }

/* Mock window */
.hero-visual { position: relative; }
.mock-glow {
  position: absolute; inset: 8% 6% 4% 6%; z-index: 0;
  background: radial-gradient(60% 60% at 60% 30%, rgba(56,189,248,.28), transparent 70%);
  filter: blur(28px);
}
.mock-window {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--card), #0f1626);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem .9rem; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #33405a; }
.mock-bar span:first-child { background: #f87171; }
.mock-bar span:nth-child(2) { background: #fbbf24; }
.mock-bar span:nth-child(3) { background: #34d399; }
.mock-bar em {
  margin-left: auto; font-style: normal; font-size: .78rem; color: var(--muted-2);
}
.mock-body { padding: .9rem; display: grid; gap: .7rem; }
.mock-ex-note {
  font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted-2); text-align: center; padding-bottom: .1rem;
}
.mock-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem .9rem; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
}
.mock-row.mock-alert {
  border-color: rgba(248,113,113,.4);
  background: linear-gradient(90deg, rgba(248,113,113,.10), var(--bg-3));
}
.mock-tag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: .28rem .5rem; border-radius: 7px; white-space: nowrap;
}
.tag-citacao { background: rgba(248,113,113,.16); color: #fca5a5; }
.tag-intimacao { background: rgba(56,189,248,.14); color: #7dd3fc; }
.mock-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mock-info strong { font-size: .82rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-info small { font-size: .74rem; color: var(--muted-2); }
.countdown { text-align: center; display: grid; gap: 1px; min-width: 62px; }
.countdown .cd-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.countdown .cd-lbl { font-size: .6rem; color: var(--muted-2); line-height: 1.1; }
.countdown.urgent .cd-num { color: var(--danger); }
.countdown.warn .cd-num { color: var(--warn); }
.countdown.ok .cd-num { color: var(--accent); }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  padding: 0;
}
.stat { padding: 30px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .35rem;
}
.stat-lbl { font-size: .88rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .8rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin-top: 1rem; }

/* ===== Cards do problema ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.card.danger { border-color: rgba(248,113,113,.28); }
.card-ico { font-size: 1.8rem; margin-bottom: .8rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

.pull-quote {
  text-align: center; max-width: 760px; margin: 52px auto 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; color: #dbe4f0;
  font-style: italic; letter-spacing: -.01em;
}

/* ===== Steps ===== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.step-n {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: #04121e;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ===== Personas ===== */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.persona {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px; display: flex; flex-direction: column;
}
.persona.featured {
  border-color: rgba(56,189,248,.4);
  background: linear-gradient(180deg, rgba(56,189,248,.06), var(--card));
}
.persona-ico { font-size: 2rem; margin-bottom: .7rem; }
.persona h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.persona p { color: var(--muted); font-size: .93rem; margin: 0 0 1rem; flex: 1; }
.persona-tag {
  font-size: .74rem; font-weight: 600; color: var(--brand);
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.22);
  padding: .3rem .6rem; border-radius: 999px; align-self: flex-start;
}

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  transition: transform .15s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-2); }
.feature-ico { font-size: 1.5rem; margin-bottom: .7rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ===== Comparativo ===== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col {
  border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--border);
}
.compare-col h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.compare-col li { position: relative; padding-left: 1.9rem; color: var(--muted); font-size: .96rem; }
.compare-col li::before {
  position: absolute; left: 0; top: -1px; font-size: 1.05rem;
}
.compare-col.before { background: rgba(248,113,113,.05); border-color: rgba(248,113,113,.25); }
.compare-col.before li::before { content: "✕"; color: var(--danger); }
.compare-col.after { background: rgba(52,211,153,.05); border-color: rgba(52,211,153,.28); }
.compare-col.after li::before { content: "✓"; color: var(--accent); }

/* ===== Planos ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan-single { max-width: 460px; margin: 0 auto; }
.plan {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(56,189,248,.08), var(--card));
  box-shadow: 0 24px 60px -30px rgba(56,189,248,.5);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #04121e;
  font-size: .74rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.plan-desc { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: .25rem; margin-bottom: 1.3rem; }
.plan-price .pcur { color: var(--muted); font-size: 1rem; font-weight: 600; }
.plan-price .pval { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price .pper { color: var(--muted-2); font-size: .85rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; flex: 1; }
.plan-list li { position: relative; padding-left: 1.7rem; font-size: .93rem; color: var(--muted); }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plans-note { text-align: center; color: var(--muted-2); font-size: .88rem; margin-top: 22px; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 22px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.3rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; font-size: .96rem; }

/* ===== CTA final ===== */
.final-cta { padding: 90px 0; }
.final-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-2); border-radius: 24px;
  padding: 64px 40px; text-align: center;
}
.final-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -10%, rgba(56,189,248,.22), transparent 65%);
  pointer-events: none;
}
.final-box h2 { position: relative; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.final-box p { position: relative; color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 1rem auto 2rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 1rem 0 0; max-width: 30em; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); font-size: .93rem; padding: .28rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: .82rem;
}
.footer-legal { max-width: 44em; }

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .cards-3, .steps, .personas, .features { grid-template-columns: repeat(2, 1fr); }
  .compare, .plans, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .cards-3, .steps, .personas, .features { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none !important; border-top: 1px solid var(--border); }
  .stat:first-child { border-top: none; }
  .nav-cta .btn-ghost { display: none; }
  .footer-bottom { flex-direction: column; }
  .hero-actions .btn { flex: 1; }
}
