@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --ink: #15191f;
  --muted: #525967;
  --line: #dbdfe7;
  --accent: #2448eb;
  --accent-deep: #1834bb;
  --blue-tint: #e5eaff;
  --night: #121b37;
  --night-panel: #1b274b;
  --night-soft: #b8c5e3;
  --night-line: #3a496f;
  --night-accent: #b9c9ff;
  --type-body: Inter, system-ui, sans-serif;
  --type-display: "Instrument Sans", Inter, system-ui, sans-serif;
  --page-edge: clamp(1rem, 5vw, 4.5rem);
  --section-space: clamp(4.2rem, 10vw, 9rem);
  --line-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem / 1.55 var(--type-body);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

button:not([aria-disabled="true"]) {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--type-display);
  font-weight: 640;
  text-wrap: balance;
}

.wrap {
  width: min(81rem, calc(100% - var(--page-edge) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  inset: 0.6rem auto auto 0.6rem;
  padding: 0.7rem 1rem;
  transform: translateY(-200%);
  color: var(--paper);
  background: var(--ink);
}

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid #dbdfe7a0;
  background: #f7f5f0f2;
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  flex: none;
  gap: 0.25rem;
  align-items: center;
  font-size: 1.33rem;
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 1;
}

.brand img {
  flex: none;
  margin-inline-end: 0.15rem;
}

.brand span {
  color: var(--accent);
  font-weight: 550;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 3.3vw, 2.7rem);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 550;
}

.site-header nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.67rem 1.16rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1.28;
  white-space: nowrap;
  transition:
    background-color 180ms,
    border-color 180ms,
    color 180ms,
    transform 180ms;
}

.button:active {
  transform: scale(0.982);
}

.button-primary {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.button-outline {
  min-height: 2.28rem;
  padding: 0.52rem 0.92rem;
  border-color: #d1d7e4;
  color: var(--accent-deep);
  background: transparent;
}

.button-outline:hover {
  background: var(--blue-tint);
  border-color: var(--blue-tint);
}

.text-link {
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #a4adbf;
  text-underline-offset: 0.28rem;
  transition:
    color 180ms,
    text-decoration-color 180ms;
}

.hero {
  padding-top: clamp(3.1rem, 5vw, 4.3rem);
}

.hero-copy {
  display: grid;
  justify-items: center;
  padding-bottom: clamp(2rem, 3.4vw, 3rem);
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.45rem);
  font-weight: 650;
  letter-spacing: -0.036em;
  line-height: 0.995;
}

.hero-description {
  max-width: 55ch;
  margin-top: clamp(1rem, 2vw, 1.35rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  margin-top: 1.35rem;
}

.story-stage {
  animation: arrival 680ms 90ms var(--line-ease) both;
}

.story-fallback {
  max-width: 54ch;
  padding: 1rem;
  margin-inline: auto;
  color: var(--muted);
  text-align: center;
}

@keyframes arrival {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.process,
.deployment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  align-items: start;
  gap: 1.7rem clamp(2.75rem, 8vw, 8rem);
  padding-block: var(--section-space);
}

.section-heading h2 {
  max-width: 16ch;
  margin-left: -0.035em;
  font-size: clamp(2.3rem, 4.85vw, 4.4rem);
  letter-spacing: -0.046em;
  line-height: 1.01;
}

.section-heading p {
  max-width: 39ch;
  margin-top: 1.05rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  text-wrap: pretty;
}

.process-grid,
.deployment-grid {
  display: grid;
  border-top: 1px solid var(--line);
}

.process-grid article,
.deployment-card {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.process-grid h3,
.deployment-card h3 {
  font-size: clamp(1.15rem, 2.05vw, 1.52rem);
  font-weight: 630;
  line-height: 1.25;
  letter-spacing: -0.026em;
  text-wrap: pretty;
}

.process-grid p,
.deployment-card p {
  max-width: 46ch;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.demo {
  padding-block: clamp(3.7rem, 7vw, 6.7rem);
  background: var(--night);
  color: var(--paper);
}

.demo :focus-visible {
  outline-color: var(--night-accent);
}

.demo-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.67fr) minmax(0, 1.33fr);
  align-items: start;
  gap: 1.7rem clamp(2rem, 6vw, 5rem);
}

.demo-heading h2 {
  max-width: 15ch;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
}

.demo-heading p {
  color: var(--night-soft);
}

.demo-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: 0.85rem;
  background: var(--night-panel);
}

.demo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(0.35rem, 2.15vw, 1.55rem);
  padding-inline: clamp(0.65rem, 2.5vw, 1.8rem);
  border-bottom: 1px solid var(--night-line);
}

.demo-options button {
  min-height: 2.8rem;
  padding: 0.6rem 0.4rem 0.46rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--night-soft);
  font-size: clamp(0.76rem, 2.45vw, 0.87rem);
  font-weight: 600;
  transition:
    border-color 180ms,
    color 180ms;
}

.demo-options button:hover {
  color: var(--paper);
}

.demo-options button[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--night-accent);
}

.demo-options button:focus-visible {
  outline-offset: -2px;
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 1.2rem clamp(1rem, 2.6vw, 2rem);
  min-height: 17.5rem;
  padding: clamp(1.05rem, 2.6vw, 1.75rem);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.demo-story .eyebrow {
  color: var(--night-accent);
}

.demo-story h3 {
  margin: 0.45rem 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.032em;
  line-height: 1.08;
  text-wrap: pretty;
}

.demo-story p[data-field="description"] {
  max-width: 42ch;
  color: var(--night-soft);
  font-size: 0.85rem;
}

.demo-outcome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.55rem;
  margin-top: 0.8rem;
  color: var(--night-soft);
  font-size: 0.74rem;
  font-weight: 620;
}

.demo-status-dot {
  width: 0.38rem;
  height: 0.38rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.demo-panel[data-state="approved"] .demo-outcome {
  color: var(--night-accent);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.demo-actions .button {
  min-height: 2.35rem;
  padding: 0.52rem 0.86rem;
  border-color: var(--night-accent);
  background: var(--night-accent);
  color: var(--night);
  font-size: 0.76rem;
}

.demo-actions .button:hover {
  border-color: #d7e0ff;
  background: #d7e0ff;
}

.demo-actions .button[aria-disabled="true"] {
  border-color: var(--night-line);
  background: var(--night-panel);
  color: var(--night-soft);
}

.reset-button {
  padding: 0;
  border: none;
  color: var(--night-soft);
  background: transparent;
  font-size: 0.75rem;
}

.reset-button:hover {
  color: var(--paper);
}

.demo-log {
  min-width: 0;
}

.demo-log h4 {
  margin-bottom: 0.5rem;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 650;
}

.demo-log ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo-log li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.55rem;
  padding-block: 0.56rem;
  border-top: 1px solid var(--night-line);
  color: var(--night-soft);
  font-size: 0.76rem;
  line-height: 1.48;
}

.demo-log li[hidden] {
  display: none;
}

.demo-log li[data-completed] {
  color: var(--night-accent);
}

.log-time {
  padding-top: 0.08rem;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  padding-block: 1.65rem;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 920px) {
  .hero h1 {
    letter-spacing: -0.04em;
  }

  .demo-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-heading h2 {
    max-width: 18ch;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 3.75rem;
  }

  .site-header nav {
    display: none;
  }

  .site-header .button {
    min-height: 2rem;
    padding: 0.42rem 0.65rem;
    font-size: 0.74rem;
  }

  .site-header .brand {
    font-size: 1.18rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.85rem, 10.2vw, 4.4rem);
    letter-spacing: -0.036em;
  }

  .hero-description {
    max-width: 37ch;
    font-size: 1rem;
  }

  .process,
  .deployment,
  .demo-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-panel {
    gap: 1.1rem;
  }
}

@media (max-width: 360px) {
  .site-header .button-outline {
    display: none;
  }
}

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

  .story-stage {
    animation: none;
  }

  .button,
  .text-link,
  .demo-options button {
    transition: none;
  }

  .button:active {
    transform: none;
    transition: none;
  }
}
