.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 6vw 80px;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-aurora-wrap {
  position: absolute; inset: 0;
  will-change: transform;
  pointer-events: none;
}
.hero-aurora {
  position: absolute; inset: -15% -10% -15% -10%;
  background:
    radial-gradient(560px 480px at 82% 8%, rgba(4,170,199,0.10), transparent 60%),
    radial-gradient(480px 420px at 18% 78%, rgba(18,0,82,0.07), transparent 65%),
    radial-gradient(420px 380px at 55% 40%, rgba(149,140,89,0.05), transparent 70%);
  filter: blur(6px);
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%,2%,0) scale(1.06); }
  100% { transform: translate3d(2%,-1%,0) scale(1.02); }
}

.hero-left { max-width: 560px; position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(4,131,197,0.07);
  border: 1px solid rgba(4,131,197,0.18);
  color: var(--blue);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  animation: up 0.6s ease both;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: blink 2.5s infinite;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--purple);
  margin-bottom: 1.5rem;
  animation: up 0.65s 0.08s ease both;
}
h1 em { font-style: normal; color: var(--blue); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 2.5rem;
  animation: up 0.65s 0.16s ease both;
}

.hero-cta {
  display: flex; gap: 0.875rem; flex-wrap: wrap;
  animation: up 0.65s 0.24s ease both;
}

.hero-trust {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  animation: up 0.65s 0.35s ease both;
}
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-num {
  font-size: 1.7rem; font-weight: 800;
  color: var(--purple); letter-spacing: -0.04em;
}
.trust-num b { color: var(--blue); }
.trust-label { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

/* Dashboard mockup */
.hero-right {
  position: relative;
  z-index: 1;
  perspective: 1600px;
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(18,0,82,0.12), 0 2px 8px rgba(0,0,0,0.04);
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.92);
}
@media (prefers-reduced-motion: reduce) {
  .dash-card { opacity: 1; filter: none; transform: none; }
}
.dash-header {
  background: var(--purple);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-header-left { display: flex; align-items: center; gap: 8px; }
.dash-dots { display: flex; gap: 5px; }
.ddot { width: 9px; height: 9px; border-radius: 50%; }
.ddot.r { background: rgba(255,255,255,0.25); }
.ddot.y { background: rgba(255,255,255,0.4); }
.ddot.g { background: var(--teal); }
.dash-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); font-weight: 500; letter-spacing: 0.05em; }
.dash-time { font-size: 0.7rem; color: rgba(255,255,255,0.4); }

.dash-content { padding: 1.25rem; }

.dash-kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; margin-bottom: 1rem; }
.dkpi {
  background: var(--off); border-radius: 10px;
  padding: 0.875rem; border: 1px solid var(--border);
}
.dkpi-l { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; font-weight: 500; }
.dkpi-v { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; color: var(--purple); }
.dkpi-v.blue { color: var(--blue); }
.dkpi-v.teal { color: var(--teal); }
.dkpi-ch { font-size: 0.6rem; color: #16a34a; margin-top: 2px; font-weight: 600; }

.dash-row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.dash-chart-box {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.875rem;
}
.dcb-label { font-size: 0.65rem; color: var(--muted); font-weight: 500; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 60px; }
.bar {
  flex: 1; border-radius: 3px 3px 0 0;
  height: 0;
}
.bar.a { background: var(--purple); }
.bar.b { background: rgba(4,131,197,0.2); }

.dash-modules {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.875rem;
}
.dm-label { font-size: 0.65rem; color: var(--muted); font-weight: 500; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dm-list { display: flex; flex-direction: column; gap: 0.4rem; }
.dm-item { display: flex; align-items: center; gap: 0.5rem; }
.dm-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dm-name { font-size: 0.68rem; color: var(--text); font-weight: 500; flex: 1; }
.dm-bar-track { flex: 2; height: 4px; background: var(--light); border-radius: 99px; overflow: hidden; }
.dm-bar-fill {
  height: 100%; border-radius: 99px;
  width: 0;
}

.dash-invoices {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.inv-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.875rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.68rem;
  opacity: 0; transform: translateY(6px);
}
.inv-row.head { opacity: 1; transform: none; }
.inv-row:last-child { border-bottom: none; }
.inv-row.head { color: var(--muted); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em; background: rgba(18,0,82,0.02); }
.inv-id { flex: 2; font-weight: 600; }
.inv-badge { flex: 1; text-align: center; font-size: 0.58rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.inv-badge.ok { background: rgba(22,163,74,0.1); color: #16a34a; }
.inv-badge.pend { background: rgba(245,158,11,0.1); color: #b45309; }
.inv-amount { flex: 1; text-align: right; font-weight: 700; font-family: monospace; font-size: 0.7rem; }

/* Floating badges — must sit above .dash-card regardless of DOM order */
.hero-badge-float {
  position: absolute;
  z-index: 2;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.75rem 1rem;
  box-shadow: 0 8px 30px rgba(18,0,82,0.12);
  display: flex; align-items: center; gap: 0.6rem;
  will-change: transform;
}
/* Float + entrance handled by Motion (public/js/app.js). This is the reduced-motion / pre-JS fallback. */
@media (prefers-reduced-motion: reduce) {
  .hero-badge-float { animation: none; }
}
.hbf-left { top: -20px; left: -30px; }
.hbf-right { bottom: 30px; right: -20px; }
.hbf-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 0.9rem; }
.hbf-text { display: flex; flex-direction: column; }
.hbf-title { font-size: 0.7rem; font-weight: 700; color: var(--purple); }
.hbf-sub { font-size: 0.62rem; color: var(--muted); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-right { display: none; }
}
