:root {
  color-scheme: dark;
  --ink: #f2f5ed;
  --bone: #dfe6dc;
  --muted: #95a49e;
  --deep: #06100d;
  --deep-2: #091613;
  --panel: #0d1b17;
  --panel-2: #11231e;
  --line: rgba(215, 239, 227, 0.13);
  --line-strong: rgba(215, 239, 227, 0.24);
  --mint: #8ff0c8;
  --mint-bright: #b3ffdf;
  --mint-deep: #2b8a69;
  --amber: #ffcf70;
  --red: #ff7b73;
  --blue: #86bdfd;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --radius-sm: 11px;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 73% 5%, rgba(62, 155, 119, 0.12), transparent 32rem),
    radial-gradient(circle at 5% 28%, rgba(132, 202, 174, 0.05), transparent 26rem),
    var(--deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--mint);
  color: #04110c;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(143, 240, 200, 0.35);
  border-radius: 9px;
  background: rgba(143, 240, 200, 0.08);
}

.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--mint);
  border-radius: 50%;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: 4px;
  bottom: 5px;
  transform: rotate(45deg);
  border-radius: 4px;
  background: var(--mint);
}

.brand-mark span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--mint-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px 6px 7px;
  border: 1px solid rgba(143, 240, 200, 0.28);
  border-radius: 999px;
  background: rgba(143, 240, 200, 0.07);
  color: var(--mint-bright);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.guide-trigger:hover,
.guide-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(143, 240, 200, 0.58);
  background: rgba(143, 240, 200, 0.12);
}

.guide-trigger-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #06100d;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}

.privacy-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  background: rgba(11, 28, 22, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(143, 240, 200, 0.11);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
}

.eyebrow span {
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(143, 240, 200, 0.1);
  color: var(--mint);
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 760;
}

.hero h1 em {
  display: block;
  color: var(--mint);
  font-style: normal;
  font-weight: 590;
}

.hero-lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: #aebdb7;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.tab-button:focus-visible,
.severity-filter:focus-visible,
.text-button:focus-visible,
.icon-button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button-primary {
  background: var(--mint);
  color: #03120c;
  box-shadow: 0 10px 35px rgba(87, 222, 165, 0.16);
}

.button-primary:hover {
  background: var(--mint-bright);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--bone);
}

.button-ghost:hover {
  border-color: rgba(143, 240, 200, 0.45);
  color: var(--mint-bright);
}

.button-accent {
  background: #eafcf4;
  color: #06130e;
}

.button-small {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 31px;
  color: #789087;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.hero-visual {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(143, 240, 200, 0.06), transparent 42%),
    rgba(8, 22, 18, 0.92);
  box-shadow: var(--shadow);
}

.visual-header,
.visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
}

.visual-label {
  color: var(--mint);
}

.visual-id {
  color: #72847d;
}

.trace-scene {
  position: relative;
  min-height: 420px;
  padding: 42px 35px 30px;
}

.request-orb {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 240, 200, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(143, 240, 200, 0.13), rgba(143, 240, 200, 0.025) 65%),
    #0a1915;
  box-shadow:
    0 0 0 11px rgba(143, 240, 200, 0.025),
    0 0 60px rgba(74, 202, 149, 0.09);
}

.request-orb::before,
.request-orb::after {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px dashed rgba(143, 240, 200, 0.12);
  border-radius: 50%;
}

.request-orb::after {
  inset: -28px;
  border-style: solid;
  opacity: 0.3;
}

.orb-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.request-orb strong {
  margin-top: 3px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 17px;
}

.request-orb small {
  color: #8fa29b;
  font-family: var(--mono);
  font-size: 8px;
}

.filter-stack {
  display: grid;
  gap: 8px;
}

.mini-filter {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.mini-filter > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.mini-filter div {
  display: flex;
  flex-direction: column;
}

.mini-filter small {
  color: #6f837b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mini-filter strong {
  color: var(--bone);
  font-size: 12px;
  font-weight: 680;
}

.mini-filter b {
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--mint);
  background: rgba(143, 240, 200, 0.09);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.mini-filter.denied {
  border-color: rgba(255, 123, 115, 0.34);
  background: rgba(255, 123, 115, 0.055);
}

.mini-filter.denied b {
  color: var(--red);
  background: rgba(255, 123, 115, 0.1);
}

.proof-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 123, 115, 0.22);
  border-radius: 10px;
  background: rgba(255, 123, 115, 0.04);
}

.proof-ticket div {
  display: flex;
  flex-direction: column;
}

.proof-ticket small {
  color: #8d7774;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.proof-ticket strong {
  font-size: 12px;
  font-weight: 660;
}

.proof-ticket > span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 15px;
}

.visual-footer span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-red {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.lab-shell {
  padding: 84px max(20px, calc((100vw - 1240px) / 2)) 104px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.017), transparent 170px),
    #e8ece5;
  color: #0b1713;
}

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

.section-heading h2,
.architecture-copy h2,
.closing-section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading .section-kicker {
  margin-bottom: 9px;
  color: #688078;
}

.mode-note {
  max-width: 310px;
  color: #60736c;
  font-size: 12px;
  text-align: right;
}

.mode-note span {
  display: inline-block;
  margin-right: 7px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #d5e4dd;
  color: #154d39;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lab-toolbar {
  min-height: 62px;
  margin-bottom: 12px;
  padding: 10px 11px 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(18, 45, 36, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.template-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.template-control > span {
  color: #697a74;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.template-control select {
  min-width: 180px;
  border: 0;
  background: transparent;
  color: #0d2019;
  cursor: pointer;
  font-weight: 750;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.lab-shell .button-ghost {
  border-color: rgba(18, 45, 36, 0.16);
  background: #f4f7f3;
  color: #223a32;
}

.lab-shell .button-ghost:hover {
  border-color: rgba(20, 99, 73, 0.42);
  color: #12573d;
}

.lab-shell .button-accent {
  background: #0b1b15;
  color: #effff7;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(480px, 1.12fr);
  gap: 12px;
}

.panel {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(18, 45, 36, 0.16);
  border-radius: 17px;
  background: #f8faf7;
  box-shadow: 0 16px 40px rgba(23, 54, 44, 0.055);
}

.panel-topline {
  min-height: 72px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(18, 45, 36, 0.11);
}

.panel-topline > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-number {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(18, 45, 36, 0.14);
  border-radius: 10px;
  color: #698078;
  font-family: var(--mono);
  font-size: 10px;
}

.panel-label {
  margin: 0;
  color: #80938c;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-topline h3 {
  margin: 1px 0 0;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.editor-state,
.report-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5d736b;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fb88b;
}

.editor-state.error {
  color: #a13f39;
}

.editor-state.error span {
  background: #d95149;
}

.report-mode {
  padding: 5px 8px;
  border-radius: 5px;
  background: #ebf0eb;
}

.code-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 43px 1fr;
  min-height: 580px;
  background: #0a1512;
}

.code-gutter {
  overflow: hidden;
  padding: 18px 10px 18px 0;
  border-right: 1px solid rgba(230, 255, 243, 0.07);
  color: #3f5c51;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.67;
  text-align: right;
  user-select: none;
}

#policyEditor {
  width: 100%;
  min-height: 580px;
  resize: vertical;
  padding: 18px 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #cfe7dc;
  caret-color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.67;
  tab-size: 2;
  white-space: pre;
}

.editor-footer {
  min-height: 58px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(18, 45, 36, 0.11);
}

.editor-footer p {
  margin: 0;
  color: #72857e;
  font-size: 10px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #176b4d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.text-button span {
  margin-left: 4px;
}

.score-zone {
  padding: 27px 24px 22px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid rgba(18, 45, 36, 0.1);
}

.score-ring {
  --score: 0;
  --ring-color: #e0645c;
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--ring-color) calc(var(--score) * 1%),
    #dce4df 0
  );
  transition: background 300ms ease;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #f8faf7;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(18, 45, 36, 0.08);
  border-radius: 50%;
}

.score-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
}

.score-core span {
  font-size: 43px;
  font-weight: 770;
  letter-spacing: -0.07em;
}

.score-core small {
  margin-left: 4px;
  color: #768981;
  font-family: var(--mono);
  font-size: 9px;
}

.grade-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #687a74;
  font-family: var(--mono);
  font-size: 9px;
}

.grade-badge {
  padding: 4px 7px;
  border-radius: 5px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.grade-exposed {
  background: #f5d6d3;
  color: #983932;
}

.grade-risky {
  background: #f5e4c0;
  color: #845713;
}

.grade-review {
  background: #dce9f7;
  color: #2c5c86;
}

.grade-ready {
  background: #d2ede1;
  color: #1a6749;
}

.score-copy h4 {
  margin: 10px 0 5px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.score-copy > p {
  margin: 0;
  color: #667a72;
  font-size: 12px;
  line-height: 1.55;
}

.score-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 45, 36, 0.1);
}

.score-metrics div {
  display: flex;
  flex-direction: column;
}

.score-metrics strong {
  font-family: var(--mono);
  font-size: 15px;
}

.score-metrics span {
  color: #82928c;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.result-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
  border-bottom: 1px solid rgba(18, 45, 36, 0.11);
}

.tab-button {
  position: relative;
  padding: 10px 12px 12px;
  border: 0;
  background: transparent;
  color: #70837b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.tab-button::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  transform: scaleX(0);
  background: #164b39;
  transition: transform 160ms ease;
}

.tab-button.active {
  color: #102b21;
}

.tab-button.active::after {
  transform: scaleX(1);
}

.tab-button span {
  margin-left: 4px;
  color: #91a09b;
  font-family: var(--mono);
  font-size: 9px;
}

.tab-panel {
  height: 385px;
  overflow: auto;
  padding: 14px 15px 18px;
}

.finding-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.severity-filter {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(18, 45, 36, 0.12);
  border-radius: 999px;
  background: #f7f9f6;
  color: #708179;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.severity-filter.active {
  border-color: #163c2e;
  background: #163c2e;
  color: #f4fff9;
}

.finding-list,
.test-list {
  display: grid;
  gap: 8px;
}

.finding-item,
.test-item {
  overflow: hidden;
  border: 1px solid rgba(18, 45, 36, 0.12);
  border-radius: 10px;
  background: #fff;
}

.finding-trigger,
.test-trigger {
  width: 100%;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #11231c;
  cursor: pointer;
  text-align: left;
}

.severity-mark,
.test-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83938d;
}

.severity-mark.critical,
.test-status.fail {
  background: #dc5a52;
  box-shadow: 0 0 0 4px rgba(220, 90, 82, 0.09);
}

.severity-mark.high {
  background: #df8b3d;
}

.severity-mark.medium {
  background: #d7b04b;
}

.severity-mark.low,
.test-status.pass {
  background: #4bad82;
}

.finding-title,
.test-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.finding-title strong,
.test-title strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-title span,
.test-title span {
  color: #7b8b85;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finding-chevron {
  color: #82928c;
  font-size: 14px;
  transition: transform 160ms ease;
}

.finding-item.open .finding-chevron,
.test-item.open .finding-chevron {
  transform: rotate(45deg);
}

.finding-detail,
.test-detail {
  display: none;
  padding: 0 12px 13px 29px;
  color: #60736b;
  font-size: 10px;
  line-height: 1.55;
}

.finding-item.open .finding-detail,
.test-item.open .test-detail {
  display: block;
}

.finding-detail p,
.test-detail p {
  margin: 0 0 8px;
}

.fix-line {
  padding: 8px 9px;
  border-left: 2px solid #4bad82;
  background: #f0f6f2;
  color: #2c5344;
}

.trace-list {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  margin-bottom: 8px;
}

.trace-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f2f5f1;
  font-family: var(--mono);
  font-size: 8px;
}

.trace-row b {
  text-transform: uppercase;
}

.trace-row.pass b {
  color: #1d7654;
}

.trace-row.deny b {
  color: #ad3f38;
}

.trace-row.skip b {
  color: #7b8a85;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 25px;
  border: 1px dashed rgba(18, 45, 36, 0.16);
  border-radius: 10px;
  color: #788a82;
  text-align: center;
  font-size: 11px;
}

.proof-overview {
  display: grid;
  gap: 13px;
}

.proof-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(18, 45, 36, 0.12);
  border-radius: 10px;
  background: #fff;
}

.proof-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #e5f2eb;
  color: #176848;
  font-family: var(--mono);
  font-weight: 800;
}

.proof-status div {
  display: flex;
  flex-direction: column;
}

.proof-status p {
  margin: 0;
  color: #7d8d87;
  font-size: 9px;
}

.proof-status strong {
  font-size: 11px;
}

.status-pill {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2e9d5;
  color: #76561b;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.anchored {
  background: #dff3e8;
  color: #176848;
}

.proof-fields {
  display: grid;
  gap: 6px;
  margin: 0;
}

.proof-fields div {
  min-width: 0;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  border-radius: 7px;
  background: #eef2ee;
}

.proof-fields dt {
  color: #73857d;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proof-fields dd {
  overflow: hidden;
  margin: 0;
  color: #234438;
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rialo-payload {
  overflow: hidden;
  border: 1px solid rgba(18, 45, 36, 0.12);
  border-radius: 10px;
  background: #0a1512;
}

.payload-heading {
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(230, 255, 243, 0.08);
}

.payload-heading div {
  display: flex;
  flex-direction: column;
}

.payload-heading p {
  margin: 0;
  color: #d9ede4;
  font-size: 10px;
  font-weight: 750;
}

.payload-heading span {
  color: #5f7a6f;
  font-size: 8px;
}

.icon-button {
  padding: 4px 7px;
  border: 1px solid rgba(230, 255, 243, 0.13);
  border-radius: 6px;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
}

.rialo-payload pre {
  max-height: 118px;
  overflow: auto;
  margin: 0;
  padding: 10px 11px;
  color: #90c8af;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.devnet-anchor {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(23, 104, 72, 0.22);
  border-radius: 10px;
  background: linear-gradient(145deg, #f8fcf9, #edf6f1);
}

.devnet-anchor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.devnet-anchor-heading h3,
.devnet-kicker,
.devnet-anchor > p {
  margin: 0;
}

.devnet-kicker {
  color: #4d7b68;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.devnet-anchor-heading h3 {
  color: #153e30;
  font-size: 15px;
}

.devnet-anchor > p {
  color: #4d665c;
  font-size: 13px;
  line-height: 1.55;
}

.devnet-readiness {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2e9d5;
  color: #76561b;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.devnet-readiness.ready {
  background: #dff3e8;
  color: #176848;
}

.devnet-readiness.error {
  background: #f8dedb;
  color: #993a34;
}

.devnet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px;
}

.devnet-signature {
  flex: 1 1 250px;
  display: grid;
  gap: 5px;
  color: #486257;
  font-size: 12px;
  font-weight: 700;
}

.devnet-signature input {
  width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  border: 1px solid rgba(18, 45, 36, 0.2);
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #173d2f;
  font-family: var(--mono);
  font-size: 12px;
}

.devnet-signature input:focus {
  border-color: #2f9b6e;
  box-shadow: 0 0 0 3px rgba(47, 155, 110, 0.14);
}

.devnet-result {
  padding: 10px 11px;
  border-left: 3px solid #2f9b6e;
  border-radius: 6px;
  background: #e4f4eb;
  color: #22503e;
  font-size: 13px;
}

.devnet-result[hidden] {
  display: none;
}

.devnet-result.error {
  border-left-color: #c64e47;
  background: #f9e8e6;
  color: #8e342f;
}

.devnet-result strong,
.devnet-result p {
  margin: 0;
}

.devnet-result p {
  margin-top: 3px;
}

.report-verification {
  overflow: hidden;
  border: 1px solid rgba(18, 45, 36, 0.13);
  border-radius: 10px;
  background: #fff;
}

.report-verification[hidden] {
  display: none;
}

.report-verification-heading {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(18, 45, 36, 0.1);
}

.report-verification-heading > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dff1e8;
  color: #176848;
  font-family: var(--mono);
  font-weight: 900;
}

.report-verification.invalid .report-verification-heading > span {
  background: #f5d9d6;
  color: #a13f39;
}

.report-verification-heading div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.report-verification-heading strong {
  font-size: 11px;
}

.report-verification-heading p {
  overflow: hidden;
  margin: 2px 0 0;
  color: #7a8c85;
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-verification ul {
  margin: 0;
  padding: 6px;
  display: grid;
  gap: 4px;
  list-style: none;
}

.report-verification li {
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  border-radius: 7px;
  background: #f3f6f3;
}

.report-verification li > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #dceee4;
  color: #176848;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

.report-verification li.fail > span {
  background: #f3d8d5;
  color: #a13f39;
}

.report-verification li strong {
  display: block;
  color: #1b392f;
  font-size: 9px;
}

.report-verification li p {
  margin: 2px 0 0;
  color: #74867f;
  font-size: 8px;
  line-height: 1.45;
}

.why-section,
.architecture-section,
.closing-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.why-section {
  padding: 110px 0;
}

.section-heading-light {
  align-items: flex-end;
}

.section-heading-light > p {
  max-width: 440px;
  margin: 0;
  color: #8fa099;
  line-height: 1.65;
}

.value-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr;
  gap: 12px;
}

.value-card {
  position: relative;
  min-height: 310px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.value-card-featured {
  background:
    linear-gradient(145deg, rgba(143, 240, 200, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.022);
}

.value-index {
  color: #435a51;
  font-family: var(--mono);
  font-size: 10px;
}

.value-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-top: 45px;
  place-items: center;
  border: 1px solid rgba(143, 240, 200, 0.2);
  border-radius: 13px;
  background: rgba(143, 240, 200, 0.055);
}

.value-icon svg {
  width: 23px;
  fill: none;
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.value-card h3 {
  margin: auto 0 8px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.value-card p {
  margin: 0;
  color: #8d9f98;
  font-size: 13px;
  line-height: 1.65;
}

.architecture-section {
  padding: 105px 0 95px;
  border-top: 1px solid var(--line);
}

.architecture-copy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: end;
}

.architecture-copy .section-kicker {
  grid-column: 1;
  align-self: start;
}

.architecture-copy h2 {
  grid-column: 1;
  margin-top: -55px;
}

.architecture-copy > p {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 530px;
  margin: 0;
  color: #8ea099;
  font-size: 15px;
  line-height: 1.75;
}

.architecture-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.architecture-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9aafa6;
  font-family: var(--mono);
  font-size: 9px;
}

.flow-map {
  margin-top: 55px;
  display: grid;
  grid-template-columns: 1fr 62px 1fr 62px 1fr 62px 1fr;
  align-items: center;
}

.flow-node {
  min-height: 190px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.flow-node-active {
  border-color: rgba(143, 240, 200, 0.33);
  background: rgba(143, 240, 200, 0.05);
}

.flow-number {
  align-self: flex-start;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #668078;
  font-family: var(--mono);
  font-size: 8px;
}

.flow-node small {
  margin-top: auto;
  color: #557066;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.flow-node strong {
  margin-top: 3px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.flow-node p {
  margin: 4px 0 0;
  color: #80948c;
  font-size: 10px;
}

.flow-connector {
  position: relative;
  height: 1px;
  background: var(--line-strong);
}

.flow-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid #648076;
  border-right: 1px solid #648076;
  transform: rotate(45deg);
}

.flow-connector span {
  position: absolute;
  top: -2px;
  left: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.roadmap-note {
  margin-top: 20px;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 25px;
  align-items: center;
  border: 1px solid rgba(255, 207, 112, 0.18);
  border-radius: 12px;
  background: rgba(255, 207, 112, 0.035);
}

.roadmap-note > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.roadmap-signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 207, 112, 0.08);
}

.roadmap-note strong {
  font-size: 12px;
}

.roadmap-note p {
  margin: 0;
  color: #9b9c86;
  font-size: 11px;
  line-height: 1.55;
}

.closing-section {
  padding: 60px 0 100px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.closing-section h2 {
  max-width: 820px;
}

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  padding: 25px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #6f827a;
  font-size: 10px;
}

.footer-brand {
  color: #b5c4be;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--mint);
}

body.guide-open {
  overflow: hidden;
}

.guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 10, 8, 0.82);
  backdrop-filter: blur(9px);
}

.guide-backdrop[hidden] {
  display: none;
}

.guide-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(143, 240, 200, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 240, 200, 0.09), transparent 22rem),
    #0a1713;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
}

.guide-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.guide-heading .section-kicker {
  margin-bottom: 7px;
}

.guide-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.045em;
}

.guide-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--bone);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.guide-close:hover,
.guide-close:focus-visible {
  border-color: var(--mint);
  color: var(--mint-bright);
}

.guide-intro {
  max-width: 710px;
  margin: 14px 0 24px;
  color: #a8b8b1;
  font-size: 15px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.guide-step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(143, 240, 200, 0.24);
  border-radius: 10px;
  background: rgba(143, 240, 200, 0.08);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
}

.guide-step h3 {
  margin: 0 0 5px;
  color: #eef6f1;
  font-size: 14px;
}

.guide-step p {
  margin: 0;
  color: #899d95;
  font-size: 12px;
  line-height: 1.55;
}

.guide-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 14px;
  padding: 13px 15px;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 207, 112, 0.07);
  color: #a9b6b1;
  font-size: 12px;
}

.guide-note strong {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.guide-actions .button {
  min-height: 44px;
}

.live-dialog {
  width: min(780px, 100%);
}

.live-form {
  display: grid;
  gap: 14px;
}

.live-token-label {
  display: grid;
  gap: 8px;
}

.live-token-label > span {
  color: var(--bone);
  font-size: 12px;
  font-weight: 760;
}

.live-token-label input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

.live-token-label input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(143, 240, 200, 0.1);
}

.live-token-label input::placeholder {
  color: #657a72;
}

.live-safety {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 13px 15px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: rgba(134, 189, 253, 0.07);
  color: #a9b6b1;
  font-size: 12px;
  line-height: 1.6;
}

.live-safety strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 150px)) 1fr;
  gap: 10px;
  align-items: stretch;
}

.live-plan > div {
  display: grid;
  align-content: center;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.live-plan > div strong {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 24px;
}

.live-plan > div span {
  color: #84978f;
  font-size: 10px;
}

.live-plan > p {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #84978f;
  font-size: 11px;
  line-height: 1.55;
}

.live-no-token {
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(18, 45, 36, 0.12);
  border-radius: 10px;
  background: #f2f6f2;
}

.live-no-token > div {
  display: flex;
  flex-direction: column;
}

.live-no-token strong {
  color: #17392d;
  font-size: 10px;
}

.live-no-token span {
  margin-top: 2px;
  color: #74867f;
  font-size: 9px;
  line-height: 1.45;
}

.live-no-token .text-button {
  flex: 0 0 auto;
}

.live-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.live-actions .button {
  min-height: 44px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.live-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.live-results[hidden] {
  display: none;
}

.live-progress,
.live-summary {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.live-summary {
  border-color: rgba(143, 240, 200, 0.24);
}

.live-summary.has-mismatch {
  border-color: rgba(255, 207, 112, 0.34);
}

.live-summary strong,
.live-progress strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
}

.live-summary p,
.live-progress p {
  margin: 0;
  color: #8ea199;
  font-size: 12px;
}

.live-result-list {
  display: grid;
  gap: 7px;
}

.live-result {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.live-result summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.live-result summary::-webkit-details-marker {
  display: none;
}

.live-result-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(143, 240, 200, 0.08);
}

.live-result.mismatch .live-result-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 207, 112, 0.08);
}

.live-result-title strong,
.live-result-title span {
  display: block;
}

.live-result-title strong {
  color: #eaf4ef;
  font-size: 12px;
}

.live-result-title span,
.live-result > summary > b {
  color: #7f938b;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.live-result-detail {
  padding: 0 12px 12px 31px;
  color: #8ea199;
  font-size: 11px;
}

.live-result-detail p {
  margin: 4px 0;
}

.live-result-detail pre {
  overflow: auto;
  max-height: 190px;
  margin: 9px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #a9bbb4;
  font-family: var(--mono);
  font-size: 9px;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  max-width: 330px;
  padding: 11px 14px;
  transform: translateY(120px);
  border: 1px solid rgba(143, 240, 200, 0.28);
  border-radius: 10px;
  background: #10251e;
  color: #e7f8f0;
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: rgba(255, 123, 115, 0.36);
  background: #281512;
}

/* Premium card borders: a quiet highlight glides around each primary surface. */
@property --premium-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes premium-border-glide {
  to {
    --premium-border-angle: 360deg;
  }
}

:where(
    .hero-visual,
    .panel,
    .value-card,
    .flow-node,
    .roadmap-note,
    .guide-step
  ) {
  position: relative;
  isolation: isolate;
}

:where(
    .hero-visual,
    .panel,
    .value-card,
    .flow-node,
    .roadmap-note,
    .guide-step
  )::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: conic-gradient(
    from var(--premium-border-angle),
    transparent 0 61%,
    rgba(143, 240, 200, 0.12) 68%,
    rgba(179, 255, 223, 0.94) 73%,
    rgba(134, 189, 253, 0.58) 77%,
    transparent 85%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.64;
  filter: drop-shadow(0 0 5px rgba(143, 240, 200, 0.2));
  animation: premium-border-glide 8s linear infinite;
  transition:
    opacity 320ms ease,
    filter 320ms ease;
}

.panel::after {
  background: conic-gradient(
    from var(--premium-border-angle),
    transparent 0 61%,
    rgba(43, 138, 105, 0.12) 68%,
    rgba(43, 138, 105, 0.82) 73%,
    rgba(73, 123, 178, 0.62) 77%,
    transparent 85%
  );
  opacity: 0.72;
  filter: drop-shadow(0 0 4px rgba(43, 138, 105, 0.14));
}

.results-panel::after,
.value-card:nth-child(2)::after,
.flow-node:nth-child(3)::after,
.guide-step:nth-child(2n)::after {
  animation-delay: -2.65s;
}

.value-card:nth-child(3)::after,
.flow-node:nth-child(5)::after,
.roadmap-note::after,
.guide-step:nth-child(3n)::after {
  animation-delay: -5.3s;
}

:where(
    .hero-visual,
    .panel,
    .value-card,
    .flow-node,
    .roadmap-note,
    .guide-step
  ):hover::after,
:where(.panel, .guide-step):focus-within::after {
  opacity: 0.96;
  filter: drop-shadow(0 0 8px rgba(143, 240, 200, 0.34));
}

:where(.value-card, .flow-node, .guide-step) {
  transition:
    transform 360ms cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 360ms ease,
    box-shadow 360ms ease;
}

:where(.value-card, .flow-node, .guide-step):hover {
  transform: translateY(-3px);
  border-color: rgba(143, 240, 200, 0.26);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.2),
    0 0 28px rgba(68, 188, 139, 0.055);
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-visual {
    max-width: 620px;
  }

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

  .code-wrap,
  #policyEditor {
    min-height: 480px;
  }

  .tab-panel {
    height: 430px;
  }

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

  .value-card-featured {
    grid-column: span 2;
  }

  .flow-map {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-node {
    min-height: 145px;
  }

  .flow-connector {
    width: 1px;
    height: 36px;
    margin-left: 50%;
  }

  .flow-connector::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .flow-connector span {
    top: 10px;
    left: -2px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .why-section,
  .architecture-section,
  .closing-section,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .nav-links {
    display: none;
  }

  .privacy-chip {
    display: none;
  }

  .guide-trigger {
    min-height: 32px;
    padding-right: 10px;
    font-size: 11px;
  }

  .hero {
    padding: 65px 0 75px;
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trace-scene {
    padding-inline: 18px;
  }

  .lab-shell {
    padding-inline: 14px;
  }

  .section-heading,
  .lab-toolbar,
  .closing-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-note {
    text-align: left;
  }

  .lab-toolbar {
    padding: 13px;
  }

  .template-control,
  .toolbar-actions {
    width: 100%;
  }

  .template-control {
    justify-content: space-between;
  }

  .template-control select {
    min-width: 0;
    text-align: right;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar-actions .button {
    padding-inline: 8px;
  }

  .score-zone {
    grid-template-columns: 105px 1fr;
    gap: 16px;
    padding-inline: 15px;
  }

  .score-ring {
    width: 100px;
    height: 100px;
  }

  .score-core span {
    font-size: 32px;
  }

  .score-copy h4 {
    font-size: 18px;
  }

  .score-metrics {
    gap: 7px;
  }

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

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

  .value-card-featured {
    grid-column: auto;
  }

  .architecture-copy {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .architecture-copy .section-kicker,
  .architecture-copy h2,
  .architecture-copy > p,
  .architecture-tags {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }

  .roadmap-note {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .guide-backdrop {
    align-items: end;
    padding: 8px;
  }

  .guide-dialog {
    max-height: calc(100vh - 16px);
    padding: 22px 16px 18px;
    border-radius: 18px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .guide-step {
    padding: 13px;
  }

  .guide-note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .guide-actions {
    flex-direction: column;
  }

  .live-plan {
    grid-template-columns: 1fr 1fr;
  }

  .live-plan > p {
    grid-column: 1 / -1;
  }

  .live-safety {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .live-actions {
    flex-direction: column;
  }

  .live-no-token {
    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;
  }
}

/* Readability pass: keep the working lab legible at 100% browser zoom. */
.mode-note {
  font-size: 14px;
}

.mode-note span,
.template-control > span {
  font-size: 11px;
}

.button-small {
  font-size: 14px;
}

.panel-number {
  font-size: 12px;
}

.panel-label {
  font-size: 10px;
}

.panel-topline h3 {
  font-size: 18px;
}

.editor-state,
.report-mode {
  font-size: 11px;
}

.code-gutter,
#policyEditor {
  font-size: 14px;
  line-height: 1.65;
}

.editor-footer p,
.text-button {
  font-size: 13px;
}

.score-core small,
.grade-line,
.score-metrics span {
  font-size: 11px;
}

.score-copy > p {
  font-size: 14px;
}

.score-metrics strong {
  font-size: 17px;
}

.tab-button {
  font-size: 13px;
}

.tab-button span,
.severity-filter {
  font-size: 11px;
}

.severity-filter {
  min-height: 31px;
}

.finding-title strong,
.test-title strong {
  font-size: 13px;
}

.finding-title span,
.test-title span {
  font-size: 10px;
}

.finding-detail,
.test-detail {
  font-size: 12px;
}

.trace-row {
  font-size: 11px;
}

.empty-state {
  font-size: 13px;
}

.proof-status p {
  font-size: 11px;
}

.proof-status strong {
  font-size: 13px;
}

.status-pill {
  font-size: 10px;
}

.proof-fields dt,
.proof-fields dd {
  font-size: 11px;
}

.payload-heading p {
  font-size: 12px;
}

.payload-heading span,
.icon-button {
  font-size: 10px;
}

.rialo-payload pre {
  font-size: 12px;
}

.report-verification-heading strong {
  font-size: 13px;
}

.report-verification-heading p {
  font-size: 11px;
}

.report-verification li > span,
.report-verification li p {
  font-size: 11px;
}

.report-verification li strong {
  font-size: 12px;
}
