/* =========================
   NEXUS PAGE
   ========================= */

.nexus-page {
  padding-top: 12px;
}

.nexus-intro {
  padding: 22px 10px 10px;
  max-width: 76rem;
  margin: 0 auto;
}

.nexus-hero,
.nexus-block {
  position: relative;
  margin-bottom: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(253, 84, 255, 0.14), transparent 28%),
    radial-gradient(circle at top left, rgba(31, 230, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(7, 18, 26, 0.74), rgba(7, 18, 26, 0.42));
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.nexus-outline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.nexus-outline-link,
.nexus-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(106, 240, 255, 0.18);
  background: rgba(7, 16, 24, 0.56);
  color: rgba(228, 248, 255, 0.92);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.nexus-outline-link:hover,
.nexus-inline-link:hover {
  color: #ffffff;
  border-color: rgba(255, 77, 245, 0.34);
  box-shadow:
    0 0 18px rgba(255, 77, 245, 0.12),
    0 0 12px rgba(76, 240, 255, 0.08);
  transform: translateY(-1px);
}

.nexus-hero {
  padding: 28px 24px 24px;
}

.nexus-block {
  padding: 20px 20px;
}

.nexus-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(106, 240, 255, 0.22);
  background: rgba(6, 14, 20, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(180, 240, 255, 0.92);
  text-shadow: 0 0 10px rgba(140, 240, 255, 0.3);
}

.nexus-title {
  margin-top: 16px;
  max-width: 56rem;
  font-size: clamp(2.2rem, 3.4vw + 1rem, 4.5rem);
  line-height: 1.02;
  color: #f4fbff;
  text-shadow:
    0 0 24px rgba(0, 220, 255, 0.22),
    0 0 54px rgba(255, 120, 255, 0.14);
}

.nexus-subtitle {
  margin-top: 14px;
  max-width: 50rem;
  color: rgba(210, 240, 255, 0.76);
  line-height: 1.7;
  font-size: 1.08rem;
}

.nexus-hero-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nexus-stat-card,
.nexus-layer-card,
.nexus-integration-card,
.nexus-pipeline-stage {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 17, 24, 0.9), rgba(8, 17, 24, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

.nexus-stat-card {
  padding: 16px;
}

.nexus-stat-label,
.nexus-integration-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(124, 238, 255, 0.82);
}

.nexus-stat-value {
  margin-top: 8px;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  color: #f4fbff;
}

.nexus-stat-body,
.nexus-layer-body,
.nexus-integration-card p,
.nexus-pipeline-stage p {
  margin-top: 10px;
  color: rgba(210, 240, 255, 0.72);
  line-height: 1.65;
  font-size: 0.97rem;
}

.nexus-h2 {
  font-size: clamp(1.18rem, 1.1vw + 0.92rem, 1.6rem);
  color: rgba(244, 251, 255, 0.96);
  margin-bottom: 10px;
}

.nexus-body {
  color: rgba(210, 240, 255, 0.74);
  line-height: 1.7;
  max-width: 52rem;
  font-size: 1.02rem;
}

.nexus-body + .nexus-body {
  margin-top: 0.85rem;
}

.nexus-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.nexus-bullets {
  margin-top: 10px;
  margin-left: 18px;
  color: rgba(220, 246, 255, 0.8);
  line-height: 1.65;
}

.nexus-bullets li {
  margin-top: 6px;
}

.nexus-bullets li:first-child {
  margin-top: 0;
}

.nexus-flow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.nexus-flow-node {
  min-height: 170px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 17, 24, 0.94), rgba(8, 17, 24, 0.6));
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.nexus-flow-node strong {
  color: #f3fbff;
  font-size: 1rem;
}

.nexus-flow-node span:last-child {
  color: rgba(210, 240, 255, 0.72);
  line-height: 1.55;
  font-size: 0.94rem;
}

.nexus-flow-step,
.nexus-layer-index,
.nexus-pipeline-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(77, 235, 255, 0.3);
  background: rgba(15, 31, 40, 0.8);
  color: rgba(236, 248, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 700;
}

.nexus-flow-arrow {
  height: 2px;
  margin: 0 7px;
  background: linear-gradient(90deg, rgba(44, 240, 255, 0.14), rgba(44, 240, 255, 0.9), rgba(253, 84, 255, 0.7));
  position: relative;
}

.nexus-flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 9px solid rgba(253, 84, 255, 0.84);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.nexus-stack {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.nexus-layer-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
}

.nexus-layer-title {
  margin: 0;
  color: #f4fbff;
  font-size: 1rem;
}

.nexus-pipeline-shell {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(6, 14, 20, 0.72), rgba(8, 17, 24, 0.48));
}

.nexus-pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nexus-pipeline-stage {
  padding: 16px;
}

.nexus-pipeline-stage h3,
.nexus-integration-card h3 {
  margin-top: 10px;
  color: #f3fbff;
  font-size: 1rem;
}

.nexus-integration-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nexus-integration-card {
  padding: 16px;
}

.nexus-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.nexus-merge-band {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nexus-merge-node {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 240, 255, 0.22);
  background: rgba(8, 18, 25, 0.66);
  color: rgba(235, 249, 255, 0.9);
  font-size: 0.92rem;
}

.nexus-table-shell {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 17, 24, 0.9), rgba(8, 17, 24, 0.56));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

.nexus-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(220, 246, 255, 0.82);
  font-size: 0.95rem;
}

.nexus-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.nexus-table th,
.nexus-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-table th {
  color: #f4fbff;
  font-weight: 600;
}

.nexus-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .nexus-hero-grid,
  .nexus-integration-grid,
  .nexus-pipeline-track {
    grid-template-columns: 1fr;
  }

  .nexus-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nexus-flow-arrow {
    width: 2px;
    height: 22px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(44, 240, 255, 0.14), rgba(44, 240, 255, 0.9), rgba(253, 84, 255, 0.7));
  }

  .nexus-flow-arrow::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid rgba(253, 84, 255, 0.84);
    border-bottom: 0;
  }

  .nexus-section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nexus-intro {
    padding: 18px 8px 8px;
  }

  .nexus-hero,
  .nexus-block {
    padding: 16px 15px;
    border-radius: 20px;
  }

  .nexus-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}
