/* =========================================================
   Kainovis — capabilities page
   ========================================================= */

/* ---------- comparison ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.compare-hint {
  display: none;
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.compare th,
.compare td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  background: rgba(255, 255, 255, 0.025);
  color: #8194a6;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare thead th:nth-child(3) {
  color: var(--accent);
}

.compare tbody th {
  width: 150px;
  color: #adbccc;
  font-size: 12px;
  font-weight: 600;
}

.compare td {
  color: var(--muted);
  line-height: 1.75;
}

.compare td:nth-child(3) {
  background: rgba(92, 225, 194, 0.025);
  color: #c7d9d6;
}

.compare .yes,
.compare .no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare .yes .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.compare .no .icon {
  width: 13px;
  height: 13px;
  color: #7c8b9b;
}

/* ---------- detail blocks ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.023);
}

.detail-card--wide {
  grid-column: 1 / -1;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-head .cap-icon {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 9px;
}

.detail-head .cap-icon .icon {
  width: 16px;
  height: 16px;
}

.detail-head h3 {
  font-size: 17px;
  font-weight: 600;
}

.detail-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #9eafc0;
  font-size: 12px;
  line-height: 1.7;
}

.detail-list li .icon {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  color: var(--accent);
  flex: none;
}

/* ---------- architecture ---------- */

.arch {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.arch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.arch-head h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8295a7;
}

.arch-head span {
  color: #647789;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.arch-layer {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.arch-layer:last-child {
  border-bottom: 0;
}

.arch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7f91a3;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.arch-label .icon {
  width: 13px;
  height: 13px;
  color: #5f7386;
}

.arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arch-chips span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: #a8b8c7;
  font-size: 9.5px;
  white-space: nowrap;
}

.arch-chips span.is-core {
  border-color: rgba(92, 225, 194, 0.25);
  background: rgba(92, 225, 194, 0.06);
  color: #8cebd6;
}

.arch-chips span.is-model {
  border-color: rgba(141, 180, 255, 0.22);
  background: rgba(141, 180, 255, 0.055);
  color: #a9c3ff;
}

.arch-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  color: #6c8093;
  font-size: 10px;
  line-height: 1.65;
}

.arch-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  color: var(--accent);
}

/* ---------- deployment ---------- */

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.deploy-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.deploy-card.is-recommended {
  border-color: rgba(92, 225, 194, 0.28);
  background: linear-gradient(165deg, rgba(92, 225, 194, 0.065), rgba(255, 255, 255, 0.018));
}

.deploy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.deploy-top .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.deploy-top span {
  color: #637688;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.deploy-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 600;
}

.deploy-card > p {
  flex: 1;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.deploy-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.deploy-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
}

.deploy-list span {
  color: #6d8092;
}

.deploy-list b {
  color: #b6c5d3;
  font-weight: 500;
  text-align: right;
}

/* ---------- routing table ---------- */

.routing {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.routing table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
}

.routing th,
.routing td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.routing tr:last-child td {
  border-bottom: 0;
}

.routing thead th {
  background: rgba(255, 255, 255, 0.025);
  color: #7b8fa2;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.routing td {
  color: #9eafc0;
}

.routing td:first-child {
  color: #c5d3e0;
  font-weight: 500;
}

.routing .policy {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.routing .policy-local {
  background: rgba(92, 225, 194, 0.09);
  color: #8cebd6;
}

.routing .policy-mask {
  background: rgba(240, 180, 106, 0.09);
  color: #ecc48f;
}

.routing .policy-config {
  background: rgba(141, 180, 255, 0.09);
  color: #a9c3ff;
}

/* ---------- integration ---------- */

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.integration-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.integration-item .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--accent);
}

.integration-item h4 {
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 600;
}

.integration-item p {
  color: #8194a6;
  font-size: 10.5px;
  line-height: 1.6;
}

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.principle .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--accent);
}

.principle h4 {
  margin-bottom: 5px;
  font-size: 13.5px;
  font-weight: 600;
}

.principle p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .deploy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .integration-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .detail-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 23px;
  }

  .deploy-grid,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .arch {
    padding: 20px;
  }

  .arch-layer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .compare th,
  .compare td {
    padding: 13px 14px;
  }

  .compare-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    color: var(--muted-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}
