:root {
  --black: #090b0a;
  --ink: #f4f6ef;
  --muted: #9ca49d;
  --line: #4b534d;
  --paper: #f3f5ee;
  --paper-ink: #111510;
  --paper-line: #687169;
  --acid: #c8ff46;
  --yellow: #ffdc58;
  --coral: #ff7867;
  --cyan: #5ce2e5;
  --max: 1340px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  letter-spacing: 0;
}
button, input, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--yellow);
  color: #111;
  font-size: 11px;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 10, .96);
  backdrop-filter: blur(10px);
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.brand strong { color: var(--acid); font-size: 15px; }
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.topbar nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid transparent;
  color: #c2c9c3;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.topbar nav a:hover { border-color: var(--acid); color: var(--acid); }

.hero {
  position: relative;
  height: min(780px, calc(100svh - 54px));
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(2, 4, 3, .58);
  pointer-events: none;
}
.hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.16) saturate(.88) brightness(.72);
}
.hero__inner {
  width: min(var(--max), calc(100% - 56px));
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin: auto;
  padding: 25px 0 23px;
}
.hero__telemetry {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244, 246, 239, .32);
  color: #b4bbb5;
  font-size: 9px;
  font-weight: 800;
}
.hero__copy { align-self: end; max-width: 1080px; padding: 55px 0 52px; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 10px; font-weight: 800; line-height: 1.5; }
.hero h1 {
  max-width: 1050px;
  margin: 17px 0 0;
  font-size: 70px;
  line-height: .98;
  overflow-wrap: anywhere;
}
.hero__body {
  max-width: 800px;
  margin: 24px 0 0;
  color: #e0e5df;
  font: 500 16px/1.62 Arial, sans-serif;
}
.hero__actions, .panel-actions, .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__actions { margin-top: 30px; }
.command {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.command:hover { background: currentColor; color: var(--black); }
.command--acid { background: var(--acid); color: #11150f; border-color: var(--acid); }
.command--acid:hover { background: transparent; color: var(--acid); }
.command--coral { background: var(--coral); color: #17100e; border-color: var(--coral); }
.command--coral:hover { background: #17100e; color: var(--coral); }
.command--dark { background: #111510; color: #f6f8f2; border-color: #111510; }
.command--dark:hover { background: transparent; color: #111510; }
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 246, 239, .32);
  border-left: 1px solid rgba(244, 246, 239, .32);
}
.hero__facts div {
  min-width: 0;
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px 16px;
  border-right: 1px solid rgba(244, 246, 239, .32);
  border-bottom: 1px solid rgba(244, 246, 239, .32);
}
.hero__facts span { color: #a7afa8; font-size: 8px; font-weight: 800; }
.hero__facts strong { color: var(--acid); font-size: 11px; overflow-wrap: anywhere; }

.section { border-bottom: 1px solid; }
.section__inner { width: min(var(--max), calc(100% - 56px)); margin: auto; padding: 92px 0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 52px;
  margin-bottom: 38px;
  padding-bottom: 22px;
  border-bottom: 1px solid;
}
.section-heading h2 { max-width: 900px; margin: 8px 0 0; font-size: 42px; line-height: 1.04; overflow-wrap: anywhere; }
.section-heading > p { margin: 0; font: 500 13px/1.62 Arial, sans-serif; }

.lab { background: var(--paper); color: var(--paper-ink); border-color: var(--paper-line); }
.lab .eyebrow { color: #00666b; }
.lab .section-heading { border-color: var(--paper-line); }
.lab .section-heading > p { color: #414942; }
.lab-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #5d665f;
  border-left: 1px solid #5d665f;
}
.lab-panel {
  min-width: 0;
  min-height: 770px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  align-content: start;
  padding: 26px;
  border-right: 1px solid #5d665f;
  border-bottom: 1px solid #5d665f;
}
.lab-panel--packet { background: var(--yellow); }
.lab-panel--response { background: #dce6de; }
.panel-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 30px; }
.panel-heading > span { color: #546006; font-size: 13px; font-weight: 800; }
.panel-heading p { margin: 0 0 6px; color: #535b54; font-size: 8px; font-weight: 800; }
.panel-heading h3 { margin: 0; font-size: 28px; line-height: 1.05; }
.field-label { margin-bottom: 8px; color: #4b544c; font-size: 8px; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid #353d37;
  border-radius: 0;
  background: #f8faf5;
  color: #111510;
}
input { height: 48px; padding: 0 13px; font-size: 12px; }
textarea { min-height: 444px; resize: vertical; padding: 14px; font-size: 11px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #69716b; opacity: 1; }
.field-note { min-height: 32px; margin: 8px 0 15px; color: #515951; font: 500 11px/1.45 Arial, sans-serif; }
.suite-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 21, 16, .45);
  font-size: 8px;
  font-weight: 800;
}
.suite-line code { overflow-wrap: anywhere; text-align: right; }
.prompt-output {
  min-height: 444px;
  max-height: 444px;
  margin: 0;
  overflow: auto;
  padding: 15px;
  border: 1px solid #353d37;
  background: #111510;
  color: #e5ebe4;
  font: 500 10px/1.55 Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.panel-actions { align-items: center; margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(17, 21, 16, .45); }
.panel-actions--score { margin-top: 10px; }
.form-status { min-height: 38px; margin: 10px 0 0; color: #8e2019; font-size: 10px; font-weight: 800; line-height: 1.45; }
.form-status[data-state="ok"] { color: #315d0b; }
.privacy-seal {
  display: grid;
  gap: 8px;
  align-self: end;
  margin-top: 20px;
  padding: 16px 0 0 18px;
  border-top: 1px solid #327174;
  border-left: 1px solid #327174;
}
.privacy-seal strong { color: #00666b; font-size: 9px; }
.privacy-seal span { color: #465048; font: 500 11px/1.5 Arial, sans-serif; }

.result { background: #101411; color: var(--ink); border-color: var(--line); }
.result .section-heading { border-color: var(--line); }
.result .eyebrow { color: var(--coral); }
.result-heading { grid-template-columns: minmax(0, 1fr) auto; }
.overall { display: grid; grid-template-columns: auto auto; align-items: end; justify-items: end; }
.overall strong { color: var(--acid); font-size: 92px; line-height: .78; }
.overall span { color: #aab2ab; font-size: 13px; }
.overall b { grid-column: 1 / -1; margin-top: 11px; color: var(--coral); font-size: 10px; }
.result-grid { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: 54px; align-items: center; }
.radar-wrap { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); background: #090b0a; }
.radar-wrap canvas { width: 100%; height: 100%; display: block; }
.result-summary { max-width: 740px; margin: 0 0 28px; color: #d7ddd7; font: 500 15px/1.65 Arial, sans-serif; }
.dimension-list { border-top: 1px solid var(--line); }
.dimension-row {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) minmax(120px, 1fr) 54px;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}
.dimension-row span { font-size: 9px; font-weight: 800; overflow-wrap: anywhere; }
.dimension-row i { position: relative; height: 5px; display: block; background: #313833; }
.dimension-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--score, 0%); background: var(--cyan); }
.dimension-row:nth-child(2) i::after, .dimension-row:nth-child(5) i::after { background: var(--coral); }
.dimension-row:nth-child(3) i::after { background: var(--yellow); }
.dimension-row:nth-child(4) i::after { background: var(--acid); }
.dimension-row strong { color: var(--acid); font-size: 11px; text-align: right; }
.integrity-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; margin-top: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.integrity-line span { color: #909991; font-size: 8px; font-weight: 800; }
.integrity-line code { color: var(--cyan); font-size: 9px; overflow-wrap: anywhere; text-align: right; }
.limitation { margin: 18px 0 0; color: #aab2ab; font: 500 11px/1.55 Arial, sans-serif; }
.result-actions { margin-top: 25px; }

.method { background: var(--yellow); color: #11150f; border-color: #756927; }
.method .eyebrow { color: #5b5011; }
.method .section-heading { border-color: #756927; }
.method .section-heading > p { color: #4a431b; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #756927; border-left: 1px solid #756927; }
.method-grid article { min-height: 275px; display: grid; grid-template-rows: auto auto 1fr; padding: 25px; border-right: 1px solid #756927; border-bottom: 1px solid #756927; }
.method-grid span { color: #5a6410; font-size: 11px; font-weight: 800; }
.method-grid h3 { margin: 44px 0 13px; font-size: 25px; line-height: 1.08; }
.method-grid p { margin: 0; color: #45411f; font: 500 13px/1.62 Arial, sans-serif; }
.research-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid #756927; border-left: 1px solid #756927; }
.research-rail a { min-width: 0; min-height: 92px; display: grid; align-content: center; gap: 9px; padding: 15px; border-right: 1px solid #756927; border-bottom: 1px solid #756927; text-decoration: none; }
.research-rail a:hover { background: #11150f; color: var(--yellow); }
.research-rail span { font-size: 10px; font-weight: 800; }
.research-rail b { font-size: 8px; overflow-wrap: anywhere; }

.footer { width: min(var(--max), calc(100% - 56px)); min-height: 140px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; margin: auto; }
.footer strong { color: var(--acid); font-size: 12px; }
.footer p { margin: 9px 0 0; color: #909991; font-size: 8px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 17px; }
.footer a { color: #c2c9c3; font-size: 9px; text-decoration: none; }
.noscript { margin: 0; padding: 18px; background: var(--yellow); color: #111; text-align: center; font-size: 11px; font-weight: 800; }

@media (max-width: 1040px) {
  .hero h1 { font-size: 56px; }
  .lab-workspace { grid-template-columns: 1fr; }
  .lab-panel { min-height: 720px; }
  .result-grid { grid-template-columns: 1fr; }
  .radar-wrap { width: min(100%, 560px); justify-self: center; }
  .research-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { min-height: 52px; padding: 0 12px; gap: 8px; }
  .brand span { display: none; }
  .topbar nav { gap: 0; }
  .topbar nav a { min-height: 32px; padding: 0 7px; font-size: 8px; }
  .topbar nav a:nth-child(3), .topbar nav a:nth-child(4) { display: none; }
  .hero { height: 690px; min-height: 690px; }
  .hero__inner { width: calc(100% - 30px); padding: 17px 0 16px; }
  .hero__telemetry { flex-direction: column; gap: 6px; padding-bottom: 12px; }
  .hero__telemetry span:last-child { display: none; }
  .hero__copy { padding: 36px 0 26px; }
  .hero h1 { font-size: 42px; line-height: 1; }
  .hero__body { margin-top: 18px; font-size: 13px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; margin-top: 21px; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts div { min-height: 62px; padding: 10px 12px; }
  .section__inner, .footer { width: calc(100% - 30px); }
  .section__inner { padding: 66px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 32px; }
  .lab-panel { min-height: 0; padding: 20px; }
  .panel-heading h3 { font-size: 24px; }
  .prompt-output, textarea { min-height: 360px; max-height: 360px; }
  .panel-actions { display: grid; grid-template-columns: 1fr; }
  .result-heading { grid-template-columns: 1fr; }
  .overall { justify-items: start; margin-top: 12px; }
  .overall strong { font-size: 76px; }
  .result-grid { gap: 34px; }
  .dimension-row { grid-template-columns: minmax(105px, .8fr) minmax(70px, 1fr) 42px; gap: 10px; }
  .integrity-line { grid-template-columns: 1fr; gap: 8px; }
  .integrity-line code { text-align: left; }
  .result-actions { display: grid; grid-template-columns: 1fr; }
  .method-grid, .research-rail { grid-template-columns: 1fr; }
  .method-grid article { min-height: 230px; padding: 20px; }
  .footer { min-height: 170px; grid-template-columns: 1fr; padding: 28px 0; }
  .footer nav { justify-content: flex-start; }
}

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