/* ═══════════════════════════════════════════════════════════════
   STRATEGIC DEPLOYMENT COMPARISON — System Capability Evaluation
   Namespace: sdc-
   ═══════════════════════════════════════════════════════════════ */

.sdc-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.sdc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--purple-rgb), 0.3), transparent);
}

/* Ambient glow behind panel */
.sdc-section::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(var(--purple-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
.sdc-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}

.sdc-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 0.75rem;
}

.sdc-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.sdc-title .sdc-title-accent {
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sdc-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

/* ── Evaluation Panel Container ── */
.sdc-panel {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sdc-panel-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* Gradient border on the panel */
.sdc-panel-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(var(--purple-rgb), 0.3),
    rgba(var(--cyan-rgb), 0.1),
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Panel Chrome / Toolbar ── */
.sdc-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(var(--purple-rgb), 0.03);
}

.sdc-chrome-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sdc-chrome-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-mid);
  animation: sdcPulse 3s ease-in-out infinite;
}

.sdc-chrome-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sdc-chrome-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sdc-chrome-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: sdcPulse 2s ease-in-out infinite;
}

@keyframes sdcPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Column Headers ── */
.sdc-col-headers {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.sdc-col-header {
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sdc-col-header:first-child {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 1rem;
}

.sdc-col-header-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.sdc-col-header-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-dim);
}

/* Sentinel column header */
.sdc-col-header--sentinel {
  background: linear-gradient(
    180deg,
    rgba(var(--purple-rgb), 0.12) 0%,
    rgba(var(--purple-rgb), 0.04) 100%
  );
  border-left: 1px solid rgba(var(--purple-rgb), 0.2);
  border-right: 1px solid rgba(var(--purple-rgb), 0.2);
  position: relative;
}

.sdc-col-header--sentinel .sdc-col-header-name {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.sdc-col-header--sentinel .sdc-col-header-label {
  color: var(--purple-mid);
}

.sdc-col-feature-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Evaluation Rows ── */
.sdc-rows {
  display: flex;
  flex-direction: column;
}

.sdc-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
}

.sdc-row:last-child {
  border-bottom: none;
}

.sdc-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Grid lines between columns */
.sdc-cell {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  min-height: 56px;
}

.sdc-cell:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.04);
}

/* Feature name cell */
.sdc-cell--feature {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dim);
}

.sdc-cell--feature .sdc-feature-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  opacity: 0.5;
}

/* Sentinel column cells */
.sdc-cell--sentinel {
  background: rgba(var(--purple-rgb), 0.04);
  border-left: 1px solid rgba(var(--purple-rgb), 0.15);
  border-right: 1px solid rgba(var(--purple-rgb), 0.15);
}

.sdc-row:hover .sdc-cell--sentinel {
  background: rgba(var(--purple-rgb), 0.08);
}

/* ── System Indicator Icons ── */
.sdc-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

/* Positive / check */
.sdc-indicator--positive {
  color: var(--text);
}

.sdc-indicator--positive .sdc-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.sdc-cell--sentinel .sdc-indicator--positive .sdc-icon {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff;
  box-shadow: 0 0 12px rgba(var(--purple-rgb), 0.4), 0 0 4px rgba(var(--cyan-rgb), 0.3);
}

.sdc-cell:not(.sdc-cell--sentinel) .sdc-indicator--positive .sdc-icon {
  background: rgba(var(--emerald-rgb), 0.15);
  color: var(--emerald);
  border: 1px solid rgba(var(--emerald-rgb), 0.2);
}

/* Negative / x */
.sdc-indicator--negative {
  color: var(--text-muted);
}

.sdc-indicator--negative .sdc-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  background: rgba(var(--pink-rgb), 0.08);
  color: var(--text-faint);
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

/* Partial / warning */
.sdc-indicator--partial {
  color: var(--text-dim);
}

.sdc-indicator--partial .sdc-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  background: rgba(var(--amber), 0.1);
  color: var(--amber);
  border: 1px solid rgba(255, 179, 0, 0.15);
  flex-shrink: 0;
}

/* Sentinel cell text glow */
.sdc-cell--sentinel .sdc-indicator--positive .sdc-value {
  color: var(--text);
  font-weight: 500;
}

.sdc-indicator .sdc-value {
  line-height: 1.3;
}

/* ── Verdict Bar ── */
.sdc-verdict {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(var(--purple-rgb), 0.03);
}

.sdc-verdict-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: sdcPulse 2.5s ease-in-out infinite;
}

.sdc-verdict-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sdc-verdict-text span {
  color: var(--purple-light);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sdc-col-headers {
    grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr;
  }

  .sdc-row {
    grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr;
  }

  .sdc-col-header {
    padding: 1rem 0.75rem;
  }

  .sdc-cell {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .sdc-indicator {
    font-size: 0.75rem;
    gap: 0.35rem;
  }

  .sdc-indicator .sdc-icon {
    width: 16px;
    height: 16px;
  }

  .sdc-cell--feature .sdc-feature-icon {
    display: none;
  }

  .sdc-title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 580px) {
  .sdc-col-headers,
  .sdc-row {
    grid-template-columns: 1fr;
  }

  .sdc-col-header:first-child {
    display: none;
  }

  .sdc-col-headers {
    display: flex;
    gap: 0;
  }

  .sdc-col-header {
    flex: 1;
    text-align: center;
    align-items: center;
  }

  .sdc-row {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
  }

  .sdc-cell--feature {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--text);
    font-size: var(--text-sm);
  }

  .sdc-cell:not(.sdc-cell--feature) {
    padding: 0.4rem 1rem;
  }

  .sdc-cell:not(:first-child)::before {
    display: none;
  }

  .sdc-cell--sentinel {
    border-left: 3px solid rgba(var(--purple-rgb), 0.4);
    border-right: none;
    border-radius: 0;
  }

  /* Show column labels on mobile */
  .sdc-cell:not(.sdc-cell--feature)::after {
    content: attr(data-col);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-left: auto;
  }

  .sdc-panel {
    padding: 0 0.75rem;
  }

  .sdc-chrome {
    padding: 0.6rem 1rem;
  }
}

/* ── Scroll Reveal ── */
.sdc-row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sdc-row.sdc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay per row */
.sdc-row:nth-child(1) { transition-delay: 0.05s; }
.sdc-row:nth-child(2) { transition-delay: 0.1s; }
.sdc-row:nth-child(3) { transition-delay: 0.15s; }
.sdc-row:nth-child(4) { transition-delay: 0.2s; }
.sdc-row:nth-child(5) { transition-delay: 0.25s; }
.sdc-row:nth-child(6) { transition-delay: 0.3s; }
.sdc-row:nth-child(7) { transition-delay: 0.35s; }
.sdc-row:nth-child(8) { transition-delay: 0.4s; }

/* ── Sentinel Column Glow Effect ── */
.sdc-cell--sentinel {
  position: relative;
}

.sdc-cell--sentinel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--purple-rgb), 0.02),
    rgba(var(--purple-rgb), 0.05),
    rgba(var(--purple-rgb), 0.02)
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sdc-row:hover .sdc-cell--sentinel::after {
  opacity: 1;
}
