.v3-capability-contract {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(52px, 7vw, 96px) auto;
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(8, 13, 26, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  color: #e5eefb;
}

.v3-contract-head {
  max-width: 850px;
  margin-bottom: 32px;
}

.v3-contract-head > span {
  display: block;
  margin-bottom: 10px;
  color: #38bdf8;
  font: 800 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v3-contract-head h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.v3-contract-head p,
.v3-boundary {
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.68;
}

.v3-decision-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-top: 1.4rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  border-left: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.v3-decision-line b {
  color: #86efac;
  font-size: 15px;
}

.v3-decision-line span {
  color: #cbd5e1;
  font-size: 15px;
}

.v3-compare {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.4);
}

.v3-compare table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.v3-compare th,
.v3-compare td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.5;
}

.v3-compare thead th {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.85);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.v3-compare tbody th {
  width: 22%;
  color: #f8fafc;
  font-weight: 650;
}

.v3-compare tbody tr:hover td,
.v3-compare tbody tr:hover th {
  background: rgba(255, 255, 255, 0.02);
}

.v3-compare tbody tr:last-child th,
.v3-compare tbody tr:last-child td {
  border-bottom: 0;
}

.v3-compare .v3-paid {
  background: rgba(2, 132, 199, 0.08);
  color: #e0f2fe;
  font-weight: 550;
}

.v3-compare thead th.v3-paid {
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.15);
}

.v3-boundary {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.v3-boundary b {
  color: #e2e8f0;
}

/* Light Theme Enhancements */
html[data-theme="light"] .v3-capability-contract {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .v3-contract-head > span {
  color: #0284c7;
}

html[data-theme="light"] .v3-contract-head h2 {
  color: #0f172a;
}

html[data-theme="light"] .v3-contract-head p,
html[data-theme="light"] .v3-boundary,
html[data-theme="light"] .v3-decision-line span {
  color: #475569;
}

html[data-theme="light"] .v3-decision-line {
  background: #f0fdf4;
  border-left-color: #16a34a;
}

html[data-theme="light"] .v3-decision-line b {
  color: #15803d;
}

html[data-theme="light"] .v3-compare {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

html[data-theme="light"] .v3-compare thead th {
  background: #f8fafc;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="light"] .v3-compare th,
html[data-theme="light"] .v3-compare td {
  border-color: #f1f5f9;
}

html[data-theme="light"] .v3-compare tbody th {
  color: #0f172a;
}

html[data-theme="light"] .v3-compare tbody tr:hover td,
html[data-theme="light"] .v3-compare tbody tr:hover th {
  background: #f8fafc;
}

html[data-theme="light"] .v3-compare .v3-paid {
  background: #f0f9ff;
  color: #0369a1;
}

html[data-theme="light"] .v3-compare thead th.v3-paid {
  background: #e0f2fe;
  color: #0284c7;
}

html[data-theme="light"] .v3-boundary b {
  color: #0f172a;
}

@media (max-width: 700px) {
  .v3-capability-contract {
    width: min(100% - 20px, 1180px);
    padding: 24px 16px;
    border-radius: 16px;
  }
  .v3-contract-head h2 {
    font-size: 26px;
  }
  .v3-compare th,
  .v3-compare td {
    padding: 13px 15px;
  }
}
