/* ============================================================
   Boongon — Homepage sections + interactive dashboard
   ============================================================ */

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 76px 0 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -280px; left: 50%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--violet) 22%, transparent) 0%,
    transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 22px auto 0;
  max-width: 16ch;
}
.hero .lede { margin: 22px auto 0; max-width: 56ch; font-size: clamp(17px, 1.6vw, 21px); }
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px;
}
.hero-trust {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
  color: var(--ink-3);
  font-size: 14px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

/* product frame under hero */
.hero-product {
  position: relative; z-index: 1;
  margin-top: 56px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

/* ============================================================
   Interactive dashboard demo
   ============================================================ */
.dash {
  --dash-side: 232px;
  display: grid;
  grid-template-columns: var(--dash-side) 1fr;
  min-height: 540px;
  background: var(--surface);
}
.dash-side {
  background: #0E0F0E;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-side .brand { margin: 6px 8px 14px; }
.dash-side .brand-name { color: #fff; font-size: 18px; }
.dash-company {
  margin: 0 4px 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 10px;
}
.dash-company .dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dash-company b { color: #fff; font-size: 14px; font-weight: 600; font-family: var(--font-display); }
.dash-company small { color: #7E827C; font-size: 12px; display: block; }
.dash-nav-label {
  color: #6E726C; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 14px 12px 6px;
}
.dash-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: #C9CCC6;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
  width: 100%; text-align: left;
}
.dash-nav-item svg { width: 18px; height: 18px; opacity: 0.85; flex: none; }
.dash-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dash-nav-item.is-active { background: var(--green); color: #fff; }

.dash-main {
  background: var(--bg);
  padding: 22px 26px;
  overflow: hidden;
}
.dash-topbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.dash-topbar h3 { font-size: 19px; }
.dash-search {
  margin-left: auto;
  height: 38px; min-width: 280px; max-width: 420px; flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  display: flex; align-items: center; gap: 9px;
  padding: 0 12px;
  color: var(--ink-4);
  font-size: 14px;
}
.dash-search svg { width: 16px; height: 16px; }
.dash-search .slash {
  margin-left: auto; border: 1px solid var(--line); border-radius: 5px;
  padding: 0 6px; font-size: 12px; color: var(--ink-3);
}
.dash-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; font-family: var(--font-display);
  flex: none;
}

/* KPI cards */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--surface);
  padding: 16px 16px 14px;
}
.kpi-label {
  display: flex; align-items: center; gap: 7px;
  color: var(--ink-3);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.kpi-label svg { width: 14px; height: 14px; }
.kpi-val {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.kpi-val.pos { color: var(--green-ink); }
.kpi-val.neg { color: var(--neg-ink); }
.kpi-sub { margin-top: 8px; color: var(--ink-3); font-size: 12px; }
.kpi-spark { margin-top: 10px; height: 22px; width: 100%; }

.dash-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-ink); font-size: 13px; font-weight: 500;
  margin-top: 8px;
}
.dash-status svg { width: 15px; height: 15px; }

/* trajectory chart */
.dash-chart-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--surface);
  padding: 20px 22px;
}
.dash-chart-card h4 { font-size: 16px; }
.dash-chart-card p { color: var(--ink-3); font-size: 13px; margin-top: 4px; max-width: 70ch; }
.dash-chart { margin-top: 16px; width: 100%; height: 180px; display: block; }
.dash-chart-axis {
  display: flex; justify-content: space-between;
  color: var(--ink-4); font-size: 12px; margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* generic table view for other tabs */
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th {
  text-align: left; color: var(--ink-3);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 1px solid var(--hairline);
}
.dash-table th.r, .dash-table td.r { text-align: right; }
.dash-table td {
  padding: 12px; border-bottom: 1px solid var(--line-faint);
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .sku { font-family: var(--font-mono); font-size: 12px; color: var(--green-ink); }

.dash-view { animation: dashIn 360ms var(--ease); }
@keyframes dashIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .dash { grid-template-columns: 1fr; }
  /* turn the dark sidebar into a scrollable top tab strip so the demo
     stays interactive on phones/tablets */
  .dash-side {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dash-side .brand,
  .dash-company,
  .dash-nav-label { display: none; }
  .dash-nav-item { width: auto; white-space: nowrap; padding: 8px 13px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .dash-search { min-width: 0; }
}
@media (max-width: 560px) {
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-main { padding: 16px 14px; }
  .dash-topbar { gap: 10px; margin-bottom: 16px; }
  .dash-topbar h3 { font-size: 17px; }
  .dash-search { display: none; }
  .kpi-val { font-size: 19px; }
  .kpi { padding: 13px 13px 12px; }
  /* let dense tables scroll instead of clipping */
  .dash-chart-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-table { min-width: 440px; }
  .hero-product { border-radius: var(--r-lg); }
}

/* ============================================================
   "Replaces your stack" band
   ============================================================ */
.stack {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.stack-old { display: flex; flex-direction: column; gap: 12px; }
.stack-tool {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  color: var(--ink-3);
  background: var(--surface);
  font-size: 15px;
  position: relative;
}
.stack-tool s { text-decoration-color: var(--neg); color: var(--ink-2); }
.stack-tool .tool-tag { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.stack-arrow { color: var(--ink-4); display: flex; align-items: center; }
.stack-arrow svg { width: 40px; height: 40px; }
.stack-new {
  border: 1px solid var(--green-100);
  background: var(--green-050);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
}
.stack-new .brand { justify-content: center; margin-bottom: 14px; }
.stack-new h3 { font-size: 22px; }
.stack-new p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
@media (max-width: 860px) {
  .stack { grid-template-columns: 1fr; gap: 24px; }
  .stack-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ============================================================
   Modules grid
   ============================================================ */
.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.module {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.module:hover { border-color: var(--line); transform: translateY(-3px); }
.module h3 { font-size: 17px; margin-top: 16px; }
.module p { color: var(--ink-3); font-size: 14px; margin-top: 7px; line-height: 1.5; }
@media (max-width: 940px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .modules { grid-template-columns: 1fr; } }

/* ============================================================
   PH compliance band
   ============================================================ */
.compliance {
  background: #0E0F0E;
  border-radius: var(--r-xl);
  padding: 56px;
  color: #E7E9E4;
  position: relative;
  overflow: hidden;
}
.compliance .eyebrow { color: #5FCB98; }
.compliance .eyebrow::before { background: #36B27D; }
.compliance h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-top: 16px; max-width: 18ch; }
.compliance-lede { color: #9DA199; margin-top: 16px; max-width: 56ch; font-size: 17px; }
.compliance-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  margin-top: 40px;
  align-items: start;
}
.compliance-forms { display: flex; flex-wrap: wrap; gap: 9px; }
.form-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #BFE3D2;
  background: rgba(54,178,125,0.14);
  border: 1px solid rgba(54,178,125,0.3);
  border-radius: var(--r-xs);
  padding: 6px 11px;
}
.compliance-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.compliance-item { display: flex; gap: 13px; }
.compliance-item svg { width: 20px; height: 20px; color: #36B27D; flex: none; margin-top: 2px; }
.compliance-item b { color: #fff; font-weight: 600; display: block; font-family: var(--font-display); }
.compliance-item span { color: #9DA199; font-size: 14px; }

/* mock generated form preview */
.form-preview {
  background: #fff;
  border-radius: var(--r);
  padding: 22px;
  color: #15181E;
  box-shadow: var(--shadow-float);
}
.form-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hairline); padding-bottom: 12px;
}
.form-preview-head b { font-family: var(--font-display); font-size: 14px; }
.form-preview-rows { margin-top: 8px; }
.fp-row {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line-faint);
  font-size: 13px;
}
.fp-row span:first-child { color: var(--ink-3); }
.fp-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.fp-total { display: flex; justify-content: space-between; padding-top: 12px; font-family: var(--font-display); font-weight: 600; }
.fp-total span:last-child { color: var(--green-ink); }
@media (max-width: 820px) {
  .compliance { padding: 36px 24px; }
  .compliance-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Customer portal teaser
   ============================================================ */
.portal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.portal-mock {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-pop);
}
.portal-inv {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border: 1px solid var(--hairline); border-radius: var(--r);
  margin-bottom: 10px;
}
.portal-inv:last-child { margin-bottom: 0; }
.portal-inv .pi-id { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.portal-inv .pi-amt { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.portal-inv .btn-sm { flex: none; }
@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; gap: 32px; }
  .portal-mock { order: 2; }
}

/* feature list with checks */
.checklist { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; list-style: none; color: var(--ink-2); font-size: 16px; }
.checklist { padding: 0; }
.checklist svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
