/* ============================================================
   RÜM · BIM Implementation (ISO 19650)
   Interactive step-by-step implementation wizard.
   ============================================================ */

.bimx-body {
  background: radial-gradient(circle at 20% -10%, #0b1836 0, #050a1c 55%, #01030b 100%);
  color: #f8fafc;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

.bimx-wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 120px;
}

/* ─── Atoms ─────────────────────────────────────────────────── */
.bimx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f6c79b;
  background: rgba(233, 188, 148, .1);
  border: 1px solid rgba(233, 188, 148, .3);
  padding: 6px 15px;
  border-radius: 100px;
}

.bimx-btn {
  --btn-bg: rgba(255, 255, 255, .06);
  --btn-bd: rgba(255, 255, 255, .16);
  --btn-fg: #e8eefb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 600 14px/1 'Inter', sans-serif;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.bimx-btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .34); }
.bimx-btn:active { transform: translateY(0); }
.bimx-btn--primary {
  --btn-fg: #3a2410;
  background: linear-gradient(135deg, #f0cfa8, #e0aa73);
  border-color: rgba(233, 188, 148, .5);
  box-shadow: 0 12px 30px rgba(224, 170, 115, .28);
}
.bimx-btn--primary:hover { box-shadow: 0 16px 40px rgba(224, 170, 115, .4); }

/* ─── Hero ──────────────────────────────────────────────────── */
.bimx-hero {
  position: relative;
  padding: 80px 0 42px;
  text-align: center;
}
.bimx-hero__glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(79, 163, 255, .22), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.bimx-hero h1 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.04;
  margin: 20px auto 0;
  max-width: 15ch;
}
.bimx-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #f0cfa8, #e0aa73 60%, #f6c79b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bimx-hero__sub {
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  color: rgba(203, 213, 225, .82);
  line-height: 1.6;
  max-width: 62ch;
  margin: 20px auto 0;
}
.bimx-hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ─── Global progress ───────────────────────────────────────── */
.bimx-progress {
  margin: 40px auto 0;
  max-width: 940px;
  background: rgba(9, 17, 38, .72);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 22px 26px;
  backdrop-filter: blur(8px);
}
.bimx-progress__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.bimx-progress__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, .72);
}
.bimx-progress__pct {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.bimx-progress__pct span { font-size: .5em; color: rgba(203, 213, 225, .6); font-weight: 600; }
.bimx-bar {
  position: relative;
  height: 12px;
  margin-top: 16px;
  background: rgba(255, 255, 255, .08);
  border-radius: 100px;
  overflow: hidden;
}
.bimx-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #4fa3ff, #f0cfa8);
  border-radius: 100px;
  transition: width .5s cubic-bezier(.22, 1, .36, 1);
}
.bimx-progress__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(203, 213, 225, .7);
}
.bimx-progress__meta strong { color: #f6c79b; }
.bimx-progress__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ─── Layout ────────────────────────────────────────────────── */
.bimx-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin-top: 54px;
  align-items: start;
}

/* ─── Stepper (left) ────────────────────────────────────────── */
.bimx-stepper {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(9, 17, 38, .6);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  padding: 16px;
}
.bimx-stepper__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, .55);
  padding: 4px 10px 10px;
}
.bimx-step {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  color: rgba(226, 232, 240, .78);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.bimx-step:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.bimx-step.is-active {
  background: rgba(79, 163, 255, .12);
  border-color: rgba(79, 163, 255, .32);
  color: #fff;
}
.bimx-step__num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font: 700 13px 'Baloo 2', sans-serif;
  color: #cbd5e1;
  transition: all .2s ease;
}
.bimx-step.is-complete .bimx-step__num {
  background: linear-gradient(135deg, #34d399, #10b981);
  border-color: transparent;
  color: #04231a;
}
.bimx-step.is-active .bimx-step__num {
  background: linear-gradient(135deg, #f0cfa8, #e0aa73);
  border-color: transparent;
  color: #3a2410;
}
.bimx-step__body { min-width: 0; flex: 1; }
.bimx-step__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  display: block;
}
.bimx-step__iso {
  font-size: 10.5px;
  color: rgba(203, 213, 225, .5);
  letter-spacing: .02em;
}
.bimx-step__ring {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: rgba(203, 213, 225, .55);
}
.bimx-step.is-complete .bimx-step__ring { color: #34d399; }

/* ─── Panels (right) ────────────────────────────────────────── */
.bimx-panels { min-width: 0; }
.bimx-panel { display: none; animation: bimxFade .35s ease; }
.bimx-panel.is-active { display: block; }
@keyframes bimxFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bimx-card {
  background: rgba(9, 17, 38, .66);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  padding: 32px 34px;
  backdrop-filter: blur(8px);
}
.bimx-panel__head { display: flex; gap: 18px; align-items: flex-start; }
.bimx-panel__badge {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 163, 255, .22), rgba(233, 188, 148, .18));
  border: 1px solid rgba(255, 255, 255, .14);
  font: 800 22px 'Baloo 2', sans-serif;
  color: #fff;
}
.bimx-panel__titles { flex: 1; min-width: 0; }
.bimx-panel__iso {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f6c79b;
}
.bimx-panel__title {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 4px 0 0;
}
.bimx-panel__lede {
  font-size: 15px;
  color: rgba(203, 213, 225, .82);
  line-height: 1.62;
  margin: 20px 0 0;
}

.bimx-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.bimx-meta-box {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 14px 16px;
}
.bimx-meta-box h4 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, .58);
  margin: 0 0 8px;
}
.bimx-meta-box p { font-size: 13.5px; color: #e2e8f0; line-height: 1.5; margin: 0; }
.bimx-meta-box .bimx-tag {
  display: inline-block;
  font-size: 12px;
  color: #cfe0f7;
  background: rgba(79, 163, 255, .12);
  border: 1px solid rgba(79, 163, 255, .24);
  border-radius: 8px;
  padding: 3px 9px;
  margin: 3px 4px 0 0;
}

/* ─── Checklist ─────────────────────────────────────────────── */
.bimx-tasks { margin-top: 28px; }
.bimx-tasks__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bimx-tasks__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, .7);
}
.bimx-tasks__count { font-size: 13px; color: #f6c79b; font-weight: 700; }

.bimx-task {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
  margin-bottom: 9px;
}
.bimx-task:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.bimx-task.is-done { background: rgba(52, 211, 153, .07); border-color: rgba(52, 211, 153, .26); }
.bimx-task__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, .28);
  display: grid;
  place-items: center;
  transition: all .18s ease;
}
.bimx-task__check svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: all .18s ease; }
.bimx-task.is-done .bimx-task__check {
  background: linear-gradient(135deg, #34d399, #10b981);
  border-color: transparent;
}
.bimx-task.is-done .bimx-task__check svg { opacity: 1; transform: scale(1); stroke: #04231a; }
.bimx-task__text { font-size: 14.5px; color: #e6edf9; line-height: 1.5; }
.bimx-task.is-done .bimx-task__text { color: rgba(203, 213, 225, .62); text-decoration: line-through; }

/* ─── Panel footer nav ──────────────────────────────────────── */
.bimx-panel__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.bimx-panel__foot .bimx-btn { flex: 1; min-width: 140px; }

/* ─── Deliverable pills ─────────────────────────────────────── */
.bimx-deliverables { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bimx-deliverables span {
  font-size: 12.5px;
  color: #f6c79b;
  background: rgba(233, 188, 148, .1);
  border: 1px solid rgba(233, 188, 148, .26);
  border-radius: 8px;
  padding: 5px 11px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bimx-layout { grid-template-columns: 1fr; }
  .bimx-stepper {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .bimx-stepper__title { display: none; }
  .bimx-step { flex: 0 0 auto; min-width: 210px; }
  .bimx-card { padding: 24px 20px; }
}

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
  .bimx-body { background: #fff; color: #0f172a; }
  .bimx-hero__actions, .bimx-stepper, .bimx-progress__actions, .bimx-panel__foot { display: none !important; }
  .bimx-layout { grid-template-columns: 1fr; }
  .bimx-panel { display: block !important; page-break-inside: avoid; margin-bottom: 24px; }
  .bimx-card { border: 1px solid #cbd5e1; background: #fff; }
  .bimx-panel__title, .bimx-task__text, .bimx-panel__lede, .bimx-meta-box p { color: #0f172a !important; }
}
