/* ==========================================================================
   HOME PAGE
   ========================================================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 5rem 0 5rem;
  overflow: hidden;
  background: var(--paper);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  top: -10%;
  right: -10%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.40), transparent 70%);
}
.hero::after {
  bottom: -15%;
  left: -10%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.hero-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--purple);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.12);
}
.hero-loc::before {
  content: '★';
  color: var(--magenta);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin-bottom: 4rem;
  max-width: 14ch;
  color: var(--ink);
}
.hero-title span {
  display: block;
}
.hero-title em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: end;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

/* Hero stamp ornament */
.hero-stamp {
  position: absolute;
  top: 6rem;
  right: 3rem;
  width: 130px;
  height: 130px;
  color: var(--emerald-bright);
  animation: stampFade 1.2s 0.4s both;
  display: grid;
  place-items: center;
}
.hero-stamp-ring {
  position: absolute;
  inset: 0;
  animation: rotate 28s linear infinite;
}
.hero-stamp-ring svg { width: 100%; height: 100%; }
.hero-stamp-core {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--emerald);
  color: var(--lime);
  border-radius: 50%;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1;
}
.hero-stamp-core .serif-italic { font-size: 0.7rem; }
.hero-stamp-core strong { font-size: 1rem; font-weight: 500; }
@keyframes stampFade { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .hero-stamp { display: none; } }

/* Marquee */
.marquee {
  margin-top: 4rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink-soft);
}
.marquee-track span:nth-child(even) {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 500;
}
.marquee-track span:nth-child(4n+2) { color: var(--emerald-bright); }
.marquee-track span:nth-child(4n+4) { color: var(--rust); }
.marquee-track span:nth-child(8n+6) { color: var(--berry); }
.marquee-track span:nth-child(8n+8) { color: var(--sky); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- PROOF STRIP ---------- */
.proof {
  background: var(--grad-dark);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.proof::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(236, 72, 153, 0.4), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.proof > .container { position: relative; z-index: 1; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.proof-cell {
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.proof-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(168, 85, 247, 0.25);
}
.proof-cell:nth-child(1) .proof-num {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.proof-cell:nth-child(2) .proof-num {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.proof-cell:nth-child(3) .proof-num {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.proof-cell:nth-child(4) .proof-num {
  background: linear-gradient(135deg, var(--yellow), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.proof-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.proof-label {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
@media (max-width: 700px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .proof-cell { border-left: none; padding-left: 0; }
}

/* ---------- PRODUCTS ---------- */
.products { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}
.product-card:last-child { border-bottom: 1px solid var(--line); }
/* meshPoS: image on LEFT, text on RIGHT */
.product-card.meshpos .product-visual { order: 1; }
.product-card.meshpos .product-body { order: 2; }
/* meshApps: image on RIGHT, text on LEFT */
.product-card.erp .product-visual { order: 2; }
.product-card.erp .product-body { order: 1; }

.product-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
/* Tighten the radius on the product-card pills so the bg color doesn't crowd the text */
.product-meta .eyebrow,
.product-meta .chip {
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
}
.product-body h3 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.2rem;
}
.product-tag {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 50ch;
}
.product-features {
  list-style: none;
  border-top: 1px solid var(--line);
}
.product-features li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--muted);
}
.product-features strong {
  color: var(--ink);
  font-weight: 600;
}
.product-card.meshpos .product-body h3 { color: var(--rust); }
.product-card.erp .product-body h3 { color: var(--emerald-bright); }
.product-card.meshpos .product-link { color: var(--rust); }
.product-card.erp .product-link { color: var(--emerald-bright); }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid currentColor;
  transition: gap 0.25s ease;
}
.product-link:hover { gap: 1rem; }

/* POS mock */
.pos-mock {
  background: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(13, 20, 16, 0.4),
              0 12px 24px -12px rgba(13, 20, 16, 0.2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.pos-mock-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: var(--ink-soft);
  border-bottom: 1px solid var(--ink-line);
}
.pos-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #555;
}
.pos-dot.red { background: #ec6a5e; }
.pos-dot.amber { background: #f5bf4f; }
.pos-dot.green { background: #62c554; }
.pos-mock-title {
  color: var(--parchment);
  margin-left: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.pos-mock-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
  padding: 1.5rem;
  color: var(--parchment);
}
.pos-line {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(245, 247, 255, 0.08);
}
.pos-line.muted { color: rgba(245, 247, 255, 0.55); }
.pos-line.total {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  border-bottom: none;
  padding-top: 0.8rem;
  letter-spacing: -0.01em;
}
.pos-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-content: start;
}
.pay-tile {
  padding: 1rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid rgba(245, 247, 255, 0.15);
  transition: transform 0.2s;
}
.pay-tile:hover { transform: translateY(-2px); }
.pay-tile.cash { background: rgba(245, 185, 66, 0.22); color: var(--gold); border-color: rgba(245, 185, 66, 0.5); }
.pay-tile.momo { background: rgba(239, 91, 59, 0.22); color: var(--terracotta); border-color: rgba(239, 91, 59, 0.5); }
.pay-tile.card { background: rgba(79, 70, 229, 0.25); color: var(--lime); border-color: rgba(79, 70, 229, 0.55); }
.pay-tile.credit { background: rgba(76, 201, 240, 0.18); color: var(--sky); border-color: rgba(76, 201, 240, 0.4); }

/* ERP mock */
.erp-mock {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 300px;
  box-shadow: 0 30px 60px -20px rgba(13, 20, 16, 0.18),
              0 12px 24px -12px rgba(13, 20, 16, 0.08);
}
.erp-mock-rail {
  background: var(--emerald-deep);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.erp-rail-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245, 247, 255, 0.6);
  padding: 0.6rem 0.7rem;
  border-radius: 5px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.erp-rail-item.active {
  background: rgba(168, 85, 247, 0.18);
  color: var(--gold);
}
.erp-mock-canvas {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.erp-canvas-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.erp-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald);
}
.erp-pulse span {
  width: 7px;
  height: 7px;
  background: var(--emerald-bright);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.erp-chart {
  width: 100%;
  height: 140px;
  margin: 0.5rem 0;
}
.erp-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.erp-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.erp-kpis .k {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.erp-kpis .u {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .product-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-card.meshpos .product-visual,
  .product-card.erp .product-visual,
  .product-card.erp .product-body {
    order: initial;
  }
  .erp-mock { grid-template-columns: 110px 1fr; min-height: auto; }
}

/* ---------- CAPABILITIES ---------- */
.capabilities {
  padding: var(--section) 0;
  background: var(--parchment);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cap {
  background: var(--parchment);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cap-accent, var(--emerald-bright));
  transition: height 0.25s ease;
}
.cap:hover {
  background: var(--paper);
}
.cap:hover::before { height: 7px; }
.cap:nth-child(1) { --cap-accent: var(--emerald-bright); }
.cap:nth-child(2) { --cap-accent: var(--rust); }
.cap:nth-child(3) { --cap-accent: var(--sky); }
.cap:nth-child(4) { --cap-accent: var(--berry); }
.cap:nth-child(5) { --cap-accent: var(--gold); }
.cap:nth-child(6) { --cap-accent: var(--lime); }
.cap-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cap-accent, var(--emerald-bright));
  font-weight: 600;
}
.cap h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.cap p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.cap code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(79, 70, 229, 0.08);
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  color: var(--emerald);
}
.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
}
.cap-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.65rem;
  background: color-mix(in srgb, var(--cap-accent, var(--emerald)) 18%, transparent);
  color: color-mix(in srgb, var(--cap-accent, var(--emerald)) 70%, var(--ink));
  border-radius: 999px;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- INDUSTRIES ---------- */
.industries { padding: clamp(2.5rem, 5.5vw, 4.5rem) 0 var(--section); }
.ind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.ind-card {
  position: relative;
  padding: 2.8rem;
  min-height: 300px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
  box-shadow: 0 12px 28px -8px rgba(76, 29, 149, 0.25);
}
.ind-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 48px -8px rgba(168, 85, 247, 0.35);
}
.ind-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.ind-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.ind-utilities::before { background: var(--grad-cool); }
.ind-retail::before { background: var(--grad-warm); }
.ind-realestate::before { background: var(--grad-primary); }
.ind-hr::before { background: var(--grad-dark); }
.ind-card * { color: #fff; position: relative; z-index: 1; }
.ind-num {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  width: fit-content;
  backdrop-filter: blur(4px);
}
.ind-card h3 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0.8rem 0 0.8rem;
}
.ind-card p {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 42ch;
  font-weight: 500;
}
.ind-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.ind-arrow::before {
  content: '';
  width: 0.5em;
  height: 0.5em;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}
.ind-card:hover .ind-arrow {
  background: #fff;
  transform: scale(1.08);
}
.ind-card:hover .ind-arrow::before { border-color: var(--ink); }

@media (max-width: 800px) { .ind-grid { grid-template-columns: 1fr; } }

/* ---------- PROCESS ---------- */
/* ---------- PROCESS (How we work) — Editorial cream w/ gradient timeline ---------- */
.process {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: linear-gradient(180deg, #fff8f0 0%, #fef0e3 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.process::before {
  /* soft purple bloom top-right for depth */
  content: '';
  position: absolute;
  top: -150px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.10), transparent 60%);
  pointer-events: none;
}
.process::after {
  /* warm coral bloom bottom-left */
  content: '';
  position: absolute;
  bottom: -200px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 122, 77, 0.12), transparent 60%);
  pointer-events: none;
}
.process .container { position: relative; z-index: 1; }
.process .section-head { border-color: rgba(76, 29, 149, 0.12); }
.process .section-head .section-num { color: var(--purple); }
.process .section-head h2 { color: var(--ink); }
.process .section-head h2 em {
  background: linear-gradient(135deg, var(--coral), var(--pink), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.process .section-head p { color: var(--ink-soft); }

.process-list {
  list-style: none;
  counter-reset: proc;
  position: relative;
  margin-top: 1rem;
}
/* Vertical gradient timeline track */
.process-list::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    var(--coral) 0%,
    var(--pink) 30%,
    var(--purple) 60%,
    var(--sky) 85%,
    var(--mint) 100%);
  border-radius: 3px;
  opacity: 0.85;
}
.process-list li {
  display: grid;
  grid-template-columns: 80px 1fr 160px;
  gap: 2rem;
  padding: 2rem 0 2rem 0;
  align-items: start;
  position: relative;
}
.process-list li + li {
  border-top: 1px solid rgba(76, 29, 149, 0.08);
}
.proc-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proc-marker span {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--mark-color, var(--purple));
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mark-color, var(--purple));
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px -8px rgba(76, 29, 149, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-list li:hover .proc-marker span {
  transform: scale(1.05);
  box-shadow: 0 12px 32px -8px var(--mark-glow, rgba(168, 85, 247, 0.40));
}
/* per-phase colors */
.process-list li:nth-child(1) { --mark-color: var(--coral); --mark-glow: rgba(255, 122, 77, 0.45); }
.process-list li:nth-child(2) { --mark-color: var(--pink); --mark-glow: rgba(236, 72, 153, 0.45); }
.process-list li:nth-child(3) { --mark-color: var(--purple); --mark-glow: rgba(168, 85, 247, 0.45); }
.process-list li:nth-child(4) { --mark-color: var(--sky); --mark-glow: rgba(34, 180, 255, 0.45); }
.process-list li:nth-child(5) { --mark-color: var(--mint); --mark-glow: rgba(52, 211, 153, 0.45); }

.proc-body h4 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.proc-body p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
}
.proc-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: right;
  letter-spacing: 0.06em;
  color: var(--mark-color, var(--purple));
  text-transform: uppercase;
  font-weight: 700;
  padding-top: 0.5rem;
}
@media (max-width: 800px) {
  .process-list::before { left: 24px; }
  .process-list li {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .proc-marker span { width: 50px; height: 50px; font-size: 1.1rem; border-width: 2px; }
  .proc-meta {
    grid-column: 1 / -1;
    padding-left: 76px;
    text-align: left;
    padding-top: 0.4rem;
  }
}

/* ---------- PHILOSOPHY ---------- */
.philosophy {
  padding: calc(var(--section) * 1.2) 0;
  background: var(--paper);
  text-align: center;
  position: relative;
}
.philosophy-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  position: relative;
}
.philosophy-quote em {
  font-style: italic;
  color: var(--emerald-bright);
}
.quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  color: var(--rust);
  position: absolute;
  top: -2.6rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.philosophy-attr {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--section); }
.cta-card {
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 56px -16px rgba(168, 85, 247, 0.45);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 201, 63, 0.45), transparent 60%);
  z-index: -1;
}
.cta-card::after {
  content: '✦';
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-display);
  line-height: 1;
}
.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  margin-bottom: 1.6rem;
  width: fit-content;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.cta-card h2 em,
.cta-card h2 .serif-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, #ffc93f, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cta-card p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 55ch;
  margin-bottom: 2.5rem;
  font-weight: 500;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.cta .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cta .btn-primary:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 201, 63, 0.45);
}
.cta .btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.cta .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* ============================================================
   DASHBOARDS SHOWCASE (slider)
   ============================================================ */
.dashes {
  padding: var(--section) 0;
  background:
    radial-gradient(ellipse at top right, rgba(255, 77, 141, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(168, 85, 247, 0.16), transparent 50%),
    var(--parchment);
  overflow: hidden;
}

.dash-slider {
  position: relative;
  margin-top: 2rem;
}

.dash-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px -8px rgba(5, 8, 22, 0.4);
}
.dash-nav.prev { left: -20px; }
.dash-nav.next { right: -20px; }
.dash-nav:hover {
  background: var(--emerald);
  transform: translateY(-50%) scale(1.06);
}
@media (max-width: 760px) {
  .dash-nav.prev { left: 8px; }
  .dash-nav.next { right: 8px; }
}

.dash-track {
  position: relative;
  border-radius: 18px;
  background: var(--grad-dark);
  box-shadow:
    0 40px 80px -32px rgba(5, 8, 22, 0.5),
    0 16px 32px -16px rgba(79, 70, 229, 0.25);
  min-height: 760px;
  overflow: hidden;
}

.dash-slide {
  position: absolute;
  inset: 0;
  padding: 2rem 2rem 2.4rem;
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: none;
  overflow: hidden;
}
.dash-slide.active { opacity: 1; pointer-events: auto; }

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(245, 247, 255, 0.10);
}
.dash-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  background: rgba(34, 211, 238, 0.10);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.dash-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--parchment);
}
.dash-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(245, 247, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
  animation: pulseLive 1.6s ease-in-out infinite;
}
@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.05); }
}

.dash-body {
  flex: 1;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
@media (max-width: 860px) {
  .span-3, .span-4 { grid-column: span 6; }
  .span-6, .span-8 { grid-column: span 12; }
}

/* Dashboard cards */
.dash-card,
.dash-kpi,
.param-card,
.param-tile,
.asset-card {
  background: rgba(245, 247, 255, 0.04);
  border: 1px solid rgba(245, 247, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  color: var(--parchment);
}
.dash-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 247, 255, 0.75);
  font-weight: 600;
}
.dash-card-head .muted {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(245, 247, 255, 0.45);
}

.dash-chart-area {
  width: 100%;
  height: 160px;
}
.dash-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(245, 247, 255, 0.45);
  margin-top: 0.3rem;
}

/* KPIs */
.dash-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 247, 255, 0.55);
}
.kpi-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi-val.cyan { color: var(--cyan-bright); }
.kpi-val.purple { color: var(--berry); }
.kpi-delta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
}
.kpi-delta.up { color: var(--cyan-bright); }
.kpi-delta.muted { color: rgba(245, 247, 255, 0.45); }

/* Bars */
.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.45rem 0;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: rgba(245, 247, 255, 0.9);
}
.bar {
  height: 10px;
  background: rgba(245, 247, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.bar-val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(245, 247, 255, 0.75);
  text-align: right;
}

/* Parameter cards */
.param-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.p-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 247, 255, 0.6);
}
.p-val {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.p-val.cyan { color: var(--cyan-bright); }
.p-val.purple { color: var(--berry); }
.p-bar {
  display: block;
  height: 5px;
  background: rgba(245, 247, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.p-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.p-range {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(245, 247, 255, 0.4);
}

.param-tile {
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  border-left: 3px solid;
}
.param-tile.ok { border-color: var(--cyan-bright); color: var(--cyan-bright); }
.param-tile.warn { border-color: var(--gold); color: var(--gold); }
.param-tile.crit { border-color: var(--rust); color: var(--rust); }

.dash-legend {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245, 247, 255, 0.7);
}
.dash-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Donut */
.donut-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.5rem 0;
}
.donut { width: 140px; height: 140px; }
.donut-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.donut-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--cyan-bright);
  line-height: 1;
}
.donut-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(245, 247, 255, 0.6);
}

/* Big stat */
.big-stat {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0.4rem 0;
}
.big-stat.cyan { color: var(--cyan-bright); }
.big-stat.purple { color: var(--berry); }
.small { font-size: 0.82rem; }
.mt { margin-top: 0.4rem; }

/* Table */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  font-family: var(--font-body);
}
.dash-table th,
.dash-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(245, 247, 255, 0.06);
}
.dash-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 247, 255, 0.5);
  font-weight: 600;
}
.dash-table td { color: rgba(245, 247, 255, 0.88); }
.dash-table td.up { color: var(--cyan-bright); font-family: var(--font-mono); font-size: 0.78rem; }
.dash-table td.muted { color: rgba(245, 247, 255, 0.45); }

.pill {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}
.pill.indigo { background: rgba(79, 70, 229, 0.2); color: #a5b4fc; }
.pill.purple { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.pill.cyan { background: rgba(34, 211, 238, 0.2); color: var(--cyan-bright); }
.pill.warn { background: rgba(251, 191, 36, 0.18); color: var(--gold); }
.pill.crit { background: rgba(244, 63, 94, 0.2); color: var(--rust); }
.pill.info { background: rgba(245, 247, 255, 0.1); color: rgba(245, 247, 255, 0.7); }

/* Pipeline */
.pipeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pipeline li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(245, 247, 255, 0.06);
  color: rgba(245, 247, 255, 0.5);
}
.pipeline li:last-child { border-bottom: none; }
.step-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(245, 247, 255, 0.06);
  color: rgba(245, 247, 255, 0.5);
}
.pipeline li.done .step-n { background: var(--emerald); color: var(--parchment); }
.pipeline li.done { color: var(--parchment); }
.pipeline li.running .step-n {
  background: var(--cyan-bright);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
  animation: pulseLive 1.6s ease-in-out infinite;
}
.pipeline li.running { color: var(--cyan-bright); }
.step-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(245, 247, 255, 0.55);
}

/* Asset cards */
.asset-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.asset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--parchment);
}
.asset-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: rgba(245, 247, 255, 0.75);
}
.asset-row strong { color: var(--parchment); font-weight: 600; }
.asset-spark { margin-top: 0.3rem; }
.asset-spark svg { width: 100%; height: 30px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}
.badge.ok { background: rgba(34, 211, 238, 0.15); color: var(--cyan-bright); }
.badge.warn { background: rgba(251, 191, 36, 0.18); color: var(--gold); }

/* Pager / dots */
.dash-pager {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--muted);
}
.dash-current {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--emerald);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.dash-title-live {
  margin-left: auto;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.dash-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.4rem;
}
.dash-dot {
  width: 26px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.18);
  cursor: pointer;
  transition: all 0.25s ease;
}
.dash-dot:hover { background: rgba(79, 70, 229, 0.4); }
.dash-dot.active {
  background: var(--emerald);
  width: 52px;
}

@media (max-width: 700px) {
  .dash-slide { min-height: 0; padding: 1.4rem 1rem 1.6rem; }
  .dash-head h3 { font-size: 1.1rem; }
  .bar-row { grid-template-columns: 80px 1fr 60px; font-size: 0.74rem; }
  .dash-table { font-size: 0.74rem; }
  .dash-table th, .dash-table td { padding: 0.5rem 0.4rem; }
}

/* ==========================================================================
   DASHBOARD SLIDES v4 — real-system replicas
   ========================================================================== */

/* Tag colors */
.dash-tag.tag-coral { background: rgba(255, 122, 77, 0.14); color: var(--coral); }
.dash-tag.tag-cyan { background: rgba(34, 180, 255, 0.14); color: var(--sky); }
.dash-tag.tag-purple { background: rgba(168, 85, 247, 0.14); color: var(--purple); }
.dash-tag.tag-cyan-bright { background: rgba(34, 180, 255, 0.22); color: var(--cyan-bright); }
.dash-tag.tag-mint { background: rgba(20, 184, 166, 0.14); color: var(--teal); }

/* Header accent strips */
.safety-head { border-top: 4px solid var(--coral); padding-top: 1.2rem; }
.power-head { border-top: 4px solid var(--sky); padding-top: 1.2rem; }
.mesh-head { border-top: 4px solid var(--purple); padding-top: 1.2rem; }
.mesh-head-dark { border-top: 4px solid var(--cyan-bright); padding-top: 1.2rem; }
.hr-head { border-top: 4px solid var(--teal); padding-top: 1.2rem; }
.dash-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}
.dash-slide-dark .dash-sub { color: rgba(255,255,255,0.6); }

/* KPI strip (6-cell across) */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.ks-cell {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(76, 29, 149, 0.08);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ks-l {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.ks-v {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.ks-v small { font-size: 0.7em; font-weight: 700; }
.ks-d { font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); }
.ks-d.mint { color: #047857; }
.ks-d.coral { color: var(--coral); }
.ks-d.yellow { color: #b45309; }

.dash-slide-dark .ks-cell { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.dash-slide-dark .ks-l { color: rgba(255,255,255,0.6); }
.dash-slide-dark .ks-v { color: #fff; }
.dash-slide-dark .ks-d { color: rgba(255,255,255,0.65); }

/* Donut chart */
.dash-donut-wrap {
  display: grid;
  place-items: center;
  padding: 0.5rem 0;
}
.dash-donut { width: 130px; height: 130px; }

/* Legend */
.dash-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.4rem 0 0;
}
.dash-leg .leg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.dash-leg .leg i {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
}
.dl-compact {
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.7rem;
  padding: 0.3rem 0 0;
}

/* Pills used in dashboard tables */
.pill {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill.ok { background: rgba(52, 211, 153, 0.20); color: #047857; }
.pill.warn { background: rgba(255, 201, 63, 0.22); color: #b45309; }
.pill.crit { background: rgba(255, 77, 141, 0.20); color: #be185d; }
.pill.info { background: rgba(34, 180, 255, 0.18); color: var(--sky); }
.pill.coral { background: rgba(255, 122, 77, 0.18); color: var(--coral); }
.pill.purple { background: rgba(168, 85, 247, 0.16); color: var(--purple); }
.pill.cyan { background: rgba(34, 180, 255, 0.16); color: var(--sky); }
.pill.mint { background: rgba(52, 211, 153, 0.18); color: #047857; }
.pos { color: #047857; font-weight: 700; }

/* Dashboard tables */
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.dash-table th, .dash-table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(76, 29, 149, 0.06);
}
.dash-table th {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Incident banner */
.incident-banner {
  background: linear-gradient(90deg, rgba(255, 77, 141, 0.12), rgba(236, 72, 153, 0.06));
  border: 1px solid rgba(255, 77, 141, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink);
}
.incident-banner.dark {
  background: linear-gradient(90deg, rgba(255, 77, 141, 0.18), rgba(236, 72, 153, 0.08));
  border-color: rgba(255, 77, 141, 0.35);
  color: rgba(255,255,255,0.9);
}
.incident-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  white-space: nowrap;
}
.incident-body { flex: 1; line-height: 1.5; }
.incident-body strong { font-weight: 700; color: var(--coral); }
.incident-status {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 201, 63, 0.22);
  color: #b45309;
}

/* Personnel cards grid */
.personnel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.pc-card {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.10);
  border-radius: 12px;
  padding: 0.9rem;
  border-top: 3px solid var(--pc, var(--purple));
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pc-badge {
  width: 32px; height: 32px;
  background: var(--pc, var(--purple));
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.pc-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.pc-role {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.pc-stats > div {
  background: rgba(76, 29, 149, 0.04);
  border-radius: 6px;
  padding: 0.5rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.pcv {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pc, var(--purple));
  line-height: 1;
}
.pcl {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Dark slide variant */
.dash-slide.dash-slide-dark {
  background: linear-gradient(135deg, #0d0626 0%, #1f0b3d 50%, #2e1065 100%);
  color: #fff;
}
.dash-slide-dark .dash-head h3 { color: #fff; }
.dash-slide-dark .dash-meta { color: rgba(255,255,255,0.75); }
.dash-card-dark {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.9);
}
.dash-card-head.dark { color: rgba(255,255,255,0.85); }
.dash-card-head.dark .muted { color: rgba(255,255,255,0.5); }

/* Roster legend */
.roster-legend {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.8rem;
}
.rl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}
.rl-d { background: rgba(34, 180, 255, 0.20); color: var(--cyan-bright); }
.rl-n { background: rgba(255, 122, 77, 0.20); color: var(--coral); }
.rl-c { background: rgba(255, 201, 63, 0.20); color: var(--yellow); }
.rl-e { background: rgba(52, 211, 153, 0.20); color: var(--mint); }

/* Roster table */
.roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
}
.roster-table th {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  padding: 0.35rem 0.3rem;
  text-align: center;
}
.roster-table th.r, .roster-table td.r {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--mint);
  font-weight: 700;
}
.roster-table td {
  padding: 0.35rem 0.2rem;
  text-align: center;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.roster-table td.ag {
  text-align: left;
  padding-left: 0.6rem;
  color: var(--ag, var(--cyan-bright));
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
}
.roster-table td.d { background: rgba(34, 180, 255, 0.18); color: var(--cyan-bright); }
.roster-table td.n { background: rgba(255, 122, 77, 0.18); color: var(--coral); }
.roster-table td.c { background: rgba(255, 201, 63, 0.18); color: var(--yellow); }
.roster-table td.e { background: rgba(52, 211, 153, 0.18); color: var(--mint); }

/* Responsive */
@media (max-width: 1100px) {
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .personnel-grid { grid-template-columns: repeat(2, 1fr); }
  .roster-table { font-size: 0.62rem; }
}
@media (max-width: 700px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .personnel-grid { grid-template-columns: 1fr; }
  .roster-table { font-size: 0.55rem; }
  .roster-table td, .roster-table th { padding: 0.2rem 0.15rem; }
}

/* ==========================================================================
   BILINGUAL meshPower DASHBOARDS
   ========================================================================== */

/* Header that hosts the lang toggle */
.mesh-bilingual {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
.lang-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

/* Language toggle (EN/FR pill) */
.lang-toggle {
  display: inline-flex;
  background: rgba(168, 85, 247, 0.10);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.lang-toggle.dark { background: rgba(255, 255, 255, 0.08); }
.lt-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.18s ease;
}
.lt-btn.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.30);
}
.lang-toggle.dark .lt-btn { color: rgba(255, 255, 255, 0.6); }
.lang-toggle.dark .lt-btn.active {
  background: var(--cyan-bright);
  color: var(--ink-deep);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.30);
}
.lt-btn:hover:not(.active) {
  color: var(--purple);
  background: rgba(168, 85, 247, 0.06);
}

/* Tab bar */
.meshp-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(76, 29, 149, 0.10);
  flex-wrap: wrap;
}
.meshp-tabs.dark { border-bottom-color: rgba(255,255,255,0.10); }
.mt-tab {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.meshp-tabs.dark .mt-tab { color: rgba(255,255,255,0.55); }
.mt-tab.active {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple);
}
.meshp-tabs.dark .mt-tab.active {
  background: rgba(34, 211, 238, 0.18);
  color: var(--cyan-bright);
}

/* Personnel section wrap */
.personnel-section {
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.10);
  border-radius: 12px;
  padding: 1rem;
}
.ps-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(76, 29, 149, 0.06);
}
.ps-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
}
.ps-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Roster head/foot extras */
.roster-head {
  margin-bottom: 0.5rem;
}
.rh-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cyan-bright);
  text-transform: uppercase;
}
.roster-foot {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-style: italic;
}

@media (max-width: 760px) {
  .mesh-bilingual { flex-direction: column; }
  .lang-controls { align-items: flex-start; }
  .meshp-tabs { gap: 0.3rem; }
  .mt-tab { font-size: 0.7rem; padding: 0.35rem 0.6rem; }
}

/* ==========================================================================
   BILINGUAL FEATURE HIGHLIGHT — sits below the dashboards section
   ========================================================================== */
.bilingual-feature {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.bilingual-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--grad-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 56px -16px rgba(76, 29, 149, 0.45);
}
.bilingual-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.30), transparent 60%);
  z-index: 0;
  filter: blur(40px);
}
.bilingual-card > * { position: relative; z-index: 1; }

.bf-text .bf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  padding: 0.4rem 0.9rem;
  background: rgba(34, 211, 238, 0.14);
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}
.bf-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.bf-text h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--yellow), var(--coral));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bf-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1rem;
  font-weight: 500;
  max-width: 55ch;
}
.bf-langs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}
.bf-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.bf-lang-pill .lang-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--coral), var(--pink), var(--purple));
  color: #fff;
  line-height: 1;
}

.bf-demo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
}
.bf-demo-row {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  gap: 1rem;
  font-size: 0.85rem;
  align-items: center;
}
.bf-demo-row.head {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.bf-demo-row .term {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
  font-weight: 600;
}
.bf-demo-row .en, .bf-demo-row .fr {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}
.bf-demo-row .fr { color: var(--cyan-bright); }

@media (max-width: 900px) {
  .bilingual-card { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .bf-demo-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .bf-demo-row.head { display: none; }
  .bf-demo-row .term { font-size: 0.72rem; }
}

/* ==========================================================================
   DASHBOARD LIGHT-THEME OVERRIDES — applied to all slides except .dash-slide-dark
   ========================================================================== */

/* Make the slider frame neutral cream so light slides breathe */
.dash-track {
  background: #fef9f1 !important;   /* warm cream */
  border: 1px solid rgba(76, 29, 149, 0.08);
}

/* Header text — dark by default on every slide */
.dash-slide:not(.dash-slide-dark) .dash-head h3 {
  color: var(--ink) !important;
  font-weight: 800;
}
.dash-slide:not(.dash-slide-dark) .dash-meta {
  color: var(--ink-soft) !important;
}

/* Card backgrounds — solid white on light slides */
.dash-slide:not(.dash-slide-dark) .dash-card,
.dash-slide:not(.dash-slide-dark) .dash-kpi {
  background: #ffffff !important;
  border: 1px solid rgba(76, 29, 149, 0.10) !important;
  color: var(--ink);
  box-shadow: 0 2px 8px -4px rgba(76, 29, 149, 0.08);
}

/* Card-head text */
.dash-slide:not(.dash-slide-dark) .dash-card-head {
  color: var(--ink) !important;
  font-weight: 700;
}
.dash-slide:not(.dash-slide-dark) .dash-card-head .muted {
  color: var(--ink-soft) !important;
}

/* Axis labels */
.dash-slide:not(.dash-slide-dark) .dash-axis {
  color: var(--ink-soft) !important;
}

/* Legacy KPI labels */
.dash-slide:not(.dash-slide-dark) .kpi-label {
  color: var(--ink-soft) !important;
}
.dash-slide:not(.dash-slide-dark) .kpi-val {
  color: var(--ink) !important;
  font-weight: 800;
}
.dash-slide:not(.dash-slide-dark) .kpi-delta.muted {
  color: var(--ink-soft) !important;
}

/* Bar rows */
.dash-slide:not(.dash-slide-dark) .bar-row {
  color: var(--ink) !important;
  font-weight: 500;
}
.dash-slide:not(.dash-slide-dark) .bar {
  background: rgba(76, 29, 149, 0.08) !important;
}
.dash-slide:not(.dash-slide-dark) .bar-val {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}

/* Tables */
.dash-slide:not(.dash-slide-dark) .dash-table th {
  color: var(--ink-soft) !important;
}
.dash-slide:not(.dash-slide-dark) .dash-table td {
  color: var(--ink) !important;
}

/* Pager (below the track) — already dark by inheritance; ensure visibility */
.dash-pager .dash-title-live { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   DASHBOARD DARK-THEME — explicit rules for dark slides (not relying on inheritance)
   ========================================================================== */

/* Dark slide gets a richer purple-ink gradient with subtle texture */
.dash-slide.dash-slide-dark {
  background: linear-gradient(135deg, #1a0f3d 0%, #2e1065 50%, #3b1880 100%);
}

/* All dash-cards in dark slide */
.dash-slide-dark .dash-card,
.dash-slide-dark .dash-kpi {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.25);
}

/* Dark slide card heads */
.dash-slide-dark .dash-card-head {
  color: rgba(255, 255, 255, 0.92) !important;
}
.dash-slide-dark .dash-card-head .muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Dark slide axes/sub text */
.dash-slide-dark .dash-axis,
.dash-slide-dark .dash-sub {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Dark slide bar rows */
.dash-slide-dark .bar-row {
  color: rgba(255, 255, 255, 0.92) !important;
}
.dash-slide-dark .bar {
  background: rgba(255, 255, 255, 0.10) !important;
}
.dash-slide-dark .bar-val {
  color: rgba(255, 255, 255, 0.70);
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}

/* Dark slide tables */
.dash-slide-dark .dash-table th {
  color: rgba(255, 255, 255, 0.55) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}
.dash-slide-dark .dash-table td {
  color: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dark slide legend */
.dash-slide-dark .dash-leg {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Dark slide KPI strip */
.dash-slide-dark .kpi-strip .ks-cell {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.dash-slide-dark .ks-l { color: rgba(255, 255, 255, 0.65) !important; }
.dash-slide-dark .ks-v { color: #fff !important; }
.dash-slide-dark .ks-d { color: rgba(255, 255, 255, 0.70) !important; }
.dash-slide-dark .ks-d.mint { color: #6ee7b7 !important; }
.dash-slide-dark .ks-d.coral { color: #fda4af !important; }
.dash-slide-dark .ks-d.yellow { color: #fde047 !important; }
.dash-slide-dark .pos { color: #6ee7b7 !important; }

/* Dark slide pill colors (better contrast) */
.dash-slide-dark .pill.ok { background: rgba(110, 231, 183, 0.20); color: #6ee7b7; }
.dash-slide-dark .pill.warn { background: rgba(253, 224, 71, 0.20); color: #fde047; }
.dash-slide-dark .pill.crit { background: rgba(253, 164, 175, 0.22); color: #fda4af; }
.dash-slide-dark .pill.info { background: rgba(125, 211, 252, 0.22); color: #7dd3fc; }
.dash-slide-dark .pill.coral { background: rgba(253, 164, 175, 0.20); color: #fda4af; }
.dash-slide-dark .pill.purple { background: rgba(196, 181, 253, 0.20); color: #c4b5fd; }
.dash-slide-dark .pill.cyan { background: rgba(125, 211, 252, 0.22); color: #7dd3fc; }
.dash-slide-dark .pill.mint { background: rgba(110, 231, 183, 0.20); color: #6ee7b7; }

/* ==========================================================================
   MODERNISATION / LEGACY MIGRATION SECTION
   ========================================================================== */
.modernisation {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
}
.mod-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  background: linear-gradient(135deg, #fff8f0 0%, #ffefe0 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(76, 29, 149, 0.18);
}
.mod-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 65%);
  pointer-events: none;
}
.mod-card::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 122, 77, 0.12), transparent 65%);
  pointer-events: none;
}
.mod-card > * { position: relative; z-index: 1; }

.mod-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}
.mod-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.mod-text h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mod-lede {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 500;
}
.mod-text p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 55ch;
}
.mod-text strong { color: var(--ink); font-weight: 700; }

.mod-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.mod-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: #fff;
  border: 1px solid rgba(76, 29, 149, 0.10);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
.mp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Flow diagram */
.mod-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: stretch;
}
.mod-stage {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 8px 24px -12px rgba(76, 29, 149, 0.15);
}
.stage-old {
  border: 1px solid rgba(255, 122, 77, 0.25);
  background: linear-gradient(135deg, #fff 0%, #fff5ed 100%);
}
.stage-new {
  border: 1px solid rgba(52, 211, 153, 0.30);
  background: linear-gradient(135deg, #fff 0%, #f0fdf5 100%);
}
.mod-stage-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stage-old .mod-stage-tag { color: var(--coral); }
.stage-new .mod-stage-tag { color: #047857; }
.mod-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ms-row {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  background: rgba(76, 29, 149, 0.03);
  border-left: 3px solid var(--c, var(--purple));
  border-radius: 4px;
  color: var(--ink);
}
.stage-old .ms-row:nth-child(4) { color: var(--ink-soft); text-decoration: line-through; opacity: 0.65; }

.mod-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 80px;
}
.mod-arrow svg { width: 80px; height: 50px; }
.mod-arrow-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple);
  text-align: center;
}

@media (max-width: 900px) {
  .mod-card { grid-template-columns: 1fr; gap: 2rem; }
  .mod-flow { grid-template-columns: 1fr; }
  .mod-arrow { transform: rotate(90deg); margin: 0.4rem 0; min-width: 0; }
  .mod-arrow svg { width: 60px; height: 40px; }
}

/* ==========================================================================
   HERO SPLIT LAYOUT — left column (title/lede/actions) + right column (showcase slider)
   ========================================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
/* Override the old .hero-title bottom margin since it's now inside a flex column */
.hero-split .hero-title {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  max-width: 18ch;
}
.hero-split .hero-lede {
  max-width: 50ch;
}
.hero-split .hero-actions {
  justify-content: flex-start;
  margin-top: 0.4rem;
}
.hero-right {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .hero-right { min-height: 380px; }
}

/* ==========================================================================
   HERO SHOWCASE — 5-slide rotating panel
   ========================================================================== */
.hero-showcase {
  width: 100%;
  max-width: 540px;
  position: relative;
}
.hs-frame {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
  border-radius: 22px;
  padding: 2rem 1.8rem 2.6rem;
  box-shadow:
    0 30px 60px -24px rgba(168, 85, 247, 0.30),
    0 12px 24px -8px rgba(76, 29, 149, 0.12);
  border: 1px solid rgba(76, 29, 149, 0.08);
  overflow: hidden;
  min-height: 460px;
}
/* Top gradient strip on the frame */
.hs-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    var(--coral) 0%,
    var(--pink) 30%,
    var(--purple) 60%,
    var(--sky) 100%);
}
/* Soft purple bloom in corner */
.hs-frame::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.10), transparent 65%);
  pointer-events: none;
}

.hs-track {
  position: relative;
  min-height: 360px;
  z-index: 1;
}
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hs-slide.hs-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hs-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.hs-blurb {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}

/* === Slide A — 21 modules / one platform === */
.hs-bigtype {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
  color: var(--ink);
}
.hs-bigtype .hs-num {
  display: block;
  font-size: clamp(4.5rem, 10vw, 6.5rem);
  background: linear-gradient(135deg, var(--coral), var(--pink), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 0.88;
}
.hs-bigtype .hs-modules {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hs-bigtype .hs-one {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
.hs-bigtype .hs-one em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  color: var(--purple);
}

.hs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
.hs-chip {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c, var(--purple));
  background: color-mix(in srgb, var(--c, #a855f7) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #a855f7) 30%, transparent);
}

/* === Slide B — Safety Operations mini-dash === */
.hs-dash {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(76, 29, 149, 0.10);
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 14px -6px rgba(76, 29, 149, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hsd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hsd-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: color-mix(in srgb, var(--c, #ff7a4d) 14%, transparent);
  color: var(--c, var(--coral));
  border-radius: 6px;
}
.hsd-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.hsd-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: pulseLive 1.6s ease-in-out infinite;
}
.hsd-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.hsd-kpi {
  background: linear-gradient(135deg, #fff 0%, #fff5ed 100%);
  border: 1px solid rgba(76, 29, 149, 0.06);
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.hsd-k {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.hsd-l {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hsd-chart {
  width: 100%;
  height: 60px;
}
.hsd-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-soft);
  font-weight: 600;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(76, 29, 149, 0.10);
}

/* === Slide C — Bilingual === */
.hs-bilingual .hs-bigtype {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.05;
}
.hs-bilingual .hs-bigtype span {
  display: block;
}
.hs-bling-en em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hs-bling-amp {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--purple);
  font-weight: 800;
  margin: 0.2rem 0;
}
.hs-bling-fr em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sky), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hs-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.hs-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
}

/* === Slide D — meshPoS mini === */
.hs-poscard {
  background: linear-gradient(135deg, #0f0729 0%, #1f0b3d 50%, #2e1065 100%);
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(15, 7, 41, 0.50);
}
.hsp-top {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hsp-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ef4444;
}
.hsp-dot.a { background: #f59e0b; }
.hsp-dot.g { background: #10b981; }
.hsp-title {
  margin-left: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}
.hsp-body {
  padding: 0.8rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hsp-cart-line {
  display: grid;
  grid-template-columns: 1.6fr 0.4fr 0.7fr;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
}
.hsp-cart-line strong { font-weight: 600; }
.hsp-cart-line span:nth-child(2) {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.hsp-amt {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--yellow);
}
.hsp-totals {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hsp-totals > div {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}
.hsp-grand {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.95rem !important;
  color: #fff !important;
  font-weight: 700;
}
.hsp-grand span:last-child {
  background: linear-gradient(135deg, var(--yellow), var(--coral));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hsp-pay {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.hsp-tender {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hsp-tender.cash { background: rgba(255, 201, 63, 0.20); color: var(--yellow); border: 1px solid rgba(255, 201, 63, 0.30); }
.hsp-tender.momo { background: rgba(255, 122, 77, 0.20); color: var(--coral); border: 1px solid rgba(255, 122, 77, 0.30); }
.hsp-tender.card { background: rgba(52, 211, 153, 0.18); color: var(--mint); border: 1px solid rgba(52, 211, 153, 0.30); }

/* === Slide E — Modernisation === */
.hs-modern .hs-bigtype {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.hs-modern-l {
  display: block;
  color: var(--ink);
}
.hs-modern-r {
  display: block;
}
.hs-modern-r em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--coral), var(--purple));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hs-flow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}
.hsf-old {
  padding: 0.5rem 0.9rem;
  background: rgba(255, 122, 77, 0.10);
  color: var(--coral);
  border: 1px solid rgba(255, 122, 77, 0.30);
  border-radius: 8px;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.85;
}
.hsf-arrow {
  font-size: 1.2rem;
  color: var(--purple);
  font-weight: 800;
}
.hsf-new {
  padding: 0.5rem 0.9rem;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px -6px rgba(168, 85, 247, 0.40);
}

/* === Navigation dots === */
.hs-nav {
  position: absolute;
  bottom: 1.1rem;
  left: 1.8rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}
.hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(76, 29, 149, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.hs-dot:hover { background: rgba(76, 29, 149, 0.40); }
.hs-dot.hs-dot-active {
  width: 22px;
  border-radius: 999px;
  background: var(--grad-primary);
  box-shadow: 0 2px 8px -2px rgba(168, 85, 247, 0.40);
}
.hs-tag {
  position: absolute;
  bottom: 1.1rem;
  right: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 2;
}

/* Responsive */
@media (max-width: 600px) {
  .hs-frame { padding: 1.6rem 1.3rem 2.4rem; min-height: 420px; }
  .hs-nav { left: 1.3rem; }
  .hs-tag { right: 1.3rem; font-size: 0.62rem; }
  .hsd-kpis { gap: 0.3rem; }
  .hsd-k { font-size: 1.1rem; }
}

/* ==========================================================================
   HERO — Two-column with text left, slider+caption+nav grouped right
   ========================================================================== */
.hero.hero-devx {
  position: relative;
  min-height: auto;
  height: auto;
  padding: 2rem 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f0 0%, #fef0e3 100%);
  isolation: isolate;
}
.hero.hero-devx::before,
.hero.hero-devx::after { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  width: 100%;
  min-height: 70vh;
}

/* LEFT COLUMN — text */
.hero-text-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-top: 0.5rem;
  pointer-events: none;     /* let clicks pass through to underlying slider */
}
/* Re-enable pointer events ONLY on interactive controls inside the text column */
.hero-text-col a,
.hero-text-col button,
.hero-text-col .chip {
  pointer-events: auto;
}

.hero.hero-devx .hero-title {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  color: var(--ink);
  max-width: 14ch;
  opacity: 1;
}
.hero.hero-devx .hero-title em {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--purple);
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 700;
  opacity: 1;
}
.hero.hero-devx .hero-title span {
  display: block;
  opacity: 1 !important;
  color: var(--ink) !important;
}

.hero.hero-devx .hero-lede {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
  max-width: 48ch;
  opacity: 1;
}
.hero.hero-devx .hero-lede strong {
  color: var(--purple);
  font-weight: 700;
}

.hero.hero-devx .hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.7rem;
  margin: 0;
  flex-wrap: wrap;
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--purple);
  color: var(--purple);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-ghost-light:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.hero.hero-devx .hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
}

/* RIGHT COLUMN — slider + caption + nav grouped */
.hero-media-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Image slider — extends well to the left, smooth alpha-mask fade */
.hero-bg-slides {
  position: relative;
  width: calc(100% + 140px);
  margin-left: -140px;
  margin-top: 1rem;
  aspect-ratio: 16 / 10;
  max-height: 50vh;
  overflow: visible;            /* allow drop-shadow to extend beyond bounds */
  background: transparent;
}

.hero-scrim { display: none; }

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  z-index: 0;
}
.hero-bg-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Single smooth alpha mask on the image itself.
   No cream overlay — the image's own alpha fades cleanly into the hero bg.
   Mask uses a multi-stop curve that approximates an ease — no drastic edge. */
.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 14px;
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.02) 3%,
    rgba(0,0,0,0.08) 7%,
    rgba(0,0,0,0.20) 11%,
    rgba(0,0,0,0.38) 15%,
    rgba(0,0,0,0.58) 19%,
    rgba(0,0,0,0.76) 23%,
    rgba(0,0,0,0.90) 27%,
    rgba(0,0,0,0.97) 31%,
    rgba(0,0,0,1) 35%);
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.02) 3%,
    rgba(0,0,0,0.08) 7%,
    rgba(0,0,0,0.20) 11%,
    rgba(0,0,0,0.38) 15%,
    rgba(0,0,0,0.58) 19%,
    rgba(0,0,0,0.76) 23%,
    rgba(0,0,0,0.90) 27%,
    rgba(0,0,0,0.97) 31%,
    rgba(0,0,0,1) 35%);
  /* Drop-shadow follows the alpha mask so the shadow only appears where pixels exist */
  filter: drop-shadow(0 24px 40px rgba(76, 29, 149, 0.22))
          drop-shadow(0 10px 20px rgba(168, 85, 247, 0.12));
}

/* Subtle breathing overlay — very faint, just gives a sense of motion at the fade */
.hero-bg-dissolve {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 248, 240, 0.15) 0%,
    rgba(255, 248, 240, 0.08) 50%,
    rgba(255, 248, 240, 0) 100%);
  animation: heroDissolveBreathe 7s ease-in-out infinite;
}
@keyframes heroDissolveBreathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Prev/Next arrows — hidden by default, fade in on hover */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(76, 29, 149, 0.15);
  color: var(--purple);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 10px 28px -8px rgba(76, 29, 149, 0.40);
  display: grid;
  place-items: center;
  padding: 0;
}
.hero-arrow svg {
  width: 22px;
  height: 22px;
}
.hero-arrow-prev { left: 16px; }    /* symmetric with right arrow */
.hero-arrow-next { right: 16px; }

.hero-bg-slides:hover .hero-arrow {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}
.hero-arrow:hover {
  background: #ffffff;
  color: var(--purple);
  border-color: var(--purple);
  transform: translateY(-50%) scale(1.10) !important;
}

/* Caption — directly below slider */
.hero-caption {
  position: relative;
  overflow: hidden;            /* clip the progress bar to the rounded card */
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1.2rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(76, 29, 149, 0.10);
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  max-width: 100%;
  box-shadow: 0 4px 12px -4px rgba(76, 29, 149, 0.10);
}
.hc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
}
/* Top row of caption — live pill on left, slide-count dots on right */
.hc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.15rem;
}
/* Slide indicator dots */
.hc-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hc-d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(76, 29, 149, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hc-d:hover {
  background: rgba(76, 29, 149, 0.45);
  transform: scale(1.15);
}
.hc-d.hc-d-active {
  width: 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral), var(--pink), var(--purple));
}
.hc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: pulseLive 1.6s ease-in-out infinite;
}
.hc-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hc-meta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Slide progress bar — pinned to the bottom of the caption card */
.hc-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--pink), var(--purple));
  animation: hcFill 6s linear forwards;
}
@keyframes hcFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Marquee */
.hero-marquee {
  position: relative;
  z-index: 1;
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(76, 29, 149, 0.10);
  border-bottom: 1px solid rgba(76, 29, 149, 0.10);
  overflow: hidden;
}
.hero-marquee .marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: heroMarquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-marquee .marquee-track span { padding: 0 1rem; }
@keyframes heroMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    min-height: auto;
    padding-top: 1rem;
  }
  .hero-bg-slides {
    width: 100%;
    margin-left: 0;
    aspect-ratio: 16 / 10;
    max-height: 40vh;
  }
  .hero-bg-slide img {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-bg-dissolve { display: none; }
  .hero-arrow-prev { left: 14px; }
  .hero.hero-devx .hero-title { font-size: clamp(2rem, 7vw, 3rem); max-width: 100%; }
  .hero.hero-devx .hero-lede { max-width: 100%; }
}
@media (max-width: 600px) {
  .hero-caption { padding: 0.85rem 1rem 1rem; }
}

/* Inline subtext within a proof-num */
.proof-num-sub {
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.1em;
  -webkit-text-fill-color: inherit;
  color: inherit;
}
