:root {
  --ink: #171717;
  --muted: #5e625c;
  --paper: #fbfaf6;
  --paper-strong: #ffffff;
  --line: #dedbd1;
  --forest: #244536;
  --blue: #2c5d7d;
  --brick: #aa4b36;
  --gold: #d9a441;
  --cyan: #6bc5d2;
  --violet: #7d6bd2;
  --charcoal: #121615;
  --shadow: 0 24px 80px rgba(23, 23, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  color: var(--paper-strong);
  background: var(--brick);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.82);
  box-shadow: 0 16px 56px rgba(23, 23, 23, 0.16);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(36, 69, 54, 0.16);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 12px 40px rgba(23, 23, 23, 0.12);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  color: var(--paper-strong);
  background: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #343630;
  font-size: 0.95rem;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper-strong);
  background: var(--forest);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  align-items: end;
  padding: 132px max(24px, calc((100vw - 1120px) / 2)) 58px;
  overflow: hidden;
  color: var(--paper-strong);
  background:
    linear-gradient(90deg, rgba(12, 14, 12, 0.86) 0%, rgba(12, 14, 12, 0.62) 40%, rgba(12, 14, 12, 0.24) 100%),
    linear-gradient(0deg, rgba(12, 14, 12, 0.52), rgba(12, 14, 12, 0.02) 44%),
    url("./assets/hero-workspace.png") center / cover no-repeat;
}

.hero-content {
  width: min(700px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brick);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c36c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  font-size: 5.8rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.28rem;
  line-height: 1.65;
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(670px, 100%);
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-signals span {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 14, 12, 0.24);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-signals strong {
  color: #f1c36c;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--paper-strong);
  background: var(--brick);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #923e2e;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.button.ghost {
  border-color: rgba(23, 23, 23, 0.16);
  color: var(--ink);
  background: var(--paper-strong);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: var(--forest);
  color: var(--paper-strong);
  background: var(--forest);
}

.hero-status {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 58px;
  display: inline-flex;
  max-width: 320px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(12, 14, 12, 0.34);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #75d99b;
  box-shadow: 0 0 0 6px rgba(117, 217, 155, 0.18);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.intro-strip p {
  margin: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
  color: var(--forest);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.intro-strip p:last-child {
  border-right: 0;
}

.demo-lab {
  position: relative;
  padding: 96px 0;
  color: var(--paper-strong);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #121615 0%, #18221e 50%, #151516 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.demo-lab::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(170, 75, 54, 0.12), transparent 42%),
    linear-gradient(0deg, rgba(107, 197, 210, 0.1), transparent 38%);
  opacity: 0.9;
}

.demo-heading,
.demo-workbench,
.demo-reasons {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.demo-heading {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: end;
}

.demo-heading .eyebrow {
  color: var(--gold);
}

.demo-heading h2 {
  max-width: 620px;
  color: var(--paper-strong);
  font-size: 3.25rem;
  line-height: 1.02;
}

.demo-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.75;
}

.demo-workbench {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
  margin-top: 34px;
}

.demo-tabs {
  display: grid;
  gap: 10px;
  align-self: start;
}

.demo-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.demo-tab:hover,
.demo-tab:focus-visible {
  border-color: rgba(217, 164, 65, 0.48);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.demo-tab.is-active {
  border-color: rgba(217, 164, 65, 0.78);
  background: rgba(217, 164, 65, 0.16);
  transform: translateX(4px);
}

.demo-tab span {
  grid-row: span 2;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-tab strong {
  color: var(--paper-strong);
  font-size: 1rem;
  line-height: 1.2;
}

.demo-tab em {
  color: rgba(255, 255, 255, 0.58);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.45;
}

.demo-panel {
  min-height: 660px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 13, 12, 0.78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.demo-panel-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.demo-panel-header span,
.demo-panel-header small {
  color: rgba(255, 255, 255, 0.58);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-panel-header strong {
  color: var(--paper-strong);
  font-size: 1rem;
  line-height: 1.25;
}

.demo-panel-body {
  padding: 18px;
}

.micro-app {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
}

.micro-inputs,
.micro-output {
  min-width: 0;
}

.micro-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.micro-card + .micro-card {
  margin-top: 12px;
}

.micro-card h3 {
  margin: 0 0 14px;
  color: var(--paper-strong);
  font-size: 1rem;
  line-height: 1.25;
}

.micro-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.micro-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.micro-field:first-child {
  margin-top: 0;
}

.micro-field label,
.check-grid span,
.sample-row span {
  color: rgba(255, 255, 255, 0.6);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.micro-field textarea,
.micro-field input,
.micro-field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--paper-strong);
  background: rgba(0, 0, 0, 0.2);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
}

.micro-field textarea {
  min-height: 190px;
  resize: vertical;
  padding: 12px;
}

.micro-field input,
.micro-field select {
  min-height: 44px;
  padding: 9px 11px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.range-row input {
  accent-color: var(--gold);
}

.range-row output {
  min-width: 4ch;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  text-align: right;
}

.sample-row,
.check-grid {
  display: grid;
  gap: 8px;
}

.sample-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-buttons button,
.check-grid label {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.sample-buttons button {
  padding: 9px 10px;
  font-weight: 800;
}

.sample-buttons button:hover,
.sample-buttons button:focus-visible,
.check-grid label:hover {
  border-color: rgba(217, 164, 65, 0.42);
  outline: none;
}

.check-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.check-grid span {
  grid-column: 1 / -1;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
}

.check-grid input {
  width: auto;
  accent-color: var(--gold);
}

.score-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
}

.score-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.score-line span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.score-line strong {
  color: var(--forest);
  font-size: 3.4rem;
  line-height: 0.9;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7e1d5;
}

.bar-fill {
  display: block;
  width: var(--bar-value, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brick), var(--gold), var(--cyan));
}

.output-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.output-list li,
.response-box,
.plan-step {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  line-height: 1.5;
}

.output-list strong,
.plan-step strong {
  color: var(--paper-strong);
}

.response-box {
  color: rgba(255, 255, 255, 0.86);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.plan-steps {
  display: grid;
  gap: 10px;
}

.demo-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.demo-reasons article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.demo-reasons span {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-reasons p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.96rem;
  line-height: 1.6;
}

.rescue-lab {
  position: relative;
  padding: 96px 0;
  color: var(--paper-strong);
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(135deg, #111413 0%, #18221d 52%, #141516 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: clip;
}

.rescue-lab::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(170, 75, 54, 0.14), transparent 46%),
    linear-gradient(0deg, rgba(107, 197, 210, 0.09), transparent 42%);
}

.rescue-intro,
.scenario-picker,
.rescue-story {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.rescue-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: end;
}

.rescue-intro .eyebrow {
  color: var(--gold);
}

.rescue-intro h2 {
  max-width: 680px;
  color: var(--paper-strong);
  font-size: 3.25rem;
  line-height: 1.02;
}

.rescue-intro p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.75;
}

.scenario-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.scenario-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.scenario-button:hover,
.scenario-button:focus-visible {
  border-color: rgba(217, 164, 65, 0.5);
  color: var(--paper-strong);
  outline: none;
}

.scenario-button.is-active {
  color: var(--ink);
  border-color: transparent;
  background: var(--gold);
  transform: translateY(-1px);
}

.rescue-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-top: 22px;
  align-items: start;
}

.rescue-visual {
  position: sticky;
  top: 100px;
}

.rescue-dashboard {
  position: relative;
  min-height: 650px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(10, 13, 12, 0.84);
  background-size: 28px 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.dashboard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-topline span,
.artifact-head span,
.rescue-meter span {
  color: rgba(255, 255, 255, 0.58);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-topline strong {
  color: var(--paper-strong);
  font-size: 1.02rem;
  line-height: 1.25;
  text-align: right;
}

.signal-map {
  position: absolute;
  inset: 78px 18px auto;
  height: 225px;
  pointer-events: none;
}

.pulse-node,
.pulse-line {
  position: absolute;
  display: block;
}

.pulse-node {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(217, 164, 65, 0.14), 0 0 34px rgba(217, 164, 65, 0.56);
  animation: node-pulse 1800ms ease-in-out infinite;
}

.node-a {
  top: 22%;
  left: 13%;
}

.node-b {
  top: 10%;
  right: 20%;
  animation-delay: 220ms;
}

.node-c {
  right: 10%;
  bottom: 14%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(107, 197, 210, 0.14), 0 0 34px rgba(107, 197, 210, 0.55);
  animation-delay: 440ms;
}

.node-d {
  bottom: 8%;
  left: 35%;
  background: var(--brick);
  box-shadow: 0 0 0 8px rgba(170, 75, 54, 0.16), 0 0 34px rgba(170, 75, 54, 0.5);
  animation-delay: 660ms;
}

.pulse-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform-origin: left center;
  animation: line-scan 2400ms linear infinite;
}

.line-a {
  top: 30%;
  left: 15%;
  width: 62%;
  transform: rotate(-8deg);
}

.line-b {
  top: 51%;
  left: 36%;
  width: 48%;
  transform: rotate(20deg);
  animation-delay: 360ms;
}

.line-c {
  top: 70%;
  left: 18%;
  width: 68%;
  transform: rotate(-14deg);
  animation-delay: 720ms;
}

.request-stack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 250px;
}

.request-card {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.request-card.is-primary {
  border-color: rgba(217, 164, 65, 0.48);
  background: rgba(217, 164, 65, 0.14);
  transform: translateY(-6px);
}

.request-card span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.request-card strong {
  display: block;
  margin-top: 10px;
  color: var(--paper-strong);
  font-size: 1rem;
  line-height: 1.25;
}

.request-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
  line-height: 1.45;
}

.rescue-meter,
.artifact-preview {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.rescue-meter > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.rescue-meter strong {
  color: var(--paper-strong);
  font-size: 2.6rem;
  line-height: 0.9;
}

.artifact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.artifact-head strong {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.artifact-list {
  display: grid;
  gap: 8px;
}

.artifact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  line-height: 1.45;
}

.artifact-item span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.rescue-steps {
  display: grid;
  gap: 18px;
}

.rescue-step {
  min-height: 52svh;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.rescue-step.is-active {
  border-color: rgba(217, 164, 65, 0.6);
  background: rgba(217, 164, 65, 0.14);
  transform: translateX(-6px);
}

.rescue-step span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.rescue-step h3 {
  margin-top: 18px;
  color: var(--paper-strong);
  font-size: 2rem;
  line-height: 1.08;
}

.rescue-step p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.03rem;
  line-height: 1.72;
}

@keyframes node-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes line-scan {
  0% {
    opacity: 0.1;
    filter: blur(0);
  }
  50% {
    opacity: 1;
    filter: blur(0.4px);
  }
  100% {
    opacity: 0.1;
    filter: blur(0);
  }
}

.playground-lab {
  position: relative;
  padding: 96px 0;
  color: var(--paper-strong);
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(135deg, #111413 0%, #17231d 48%, #151516 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.playground-lab::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(170, 75, 54, 0.14), transparent 42%),
    linear-gradient(0deg, rgba(107, 197, 210, 0.1), transparent 38%);
}

.playground-head,
.playground-grid,
.lab-note {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.playground-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: end;
}

.playground-head .eyebrow {
  color: var(--gold);
}

.playground-head h2 {
  max-width: 660px;
  color: var(--paper-strong);
  font-size: 3.25rem;
  line-height: 1.02;
}

.playground-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.75;
}

.playground-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  grid-template-rows: repeat(2, minmax(280px, auto));
  gap: 16px;
  margin-top: 34px;
}

.play-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 13, 12, 0.78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease, border-color 180ms ease;
}

.play-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.play-card:hover {
  border-color: rgba(217, 164, 65, 0.4);
}

.field-card {
  grid-row: span 2;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.play-card-head {
  position: relative;
  z-index: 2;
}

.play-card-head span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.play-card-head h3 {
  margin-top: 10px;
  color: var(--paper-strong);
  font-size: 1.45rem;
  line-height: 1.08;
}

.play-card-head p {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.58;
}

#field-canvas {
  width: 100%;
  min-height: 430px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(217, 164, 65, 0.12), transparent 34%),
    radial-gradient(circle at 70% 60%, rgba(107, 197, 210, 0.1), transparent 36%),
    rgba(0, 0, 0, 0.24);
}

.field-controls,
.morph-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-button,
.morph-button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.field-button:hover,
.field-button:focus-visible,
.morph-button:hover,
.morph-button:focus-visible {
  border-color: rgba(217, 164, 65, 0.48);
  color: var(--paper-strong);
  outline: none;
}

.field-button.is-active,
.morph-button.is-active {
  color: var(--ink);
  border-color: transparent;
  background: var(--gold);
  transform: translateY(-1px);
}

.api-card,
.morph-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.api-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 92px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 1px) 0 0 / 25% 100%,
    rgba(0, 0, 0, 0.2);
}

.pipeline-node {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.packet-lane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.packet {
  position: absolute;
  top: var(--packet-top, 42%);
  left: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--packet-color, var(--gold));
  box-shadow: 0 0 22px var(--packet-color, var(--gold));
  animation: packet-run var(--packet-speed, 1200ms) ease-in-out forwards;
}

.api-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.api-stats div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.api-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.api-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 1.2rem;
  line-height: 1;
}

.pulse-button {
  justify-self: start;
}

.mini-screen {
  min-height: 230px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: #f7f4ea;
  color: var(--ink);
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.screen-top strong {
  font-size: 1rem;
}

.screen-top span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.screen-tile {
  min-height: 74px;
  padding: 12px;
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.08);
}

.screen-tile.wide {
  grid-column: 1 / -1;
}

.screen-tile span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.screen-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1.08;
}

.screen-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 84px;
  margin-top: 10px;
}

.screen-bars i {
  flex: 1;
  min-width: 10px;
  border-radius: 999px 999px 4px 4px;
  background: var(--blue);
  opacity: 0.85;
}

.screen-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.screen-list i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #dedbd1;
}

.screen-list i:nth-child(2) {
  width: 72%;
}

.screen-list i:nth-child(3) {
  width: 46%;
}

.lab-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.lab-note span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lab-note p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

@keyframes packet-run {
  0% {
    transform: translateX(0) scale(0.72);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw - 180px)) scale(1);
    opacity: 0;
  }
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 94px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 560px;
  margin-bottom: 0;
}

.section-heading h2 {
  max-width: 720px;
  font-size: 3rem;
  line-height: 1.04;
}

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

.project-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 16px 46px rgba(23, 23, 23, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: rgba(170, 75, 54, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card.accent {
  color: var(--paper-strong);
  border-color: transparent;
  background: var(--forest);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card.accent .project-meta {
  color: rgba(255, 255, 255, 0.68);
}

.project-card h3 {
  margin-top: auto;
  font-size: 1.85rem;
  line-height: 1.08;
}

.project-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.project-card.accent p {
  color: rgba(255, 255, 255, 0.76);
}

.project-proof {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-card.accent .project-proof {
  border-color: rgba(255, 255, 255, 0.16);
}

.project-proof span {
  display: block;
  color: var(--brick);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card.accent .project-proof span {
  color: var(--gold);
}

.project-proof strong {
  display: block;
  margin-top: 8px;
  color: #30332e;
  font-size: 0.98rem;
  line-height: 1.45;
}

.project-card.accent .project-proof strong {
  color: rgba(255, 255, 255, 0.86);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: #e8eee8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

.project-card.accent .tag-list li {
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.12);
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 70px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.stack-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-strong);
}

.stack-group {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.stack-group:last-child {
  border-bottom: 0;
}

.stack-group h3 {
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.2;
}

.stack-group p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  border-top: 1px solid var(--line);
}

.about-copy {
  display: grid;
  gap: 22px;
}

.about-copy p {
  margin: 0;
  color: #3f433c;
  font-size: 1.22rem;
  line-height: 1.78;
}

.contact-section {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 auto 36px;
  padding: 40px;
  border-radius: 8px;
  color: var(--paper-strong);
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.94), rgba(36, 69, 54, 0.94)),
    var(--ink);
}

.contact-section .eyebrow {
  color: var(--gold);
}

.contact-section h2 {
  font-size: 2.7rem;
  line-height: 1.05;
}

.site-footer {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--forest);
  font-weight: 800;
}

@media (max-width: 900px) {
  [id] {
    scroll-margin-top: 132px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 9px 8px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 72svh;
    padding-top: 162px;
    background-position: 64% center;
  }

  h1 {
    font-size: 4.2rem;
  }

  .hero-copy {
    max-width: 560px;
    font-size: 1.08rem;
  }

  .demo-heading,
  .demo-workbench,
  .demo-reasons,
  .micro-app,
  .rescue-intro,
  .rescue-story,
  .playground-head,
  .playground-grid {
    grid-template-columns: 1fr;
  }

  .hero-status {
    position: static;
    max-width: 100%;
    margin-top: 28px;
    justify-self: start;
  }

  .intro-strip,
  .project-grid,
  .split-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .intro-strip p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-strip p:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 72px 0;
  }

  .demo-lab {
    padding: 78px 0;
  }

  .rescue-lab {
    padding: 78px 0;
  }

  .playground-lab {
    padding: 78px 0;
  }

  .playground-head p:not(.eyebrow) {
    margin-top: 20px;
  }

  .field-card {
    grid-row: auto;
    min-height: 560px;
  }

  .rescue-intro p:not(.eyebrow) {
    margin-top: 20px;
  }

  .rescue-visual {
    position: relative;
    top: auto;
  }

  .rescue-step {
    min-height: 0;
  }

  .rescue-step.is-active {
    transform: none;
  }

  .demo-workbench {
    gap: 32px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2,
  .demo-heading h2,
  .rescue-intro h2,
  .playground-head h2,
  .contact-section h2 {
    font-size: 2.35rem;
  }

  .demo-heading p:not(.eyebrow) {
    margin-top: 20px;
  }

  .split-section,
  .about-section {
    gap: 34px;
  }

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

@media (max-width: 560px) {
  .site-header,
  .section,
  .demo-heading,
  .demo-workbench,
  .demo-reasons,
  .rescue-intro,
  .scenario-picker,
  .rescue-story,
  .playground-head,
  .playground-grid,
  .lab-note,
  .contact-section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 72svh;
    padding: 156px 14px 34px;
    background-position: 68% center;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-copy,
  .about-copy p {
    font-size: 1rem;
  }

  .hero-signals {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .hero-signals span {
    padding: 12px;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section-heading h2,
  .demo-heading h2,
  .rescue-intro h2,
  .playground-head h2,
  .contact-section h2 {
    font-size: 1.9rem;
  }

  .playground-grid {
    gap: 12px;
  }

  .play-card {
    padding: 14px;
  }

  .field-card {
    min-height: 500px;
  }

  #field-canvas {
    min-height: 320px;
  }

  .api-pipeline,
  .api-stats,
  .screen-grid {
    grid-template-columns: 1fr;
  }

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

  .rescue-dashboard {
    min-height: 0;
    padding: 14px;
  }

  .dashboard-topline,
  .artifact-head,
  .rescue-meter > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-topline strong {
    text-align: left;
  }

  .signal-map {
    position: relative;
    inset: auto;
    height: 150px;
    margin-top: 12px;
  }

  .request-stack {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .request-card {
    min-height: 0;
  }

  .rescue-step {
    padding: 20px;
  }

  .rescue-step h3 {
    font-size: 1.35rem;
  }

  .demo-panel {
    min-height: 0;
  }

  .demo-panel-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .demo-tabs {
    gap: 8px;
  }

  .demo-tab {
    min-height: 0;
    padding: 14px;
  }

  .demo-tab.is-active {
    transform: none;
  }

  .demo-panel-body {
    padding: 14px;
  }

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

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

  .score-line strong {
    font-size: 3rem;
  }

  .project-card {
    min-height: 360px;
    padding: 20px;
  }

  .contact-section {
    padding: 26px 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
