.starlight-page {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbf7 0%, #f4f6f0 36%, #eef4f2 100%);
  background-size: 72px 72px, auto;
}

.starlight-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 66px);
  overflow: hidden;
  padding: clamp(72px, 9vw, 126px) max(20px, calc((100vw - var(--max)) / 2));
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 18, 30, 0.95) 0%, rgba(10, 18, 30, 0.88) 42%, rgba(10, 18, 30, 0.32) 100%),
    linear-gradient(145deg, #0b1423 0%, #153f44 49%, #d0a13a 100%);
}

.starlight-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.starlight-hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
}

.starlight-hero .eyebrow {
  color: #f0c965;
}

.starlight-hero h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: 0.93;
}

.hero-lede {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
}

.starlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.starlight-hero .button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.32);
}

.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(-11deg);
}

.starfield::before {
  right: 9%;
  top: 16%;
  width: min(720px, 56vw);
  height: min(520px, 44vw);
}

.starfield::after {
  right: 18%;
  top: 27%;
  width: min(500px, 40vw);
  height: min(330px, 30vw);
  border-color: rgba(240, 201, 101, 0.32);
}

.star-node {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
  font-weight: 800;
}

.node-source {
  right: 34%;
  top: 22%;
}

.node-rules {
  right: 11%;
  top: 29%;
}

.node-data {
  right: 27%;
  top: 47%;
}

.node-graph {
  right: 8%;
  top: 58%;
}

.node-workbench {
  right: 21%;
  top: 72%;
  border-color: rgba(240, 201, 101, 0.58);
}

.starlight-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 40px));
  margin: 22px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.starlight-proof span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-align: center;
}

.starlight-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.starlight-section-copy {
  max-width: 780px;
}

.starlight-section-copy h2,
.starlight-cta h2 {
  max-width: 820px;
  font-size: clamp(2.2rem, 4.8vw, 4.9rem);
}

.evidence-grid,
.governance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.evidence-grid article,
.governance-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.evidence-grid span {
  display: block;
  margin-bottom: 60px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.product-view {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.workbench-visual {
  overflow: hidden;
  border: 1px solid rgba(184, 195, 189, 0.88);
  border-radius: 8px;
  background: #f9fbf8;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

.workbench-top {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  color: #ffffff;
  background: #111827;
}

.workbench-top span,
.workbench-top em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.workbench-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 190px;
  min-height: 360px;
}

.workbench-body aside,
.workbench-body section {
  padding: 18px;
  background: #eef3f0;
}

.workbench-body aside {
  display: grid;
  align-content: start;
  gap: 9px;
  border-right: 1px solid var(--line);
}

.workbench-body aside span {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.workbench-body aside .active {
  color: #ffffff;
  background: var(--green-dark);
}

.workbench-main {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.source-row span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

.source-row em {
  color: var(--green);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.source-row.strong {
  border-color: rgba(201, 149, 50, 0.58);
}

.workbench-body section {
  border-left: 1px solid var(--line);
}

.workbench-body section h3 {
  margin-bottom: 14px;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.flow-track article {
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.flow-track article:last-child {
  border-right: 0;
}

.flow-track span {
  display: block;
  margin-bottom: 82px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.governance-section {
  border-top: 1px solid var(--line);
}

.starlight-cta {
  width: 100%;
  padding: 88px 20px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #111827 0%, #0b4d49 65%, #244f86 100%);
  background-size: 70px 70px, auto;
}

.starlight-cta .eyebrow {
  color: #f0c965;
}

.starlight-cta h2 {
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.starlight-cta .button {
  margin-top: 14px;
}

@media (max-width: 1040px) {
  .starlight-hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .starfield {
    opacity: 0.58;
  }

  .starlight-proof,
  .evidence-grid,
  .governance-grid,
  .product-view,
  .flow-track {
    grid-template-columns: 1fr;
  }

  .workbench-body {
    grid-template-columns: 1fr;
  }

  .workbench-body aside,
  .workbench-body section,
  .flow-track article {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-track article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .starlight-hero,
  .starlight-band {
    width: 100%;
  }

  .starlight-hero {
    padding: 74px 12px;
  }

  .starlight-hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .starlight-hero-copy {
    width: 100%;
  }

  .star-node {
    display: none;
  }

  .starlight-proof,
  .starlight-band {
    width: min(var(--max), calc(100% - 24px));
  }

  .starlight-actions,
  .starlight-actions .button {
    width: 100%;
  }

  .workbench-top,
  .source-row {
    grid-template-columns: 1fr;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
