:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #141615;
  --muted: #5f6865;
  --line: #dfe8e4;
  --soft: #f5f8f6;
  --mint: #edf7f4;
  --teal: #2d8c7f;
  --teal-dark: #17685d;
  --amber: #cc8b35;
  --shadow: 0 24px 80px rgba(25, 45, 41, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
}

.brand small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #fff;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9d5d0;
  border-radius: 8px;
  padding: 0 17px;
  color: var(--ink);
  background: #fff;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: 50px;
  padding: 40px 0 64px;
}

.hero-copy {
  max-width: 640px;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(56px, 7.4vw, 100px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.proof-list {
  display: grid;
  gap: 16px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.proof-list li {
  display: grid;
  grid-template-columns: 42px auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.proof-list strong {
  color: var(--ink);
  font-size: 15px;
}

.proof-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #9dc9c1;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #f7fcfa;
}

.proof-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 19px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 104, 93, 0.22);
}

.button.secondary {
  background: #fff;
}

.button.secondary:hover {
  border-color: #aebdb8;
}

.system-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1.48;
  overflow: hidden;
  border: 1px solid #cfdad5;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.system-map::before {
  content: "";
  position: absolute;
  inset: 58px 0 0;
  background:
    radial-gradient(circle, rgba(23, 104, 93, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
}

.map-toolbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  min-height: 58px;
  display: grid;
  grid-template-columns: max-content 1fr max-content max-content;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  background: linear-gradient(#fff, #fbfcfb);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.map-toolbar span:first-child {
  color: var(--ink);
}

.map-toolbar span:nth-child(2)::before {
  content: "/";
  margin: 0 10px 0 0;
  color: #a7b3af;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-dark);
}

.run-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  color: var(--ink);
}

.system-map svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding-top: 36px;
  display: block;
}

.link {
  fill: none;
  stroke: #bfd3cd;
  stroke-width: 3;
  stroke-linecap: round;
}

.main-link {
  stroke: #78b8ad;
}

.accent-link {
  stroke: #d6b078;
}

.node rect {
  fill: #ffffff;
  stroke: #d9e5e1;
  stroke-width: 1.5;
}

.node-primary rect {
  fill: #edf7f4;
  stroke: #b9d9d2;
}

.node-amber rect {
  fill: #fff7ec;
  stroke: #ead0a7;
}

.node-light rect {
  fill: #fbfcfb;
}

.node text {
  fill: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.node .small {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.node .status {
  font-size: 11px;
  font-weight: 750;
}

.status.ready,
.status.active {
  fill: var(--teal-dark);
}

.status.review {
  fill: var(--amber);
}

.work-strip {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 58px max(20px, calc((100vw - 1180px) / 2)) 76px;
}

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

.section-heading h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 360px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-grid article {
  min-height: 174px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.work-grid h3 {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.2;
}

.work-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.systems-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 58px;
  padding: 74px 0 86px;
}

.systems-copy h2 {
  max-width: 460px;
  margin-bottom: 20px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
}

.systems-copy p {
  max-width: 500px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.systems-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.systems-list article {
  display: grid;
  grid-template-columns: 56px 0.78fr 1fr;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.systems-list span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.systems-list h3 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.25;
}

.systems-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .site-header {
    height: 76px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 62px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    font-size: clamp(50px, 14vw, 82px);
  }

  .system-map {
    max-width: 680px;
    margin: 0 auto;
  }

  .section-heading,
  .work-grid,
  .systems-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .systems-section {
    gap: 28px;
    padding-top: 60px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    height: auto;
    padding: 17px 0 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }

  .hero {
    width: min(100% - 28px, 1180px);
    padding: 30px 0 46px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 14.4vw, 62px);
  }

  .hero-text {
    font-size: 17px;
  }

  .proof-list li {
    grid-template-columns: 38px 1fr;
    gap: 9px 12px;
  }

  .proof-list li span:last-child {
    grid-column: 2;
  }

  .actions,
  .button {
    width: 100%;
  }

  .system-map {
    aspect-ratio: 0.84;
  }

  .system-map svg {
    width: 134%;
    max-width: none;
    transform: translateX(-14.4%);
  }

  .map-toolbar {
    grid-template-columns: 1fr max-content;
    padding: 0 14px;
    font-size: 12px;
  }

  .map-toolbar span:nth-child(2),
  .map-toolbar .live-dot {
    display: none;
  }

  .work-strip {
    padding: 42px 14px 58px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .systems-section {
    width: min(100% - 28px, 1180px);
    padding: 48px 0 62px;
  }

  .systems-list article {
    grid-template-columns: 42px 1fr;
    gap: 10px 14px;
  }

  .systems-list p {
    grid-column: 2;
  }
}
