:root {
  color-scheme: light;
  --paper: oklch(0.963 0.008 65);
  --paper-raised: oklch(0.985 0.005 65);
  --graphite: oklch(0.2 0.012 25);
  --graphite-2: oklch(0.255 0.012 25);
  --graphite-3: oklch(0.32 0.012 25);
  --ink: oklch(0.205 0.015 25);
  --ink-soft: oklch(0.43 0.012 25);
  --ink-faint: oklch(0.58 0.01 25);
  --line: oklch(0.84 0.01 40);
  --line-dark: oklch(0.37 0.012 25);
  --red: oklch(0.57 0.215 27);
  --red-deep: oklch(0.47 0.19 27);
  --red-wash: oklch(0.57 0.215 27 / 0.1);
  --green: oklch(0.73 0.12 164);
  --amber: oklch(0.79 0.13 78);
  --white: oklch(0.99 0.003 65);
  --shadow: 0 28px 70px oklch(0.2 0.012 25 / 0.18);
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:
    ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

:where(a, button) {
  touch-action: manipulation;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where([id]) {
  scroll-margin-top: 6rem;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  background: var(--graphite);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.25rem));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: oklch(0.963 0.008 65 / 0.94);
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.wordmark-shield {
  display: grid;
  width: 2.45rem;
  aspect-ratio: 0.86;
  place-items: center;
  background: var(--graphite);
  color: var(--white);
  clip-path: polygon(50% 0, 94% 16%, 88% 72%, 50% 100%, 12% 72%, 6% 16%);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.wordmark-copy {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1;
}

.wordmark-copy strong {
  color: var(--red-deep);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: -0.04em;
}

.wordmark-copy span {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.site-header nav,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header nav a,
.footer-inner nav a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.site-header nav a:hover,
.footer-inner nav a:hover {
  color: var(--red-deep);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 9vw, 8.5rem) 0 clamp(5rem, 10vw, 9rem);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 49.8%, oklch(0.83 0.01 40 / 0.45) 50%),
    linear-gradient(oklch(0.83 0.01 40 / 0.32) 1px, transparent 1px);
  background-size:
    5rem 100%,
    100% 5rem;
  content: "";
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 20%,
    black 72%,
    transparent
  );
  opacity: 0.45;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(32rem, 1.08fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.kicker,
.eyebrow,
.destination-type {
  margin: 0 0 1.15rem;
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.signal-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0.25rem var(--red-wash);
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 span {
  display: block;
  color: var(--red-deep);
}

.hero-lede {
  max-width: 59ch;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.button-primary {
  background: var(--red-deep);
  color: var(--white);
}

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

.button-secondary {
  border-color: var(--graphite-3);
  background: var(--paper-raised);
}

.button-secondary:hover {
  border-color: var(--red-deep);
  color: var(--red-deep);
}

.destination-note {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.command-view {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 1rem;
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(0.7deg);
}

.command-view::after {
  position: absolute;
  inset: 0;
  border: 1px solid oklch(0.99 0.003 65 / 0.07);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.command-bar {
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line-dark);
  background: var(--graphite-2);
}

.command-brand {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.command-bar strong {
  font-size: 0.92rem;
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.live-state span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.command-body {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  min-height: 24rem;
}

.policy-rail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.2rem 0.8rem;
  border-right: 1px solid var(--line-dark);
  background: oklch(0.17 0.01 25);
}

.policy-step {
  position: relative;
  padding: 0.6rem 0.55rem 0.6rem 1.1rem;
  border-radius: 0.25rem;
  color: oklch(0.66 0.01 25);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.policy-step::before {
  position: absolute;
  top: 50%;
  left: 0.35rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.policy-step.is-active {
  color: var(--green);
}

.policy-step.is-hot {
  background: oklch(0.57 0.215 27 / 0.13);
  color: oklch(0.72 0.17 29);
}

.event-stream {
  min-width: 0;
  padding: 1.1rem;
}

.event-row {
  display: grid;
  grid-template-columns: 4.7rem minmax(7rem, 1fr) auto 4rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.7rem;
}

.event-row time,
.event-id,
.event-row strong {
  overflow: hidden;
  font-family: var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-row time {
  color: oklch(0.62 0.01 25);
  font-variant-numeric: tabular-nums;
}

.event-row strong {
  color: oklch(0.82 0.01 25);
  text-align: right;
}

.event-row.is-selected {
  margin-top: 0.5rem;
  border: 1px solid oklch(0.57 0.215 27 / 0.5);
  border-radius: 0.35rem;
  background: oklch(0.57 0.215 27 / 0.1);
}

.event-state {
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.state-human {
  background: oklch(0.73 0.12 164 / 0.12);
  color: var(--green);
}

.state-hostile {
  background: oklch(0.57 0.215 27 / 0.15);
  color: oklch(0.74 0.16 30);
}

.state-unknown {
  background: oklch(0.79 0.13 78 / 0.13);
  color: var(--amber);
}

.event-evidence {
  margin: 0 0 0.55rem;
  padding: 0.85rem 1rem 0.9rem 5.95rem;
  border-bottom: 1px solid var(--line-dark);
  color: oklch(0.7 0.01 25);
  font-size: 0.68rem;
}

.event-evidence > span {
  color: oklch(0.82 0.01 25);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-evidence ul {
  display: grid;
  gap: 0.25rem;
  margin: 0.45rem 0 0;
  padding-left: 1rem;
}

.command-view figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line-dark);
  color: oklch(0.61 0.01 25);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-align: right;
}

.workflow,
.capabilities,
.destinations {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}

.workflow {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1.6rem;
}

.section-intro h2,
.capability-lead h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 740;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.section-intro > p:last-child {
  max-width: 53ch;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.workflow-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 8rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.step-number {
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.workflow-list h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
}

.workflow-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.step-output {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capabilities {
  background: var(--graphite);
  color: var(--white);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.capability-lead h2 {
  max-width: 10ch;
}

.capability-lead .eyebrow {
  color: oklch(0.72 0.17 29);
}

.capability-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.capability-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.65fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.capability-list strong {
  color: var(--white);
}

.capability-list span {
  color: oklch(0.7 0.01 25);
}

.destinations {
  background: var(--paper);
}

.section-intro.compact {
  display: block;
  max-width: 50rem;
}

.section-intro.compact .eyebrow {
  margin-bottom: 1rem;
}

.destination-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
}

.destination {
  min-height: 23rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 0.8rem;
}

.destination h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.destination > p:not(.destination-type) {
  max-width: 44ch;
  color: inherit;
  opacity: 0.76;
}

.destination > a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 750;
  text-underline-offset: 0.35rem;
}

.destination-admin {
  border: 1px solid var(--line);
  background: var(--paper-raised);
}

.destination-demo {
  background: var(--red-deep);
  color: var(--white);
}

.destination-demo .destination-type {
  color: oklch(0.91 0.06 40);
}

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line-dark);
  background: oklch(0.17 0.01 25);
  color: oklch(0.68 0.01 25);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
}

.footer-inner strong {
  color: var(--white);
}

.footer-inner nav a {
  color: oklch(0.72 0.01 25);
}

@media (max-width: 960px) {
  .hero-grid,
  .section-intro,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 44rem;
  }

  .command-view {
    width: min(100%, 44rem);
    transform: none;
  }

  .section-intro .eyebrow {
    margin-bottom: -1.5rem;
  }

  .capability-lead h2 {
    max-width: 14ch;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 1.5rem, var(--shell));
  }

  .header-inner {
    min-height: 4.75rem;
  }

  .wordmark-shield {
    width: 2.1rem;
  }

  .wordmark-copy span {
    display: none;
  }

  .site-header nav,
  .footer-inner nav {
    gap: 0.85rem;
  }

  .site-header nav a {
    font-size: 0.76rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

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

  .button {
    width: 100%;
  }

  .command-body {
    grid-template-columns: 1fr;
  }

  .policy-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .policy-step {
    padding: 0.55rem 0.35rem;
    text-align: center;
  }

  .policy-step::before {
    display: none;
  }

  .event-row {
    grid-template-columns: 4.2rem minmax(5rem, 1fr) auto;
  }

  .event-row strong {
    display: none;
  }

  .event-evidence {
    padding-left: 1rem;
  }

  .section-intro .eyebrow {
    margin-bottom: -1.5rem;
  }

  .workflow-list li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .step-output {
    display: none;
  }

  .capability-list li,
  .destination-grid {
    grid-template-columns: 1fr;
  }

  .destination {
    min-height: 0;
  }

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

@media (max-width: 420px) {
  .site-header nav a {
    max-width: 4.2rem;
    line-height: 1.15;
    text-align: center;
  }

  .command-bar {
    align-items: flex-start;
  }

  .live-state {
    margin-top: 0.25rem;
  }

  .event-state {
    max-width: 5.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

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

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