:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #526071;
  --paper: #f8faf7;
  --panel: #ffffff;
  --line: #d8e0dc;
  --green: #1f7a5c;
  --teal: #0f8b8d;
  --gold: #d89f2b;
  --coral: #c8553d;
  --focus: #0b6bcb;
  --shadow: 0 20px 60px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(248, 250, 247, 0.92);
  border-bottom: 1px solid rgba(216, 224, 220, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-logo.wordmark {
  width: 160px;
}

.brand-name {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 75px);
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: 6.4rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.button.primary {
  background: var(--green);
  color: #ffffff;
}

.button.secondary {
  background: var(--panel);
}

.lineage-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 480px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(90deg, rgba(20, 33, 61, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(20, 33, 61, 0.05) 1px, transparent 1px),
    var(--panel);
  background-size: 32px 32px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.node {
  padding: 18px;
  border: 2px solid var(--ink);
  background: #ffffff;
  font-weight: 800;
}

.node.source {
  border-left: 12px solid var(--teal);
}

.node.model {
  border-left: 12px solid var(--gold);
}

.node.report {
  border-left: 12px solid var(--green);
}

.node.outcome {
  border-left: 12px solid var(--coral);
}

.connector {
  width: 2px;
  height: 30px;
  margin-left: 28px;
  background: var(--ink);
}

.section {
  padding: clamp(70px, 10vw, 128px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(30px, 5vw, 54px);
}

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

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

.problem-grid article,
.value-grid article {
  min-height: 100%;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.problem-grid p,
.value-grid p,
.process-list p {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.process {
  background: #edf5f1;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  padding: 24px;
  border-top: 2px solid var(--ink);
  counter-increment: process;
}

.process-list li::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 34px;
  color: var(--coral);
  font-weight: 900;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-list li {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 8px solid var(--gold);
  font-weight: 800;
}

.final-cta {
  margin: clamp(20px, 5vw, 72px);
  padding: clamp(44px, 7vw, 80px);
  background: var(--ink);
  color: #ffffff;
  border-radius: 8px;
}

.final-cta .eyebrow {
  color: #8fe1d4;
}

.final-cta h2 {
  max-width: 900px;
}

.final-cta p {
  max-width: 720px;
  color: #dfe7e3;
  font-size: 1.12rem;
}

.final-cta a:not(.button) {
  color: #ffffff;
  font-weight: 800;
}

.final-cta .button {
  margin-top: 14px;
  border-color: #ffffff;
  box-shadow: 5px 5px 0 #ffffff;
}

@media (max-width: 1180px) {
  h1 {
    font-size: 5.1rem;
  }

  h2 {
    font-size: 3.2rem;
  }

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

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

  h1 {
    max-width: 13ch;
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .lineage-panel {
    min-height: 0;
  }

  .problem-grid,
  .process-list,
  .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    max-width: 100%;
    font-size: 3rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.15rem;
  }

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

  .problem-grid,
  .value-grid,
  .process-list,
  .case-list {
    grid-template-columns: 1fr;
  }

  .final-cta {
    margin: 20px;
    padding: 34px 22px;
  }
}
