/* ═══════════════════════════════════════
   Modals — Industry + Legal
═══════════════════════════════════════ */

/* ── Industry Modal Overlay ── */
.ind-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.ind-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.ind-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(1, 1, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ind-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(12, 12, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.ind-overlay.active .ind-modal {
  transform: translateY(0) scale(1);
}

.ind-modal::-webkit-scrollbar { width: 4px; }
.ind-modal::-webkit-scrollbar-track { background: transparent; }
.ind-modal::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }

/* ── Modal Header ── */
.ind-modal-header {
  padding: 36px 40px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  background: rgba(12, 12, 18, 0.98);
  backdrop-filter: blur(12px);
  z-index: 2;
  border-radius: 24px 24px 0 0;
}

.ind-modal-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--steel);
  margin-bottom: 12px;
}

.ind-modal-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 200;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.05;
}

.ind-modal-sub { font-size: 13px; color: var(--steel); }

.ind-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ind-modal-tag {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--steel-mid);
  letter-spacing: 0.08em;
}

/* ── Close Button ── */
.ind-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(255, 255, 255, 0.03);
}

.ind-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.ind-close svg { width: 16px; height: 16px; stroke: var(--white); fill: none; stroke-width: 2; }

/* ── Modal Body ── */
.ind-modal-body { padding: 32px 40px 40px; }

.ind-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ind-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Automation Items ── */
.automation-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.automation-item:last-child { border-bottom: none; padding-bottom: 0; }

.automation-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.03);
}

.automation-icon svg { width: 16px; height: 16px; stroke: var(--steel-light); fill: none; stroke-width: 1.5; }
.automation-name { font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 5px; line-height: 1.3; }
.automation-desc { font-size: 13px; color: var(--steel); line-height: 1.65; }

.automation-saving {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--steel-light);
  letter-spacing: 0.06em;
}

.automation-saving::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--steel-light);
  border-radius: 50%;
  opacity: 0.7;
}
