/* Hero: dashboard revenue yang sederhana — satu angka besar, satu grafik naik, tiga KPI. Scope: .inv-scope */
.inv-scope .hero-visual { position: relative; display: flex; justify-content: center; align-items: center; padding: 60px 0 52px; }
.inv-scope .hero-visual::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 100%; max-width: 540px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EAF1FF 0%, #DCE8FF 52%, rgba(234,241,255,0) 72%); z-index: 0;
}
.inv-scope .hero-visual::after { content: ''; position: absolute; left: 3%; bottom: 8%; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); opacity: .9; z-index: 0; }

.inv-scope .hero-dash {
  position: relative; z-index: 1; width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 34px 80px rgba(11,27,63,.16), 0 4px 16px rgba(11,27,63,.06);
}
.inv-scope .dash-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.inv-scope .dash-dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.inv-scope .dash-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.inv-scope .dash-dots i:nth-child(1) { background: #FF5F57; } .inv-scope .dash-dots i:nth-child(2) { background: #FEBC2E; } .inv-scope .dash-dots i:nth-child(3) { background: #28C840; }
.inv-scope .dash-url { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 100px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--fg-secondary); }
.inv-scope .dash-url svg { flex: 0 0 auto; }
.inv-scope .dash-note { font-size: 10.5px; color: var(--fg-muted); white-space: nowrap; }
.inv-scope .dash-body { padding: 20px 22px 36px; }

/* angka utama */
.inv-scope .dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.inv-scope .dh-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 2px; }
.inv-scope .dh-val { display: block; font-family: var(--font-display); font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--blue); }
.inv-scope .dh-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 4px; }
.inv-scope .dh-chip { font-size: 12px; font-weight: 700; color: #15803D; background: #DCFCE7; border-radius: 100px; padding: 4px 11px; white-space: nowrap; }
.inv-scope .dh-period { font-size: 11.5px; font-weight: 600; color: var(--fg-muted); white-space: nowrap; }

/* grafik */
.inv-scope .dash-chart { width: 100%; height: auto; display: block; overflow: visible; margin: 8px 0 18px; }
.inv-scope .dash-chart text { font-family: var(--font-body); font-size: 10.5px; fill: var(--fg-muted); }

/* tiga KPI */
.inv-scope .dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.inv-scope .dash-kpi { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 12px 12px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inv-scope .k-label { font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.inv-scope .k-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); line-height: 1.15; }
.inv-scope .k-delta { align-self: flex-start; font-size: 11px; font-weight: 700; color: #15803D; background: #DCFCE7; border-radius: 100px; padding: 2px 8px; margin-top: 2px; white-space: nowrap; }

/* platform */
.inv-scope .dash-channels { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-scope .dash-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--fg-secondary); background: #fff; border: 1px solid var(--border); border-radius: 100px; padding: 5px 11px 5px 9px; }
.inv-scope .dash-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* kartu melayang (di luar sudut jendela, tidak menutupi isi) */
.inv-scope .hero-visual .hero-float { z-index: 2; border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(11,27,63,.15); }
.inv-scope .hero-visual .hero-float.f1 { top: -8px; right: -14px; bottom: auto; left: auto; }
.inv-scope .hero-visual .hero-float.f2 { bottom: -2px; right: 36px; top: auto; left: auto; }
.inv-scope .hero-float .num { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--fg); line-height: 1.1; }
.inv-scope .hero-float .sub { font-size: 11px; font-weight: 500; color: var(--fg-muted); }
.inv-scope .hero-float .up { color: #15803D; }
.inv-scope .f1-badge { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--midnight); font-family: var(--font-display); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; }

/* animasi masuk (dimatikan bila pengguna memilih mengurangi gerakan) */
@media (prefers-reduced-motion: no-preference) {
  .inv-scope .dash-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dash-draw 1.6s .35s cubic-bezier(.3,.7,.2,1) forwards; }
  .inv-scope .dash-area, .inv-scope .dash-end { opacity: 0; animation: dash-fade .8s 1.5s ease forwards; }
  .inv-scope .hero-dash { animation: dash-rise .8s ease both; }
  .inv-scope .hero-visual .hero-float.f1 { animation: dash-float 5s ease-in-out infinite; }
  .inv-scope .hero-visual .hero-float.f2 { animation: dash-float 6s ease-in-out -2s infinite; }
}
@keyframes dash-draw { to { stroke-dashoffset: 0; } }
@keyframes dash-fade { to { opacity: 1; } }
@keyframes dash-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dash-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 820px) {
  .inv-scope .hero-visual { padding: 8px 0 0; }
  .inv-scope .hero-visual::after { display: none; }
  .inv-scope .hero-dash { max-width: 100%; border-radius: 18px; }
  .inv-scope .dash-body { padding: 16px 16px 18px; }
  .inv-scope .hero-visual .hero-float { display: none; }
}
@media (max-width: 520px) {
  .inv-scope .dash-note { display: none; }
  .inv-scope .dh-val { font-size: 40px; }
  .inv-scope .k-val { font-size: 20px; }
}
@media (max-width: 360px) {
  .inv-scope .dh-val { font-size: 34px; }
  .inv-scope .dh-chip { font-size: 11px; padding: 3px 9px; }
  .inv-scope .k-val { font-size: 18px; }
}

/* Tanpa pita logo klien, beri garis pemisah halus antara hero dan layanan */
.inv-scope #services { border-top: 1px solid var(--border); }
