/* ==========================================================================
   INVENTORYSHUB — Unified Hero Style System
   5 reusable hero layouts for landing pages

   STYLE A — Dashboard Showcase   → .section-hero (already in style.css)
   STYLE B — Centered SaaS        → .hs-b
   STYLE C — Analytics            → .hs-c
   STYLE D — Workflow             → .hs-d
   STYLE E — Operations           → .hs-e

   All styles share:
   • Same light gradient background
   • hero-bg-grid overlay (from style.css)
   • hero-badge, hero-cta-group, hero-trust (from style.css)
   • Brand colors via CSS custom properties
   ========================================================================== */

/* ── SHARED BASE ────────────────────────────────────────────────────────── */

.hs-b,
.hs-c,
.hs-d,
.hs-e {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: linear-gradient(170deg, #F0F4FF 0%, #FAFBFF 60%, #f8f5fe 100%);
}

/* Shared window chrome (reused across C, D, E panel headers) */
.hs-chrome {
  display: flex;
  gap: 5px;
}
.hs-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hs-chrome span:nth-child(1) { background: #ff5f57; }
.hs-chrome span:nth-child(2) { background: #febc2e; }
.hs-chrome span:nth-child(3) { background: #28c840; }

/* Shared floating badge (absolute-positioned accent card) */
.hs-float {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.07);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  white-space: nowrap;
}
.hs-float .hs-float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hs-float .hs-float-dot.green  { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.hs-float .hs-float-dot.purple { background: #754fce; box-shadow: 0 0 6px rgba(117,79,206,.5); }
.hs-float .hs-float-dot.amber  { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.hs-float .hs-float-sub {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  margin-top: 1px;
}


/* ==========================================================================
   HERO STYLE B — Centered SaaS Hero
   Best for: Asset Management, Equipment Tracking
   Layout: Centered headline + feature pills + stats row
   ========================================================================== */

.hs-b-inner {
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hs-b-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #384155;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hs-b-sub {
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature pills row */
.hs-b-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0;
}

.hs-b-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: border-color .2s, box-shadow .2s;
}
.hs-b-pill:hover {
  border-color: rgba(117,79,206,.3);
  box-shadow: 0 4px 16px rgba(117,79,206,.1);
}
.hs-b-pill svg { color: var(--primary, #754fce); flex-shrink: 0; }

/* Stats row */
.hs-b-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 36px;
  margin-top: 36px;
  border-top: 1px solid rgba(0,0,0,.07);
  position: relative;
  z-index: 2;
}

.hs-b-stat {
  text-align: center;
}

.hs-b-stat-num {
  font-size: 1.875rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #754fce, #9b7de0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hs-b-stat-lbl {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 5px;
  font-weight: 500;
}

/* Central visual card (optional, floating below pills on desktop) */
.hs-b-visual-wrap {
  position: relative;
  max-width: 860px;
  margin: 48px auto 0;
  z-index: 2;
}

.hs-b-panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.10), 0 0 80px rgba(117,79,206,.06);
  overflow: hidden;
}

.hs-b-panel-header {
  background: #0f172a;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-b-panel-title {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-left: 8px;
}

.hs-b-panel-pill {
  margin-left: auto;
  background: rgba(117,79,206,.25);
  color: #c4b0e8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.hs-b-panel-body {
  padding: 20px;
}


/* ==========================================================================
   HERO STYLE C — Analytics Hero
   Best for: Inventory Tracking, Reporting & Analytics
   Layout: Left text + Right analytics panel (charts + KPIs)
   ========================================================================== */

.hs-c-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hs-c-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hs-c-sub {
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Analytics visual container */
.hs-c-visual {
  position: relative;
}

.hs-c-panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.09);
  box-shadow: 0 20px 60px rgba(0,0,0,.10), 0 0 80px rgba(117,79,206,.06);
  overflow: hidden;
}

.hs-c-panel-header {
  background: #0f172a;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-c-panel-title {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-left: 8px;
}

.hs-c-panel-body {
  padding: 20px;
}

/* Section label */
.hs-c-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  margin-bottom: 10px;
}

/* Bar chart */
.hs-c-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 90px;
  margin-bottom: 6px;
}

.hs-c-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(117,79,206,.12);
  transition: background .2s;
  min-height: 8px;
}
.hs-c-bar.hi   { background: #754fce; }
.hs-c-bar.mid  { background: rgba(117,79,206,.45); }
.hs-c-bar.low  { background: rgba(117,79,206,.15); }

/* Chart month labels */
.hs-c-chart-labels {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}
.hs-c-chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
}

/* Divider */
.hs-c-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 14px 0;
}

/* KPI strip */
.hs-c-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hs-c-kpi {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.05);
}

.hs-c-kpi-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: 5px;
}

.hs-c-kpi-val {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hs-c-kpi-chg {
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}
.hs-c-kpi-chg.up   { color: #10b981; }
.hs-c-kpi-chg.dn   { color: #ef4444; }
.hs-c-kpi-chg.flat { color: #f59e0b; }

/* Activity row */
.hs-c-activity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.hs-c-activity:last-child { border-bottom: none; }

.hs-c-act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hs-c-act-dot.green  { background: #22c55e; }
.hs-c-act-dot.purple { background: #754fce; }
.hs-c-act-dot.amber  { background: #f59e0b; }
.hs-c-act-dot.red    { background: #ef4444; }

.hs-c-act-text {
  flex: 1;
  font-size: 12px;
  color: #475569;
}
.hs-c-act-time {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

/* Float badges */
.hs-c-float-1 { bottom: -18px; left: -20px; }
.hs-c-float-2 { top: -16px;   right: -16px; }


/* ==========================================================================
   HERO STYLE D — Workflow Hero
   Best for: Purchase Orders, Procurement, Approval Flows
   Layout: Left text + Right vertical workflow steps
   ========================================================================== */

.hs-d-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hs-d-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hs-d-sub {
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Workflow visualization */
.hs-d-flow {
  position: relative;
  padding: 4px 0;
}

/* Continuous vertical track line behind steps */
.hs-d-flow::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(117,79,206,.6) 0%,
    rgba(117,79,206,.3) 60%,
    rgba(117,79,206,.1) 100%);
  z-index: 0;
}

.hs-d-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px 14px 0;
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
}

/* Step wrapper card */
.hs-d-step-card {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 14px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.hs-d-step-card:hover {
  border-color: rgba(117,79,206,.25);
  box-shadow: 0 6px 20px rgba(117,79,206,.08);
}

/* Active step card */
.hs-d-step.active .hs-d-step-card {
  border-color: rgba(117,79,206,.35);
  box-shadow: 0 6px 24px rgba(117,79,206,.12);
  background: #faf8fe;
}

.hs-d-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(117,79,206,.25);
  color: var(--primary, #754fce);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  box-shadow: 0 0 0 4px #fff;
}

.hs-d-step.active .hs-d-step-num {
  background: var(--primary, #754fce);
  border-color: var(--primary, #754fce);
  color: #fff;
  box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(117,79,206,.3);
}

.hs-d-step.done .hs-d-step-num {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 0 4px #fff;
}

.hs-d-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hs-d-step-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.hs-d-step-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.hs-d-step-tag.done    { background: #dcfce7; color: #16a34a; }
.hs-d-step-tag.active  { background: rgba(117,79,206,.1); color: #754fce; }
.hs-d-step-tag.pending { background: #f1f5f9; color: #64748b; }
.hs-d-step-tag.review  { background: #fef3c7; color: #d97706; }

.hs-d-step-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* Optional metric inside a step */
.hs-d-step-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.hs-d-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.hs-d-meta-item svg { color: #94a3b8; }


/* ==========================================================================
   HERO STYLE E — Operations Hero
   Best for: Warehouse Management, Multi-Warehouse
   Layout: Centered text header + Full-width operations dashboard below
   ========================================================================== */

.hs-e {
  padding-bottom: 0;
}

.hs-e-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 2;
}

.hs-e-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hs-e-sub {
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Full-width operations dashboard */
.hs-e-dashboard-wrap {
  position: relative;
  z-index: 2;
  padding: 0 0 0;
}

.hs-e-dashboard {
  background: #fff;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(0,0,0,.09);
  border-bottom: none;
  box-shadow: 0 -4px 60px rgba(0,0,0,.08), 0 0 80px rgba(117,79,206,.05);
  overflow: hidden;
}

.hs-e-db-bar {
  background: #0f172a;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-e-db-label {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-left: 8px;
}

.hs-e-db-pill {
  margin-left: auto;
  background: rgba(117,79,206,.25);
  color: #c4b0e8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.hs-e-db-body {
  padding: 20px 24px;
}

/* Top KPI strip */
.hs-e-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.hs-e-kpi-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.06);
}

.hs-e-kpi-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: 5px;
}

.hs-e-kpi-val {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.hs-e-kpi-chg {
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}
.hs-e-kpi-chg.up   { color: #10b981; }
.hs-e-kpi-chg.warn { color: #f59e0b; }
.hs-e-kpi-chg.info { color: #754fce; }

/* Warehouse grid */
.hs-e-wh-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  margin-bottom: 10px;
}

.hs-e-wh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.hs-e-wh-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.hs-e-wh-name {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.hs-e-wh-val {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.hs-e-wh-cap {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
}

.hs-e-wh-bar {
  margin-top: 10px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.hs-e-wh-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #754fce, #9b7de0);
}
.hs-e-wh-fill.green  { background: linear-gradient(90deg, #10b981, #34d399); }
.hs-e-wh-fill.amber  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.hs-e-wh-fill.blue   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

/* Transfer flow row */
.hs-e-transfer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.06);
  margin-bottom: 6px;
  font-size: 12px;
}
.hs-e-transfer-row:last-child { margin-bottom: 0; }

.hs-e-tr-from,
.hs-e-tr-to {
  font-weight: 700;
  color: #0f172a;
  font-size: 12px;
}

.hs-e-tr-arrow {
  color: #94a3b8;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.hs-e-tr-qty {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.hs-e-tr-qty.in     { background: #dcfce7; color: #16a34a; }
.hs-e-tr-qty.out    { background: #fee2e2; color: #dc2626; }
.hs-e-tr-qty.transit{ background: #fef3c7; color: #d97706; }

.hs-e-tr-status {
  font-size: 10px;
  color: #64748b;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
  .hs-e-wh-grid      { grid-template-columns: repeat(3, 1fr); }
  .hs-e-kpi-strip    { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
  .hs-b,
  .hs-c,
  .hs-d,
  .hs-e    { padding: 72px 0 60px; }

  .hs-c-inner,
  .hs-d-inner { grid-template-columns: 1fr; gap: 40px; }

  /* On mobile, analytics/workflow visual goes first */
  .hs-c-visual { order: -1; }
  .hs-d-flow   { order: -1; }

  .hs-c-float-1,
  .hs-c-float-2 { display: none; }

  .hs-b-stats   { gap: 28px; }

  .hs-e-wh-grid   { grid-template-columns: repeat(2, 1fr); }
  .hs-e-kpi-strip { grid-template-columns: repeat(2, 1fr); }

  .hs-d-flow::before { left: 16px; }
}

@media (max-width: 575px) {
  .hs-b-stats   { flex-wrap: wrap; gap: 20px; justify-content: center; }
  .hs-b-pills   { display: none; }
  .hs-e-wh-grid { grid-template-columns: repeat(2, 1fr); }
}
