:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --ink: #17211c;
  --muted: #627068;
  --line: #d8e0da;
  --green: #0f7b5f;
  --green-soft: #dff4eb;
  --blue: #255f85;
  --coral: #c85f45;
  --mustard: #b9831f;
  --dark: #13201b;
  --shadow: 0 18px 50px rgba(23, 33, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(238, 243, 239, 0.7), rgba(245, 247, 244, 0)),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(245, 247, 244, 0.88);
  border-bottom: 1px solid rgba(216, 224, 218, 0.78);
  backdrop-filter: blur(18px);
}

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

.brand span {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #f7faf7;
  font-size: 13px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 7vw, 88px) 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
}

.hero-lede {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

.primary-action,
.secondary-action {
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 800;
}

.primary-action {
  background: var(--dark);
  color: #ffffff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.system-map {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(rgba(216, 224, 218, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 224, 218, 0.45) 1px, transparent 1px),
    #fbfdfb;
  background-size: 28px 28px;
  box-shadow: var(--shadow);
}

.map-header {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(15, 123, 95, 0.14);
}

.map-grid {
  position: relative;
  min-height: 430px;
  margin-top: 18px;
}

.map-node {
  position: absolute;
  width: min(190px, 42%);
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(19, 32, 27, 0.08);
}

.map-node span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.map-node strong {
  font-size: 20px;
  line-height: 1.15;
}

.node-api {
  left: 2%;
  top: 36px;
  border-top: 4px solid var(--green);
}

.node-stream {
  right: 4%;
  top: 110px;
  border-top: 4px solid var(--blue);
}

.node-rank {
  left: 26%;
  top: 210px;
  border-top: 4px solid var(--mustard);
}

.node-cache {
  left: 0;
  bottom: 20px;
  border-top: 4px solid var(--coral);
}

.node-metrics {
  right: 0;
  bottom: 12px;
  border-top: 4px solid var(--green);
}

.map-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(15, 123, 95, 0.56), transparent);
  transform-origin: left center;
}

.line-one {
  width: 52%;
  left: 22%;
  top: 118px;
  transform: rotate(13deg);
}

.line-two {
  width: 42%;
  right: 22%;
  top: 220px;
  transform: rotate(139deg);
}

.proof-strip {
  margin-top: -12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-strip div {
  min-height: 108px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip span,
.story-topline,
.result-list dt {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-strip strong {
  font-size: 20px;
  line-height: 1.2;
}

.section {
  padding: clamp(64px, 9vw, 104px) 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.story-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.story-card,
.decision-board article,
.stack-grid article,
.beyond-card,
.contact-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23, 33, 28, 0.06);
}

.story-card {
  min-height: 310px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.featured-story {
  grid-row: span 2;
}

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

.story-topline strong {
  color: var(--green);
}

.story-card h3 {
  margin: 28px 0 0;
  max-width: 720px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
}

.story-card:not(.featured-story) h3 {
  font-size: 24px;
}

.story-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.result-list {
  margin: auto 0 0;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.result-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.result-list dt,
.result-list dd {
  margin: 0;
}

.result-list dd {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 900;
}

.systems-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 36px;
  align-items: start;
}

.decision-board {
  display: grid;
  gap: 12px;
}

.decision-board article {
  padding: 20px;
}

.decision-board span {
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.decision-board h3,
.stack-grid h3 {
  margin: 14px 0 0;
  font-size: 22px;
}

.decision-board p,
.stack-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.stack-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stack-grid article {
  min-height: 184px;
  padding: 18px;
  border-top: 4px solid var(--green);
}

.stack-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.stack-grid article:nth-child(3) {
  border-top-color: var(--mustard);
}

.stack-grid article:nth-child(4) {
  border-top-color: var(--coral);
}

.beyond-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.beyond-grid {
  display: grid;
  gap: 12px;
}

.beyond-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(223, 244, 235, 0.82), rgba(255, 255, 255, 0.9) 52%),
    var(--surface);
}

.beyond-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--green);
}

.beyond-card:nth-child(2)::before {
  background: var(--blue);
}

.beyond-card span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.beyond-card:nth-child(2) span {
  color: var(--blue);
}

.beyond-card h3 {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 27px;
  line-height: 1.12;
}

.beyond-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-band {
  margin: clamp(70px, 9vw, 110px) 0 34px;
  padding: clamp(24px, 5vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--dark);
  color: #ffffff;
}

.contact-band .eyebrow {
  color: #7ee2c5;
}

.contact-band h2 {
  max-width: 760px;
}

.contact-band .secondary-action {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.contact-band .primary-action {
  background: #ffffff;
  color: var(--dark);
}

@media (max-width: 980px) {
  .hero-section,
  .systems-section,
  .beyond-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .system-map {
    min-height: 460px;
  }

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

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

  .featured-story {
    grid-row: auto;
  }

  .contact-actions {
    margin-top: 0;
  }
}

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

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  main {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 42px;
  }

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

  .system-map {
    min-height: auto;
  }

  .map-grid {
    min-height: auto;
    display: grid;
    gap: 10px;
  }

  .map-node {
    position: static;
    width: 100%;
  }

  .map-line {
    display: none;
  }

  .proof-strip,
  .stack-grid,
  .beyond-grid,
  .result-list,
  .result-list.compact {
    grid-template-columns: 1fr;
  }

  .beyond-card h3 {
    font-size: 23px;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .story-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}
