/* IntelliMinds Digital — homepage visual storytelling layer (v3.0).
   One shared diagram language: fine lines, navy foundations, teal accent,
   blue support, amber only as a rare signal. Homepage only.
   All diagrams are decorative/explanatory; meaningful content stays in HTML. */

:root{
  --dg-line:#DCE3EA;
  --dg-line-strong:#C6D0DA;
  --dg-node:#FFFFFF;
  --dg-ink:#0B1F36;
  --dg-body:#46546A;
  --dg-muted:#718096;
  --dg-teal:#0B8F8C;
  --dg-blue:#2B78B8;
  --dg-amber:#F2B84B;
}

/* ============ shared diagram primitives ============ */
.dg{--dg-gap:.75rem;font-size:.8rem;color:var(--dg-body)}
.dg-label{font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--dg-muted)}
.dg-node-title{font-size:.82rem;font-weight:650;color:var(--dg-ink);line-height:1.2;letter-spacing:-.01em}
.dg-node-sub{font-size:.7rem;color:var(--dg-muted);line-height:1.35;margin-top:.15rem}

/* ============ 1 · HERO — production pathway ============ */
.hero-home .hero-visual{aspect-ratio:auto;max-width:460px}
.hero-path{position:relative;background:#fff;border:1px solid var(--dg-line);border-radius:14px;
  padding:1.35rem 1.4rem 1.15rem;box-shadow:0 18px 44px -34px rgba(11,31,54,.35);overflow:hidden}
.hero-path::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to right,rgba(11,31,54,.035) 1px,transparent 1px),
             linear-gradient(to bottom,rgba(11,31,54,.035) 1px,transparent 1px);
  background-size:34px 34px;opacity:.9}
.hero-path-head{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
  padding-bottom:.85rem;margin-bottom:.35rem;border-bottom:1px solid var(--dg-line)}
.hero-path-head b{font-size:.78rem;font-weight:650;color:var(--dg-ink);letter-spacing:-.01em}
.hero-path-steps{position:relative;list-style:none;margin:0;padding:.35rem 0 0}
.hero-path-steps li{position:relative;display:flex;align-items:baseline;gap:.85rem;padding:.52rem 0 .52rem 1.35rem}
.hero-path-steps li::before{content:"";position:absolute;left:0;top:1.05rem;width:9px;height:9px;border-radius:50%;
  background:#fff;border:1.5px solid var(--dg-line-strong);z-index:1}
.hero-path-steps li::after{content:"";position:absolute;left:4px;top:1.55rem;bottom:-.5rem;width:1px;background:var(--dg-line)}
.hero-path-steps li:last-child::after{display:none}
.hero-path-steps li:first-child::before{border-color:var(--dg-blue)}
.hero-path-steps li:last-child::before{background:var(--dg-teal);border-color:var(--dg-teal);
  box-shadow:0 0 0 4px rgba(11,143,140,.10)}
.hero-path-steps .hps-name{font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--dg-ink);min-width:5.9rem}
.hero-path-steps .hps-note{font-size:.72rem;color:var(--dg-muted)}
.hero-path-foot{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-top:.9rem;padding-top:.85rem;border-top:1px solid var(--dg-line)}
.hero-path-foot .hpf-k{font-size:.66rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--dg-muted)}
.hero-path-foot .hpf-v{font-family:'Space Grotesk',system-ui,sans-serif;font-size:1.05rem;font-weight:700;color:var(--dg-ink)}
.hero-path-foot .hpf-v em{font-style:normal;font-size:.7rem;color:var(--dg-teal);margin-left:.3rem;font-weight:600}
@media (max-width:520px){
  .hero-path{padding:1.15rem 1.05rem 1rem}
  .hero-path-steps .hps-name{min-width:5.2rem;font-size:.7rem}
}

/* ============ 2 · TECHNOLOGY ECOSYSTEM ============ */
.tech-eco{margin:2.25rem 0 2.5rem;position:relative}
.tech-eco-root{display:flex;justify-content:center}
.tech-eco-root span{display:inline-flex;align-items:center;gap:.5rem;background:var(--dg-ink);color:#fff;
  font-size:.68rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;padding:.5rem .95rem;border-radius:7px}
.tech-eco-stem{height:26px;width:1px;background:var(--dg-line-strong);margin:0 auto}
.tech-eco-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:0;border:1px solid var(--dg-line);
  border-radius:12px;background:#fff;overflow:hidden}
.tech-eco-cell{padding:1.15rem 1rem;position:relative}
.tech-eco-cell + .tech-eco-cell{border-left:1px solid var(--dg-line)}
.tech-eco-cell::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--dg-blue);opacity:.5}
.tech-eco-cell:nth-child(2)::before{background:var(--dg-teal);opacity:.65}
.tech-eco-k{display:block;font-size:.66rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--dg-teal);margin-bottom:.45rem}
.tech-eco-v{display:block;font-size:.82rem;color:var(--dg-ink);font-weight:600;line-height:1.45}
@media (max-width:900px){
  .tech-eco-grid{grid-template-columns:repeat(2,1fr)}
  .tech-eco-cell + .tech-eco-cell{border-left:0}
  .tech-eco-cell{border-top:1px solid var(--dg-line)}
  .tech-eco-cell:nth-child(-n+2){border-top:0}
  .tech-eco-cell:nth-child(even){border-left:1px solid var(--dg-line)}
}
@media (max-width:520px){
  .tech-eco-grid{grid-template-columns:1fr}
  .tech-eco-cell:nth-child(even){border-left:0}
  .tech-eco-cell:nth-child(2){border-top:1px solid var(--dg-line)}
}

/* ============ 3 · AI READINESS — capability radar ============ */
.readiness-radar{display:block;width:100%;max-width:300px;margin:.25rem auto 1.1rem}
.readiness-radar .rr-grid{fill:none;stroke:#DCE3EA;stroke-width:1}
.readiness-radar .rr-axis{stroke:#E6ECF1;stroke-width:1}
.readiness-radar .rr-shape{fill:rgba(11,143,140,.12);stroke:var(--dg-teal);stroke-width:1.75;stroke-linejoin:round}
.readiness-radar .rr-dot{fill:#fff;stroke:var(--dg-teal);stroke-width:1.5}
.readiness-radar .rr-t{font-size:9.5px;font-weight:600;fill:#718096;letter-spacing:.04em}
.readiness-note{font-size:.72rem;color:var(--dg-muted);text-align:center;margin:-.6rem 0 1rem}

/* ============ 4 · PROTOTYPE → PRODUCTION signature pathway ============ */
.workflow .workflow-step .workflow-tools{display:block;margin:.25rem 0 0;font-size:.66rem;letter-spacing:.06em;
  color:rgba(234,244,248,.62)}
.infra-panel .workflow-step{align-items:flex-start}
.p2p-rail{display:none}

/* ============ 5 · ASSESS → BUILD → RUN lifecycle ============ */
.help-grid .help-card{counter-increment:abr}
.help-grid{counter-reset:abr}
.help-grid .help-card .help-stage{display:inline-flex;align-items:center;gap:.5rem;margin-bottom:.75rem}
.help-grid .help-card .help-stage::before{content:"0" counter(abr);font-family:'Space Grotesk',system-ui,sans-serif;
  font-size:.7rem;font-weight:700;color:var(--dg-teal);border:1px solid rgba(11,143,140,.35);
  border-radius:5px;padding:.12rem .38rem;line-height:1}
.help-grid .help-card .help-stage i{display:block;height:1px;width:44px;background:var(--dg-line-strong)}
@media (min-width:900px){
  /* keep the lifecycle arrow aligned with the stage marker row */
  .help-grid .help-card + .help-card::before{margin-top:6.05rem}
}
.help-list li{position:relative}

/* ============ 6 · USE-CASE WORKFLOW MICRO-DIAGRAMS ============ */
.uc-flow{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .34rem;margin-top:.95rem;padding-top:.9rem;
  border-top:1px dashed var(--dg-line-strong)}
.uc-flow span{font-size:.66rem;font-weight:600;color:var(--dg-ink);background:#F7F9FB;border:1px solid var(--dg-line);
  border-radius:5px;padding:.2rem .42rem;line-height:1.25;white-space:nowrap}
.uc-flow span.is-ai{color:var(--dg-teal);border-color:rgba(11,143,140,.35);background:rgba(11,143,140,.06)}
.uc-flow i{font-style:normal;color:var(--dg-muted);font-size:.66rem;line-height:1}

/* ============ 7 · CASE-STUDY METRICS AS EVIDENCE ============ */
.cs-card--compact .cs-metrics{grid-template-columns:repeat(3,1fr);gap:.75rem;padding:0 0 1.1rem;margin:0 0 1.1rem;
  border-bottom:1px solid var(--dg-line)}
.cs-card--compact .cs-metric-value{font-size:1.85rem;font-weight:700;color:var(--dg-ink);letter-spacing:-.03em}
.cs-card--compact .cs-metric:first-child .cs-metric-value{color:var(--dg-teal)}
.cs-card--compact .cs-metric-label{font-size:.64rem;letter-spacing:.1em;color:var(--dg-muted);font-weight:600}
@media (max-width:520px){.cs-card--compact .cs-metric-value{font-size:1.5rem}}

/* ============ motion restraint ============ */
@media (prefers-reduced-motion:reduce){
  .hero-path *{animation:none!important;transition:none!important}
}