/* Layout, landing animation frame and financial mission workbench. */
:root {
  color-scheme: dark;
  --bg: #050f1a;
  --panel: #0d1f30;
  --line: #23394c;
  --muted: #9bb0c3;
  --gold: #edc77b;
  --orchid: #7b80f7;
  --cyan: #69cbd9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #edf2f5;
  font:
    15px/1.65 system-ui,
    -apple-system,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
button {
  cursor: pointer;
  color: inherit;
  background: #ffffff04;
  border: 1px solid #52677c;
  border-radius: 3px;
  padding: 11px 17px;
}
button:hover {
  background: #21364c;
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
a {
  color: var(--gold);
  text-underline-offset: 5px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin: 8px 0 20px;
  background: #061626;
  border: 1px solid #3a5367;
  border-radius: 3px;
  color: inherit;
  padding: 12px;
  min-width: 0;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
label.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
}
.check input {
  width: auto;
  margin: 6px 0;
}
button.primary {
  background: var(--gold);
  color: #121e2b;
  border-color: var(--gold);
  font-weight: 650;
}
button.primary:hover {
  background: #ffdb94;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 650;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -1px;
  font-weight: 500;
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
h1 em {
  font-style: normal;
  color: var(--gold);
}
.home-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  padding: 13px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff14;
  background: linear-gradient(#050f1ac9, transparent);
}
.header-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 12px;
}
.header-links a {
  color: #c0cbd7;
  text-decoration: none;
}
.header-links button {
  border-radius: 0;
}
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: max(880px, 100svh);
  background: radial-gradient(ellipse at 78% 46%, #173b55, #071729 45%, #030b14 80%);
}
#world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #030c16 4%, #030c16f5 25%, #030c1677 54%, transparent 75%),
    linear-gradient(0deg, #050f1a, transparent 35%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: 6%;
  width: min(790px, 65%);
  padding: 185px 0 160px;
  pointer-events: none;
}
.hero-copy button,
.hero-copy a {
  pointer-events: auto;
}
.hero h1 {
  font-size: clamp(55px, 6vw, 94px);
  line-height: 1.06;
  font-weight: 440;
  letter-spacing: -4px;
  margin: 24px 0 30px;
}
.hero-lede {
  font-size: 22px;
  color: #dce5ed;
  line-height: 1.5;
}
.hero-description {
  max-width: 430px;
  font-size: 14px;
  color: #91a8bd;
}
.hero .actions {
  margin-top: 30px;
}
.hero .actions button {
  padding: 16px 22px;
  border-radius: 0;
}
.hero .actions span {
  margin-left: 25px;
}
.hero-note {
  margin: 24px 0 0;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.motion {
  position: absolute;
  top: 125px;
  right: 6%;
  z-index: 3;
  font-size: 10px;
  border-radius: 0;
  background: #061423bb;
}
.visual-note {
  position: absolute;
  right: 7%;
  bottom: 140px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 2px;
  color: #a9c4d7;
}
.visual-note small {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  margin-top: 8px;
  color: #7892ab;
}
.hero-bottom {
  position: absolute;
  bottom: 25px;
  left: 6%;
  right: 6%;
  z-index: 2;
  border-top: 1px solid #bfd1df30;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 2px;
  color: #99acbe;
}
.hero-bottom a {
  letter-spacing: 0;
  color: #c9d5df;
  text-decoration: none;
}
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 40px 6%;
  gap: 40px;
  background: #0a1929;
  border-top: 1px solid var(--line);
}
.roles article {
  border-left: 1px solid #506077;
  padding-left: 22px;
}
.roles span {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
}
.roles h2 {
  font-size: 19px;
  letter-spacing: 1px;
  margin: 14px 0 9px;
}
.roles p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.home-story {
  padding: 75px 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 1560px;
  margin: auto;
}
.home-story > p {
  color: var(--muted);
  max-width: 580px;
}
.text-button {
  border: 0;
  padding: 15px 0;
  color: var(--gold);
  background: none !important;
}
body[data-view='workbench'] .home-header {
  display: none;
}
.dock {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #071422f7;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 22px #0005;
  border-bottom: 1px solid var(--line);
}
.toolbar {
  max-width: 1560px;
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
}
.toolbar button {
  font-size: 11px;
}
.toolbar > div {
  display: flex;
  gap: 18px;
  align-items: center;
}
.toolbar strong {
  font-size: 14px;
}
.toolbar span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
nav {
  display: flex;
  max-width: 1560px;
  margin: auto;
  padding: 0 5%;
  overflow-x: auto;
}
nav button {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 14px 18px;
  border-bottom: 3px solid transparent;
}
nav button[aria-selected='true'] {
  color: var(--gold);
  background: #ffffff07;
  border-bottom-color: var(--gold);
}
.content {
  max-width: 1560px;
  margin: auto;
  padding: 25px 5% 40px;
  min-height: 70vh;
}
.notice {
  display: flex;
  gap: 22px;
  border-left: 2px solid var(--gold);
  padding: 13px 18px;
  background: #edc77b08;
  margin: 0 0 32px;
  font-size: 12px;
  color: var(--muted);
}
.notice strong {
  white-space: nowrap;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 30px 0;
}
.section-head > p {
  color: var(--muted);
  font-size: 14px;
  max-width: 550px;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.grid.compact {
  gap: 15px;
}
.grid > article {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 7px;
  min-width: 0;
}
.grid > article p {
  color: var(--muted);
  font-size: 14px;
}
.grid > article .small {
  font-size: 12px;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.role-grid article {
  border-top: 1px solid #647589;
  padding: 20px;
  background: #ffffff03;
}
.role-grid span {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
}
.role-grid h3 {
  margin: 10px 0;
}
.role-grid p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.run-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: #0a1929;
  border: 1px solid var(--line);
}
.run-controls label {
  flex: 1 1 250px;
}
.run-controls select {
  margin: 6px 0 0;
}
.run-controls button {
  margin-bottom: 0;
}
.execution-grid {
  grid-template-columns: 1fr 1fr;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
}
.badge {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
}
.badge.SIMULATED,
.badge.CHECKED,
.badge.RECORDED {
  color: var(--cyan);
}
.badge.REJECTED,
.badge.HELD {
  color: #f0a289;
}
.badge.WAITING {
  color: var(--gold);
}
dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 20px;
  font-size: 12px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.result {
  padding: 20px;
  border: 1px solid #786642;
  background: #edc77b08;
  white-space: pre-line;
  color: var(--gold);
}
pre {
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 450px;
  overflow: auto;
  background: #04101e;
  padding: 15px;
}
details {
  margin-top: 22px;
}
summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 12px;
}
#status {
  border-left: 3px solid var(--cyan);
  padding: 17px 20px;
  background: #11283a;
  color: #bcd9e8;
  margin: 30px 0 0;
  font-size: 13px;
}
#status.error {
  border-color: #e79c80;
  color: #f6b399;
}
#events,
#reviews {
  font-size: 12px;
  color: var(--muted);
  padding-left: 20px;
  max-height: 380px;
  overflow: auto;
}
#events li,
#reviews li {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.demo-story {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: linear-gradient(120deg, #263346, #0f2132);
  border-left: 2px solid var(--gold);
  margin-bottom: 25px;
}
.demo-story span {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
}
.demo-story p {
  font-size: 22px;
  margin: 0;
  max-width: 900px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.scenario-grid article {
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.scenario-grid p {
  font-size: 13px;
  color: var(--muted);
}
.scenario-grid h3 {
  font-size: 17px;
}
.scenario-grid button {
  font-size: 12px;
  color: var(--gold);
}
footer {
  padding: 25px 6%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7e97ad;
  font-size: 10px;
}
footer a {
  color: var(--muted);
  white-space: nowrap;
}
.overview {
  max-width: 920px;
  margin: 60px auto;
  padding: 0 25px;
}
.overview h1 {
  font-size: 48px;
  line-height: 1.1;
}
.overview .role-grid {
  grid-template-columns: repeat(3, 1fr);
}
.overview ol li {
  padding-bottom: 10px;
}
.overview .notice {
  margin-top: 30px;
}
@media (max-width: 1000px) {
  .hero-copy {
    width: 76%;
  }
  .hero h1 {
    font-size: 72px;
  }
  .toolbar span {
    display: none;
  }
  .scenario-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    min-height: 920px;
  }
  .role-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 740px) {
  .home-header {
    padding: 22px 6%;
  }
  .header-links > a {
    display: none;
  }
  .header-links button {
    font-size: 10px;
    padding: 10px;
  }
  .hero-copy {
    width: 88%;
    padding-top: 180px;
  }
  .hero h1 {
    font-size: clamp(44px, 9vw, 68px);
    letter-spacing: -2px;
  }
  .hero {
    min-height: 900px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  .hero-lede {
    font-size: 19px;
  }
  .hero-description {
    font-size: 13px;
    max-width: 330px;
  }
  .hero .actions {
    align-items: stretch;
    gap: 12px;
  }
  .hero .actions button {
    font-size: 12px;
    padding: 14px;
  }
  .visual-note {
    display: none;
  }
  .hero-bottom {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .hero-bottom a {
    display: none;
  }
  .roles,
  .home-story {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-story {
    padding-top: 45px;
  }
  .section-head,
  .grid.two,
  .execution-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    gap: 0;
  }
  .role-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .grid.compact {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar strong {
    font-size: 11px;
  }
  .toolbar button {
    font-size: 9px;
    padding: 8px;
  }
  .toolbar > div {
    max-width: 130px;
  }
  nav {
    padding: 0 3%;
  }
  nav button {
    font-size: 10px;
    padding: 13px;
  }
  .notice {
    display: block;
  }
  .notice strong {
    display: block;
    margin-bottom: 8px;
  }
  .grid > article {
    padding: 22px;
  }
  .demo-story {
    display: block;
    padding: 22px;
  }
  .demo-story p {
    font-size: 18px;
    margin-top: 12px;
  }
  footer {
    display: block;
  }
  footer > span,
  footer > a {
    display: block;
    margin: 7px 0;
  }
  .overview .role-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white !important;
    color: #15283a;
  }
  .overview {
    margin: 0;
    max-width: none;
  }
  .overview h1 {
    font-size: 32px;
  }
  .overview h2 {
    font-size: 22px;
  }
  .overview .eyebrow,
  .overview a {
    color: #6e5221;
  }
  .overview .notice {
    background: #f7f4ef;
    color: #333;
  }
  .overview .role-grid article {
    background: #f4f6f8;
    color: #111;
  }
  .overview .role-grid p {
    color: #333;
  }
  .print-actions,
  footer {
    display: none;
  }
}
