/* ── BENCHMARK: full-bleed data-room zone ── */

.bm-section {
  position: relative;
  padding: 5rem 0 5rem;
  margin-top: 2rem;
  overflow: hidden;
}

/* Full-bleed zone — slightly lighter than page bg for contrast */
.bm-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(147,232,73,0.035) 0%, transparent 50%),
    #111614;
  z-index: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.bm-section > * {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}



/* ── HEADER ── */

.bm-header {
  text-align: center;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-brand-green);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.bm-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bm-subtitle {
  color: #7a7872;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

/* ── TABS ── */

.bm-tabs {
  display: inline-flex;
  gap: 3px;
  background: none;
  border-radius: 14px 14px 0 0;
  padding: 0;
  margin-bottom: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
}

.bm-tab {
  background: none;
  border: none;
  color: #7a7873;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s;
  white-space: nowrap;
  font-family: inherit;
}

.bm-tab:hover { color: #c0bdb8; }

.bm-tab.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
  border-radius: 10px 10px 0 0;
}

/* ── PANES ── */

.bm-pane { display: none; animation: bmFadeIn 0.35s ease; }
.bm-pane.active {
  display: block;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 0;
}


@keyframes bmFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TASK SUMMARY ── */

.bm-task-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.bm-task-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8e6e2;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.bm-task-desc {
  color: #8a8783;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── HERO STATS ── */

.bm-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.025);
}

.bm-total-card {
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.bm-total-card:last-child { border-right: none; }

.bm-total-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9a9793;
  margin-bottom: 0.65rem;
}

.bm-total-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-brand-green);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(147,232,73,0.15);
}

.bm-total-detail {
  font-size: 0.68rem;
  color: #9a9793;
  margin-top: 0.55rem;
  letter-spacing: 0.03em;
}

/* ── PROMPT EXPANDER ── */

.bm-prompt-toggle {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  margin-bottom: 1.25rem;
  color: #d0cdc8;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s;
}

.bm-prompt-toggle:hover {
  color: #d0cdc8;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.bm-prompt-toggle .chevron {
  transition: transform 0.25s;
  font-size: 0.55rem;
  color: #d0cdc8;
}

.bm-prompt-toggle.open .chevron { transform: rotate(90deg); }

/* ── PROMPT LIST ── */

.bm-prompt-list {
  margin-bottom: 2rem;
  display: none;
}

.bm-prompt-list.open { display: block; }

.bm-prompt-item {
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 2px;
  overflow: hidden;
  transition: all 0.2s;
}

.bm-prompt-item:hover {
  border-color: rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.01);
}

.bm-prompt-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  user-select: none;
}

.bm-prompt-num {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(147,232,73,0.06);
  color: var(--color-brand-green);
  font-size: 0.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bm-prompt-text-preview {
  flex: 1;
  font-size: 0.74rem;
  color: #8a8783;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-prompt-stats-mini {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 0.68rem;
  align-items: center;
}

.bm-prompt-stats-mini .woz {
  color: var(--color-brand-green);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
  display: inline-block;
}

.bm-prompt-stats-mini .cc {
  color: #D4622A;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
  display: inline-block;
}

.bm-prompt-stats-mini .pct {
  color: var(--color-brand-green);
  font-size: 0.52rem;
  font-weight: 800;
  background: rgba(147,232,73,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
}

.bm-prompt-stats-mini .pct-arrow {
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.bm-prompt-stats-mini .pct-num {
  flex: 1;
  text-align: right;
}

.bm-prompt-chevron {
  color: #3a3833;
  font-size: 0.45rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.bm-prompt-item.open .bm-prompt-chevron { transform: rotate(90deg); }

.bm-prompt-detail {
  display: none;
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.02);
}

.bm-prompt-item.open .bm-prompt-detail { display: block; }

.bm-prompt-full-text {
  font-size: 0.74rem;
  color: #7a7773;
  line-height: 1.6;
  margin-bottom: 0.65rem;
  padding-top: 0.65rem;
}

.bm-prompt-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.bm-detail-col {
  background: rgba(255,255,255,0.01);
  border-radius: 8px;
  padding: 0.65rem;
  border: 1px solid rgba(255,255,255,0.03);
}

.bm-detail-col-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.bm-detail-col-header.woz { color: var(--color-brand-green); }
.bm-detail-col-header.cc { color: #D4622A; }

.bm-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  font-size: 0.68rem;
}

.bm-detail-row .label { color: #5a5753; }

.bm-detail-row .value {
  color: #c5c2bd;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── DIFF SUMMARY ── */

.bm-diff-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.75rem;
}

.bm-diff-header {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-brand-green);
  margin-bottom: 0.75rem;
}

.bm-diff-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bm-diff-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
}

.bm-diff-label {
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 60px;
  flex-shrink: 0;
}

.bm-diff-label.woz { color: var(--color-brand-green); }
.bm-diff-label.cc { color: #D4622A; }

.bm-diff-value {
  color: #8a8783;
  font-variant-numeric: tabular-nums;
}

.bm-diff-value .added { color: var(--color-brand-green); font-weight: 600; }
.bm-diff-value .removed { color: #D4622A; font-weight: 600; }

.bm-diff-note {
  font-size: 0.7rem;
  color: #6a6763;
  margin-top: 0.65rem;
  font-style: italic;
}

/* ── LIVE DEMOS ── */

.bm-demos-header {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #5a5753;
  margin-bottom: 0.75rem;
}

.bm-demos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bm-demo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #1a1f1c;
  position: relative;
}

.bm-demo:hover {
  border-color: rgba(255,255,255,0.08);
}

.bm-demo-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.75rem;
  background: rgba(255,255,255,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: relative;
  z-index: 2;
}

.bm-demo-label.woz { color: var(--color-brand-green); }
.bm-demo-label.cc { color: #D4622A; }

.bm-demo iframe {
  width: 1440px;
  height: 900px;
  border: none;
  background: #fff;
  transform-origin: top left;
  position: absolute;
  top: 35px;
  left: 0;
}

.bm-demo-expand {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  color: #5a5753;
  font-size: 0.48rem;
  padding: 2px 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.bm-demo-expand:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

/* ── MODAL ── */

.bm-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,8,6,0.7);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.bm-modal-overlay.open { display: flex; }

.bm-modal {
  background: #0d100e;
  border-radius: 16px;
  width: 95vw;
  max-width: 1400px;
  max-height: 85vh;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 120px rgba(0,0,0,0.7);
}

.bm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bm-modal-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c5c2bd;
}

.bm-modal-close {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: #4a4843;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.bm-modal-close:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
}

.bm-modal-demos {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  overflow: hidden;
}

.bm-modal-demo {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.bm-modal-demo .bm-demo-label { flex-shrink: 0; }

.bm-modal-demo .bm-iframe-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
}

.bm-modal-demo .bm-iframe-wrap iframe {
  width: 1440px;
  height: 900px;
  border: none;
  background: #fff;
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
}

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .bm-section { padding: 2.5rem 0; overflow-x: hidden; }
  .bm-section > * { padding-left: 1rem; padding-right: 1rem; }
  .bm-pane.active { padding: 1rem; border-radius: 10px; overflow-x: hidden; max-width: 100%; box-sizing: border-box; }
  .bm-title { font-size: 1.3rem; }
  .bm-header { margin-bottom: 0; }
  .bm-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .bm-tab { font-size: 0.72rem; padding: 0.45rem 0.9rem; }
  .bm-totals { grid-template-columns: 1fr 1fr; }
  .bm-total-card { border-bottom: 1px solid rgba(255,255,255,0.04); }
  .bm-total-card:nth-child(2) { border-right: none; }
  .bm-total-value { font-size: 1.6rem; }
  .bm-total-label { font-size: 0.45rem; }
  .bm-demos { grid-template-columns: 1fr; }
  .bm-demo { position: relative; height: auto; }
  .bm-demo iframe { width: 1440px; height: 900px; position: absolute; top: 35px; left: 0; transform-origin: top left; }
  .bm-prompt-stats-mini { display: flex; gap: 0.35rem; font-size: 0.6rem; flex-shrink: 0; }
  .bm-prompt-stats-mini .woz, .bm-prompt-stats-mini .cc { min-width: auto; font-size: 0.6rem; }
  .bm-prompt-stats-mini .pct { min-width: 36px; font-size: 0.45rem; }
  .bm-prompt-detail-stats { grid-template-columns: 1fr; }
  .bm-prompt-toggle { font-size: 0.75rem; padding: 0.65rem 1rem; }
  .bm-task-summary { padding: 1rem 1.1rem; }
  .bm-task-title { font-size: 0.95rem; }
  .bm-task-desc { font-size: 0.78rem; }
  .bm-diff-card { padding: 1rem; }
  .bm-diff-stat { flex-direction: column; gap: 0.25rem; }
  .bm-diff-label { width: auto; }
  .bm-modal { width: 100vw; max-height: 95vh; border-radius: 12px; padding: 1rem; }
  .bm-modal-demos { grid-template-columns: 1fr; }
  .bm-modal-overlay { padding: 0.5rem; }
  .bm-demos-header { font-size: 0.5rem; }
}
