.pageCanvas {
  min-height: 100%;
}

.canvasPattern {
  background: linear-gradient(180deg, color-mix(in srgb, var(--d-coral) 5%, transparent) 0%, transparent 100%);
}

.canvasTheme {
  background: linear-gradient(180deg, color-mix(in srgb, var(--d-amber) 5%, transparent) 0%, transparent 100%);
}

.canvasBlueprint {
  background: linear-gradient(180deg, color-mix(in srgb, var(--d-cyan) 5%, transparent) 0%, transparent 100%);
}

.canvasShell {
  background: linear-gradient(180deg, color-mix(in srgb, var(--d-green) 5%, transparent) 0%, transparent 100%);
}

.canvasArchetype {
  background: linear-gradient(180deg, color-mix(in srgb, var(--d-purple) 5%, transparent) 0%, transparent 100%);
}

.pageShellBreakpoint {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  color: var(--d-text-muted);
  font-size: 0.75rem;
}

.mutedLink {
  color: var(--d-text-muted);
}

.currentCrumb {
  color: var(--d-text);
  font-weight: 500;
}

.heroSurface {
  overflow: hidden;
}

.heroGrid {
  display: grid;
  gap: 1.25rem;
}

.heroMain {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.badgeRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.typeBadge {
  font-weight: 700;
  color: var(--d-bg);
}

.typeBadgePattern {
  background: var(--d-coral);
}

.typeBadgeTheme {
  background: var(--d-amber);
}

.typeBadgeBlueprint {
  background: var(--d-cyan);
}

.typeBadgeShell {
  background: var(--d-green);
}

.typeBadgeArchetype {
  background: var(--d-purple);
}

.titleRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.heroTitle {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--d-text);
}

.versionPill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  background: color-mix(in srgb, var(--d-surface-raised) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--d-border) 80%, transparent);
  color: var(--d-text-muted);
  font-family: var(--d-font-mono, monospace);
  font-size: 0.75rem;
}

.description {
  margin: 0;
  max-width: 44rem;
  color: var(--d-text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

.metaRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.metaItem {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--d-text-muted);
}

.metaIcon {
  color: var(--d-text-muted);
  flex: none;
}

.capabilityStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quickStartPanel {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1rem;
  border-radius: var(--d-radius-lg);
  border: 1px solid color-mix(in srgb, var(--d-border) 85%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--d-accent) 6%, transparent) 0%, transparent 100%),
    color-mix(in srgb, var(--d-surface-raised) 92%, transparent);
}

.panelEyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-accent);
}

.panelTitle {
  margin: 0;
  font-size: 1rem;
  color: var(--d-text);
}

.panelDescription {
  margin: 0;
  color: var(--d-text-muted);
  line-height: 1.5;
  font-size: 0.875rem;
}

.actionStack {
  display: grid;
  gap: 0.75rem;
}

.actionLink {
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-start;
  text-decoration: none;
}

.launchCommandRail .actionLink[data-variant='showcase'] {
  border: 1px solid color-mix(in srgb, var(--d-cyan) 42%, var(--d-border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--d-cyan) 14%, transparent), transparent 64%),
    color-mix(in srgb, var(--d-surface) 86%, transparent);
  color: var(--d-text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}

.launchCommandRail .actionLink[data-variant='showcase']:hover {
  border-color: color-mix(in srgb, var(--d-cyan) 68%, var(--d-border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--d-cyan) 20%, transparent), transparent 64%),
    color-mix(in srgb, var(--d-surface-raised) 92%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-cyan) 12%, transparent);
}

.actionLinkIcon {
  display: inline-grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: var(--d-radius-sm);
  border: 1px solid color-mix(in srgb, var(--d-cyan) 42%, transparent);
  background: color-mix(in srgb, var(--d-cyan) 13%, transparent);
  color: var(--d-cyan);
}

.actionLinkCopy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.actionLinkCopy strong {
  color: var(--d-text);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.25;
}

.actionLinkCopy span {
  color: var(--d-text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.launchHero {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  padding: 0.25rem 0 1rem;
}

.launchHeroCopy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.25rem;
  padding-block: clamp(0.75rem, 2vw, 1.25rem);
}

.launchHeroAside {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.launchTitleBlock {
  display: grid;
  gap: 0.85rem;
}

.launchKicker {
  color: var(--d-cyan);
  font-family: var(--d-font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launchTitle {
  margin: 0;
  max-width: 11ch;
  color: var(--d-text);
  font-size: clamp(2.5rem, 6vw, 4.875rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 0.96;
}

.launchDescription {
  margin: 0;
  max-width: 48rem;
  color: color-mix(in srgb, var(--d-text-muted) 92%, var(--d-text));
  font-size: clamp(1rem, 1.4vw, 1.175rem);
  line-height: 1.65;
}

.launchMetaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  color: var(--d-text-muted);
  font-family: var(--d-font-mono, ui-monospace, monospace);
  font-size: 0.8125rem;
}

.launchMetaRow span {
  min-width: 0;
}

.launchMetaRow span + span::before {
  content: "/";
  margin-right: 0.7rem;
  color: color-mix(in srgb, var(--d-text-muted) 50%, transparent);
}

.launchMetrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 41rem;
}

.launchMetricCard {
  --metric-accent: var(--d-primary);
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  border-radius: var(--d-radius);
  border: 1px solid color-mix(in srgb, var(--metric-accent) 34%, var(--d-border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--metric-accent) 10%, transparent), transparent),
    color-mix(in srgb, var(--d-surface) 82%, transparent);
  padding: 0.875rem;
}

.launchMetricCard[data-tone='pink'] {
  --metric-accent: var(--d-pink);
}

.launchMetricCard[data-tone='amber'] {
  --metric-accent: var(--d-amber);
}

.launchMetricCard[data-tone='cyan'] {
  --metric-accent: var(--d-cyan);
}

.launchMetricCard[data-tone='green'] {
  --metric-accent: var(--d-green);
}

.launchMetricLabel {
  color: var(--d-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launchMetricValue {
  color: var(--d-text);
  font-size: 1.625rem;
  line-height: 1;
}

.launchMetricDetail {
  color: var(--d-text-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.launchPreview,
.launchCommandRail {
  overflow: hidden;
  border-radius: var(--d-radius-lg);
  border: 1px solid color-mix(in srgb, var(--d-border) 78%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--d-cyan) 7%, transparent), transparent 48%),
    color-mix(in srgb, var(--d-surface-raised) 91%, transparent);
  box-shadow: var(--d-shadow-md);
}

.previewHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--d-border) 70%, transparent);
  padding: 0.75rem 0.875rem;
  color: var(--d-text-muted);
  font-family: var(--d-font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
}

.previewHeader span {
  color: var(--d-cyan);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.previewHeader strong {
  min-width: 0;
  overflow: hidden;
  color: var(--d-text);
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.previewStage {
  display: grid;
  min-width: 0;
}

.previewMedia {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid color-mix(in srgb, var(--d-border) 70%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--d-cyan) 12%, transparent), transparent 52%),
    color-mix(in srgb, var(--d-bg) 58%, var(--d-surface));
}

.previewMedia img,
.previewMedia iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.previewMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--d-bg) 42%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--d-cyan) 12%, transparent), transparent 38%, color-mix(in srgb, var(--d-pink) 10%, transparent));
}

.previewMediaPlaceholder {
  display: grid;
  align-content: end;
  gap: 0.45rem;
  height: 100%;
  padding: 1rem;
}

.previewMediaPlaceholder span {
  color: var(--d-cyan);
  font-family: var(--d-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.previewMediaPlaceholder strong {
  max-width: 14rem;
  color: var(--d-text);
  font-size: 1.25rem;
  line-height: 1.1;
}

.previewBody {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.45fr) minmax(0, 1fr);
  min-height: 13.5rem;
}

.previewRail {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  border-right: 1px solid color-mix(in srgb, var(--d-border) 70%, transparent);
  padding: 0.875rem;
}

.previewRail span {
  overflow: hidden;
  border-radius: var(--d-radius-sm);
  background: color-mix(in srgb, var(--d-surface) 86%, transparent);
  color: var(--d-text-muted);
  font-family: var(--d-font-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  line-height: 1.3;
  padding: 0.45rem 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.previewCanvas {
  display: grid;
  gap: 0.625rem;
  padding: 0.875rem;
}

.previewRouteCluster {
  --cluster-accent: var(--d-cyan);
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  border-radius: var(--d-radius);
  border: 1px solid color-mix(in srgb, var(--cluster-accent) 34%, var(--d-border));
  background: color-mix(in srgb, var(--cluster-accent) 7%, transparent);
  padding: 0.625rem;
}

.previewRouteCluster[data-index='1'] {
  --cluster-accent: var(--d-pink);
}

.previewRouteCluster[data-index='2'] {
  --cluster-accent: var(--d-amber);
}

.previewRouteCluster[data-index='3'] {
  --cluster-accent: var(--d-green);
}

.previewRouteHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  color: var(--d-text);
  font-size: 0.8125rem;
  font-weight: 650;
}

.previewRouteHeader span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.previewRouteHeader strong {
  color: var(--cluster-accent);
  font-family: var(--d-font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
}

.previewRouteLines {
  display: grid;
  gap: 0.35rem;
}

.previewRouteLines span,
.previewEmpty {
  overflow: hidden;
  color: var(--d-text-muted);
  font-family: var(--d-font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.previewFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--d-border) 70%, transparent);
  padding: 0.75rem 0.875rem;
  color: var(--d-text-muted);
  font-size: 0.8125rem;
}

.previewShowcaseLink {
  color: var(--d-cyan);
  font-weight: 650;
  text-decoration: none;
}

.previewShowcaseLink:hover {
  color: var(--d-text);
}

.launchCommandRail {
  display: grid;
  gap: 0.75rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--d-amber) 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--d-surface-raised) 92%, transparent);
  padding: 1rem;
}

.launchCommandRail h2,
.launchCommandRail p {
  margin: 0;
}

.launchCommandRail h2 {
  color: var(--d-text);
  font-size: 1rem;
  line-height: 1.3;
}

.launchCommandRail p {
  color: var(--d-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.launchCommandRail :global(button.d-interactive),
.launchCommandRail :global(a.d-interactive) {
  padding: 0.65rem 0.75rem;
}

.launchSection,
.contractSection,
.evidenceSection {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.launchSectionHeader {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.launchEyebrow {
  color: var(--d-accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launchSectionTitle {
  margin: 0;
  max-width: 42rem;
  color: var(--d-text);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.launchSectionCopy,
.voiceNote {
  margin: 0;
  max-width: 48rem;
  color: var(--d-text-muted);
  line-height: 1.65;
}

.shipGrid {
  display: grid;
  gap: 1rem;
}

.shipCard {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  border-radius: var(--d-radius);
  border: 1px solid color-mix(in srgb, var(--d-border) 78%, transparent);
  background: color-mix(in srgb, var(--d-surface-raised) 78%, transparent);
  padding: 1rem;
}

.shipCard span {
  color: var(--d-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shipCard strong {
  color: var(--d-text);
  font-size: 1rem;
  line-height: 1.35;
}

.shipCard p {
  margin: 0;
  color: var(--d-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.featureCloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.featureCloud span {
  border-radius: var(--d-radius-full);
  border: 1px solid color-mix(in srgb, var(--d-cyan) 34%, var(--d-border));
  background: color-mix(in srgb, var(--d-cyan) 9%, transparent);
  color: color-mix(in srgb, var(--d-text) 88%, var(--d-cyan));
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 0.7rem;
}

.voiceNote {
  border-left: 2px solid var(--d-amber);
  padding-left: 1rem;
}

.anatomyGrid {
  display: grid;
  gap: 1rem;
}

.anatomyCard {
  display: grid;
  gap: 0.875rem;
  min-width: 0;
  border-radius: var(--d-radius);
  border: 1px solid color-mix(in srgb, var(--d-border) 78%, transparent);
  background: color-mix(in srgb, var(--d-surface-raised) 78%, transparent);
  padding: 1rem;
}

.anatomyCardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.anatomyCardHeader h3 {
  margin: 0;
  color: var(--d-text);
  font-size: 1rem;
  line-height: 1.25;
}

.anatomyCardHeader span,
.anatomyMore {
  color: var(--d-text-muted);
  font-size: 0.8125rem;
}

.anatomyRouteList {
  display: grid;
  gap: 0.5rem;
}

.anatomyRoute {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  border-radius: var(--d-radius-sm);
  background: color-mix(in srgb, var(--d-bg) 46%, transparent);
  padding: 0.55rem 0.65rem;
}

.anatomyRoute code {
  overflow: hidden;
  color: var(--d-cyan);
  font-family: var(--d-font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anatomyRoute span {
  color: var(--d-text-muted);
  font-size: 0.75rem;
}

.contractSection {
  scroll-margin-top: 5rem;
}

.evidenceDisclosure {
  border-radius: var(--d-radius);
  border: 1px solid color-mix(in srgb, var(--d-border) 78%, transparent);
  background: color-mix(in srgb, var(--d-surface) 82%, transparent);
}

.evidenceSummary {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
}

.evidenceSummary::-webkit-details-marker {
  display: none;
}

.evidenceSummary span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--d-text);
  font-weight: 700;
}

.evidenceSummary small {
  color: var(--d-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.evidenceGrid {
  display: grid;
  gap: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--d-border) 70%, transparent);
  padding: 1rem;
}

.evidenceCard {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.evidenceCard h3 {
  margin: 0;
  color: var(--d-text);
  font-size: 0.95rem;
}

.evidenceCard ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--d-text-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.summaryGrid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.summaryCard {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.summaryCardPrimary {
  border-top: 2px solid var(--d-primary);
}

.summaryCardAccent {
  border-top: 2px solid var(--d-accent);
}

.summaryCardSuccess {
  border-top: 2px solid var(--d-success);
}

.summaryEyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-text-muted);
}

.summaryTitle {
  margin: 0;
  font-size: 1rem;
  color: var(--d-text);
  font-weight: 600;
}

.supportingCopy {
  margin: 0;
  color: var(--d-text-muted);
  line-height: 1.6;
}

.infoList {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--d-text-muted);
}

.factRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.factList {
  display: grid;
  gap: 0.5rem;
  color: var(--d-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.detailsBlock {
  border-top: 1px solid color-mix(in srgb, var(--d-border) 70%, transparent);
  padding-top: 0.75rem;
}

.detailsSummary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--d-text);
}

.detailsContent {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
  color: var(--d-text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.jsonSection {
  margin-top: 1.5rem;
}

@media (min-width: 960px) {
  .launchHero {
    grid-template-columns: minmax(0, 1.08fr) minmax(23rem, 0.92fr);
  }

  .previewStage {
    grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
  }

  .previewMedia {
    aspect-ratio: auto;
    min-height: 100%;
    border-right: 1px solid color-mix(in srgb, var(--d-border) 70%, transparent);
    border-bottom: none;
  }

  .previewBody {
    min-height: 21rem;
  }

  .shipGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .anatomyGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidenceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heroGrid {
    grid-template-columns: minmax(0, 2fr) minmax(20rem, 1fr);
    align-items: start;
  }

  .summaryGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pageShellBreakpoint {
    padding: 1.5rem 1rem 2rem;
  }

  .launchMetrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .previewBody {
    grid-template-columns: minmax(0, 1fr);
  }

  .previewRail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--d-border) 70%, transparent);
  }

  .previewFooter {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidenceSummary span {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .metaRow {
    align-items: flex-start;
  }
}
