:root {
  color-scheme: dark;
  --ink: #eaf3ef;
  --muted: #91a59d;
  --dim: #647770;
  --page: #07100d;
  --panel: #0c1713;
  --panel-strong: #101f1a;
  --line: #20342c;
  --line-bright: #38564a;
  --amber: #f2b84b;
  --amber-soft: #ffd783;
  --mint: #69c7ad;
  --danger: #ff8a74;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 68% 2%, rgba(105, 199, 173, 0.09), transparent 31rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--page);
  background-size: auto, 48px 48px, 48px 48px, auto;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: #07100d;
  background: var(--amber);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

nav a {
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-bright);
  color: var(--ink);
}

.hero {
  position: relative;
  max-width: 900px;
  padding: 8.5rem 0 6rem;
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: 5rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(242, 184, 75, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(105, 199, 173, 0.025), 0 0 0 108px rgba(242, 184, 75, 0.02);
  content: "";
  pointer-events: none;
}

.eyebrow,
.kicker {
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(105, 199, 173, 0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(105, 199, 173, 0); }
  100% { box-shadow: 0 0 0 0 rgba(105, 199, 173, 0); }
}

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

h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(3.8rem, 9.2vw, 7.8rem);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

h1 span {
  color: var(--amber);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

code,
pre,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  color: var(--amber-soft);
}

.hero-actions,
.run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 720;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button.primary {
  color: #10130c;
  background: var(--amber);
}

.button.primary:hover:not(:disabled) {
  background: var(--amber-soft);
}

.button.secondary {
  border-color: var(--line-bright);
  color: var(--ink);
  background: rgba(16, 31, 26, 0.74);
}

.button:disabled {
  cursor: wait;
  opacity: 0.48;
}

.runtime-note {
  display: flex;
  max-width: 680px;
  gap: 0.65rem;
  margin-top: 1.5rem;
  color: var(--dim);
  font-size: 0.8rem;
}

.runtime-note span {
  color: var(--mint);
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.evidence-strip article {
  min-height: 135px;
  padding: 1.8rem 1.4rem;
  border-right: 1px solid var(--line);
}

.evidence-strip article:last-child {
  border-right: 0;
}

.evidence-strip strong,
.evidence-strip span {
  display: block;
}

.evidence-strip strong {
  color: var(--amber-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.06em;
}

.evidence-strip span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.demo-shell {
  padding: 7rem 0;
}

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

.kicker {
  margin-bottom: 0.55rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--amber);
}

.status.ready .status-dot {
  background: var(--mint);
  box-shadow: 0 0 12px rgba(105, 199, 173, 0.7);
}

.status.error .status-dot {
  background: var(--danger);
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line-bright);
  background: rgba(7, 16, 13, 0.7);
  box-shadow: var(--shadow);
}

.panel {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.input-panel {
  border-right: 1px solid var(--line-bright);
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-label label,
#output-label {
  color: var(--ink);
  font-weight: 700;
}

textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--amber-soft);
  background: #07100d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.65;
}

textarea:hover {
  border-color: var(--line-bright);
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 1.5rem;
}

.examples > span {
  margin-right: 0.25rem;
  color: var(--dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.example,
.copy-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
}

.example {
  padding: 0.35rem 0.55rem;
}

.example:hover,
.copy-button:hover:not(:disabled) {
  border-color: var(--mint);
  color: var(--ink);
}

.run-button {
  flex: 1 1 190px;
}

.shortcut {
  margin: 0.8rem 0 0;
  color: var(--dim);
  font-size: 0.73rem;
}

kbd {
  padding: 0.08rem 0.32rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel-strong);
  font-size: 0.68rem;
}

.copy-button {
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copy-button:disabled {
  cursor: default;
  opacity: 0.45;
}

pre {
  min-height: 300px;
  max-height: 440px;
  margin: 0;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  color: #c9e9df;
  background: #050b09;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

pre code {
  color: inherit;
}

pre.error code {
  color: var(--danger);
}

.execution-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-top: 0.8rem;
  color: var(--dim);
  font-size: 0.7rem;
}

.argument {
  display: grid;
  grid-template-columns: 0.82fr 1.6fr;
  gap: clamp(2rem, 8vw, 7rem);
  padding: 3rem 0 8rem;
}

.argument h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.argument-grid {
  display: grid;
  gap: 0;
}

.argument-grid article {
  position: relative;
  padding: 0.4rem 0 2.1rem 4.2rem;
  border-bottom: 1px solid var(--line);
}

.argument-grid article + article {
  padding-top: 2.1rem;
}

.index {
  position: absolute;
  left: 0;
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.argument-grid p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.scope-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-bottom: 7rem;
  padding: clamp(1.5rem, 5vw, 3.8rem);
  border: 1px solid var(--line-bright);
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.055), rgba(105, 199, 173, 0.045));
}

.scope-icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.scope-card h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.scope-card p:not(.kicker) {
  max-width: 850px;
  margin: 1.2rem 0 1rem;
  color: var(--muted);
}

.scope-card a {
  color: var(--amber-soft);
  font-weight: 700;
}

footer {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

footer strong,
footer span {
  display: block;
}

footer strong {
  color: var(--ink);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.4rem;
}

@media (max-width: 820px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 6.5rem 0 4.5rem;
  }

  .hero::after {
    display: none;
  }

  .evidence-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .evidence-strip article:nth-child(2) {
    border-right: 0;
  }

  .evidence-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .input-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-bright);
  }

  .argument {
    gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .section-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-strip article {
    min-height: 118px;
    padding: 1.25rem 0.85rem;
  }

  .scope-card {
    grid-template-columns: 1fr;
  }

  footer {
    justify-content: center;
    padding: 2rem 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

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