/* B2B web development — coverage map (solution × industry page matrix) */
.b2b-map { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(16px, 2.6vw, 28px); align-items: stretch; }
.b2b-matrix { display: grid; grid-template-columns: minmax(110px, 0.9fr) repeat(3, minmax(0, 1fr)); gap: 8px; padding: clamp(14px, 2vw, 22px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14, 24, 64, 0.6), rgba(7, 13, 36, 0.6)); }
.b2b-corner { align-self: end; display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; letter-spacing: 0.06em; color: var(--dim); padding-bottom: 6px; }
.b2b-colh, .b2b-rowh { display: flex; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }
.b2b-colh { justify-content: center; padding-bottom: 6px; text-align: center; }
.b2b-rowh { padding-right: 8px; line-height: 1.3; }
.b2b-cell { position: relative; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px dashed var(--line-2); background: rgba(5, 10, 28, 0.5); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); transition: border-color 0.35s, background 0.35s, color 0.35s, transform 0.45s var(--ease), box-shadow 0.35s; }
.b2b-cell i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--dim); transition: all 0.4s var(--ease); }
.b2b-cell:hover { transform: translateY(-2px); color: var(--text); }
.b2b-cell[data-state="live"] { border-style: solid; border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.1); color: #9bb8ff; }
.b2b-cell[data-state="live"] i { border-color: var(--accent); background: var(--accent); }
.b2b-cell[data-state="gap"] i { border-color: var(--rose); box-shadow: 0 0 0 0 rgba(255, 111, 134, 0.5); animation: b2b-ping 2.2s infinite; }
.b2b-cell[data-state="gap"] { color: #ff9fb0; }
.b2b-cell[data-state="planned"] { border-style: solid; border-color: rgba(87, 242, 176, 0.5); background: rgba(87, 242, 176, 0.08); color: var(--mint); }
.b2b-cell[data-state="planned"] i { border-color: var(--mint); background: var(--mint); animation: none; }
.b2b-cell.is-active { box-shadow: 0 0 0 2px var(--cyan), 0 0 28px -6px rgba(70, 225, 255, 0.8); }
@keyframes b2b-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 111, 134, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 111, 134, 0); } }
.b2b-detail { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb), 0.18), transparent 60%), rgba(8, 14, 40, 0.8); min-width: 0; }
.b2b-url { display: block; font-family: var(--f-mono); font-size: 13px; color: var(--cyan); word-break: break-all; padding: 10px 12px; border-radius: 10px; background: rgba(5, 10, 28, 0.7); border: 1px solid var(--line); }
.b2b-detail dl { margin: 0; display: grid; gap: 12px; }
.b2b-detail dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.b2b-detail dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.b2b-detail dd.is-swap { animation: b2b-swap 0.45s var(--ease); }
@keyframes b2b-swap { from { opacity: 0; transform: translateY(6px); } }
.b2b-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.b2b-count { font-size: 12px; color: var(--muted); }
.b2b-count b { color: var(--mint); font-weight: 600; font-size: 16px; }
.b2b-note { margin-top: 14px; font-size: 12px; }
@media (max-width: 900px) { .b2b-map { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .b2b-matrix { grid-template-columns: 74px repeat(3, minmax(0, 1fr)); gap: 5px; padding: 12px; }
  .b2b-colh { font-size: 11.5px; }
  .b2b-rowh { font-size: 11.5px; padding-right: 2px; }
  .b2b-corner { font-size: 8.5px; }
  .b2b-cell { min-height: 58px; font-size: 9px; gap: 6px; border-radius: 10px; }
}

/* ---------- day theme ---------- */
html[data-theme="light"] .b2b-matrix { background: #fff; box-shadow: 0 18px 44px -30px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .b2b-cell { background: var(--bg); }
html[data-theme="light"] .b2b-cell[data-state="live"] { color: var(--accent); background: rgba(var(--accent-rgb), 0.07); }
html[data-theme="light"] .b2b-cell[data-state="gap"] { color: var(--rose); }
html[data-theme="light"] .b2b-cell[data-state="planned"] { border-color: rgba(11, 149, 102, 0.45); background: rgba(11, 149, 102, 0.07); }
html[data-theme="light"] .b2b-cell.is-active { box-shadow: 0 0 0 2px var(--cyan), 0 0 24px -8px rgba(10, 143, 179, 0.55); }
html[data-theme="light"] .b2b-detail { background: radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb), 0.09), transparent 60%), #fff; box-shadow: 0 18px 44px -30px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .b2b-url { background: var(--bg); }
