:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f1f4f4;
  --muted: #aab2b4;
  --platinum: #f5f7f8;
  --platinum-mid: #c3c9cc;
  --platinum-dim: #7d8589;
  --line: rgba(246, 248, 249, 0.18);
  --line-strong: rgba(246, 248, 249, 0.34);
  --panel: #080909;
  --accent: #d9dee0;
  --green: #67d89e;
  --amber: #e2bd68;
  --red: #ff776d;
  --blue: #95bee5;
  --bevel-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 48%, rgba(0, 0, 0, 0.36));
  --bevel-fill-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 48%, rgba(0, 0, 0, 0.42));
  --bevel-shadow: 0 18px 52px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.42);
  --bevel-shadow-subtle: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.085), inset 0 -1px 0 rgba(0, 0, 0, 0.36);
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -8rem, rgba(246, 248, 249, 0.09), transparent 28rem),
    radial-gradient(circle at 88% 8rem, rgba(145, 154, 159, 0.08), transparent 24rem),
    linear-gradient(180deg, #030303 0%, #000 44rem);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--platinum);
  text-decoration: none;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 0.3rem;
  border: 1px solid var(--line-strong);
  background: #000 url("../assets/unfragged-final-logo-400.png") center / 154% auto no-repeat;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.58),
    0 0 24px rgba(216, 221, 225, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  background: linear-gradient(180deg, #fff 0%, var(--platinum-mid) 58%, var(--platinum-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--platinum);
}

main {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3.5rem) 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  min-height: 58vh;
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--line-strong);
  background: var(--bevel-fill-strong);
  box-shadow: var(--bevel-shadow);
  overflow: hidden;
  position: relative;
}

.hero::after,
.panel::after,
.depth-card::after,
.scenario-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.34), transparent 28%);
  opacity: 0.5;
}

.hero > *,
.panel > *,
.depth-card > *,
.scenario-button > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--platinum);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 6vw, 5.2rem);
  line-height: 0.97;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff 0%, var(--platinum) 24%, var(--platinum-mid) 66%, var(--platinum-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
}

h2 {
  margin-bottom: 1rem;
  color: var(--platinum);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
}

h3 {
  color: var(--platinum);
  font-size: 1rem;
}

.lede {
  max-width: 44rem;
  color: var(--platinum-mid);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.disclaimer,
.microcopy,
.site-footer,
.preview-box p {
  color: var(--muted);
}

.hero-actions,
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.7rem 0.95rem;
  color: var(--platinum);
  background: var(--bevel-fill);
  box-shadow: var(--bevel-shadow-subtle);
  text-decoration: none;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.button.primary {
  color: #050606;
  border-color: rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(191, 198, 201, 0.92) 48%, rgba(91, 98, 101, 0.94));
}

.button.secondary {
  background: var(--bevel-fill);
}

.hero-logo-panel {
  display: grid;
  place-items: center;
  min-height: 22rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 54%);
}

.hero-logo-panel img {
  width: min(100%, 26rem);
  height: auto;
  filter: drop-shadow(0 1.4rem 2.6rem rgba(0, 0, 0, 0.72));
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.36fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.panel,
.noscript-panel {
  border: 1px solid var(--line-strong);
  background: var(--bevel-fill-strong);
  box-shadow: var(--bevel-shadow);
  padding: clamp(1rem, 3vw, 1.6rem);
  position: relative;
  overflow: hidden;
}

.noscript-panel {
  margin-bottom: 1rem;
}

.scenario-list {
  display: grid;
  gap: 0.65rem;
}

.scenario-button {
  width: 100%;
  display: grid;
  gap: 0.25rem;
  text-align: left;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bevel-fill);
  box-shadow: var(--bevel-shadow-subtle);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.scenario-button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.5);
  outline: 1px solid rgba(255, 255, 255, 0.18);
}

.scenario-button strong {
  color: var(--platinum);
}

.scenario-button span {
  color: var(--muted);
  font-size: 0.82rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.path-list li {
  min-height: 3.4rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--platinum-mid);
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.76rem;
  font-weight: 790;
}

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

.depth-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--bevel-fill);
  box-shadow: var(--bevel-shadow-subtle);
  position: relative;
  overflow: hidden;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 0.7rem;
  margin: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  color: var(--platinum);
  font-weight: 760;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #dce3e5;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.decision-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.decision-strip span {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--platinum-mid);
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}


.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-card h2,
.statement-panel h2,
.api-direction-panel h2,
.cta-panel h2 {
  max-width: 18ch;
}

.flow-line {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--platinum);
  background: rgba(0, 0, 0, 0.38);
  font-weight: 780;
}

.statement-panel,
.api-direction-panel,
.cta-panel {
  margin-top: 1rem;
}

.statement-panel p,
.api-direction-panel p,
.cta-panel p {
  max-width: 68rem;
}

.api-direction-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.api-direction-panel .microcopy {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.fixed-strip {
  margin-top: 0;
  justify-content: flex-end;
}

.cta-panel {
  text-align: center;
}

.cta-panel h2,
.cta-panel p {
  margin-left: auto;
  margin-right: auto;
}

.preview-panel {
  margin-top: 1rem;
}

.preview-box {
  min-height: 12rem;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.56);
  color: var(--ink);
}

.site-footer {
  padding: 1.4rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .site-header,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .demo-grid,
  .depth-grid,
  .path-list,
  .info-grid,
  .api-direction-panel {
    grid-template-columns: 1fr;
  }

  .fixed-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 1rem, 1220px);
  }

  .button {
    width: 100%;
  }
}

/* Platinum polish layer: release-safe visual, responsive, and accessibility refinements only. */
html {
  scroll-behavior: smooth;
}

::selection {
  color: #050606;
  background: rgba(245, 247, 248, 0.92);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.45rem;
  color: #050606;
  background: var(--platinum);
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease;
}

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

button,
a,
.scenario-button {
  -webkit-tap-highlight-color: rgba(245, 247, 248, 0.18);
}

button:focus-visible,
a:focus-visible,
.scenario-button:focus-visible {
  outline: 2px solid rgba(245, 247, 248, 0.9);
  outline-offset: 3px;
}

.site-header {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
}

.brand,
nav a,
.button,
.scenario-button {
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--platinum);
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.hero-kicker .eyebrow {
  margin-bottom: 0;
}

.static-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.36rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--platinum-mid);
  background: rgba(0, 0, 0, 0.34);
  font-size: 0.72rem;
  font-weight: 780;
}

.hero,
.panel,
.depth-card,
.scenario-button,
.button,
.preview-box,
.path-list li,
.decision-strip span,
.summary-cell,
.flow-line {
  border-radius: 0.72rem;
}

.button:hover,
.scenario-button:hover {
  border-color: rgba(245, 247, 248, 0.46);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

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

.scenario-button[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: linear-gradient(180deg, #fff, var(--platinum-mid), var(--platinum-dim));
}

.decision-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.summary-cell {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: var(--bevel-shadow-subtle);
}

.summary-cell span,
.summary-cell strong {
  display: block;
}

.summary-cell span {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.summary-cell strong {
  color: var(--platinum);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.decision-summary.is-allow .summary-cell:first-child {
  border-color: rgba(103, 216, 158, 0.48);
}

.decision-summary.is-qualify .summary-cell:first-child,
.decision-summary.is-escalate .summary-cell:first-child {
  border-color: rgba(226, 189, 104, 0.54);
}

.decision-summary.is-quarantine .summary-cell:first-child,
.decision-summary.is-block .summary-cell:first-child {
  border-color: rgba(255, 119, 109, 0.58);
}

.depth-card p:last-child,
.panel p:last-child,
.preview-box p:last-child,
.site-footer p:last-child {
  margin-bottom: 0;
}

pre,
.preview-box {
  scrollbar-color: var(--platinum-dim) rgba(0, 0, 0, 0.28);
}

@media (min-width: 961px) {
  .run-panel {
    position: sticky;
    top: 5.75rem;
  }
}

@media (max-width: 960px) {
  .site-header {
    position: static;
  }

  .brand-mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  nav {
    width: 100%;
    gap: 0.55rem;
  }

  nav a {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.26);
  }

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

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

@media (max-width: 700px) {
  .path-list,
  .decision-summary,
  dl {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-logo-panel {
    min-height: 12rem;
  }

  .hero-logo-panel img {
    width: min(75%, 18rem);
  }

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

@media (max-width: 420px) {
  h1 {
    font-size: clamp(2rem, 14vw, 3.2rem);
  }

  .site-header,
  .hero,
  .panel,
  .noscript-panel,
  .depth-card {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .static-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111;
    background: #fff;
  }

  .site-header,
  .hero-logo-panel,
  .hero-actions,
  .preview-actions,
  .decision-strip,
  .site-footer {
    display: none;
  }

  .hero,
  .panel,
  .depth-card,
  .scenario-button,
  .summary-cell,
  .preview-box {
    color: #111;
    border-color: #999;
    background: #fff;
    box-shadow: none;
  }

  h1,
  h2,
  h3,
  .lede,
  .disclaimer,
  .microcopy,
  dt,
  dd,
  pre {
    color: #111;
    background: none;
    text-shadow: none;
  }
}
