html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 70px;
  padding: 0 34px;
  border-bottom: 1px solid var(--wi-border);
  background: rgba(235, 235, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--wi-fg);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 172px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--wi-fg);
  background: var(--wi-fg);
  color: var(--wi-bg);
  font-weight: 900;
}

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

.brand strong {
  text-transform: uppercase;
}

.brand small {
  color: var(--wi-muted);
  font-size: 12px;
}

.site-nav-wrap {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.site-nav a,
.footer-links a {
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: #3f3f46;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--wi-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.site-nav a[aria-current="true"] {
  color: var(--wi-fg);
}

.site-nav a[aria-current="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav--utility {
  gap: 16px;
}

.site-nav--utility a {
  min-height: 20px;
  color: var(--wi-muted);
  font-size: 10px;
}

.site-nav--utility a::after {
  display: none;
}

.site-nav a:focus-visible,
.brand:focus-visible,
.wi-btn:focus-visible,
.wi-pill:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--wi-accent-blue);
  outline-offset: 4px;
}

.hero {
  min-height: calc(100vh - 70px);
  padding: 64px 36px 58px;
  border-bottom: 1px solid var(--wi-border);
}

.page-hero {
  max-width: 1500px;
  margin: 0 auto;
  padding: 92px 40px 72px;
  border-bottom: 1px solid var(--wi-border);
}

.page-hero h1 {
  max-width: 1100px;
  margin: 0 0 28px;
  font-size: clamp(54px, 7vw, 118px);
  font-weight: 900;
  line-height: 0.96;
}

.page-hero p:not(.wi-label) {
  max-width: 780px;
  color: #3f3f46;
  font-size: 20px;
  line-height: 1.55;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 50px;
  align-items: end;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-copy h1 {
  max-width: 970px;
  margin: 0 0 24px;
  font-size: clamp(52px, 7.4vw, 122px);
  font-weight: 900;
  line-height: 0.94;
}

.hero-copy p:not(.wi-label) {
  max-width: 760px;
  color: #3f3f46;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.terminal-proof,
.evidence-ledger,
.quickstart pre,
.artifact-card pre,
.step-section pre {
  border: 1px solid var(--wi-fg);
  background: #101014;
  color: var(--wi-bg);
  box-shadow: 14px 14px 0 rgba(24, 24, 27, 0.12);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(235, 235, 232, 0.22);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--wi-bg);
  border-radius: 999px;
}

.terminal-bar strong {
  margin-left: auto;
  color: #a1a1aa;
  font-family: var(--wi-font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

pre {
  margin: 0;
  overflow-x: auto;
}

code {
  font-family: var(--wi-font-mono);
  font-size: 13px;
  line-height: 1.75;
}

.terminal-proof pre,
.quickstart pre,
.artifact-card pre,
.step-section pre {
  padding: 26px;
}

.evidence-ledger {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 470px;
}

.ledger-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(235, 235, 232, 0.22);
}

.ledger-steps {
  display: grid;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledger-steps li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(235, 235, 232, 0.16);
  color: var(--wi-bg);
}

.ledger-steps li:last-child {
  border-bottom: 0;
}

.ledger-steps strong {
  color: var(--wi-accent);
  font-family: var(--wi-font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.ledger-steps span {
  color: #f4f4f5;
  font-family: var(--wi-font-mono);
  font-size: 13px;
  line-height: 1.5;
}

.marquee-band {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid var(--wi-border);
  border-bottom: 1px solid var(--wi-border);
  background: var(--wi-surface);
}

.marquee-band span {
  flex: 0 0 auto;
  padding: 16px 30px;
  border-right: 1px solid var(--wi-border);
  font-family: var(--wi-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.operating-model {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: 0;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 36px;
  border-bottom: 1px solid var(--wi-border);
}

.operating-model__intro {
  padding: 34px 28px 34px 0;
  border-right: 1px solid var(--wi-border);
}

.operating-model__intro h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.operating-model__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operating-model article {
  min-height: auto;
  padding: 34px 25px;
  border-right: 1px solid var(--wi-border);
  border-bottom: 0;
  background: rgba(244, 244, 245, 0.56);
}

.operating-model article:last-child {
  border-right: 0;
}

.operating-model h3 {
  margin: 20px 0 12px;
  font-size: 23px;
  line-height: 1.1;
}

.operating-model p {
  margin: 0;
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.55;
}

.section {
  max-width: 1500px;
  margin: 0 auto;
  padding: 82px 36px;
  border-bottom: 1px solid var(--wi-border);
  scroll-margin-top: 86px;
}

#top,
.operating-model {
  scroll-margin-top: 86px;
}

.two-col,
.evidence-section,
.quickstart,
.beta {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.section h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 3.7vw, 62px);
  font-weight: 900;
  line-height: 1;
}

.section h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.1;
}

.body-copy p,
.section p,
li {
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.58;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 30px;
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 43px;
  align-items: center;
}

.demo-copy p:not(.wi-label) {
  max-width: 560px;
}

.demo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
}

.demo-steps span {
  border: 1px solid var(--wi-border);
  padding: 10px 12px;
  background: rgba(244, 244, 245, 0.72);
  font-family: var(--wi-font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-note {
  color: #92400e !important;
  font-weight: 800;
}

.demo-media {
  margin: 0;
}

.demo-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--wi-fg);
  background: var(--wi-bg);
  box-shadow: 14px 14px 0 rgba(24, 24, 27, 0.12);
}

.demo-media figcaption {
  margin-top: 16px;
  color: var(--wi-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ladder-grid,
.proof-grid,
.compare-grid,
.status-grid,
.note-grid,
.check-grid,
.use-case-grid,
.pricing-grid,
.export-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--wi-border);
  border-left: 1px solid var(--wi-border);
}

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

.use-case-grid,
.pricing-grid,
.proof-grid,
.status-grid,
.note-grid,
.check-grid,
.export-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-grid {
  margin-top: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

article,
.artifact-card,
.record-card {
  min-height: 235px;
  padding: 25px;
  border-right: 1px solid var(--wi-border);
  border-bottom: 1px solid var(--wi-border);
  background: rgba(244, 244, 245, 0.72);
}

.ladder-grid article span {
  display: inline-block;
  margin-bottom: 62px;
  color: var(--wi-accent);
  font-family: var(--wi-font-mono);
  font-size: 12px;
  font-weight: 900;
}

.proof-index {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--wi-accent);
  font-family: var(--wi-font-mono);
  font-size: 12px;
  font-weight: 900;
}

.launch-status {
  max-width: none;
  background: rgba(24, 24, 27, 0.045);
}

.launch-status .section-heading,
.launch-status .status-grid {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.status-grid article {
  background: rgba(235, 235, 232, 0.84);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 36px;
  border: 1px solid var(--wi-border);
  padding: 0 10px;
  font-family: var(--wi-font-mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-tag--blocker {
  border-color: #991b1b;
  background: #fee2e2;
  color: #991b1b;
}

.status-tag--limited {
  border-color: #92400e;
  background: #fef3c7;
  color: #92400e;
}

.status-tag--primary {
  border-color: #166534;
  background: #dcfce7;
  color: #166534;
}

ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.artifact-card,
.record-card {
  border: 1px solid var(--wi-border);
}

.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.record-tags span {
  border: 1px solid var(--wi-border);
  background: var(--wi-bg);
  padding: 10px 12px;
  font-family: var(--wi-font-mono);
  font-size: 12px;
}

.price {
  display: block;
  margin-bottom: 50px;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.featured-price {
  background: rgba(188, 138, 46, 0.12);
}

.beta {
  align-items: center;
}

.beta-note {
  max-width: 640px;
  margin-top: 20px;
  font-family: var(--wi-font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.beta-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.beta-form {
  flex: 1 1 100%;
  padding: 24px;
  border: 1px solid var(--wi-border);
  background: rgba(244, 244, 245, 0.74);
}

.beta-form label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--wi-font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.beta-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.beta-form input {
  min-height: 52px;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--wi-border);
  border-radius: 0;
  background: var(--wi-bg);
  color: var(--wi-fg);
  padding: 0 16px;
  font: inherit;
}

.beta-form input:focus-visible {
  outline: 3px solid var(--wi-accent-blue);
  outline-offset: 3px;
}

.beta-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.beta-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 13px;
}

.beta-status[data-state="success"] {
  color: #166534;
}

.beta-status[data-state="error"] {
  color: #991b1b;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  padding: 72px 40px 40px;
}

.site-footer h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 5vw, 82px);
  line-height: 0.98;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 24px 0 0;
  color: #d4d4d8;
  font-size: 13px;
}

@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 (max-width: 1024px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav-wrap {
    grid-column: 1 / -1;
    justify-items: start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .hero-grid,
  .demo-section,
  .operating-model,
  .two-col,
  .evidence-section,
  .quickstart,
  .beta {
    grid-template-columns: 1fr;
  }

  .operating-model {
    padding-left: 40px;
    padding-right: 40px;
  }

  .operating-model__intro {
    border-right: 0;
    border-bottom: 1px solid var(--wi-border);
  }

  .operating-model__grid {
    grid-template-columns: 1fr;
  }

  .operating-model article {
    border-right: 0;
    border-bottom: 1px solid var(--wi-border);
  }

  .operating-model article:last-child {
    border-bottom: 0;
  }

  .ladder-grid,
  .pricing-grid,
  .proof-grid,
  .status-grid,
  .note-grid,
  .check-grid,
  .export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beta-panel {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .operating-model,
  .section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    min-height: auto;
    padding-top: 16px;
  }

  .brand-logo {
    width: 148px;
  }

  .nav-cta {
    justify-self: end;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy h1 {
    font-size: 52px;
  }

  .page-hero h1 {
    font-size: 48px;
  }

  .hero-copy p:not(.wi-label),
  .page-hero p:not(.wi-label) {
    font-size: 17px;
  }

  .wi-btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  .beta-form-row {
    grid-template-columns: 1fr;
  }

  .compare-grid,
  .use-case-grid,
  .ladder-grid,
  .proof-grid,
  .status-grid,
  .note-grid,
  .check-grid,
  .export-grid,
  .pricing-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  article,
  .artifact-card,
  .record-card {
    min-height: auto;
  }

  .ladder-grid article span,
  .price {
    margin-bottom: 28px;
  }
}
