:root {
  color-scheme: light;
  --ink: #101318;
  --muted: #5b6673;
  --paper: #f5f5f1;
  --sheet: #ffffff;
  --coal: #080b10;
  --line: #d8dedc;
  --line-strong: #aeb9b6;
  --blue: #215c91;
  --blue-soft: #dceafa;
  --green: #1d6d55;
  --green-soft: #def0e7;
  --gold: #a8752d;
  --gold-soft: #f3e5ca;
  --violet: #5b4b8a;
  --shadow: 0 24px 80px rgba(8, 11, 16, 0.16);
  --radius: 8px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.58 var(--sans);
}

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

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(8, 11, 16, 0.54);
  color: #fff;
  backdrop-filter: blur(18px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 11, 16, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #f7f8f3;
  color: var(--coal);
  font: 700 20px/1 var(--serif);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.nav-action,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 760;
}

.nav-links a {
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-action {
  padding: 0 15px;
  background: #fff;
  color: var(--coal);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding: 148px max(24px, calc((100vw - 1180px) / 2)) 46px;
  background: var(--coal);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.94) 0%, rgba(8, 11, 16, 0.72) 43%, rgba(8, 11, 16, 0.26) 100%),
    linear-gradient(0deg, rgba(8, 11, 16, 0.92) 0%, rgba(8, 11, 16, 0) 46%),
    image-set(url("hero-workspace.webp") type("image/webp"), url("hero-workspace.png") type("image/png")) center right / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black 0%, black 42%, transparent 78%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: calc(92vh - 194px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 42px;
  align-items: end;
}

.hero-content {
  max-width: 760px;
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 830;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font: 700 72px/0.98 var(--serif);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 1.58;
}

.hero-actions,
.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  padding: 0 19px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover,
.nav-action:hover,
.product-link:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: #fff;
  color: var(--coal);
}

.button.primary.dark {
  background: var(--coal);
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button.light {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.signal-board {
  align-self: end;
  display: grid;
  gap: 10px;
  padding-bottom: 42px;
}

.signal-board div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  padding: 18px;
}

.signal-board span {
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 830;
  text-transform: uppercase;
}

.signal-board strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
}

.signal-board p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.product-band,
.system-band,
.principles-band,
.access-band {
  padding: 88px max(24px, calc((100vw - 1180px) / 2));
}

.product-band {
  background: var(--paper);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head .eyebrow,
.system-copy .eyebrow,
.principles-head .eyebrow,
.access-inner .eyebrow {
  color: var(--green);
}

h2 {
  margin: 0;
  font: 700 44px/1.04 var(--serif);
  letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.system-copy p,
.access-inner p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.product-card {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 16px;
  box-shadow: 0 1px 0 rgba(8, 11, 16, 0.04);
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.product-card-feature {
  background: #10151b;
  color: #fff;
  border-color: #26313a;
}

.restocky-card {
  background: #123f34;
  color: #fff;
  border-color: #1f765f;
}

.product-logo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 830;
}

.status.live {
  color: var(--green);
  background: var(--green-soft);
}

.status.built {
  color: var(--gold);
  background: var(--gold-soft);
}

.product-code {
  color: rgba(255, 255, 255, 0.5);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.product-card h3 {
  margin: 10px 0 0;
  font: 700 36px/1.05 var(--serif);
  letter-spacing: 0;
}

.product-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 0;
}

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

.product-meta div {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 10px;
}

.product-meta dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 830;
}

.product-meta dd {
  margin: 3px 0 0;
  color: #fff;
  font-weight: 760;
}

.product-link {
  align-self: end;
  justify-self: start;
  margin-top: auto;
  color: #fff;
  font-weight: 830;
  transition: transform 0.16s ease;
}

.system-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: start;
  background: #e8eeea;
}

.system-copy {
  max-width: 570px;
}

.workflow {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(8, 11, 16, 0.08);
}

.workflow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.workflow-tab {
  min-height: 64px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: 760 15px/1 var(--sans);
  cursor: pointer;
}

.workflow-tab:last-child {
  border-right: 0;
}

.workflow-tab span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font: 800 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.workflow-tab.is-active {
  background: var(--coal);
  color: #fff;
}

.workflow-panel {
  min-height: 285px;
  padding: 30px;
}

.panel-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 830;
  text-transform: uppercase;
}

.workflow-panel h3 {
  max-width: 620px;
  margin: 0;
  font: 700 32px/1.1 var(--serif);
}

.workflow-panel p:not(.panel-label) {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
}

.principles-band {
  background: #fbfbf8;
}

.principles-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.principle {
  min-height: 230px;
  border-top: 2px solid var(--coal);
  background: var(--sheet);
  padding: 20px 0 0;
}

.principle span {
  color: var(--green);
  font: 800 13px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.principle strong {
  display: block;
  margin-top: 16px;
  font: 700 24px/1.1 var(--serif);
}

.principle p {
  color: var(--muted);
}

.access-band {
  background: #f8f7f0;
}

.access-inner {
  min-height: 345px;
  display: grid;
  align-content: center;
  justify-items: start;
  max-width: 800px;
}

.access-inner p:not(.eyebrow) {
  max-width: 660px;
  font-size: 19px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 830;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

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

  .hero-shell,
  .system-band {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .signal-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 0;
  }

  .product-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 54px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-action {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    padding: 116px 18px 34px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(8, 11, 16, 0.93) 0%, rgba(8, 11, 16, 0.76) 100%),
      linear-gradient(0deg, rgba(8, 11, 16, 0.92) 0%, rgba(8, 11, 16, 0) 52%),
      image-set(url("hero-workspace.webp") type("image/webp"), url("hero-workspace.png") type("image/png")) center right / cover no-repeat;
  }

  .hero-content {
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .access-actions {
    display: grid;
    width: 100%;
  }

  .signal-board {
    grid-template-columns: 1fr;
  }

  .product-band,
  .system-band,
  .principles-band,
  .access-band {
    padding: 62px 18px;
  }

  h2 {
    font-size: 34px;
  }

  .product-card {
    padding: 20px;
  }

  .product-card h3 {
    font-size: 31px;
  }

  .product-meta,
  .product-meta.compact {
    grid-template-columns: 1fr;
  }

  .workflow-tabs {
    grid-template-columns: 1fr;
  }

  .workflow-tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-panel {
    min-height: 310px;
    padding: 24px;
  }

  .workflow-panel h3 {
    font-size: 26px;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }
}
