/* =========================================================================
   home.css — estilos exclusivos da página inicial (index.html)
   -----------------------------------------------------------------------
   Contém: hero, mockup do dashboard, grelha de funcionalidades, nuvem
   de módulos e faixa CTA final. Só carregar nesta página.
   ========================================================================= */


/* ---- Hero ----------------------------------------------------------- */
#hero {
  text-align: center;
  padding: 140px 48px 96px;
  position: relative;
  overflow: hidden;
}
/* Brilho radial decorativo atrás do título. */
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 560px;
  background: radial-gradient(ellipse at 50% 0%, rgba(94,129,172,.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(94,129,172,.1);
  border: 1px solid rgba(94,129,172,.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}
#hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 0 auto 20px;
}
#hero > p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 auto 40px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  width: fit-content;
  margin: 0 auto 96px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-stat {
  padding: 16px 28px;
  background: var(--bg1);
  border-right: 1px solid var(--border);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 2px;
}
.hero-stat span {
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
}


/* ---- Mockup do dashboard (figura ilustrativa) ---------------------- */
.mock-outer {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 48px 96px;
}
.dash-mock {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg1);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03);
}
.dash-titlebar {
  background: var(--bg2);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}
.d-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.d-dot.r { background: rgba(191,97,106,.4); border: 1px solid #BF616A; }
.d-dot.y { background: rgba(235,203,139,.4); border: 1px solid #EBCB8B; }
.d-dot.g { background: rgba(163,190,140,.4); border: 1px solid #A3BE8C; }
.dash-app-name {
  font-size: .7rem;
  color: var(--muted);
  margin: 0 auto;
  letter-spacing: .04em;
}

.dash-body    { display: flex; }
.dash-sidebar {
  width: 172px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 0;
}
.d-nav {
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .7rem;
}
.d-nav.on            { color: var(--text); background: rgba(94,129,172,.1); }
.d-nav:not(.on)      { color: var(--muted); }
.d-ndot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
}
.d-nav.on .d-ndot    { background: var(--accent2); }
.d-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 14px;
}

.dash-main { flex: 1; padding: 18px; min-width: 0; }
.d-kpis {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.d-kpi {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
}
.d-kpi-val {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.d-kpi-lbl { font-size: .62rem; color: var(--muted); margin-top: 2px; }
.d-kpi.g .d-kpi-val { color: var(--green); }
.d-kpi.r .d-kpi-val { color: var(--red); }
.d-kpi.b .d-kpi-val { color: var(--accent2); }
.d-kpi.y .d-kpi-val { color: var(--yellow); }

.d-row2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
}
.d-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
}
.d-card-ttl {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.d-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.d-bar-lbl {
  font-size: .65rem;
  color: var(--muted);
  width: 76px;
  flex-shrink: 0;
}
.d-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 2px;
  overflow: hidden;
}
.d-bar-fill   { height: 100%; border-radius: 2px; }
.d-bar-fill.b { background: var(--accent2); }
.d-bar-fill.g { background: var(--green); }

/* Larguras dos KPIs ilustrativos. Em CSS para não usar style= inline. */
.d-bar-fill--87 { width: 87%; }
.d-bar-fill--91 { width: 91%; }
.d-bar-fill--94 { width: 94%; }
.d-bar-fill--72 { width: 72%; }

.d-bar-val {
  font-size: .62rem;
  color: var(--muted);
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}

.d-clause {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.d-clause-num  { font-size: .65rem; color: var(--muted); width: 26px; flex-shrink: 0; }
.d-clause-name { font-size: .65rem; color: var(--text2); flex: 1; }
.d-chk {
  width: 14px; height: 14px;
  stroke: var(--green); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}


/* ---- Grelha de funcionalidades ------------------------------------- */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.feat-card {
  background: var(--bg1);
  padding: 36px 32px;
  transition: background .2s;
}
.feat-card:hover { background: var(--bg2); }
.feat-icon { width: 36px; height: 36px; margin-bottom: 16px; }
.feat-icon svg {
  width: 100%; height: 100%;
  stroke: var(--accent2); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.feat-card h3 { font-size: .92rem; font-weight: 600; margin-bottom: 8px; }
.feat-card p  { font-size: .82rem; color: var(--muted); line-height: 1.65; margin: 0; }


/* ---- Nuvem de módulos (chips) -------------------------------------- */
.mod-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.mod-chip {
  font-size: .75rem;
  padding: 6px 14px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text2);
  transition: border-color .15s, color .15s;
}
.mod-chip:hover { border-color: var(--accent2); color: var(--text); }

/* Parágrafo "Ver todos os módulos →" abaixo da nuvem. */
.mod-cloud-foot { margin-top: 28px; }


/* ---- Faixa CTA final ----------------------------------------------- */
.cta-band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.cta-band p  { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}


/* ---- Responsivo: ajustes da home ----------------------------------- */
@media (max-width: 960px) {
  #hero       { padding: 100px 24px 80px; }
  .mock-outer { padding: 0 24px 64px; }
  .d-kpis     { grid-template-columns: 1fr 1fr; }
  .d-row2     { grid-template-columns: 1fr; }
  .feat-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dash-sidebar { display: none; }
}
@media (max-width: 540px) {
  .hero-stats { flex-wrap: wrap; width: 100%; }
  .hero-stat  { flex: 1; min-width: 50%; }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-top: 1px solid var(--border); }
}
