:root {
  --red: #c81016;
  --huma-red: #c9002b;
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --ink: #171717;
  --muted: #68625b;
  --line: #d7d0c4;
  --white: #fffaf1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.huma-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 58px);
  background: rgba(244, 240, 232, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.huma-brand {
  display: inline-grid;
  gap: 5px;
  white-space: nowrap;
}

.huma-brand img {
  display: block;
  width: 126px;
  height: auto;
}

.huma-brand span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
}

.huma-header nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(13px, 1.7vw, 24px);
  color: var(--muted);
  font-size: 14px;
}

.huma-header a,
.button {
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.huma-header a:hover {
  color: var(--huma-red);
}

.back-link {
  color: var(--huma-red);
  font-weight: 800;
  white-space: nowrap;
}

.huma-hero,
.huma-section,
.final-cta,
.huma-footer {
  padding: clamp(70px, 9vw, 142px) clamp(20px, 5vw, 82px);
}

.huma-hero {
  min-height: calc(100vh - 89px);
  display: grid;
  align-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-logo {
  display: block;
  width: min(380px, 58vw);
  height: auto;
  margin-bottom: 28px;
}

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--huma-red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
}

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

h1 {
  max-width: 1180px;
  margin-bottom: 22px;
  color: var(--huma-red);
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(21px, 2vw, 30px);
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-copy,
.lead {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.22;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 52px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid currentColor;
  font-weight: 850;
}

.button.light {
  background: var(--huma-red);
  color: var(--white);
  border-color: var(--huma-red);
}

.button.ghost {
  color: var(--huma-red);
}

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

.showcase {
  position: relative;
  min-height: 540px;
}

.screen,
.mobile-screen {
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 18px 18px 0 var(--huma-red);
}

.main-screen {
  width: min(980px, 76vw);
  min-height: 520px;
  padding: 28px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.screen-header strong {
  color: var(--huma-red);
  font-size: 22px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.summary-grid div {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.summary-grid span,
.mobile-screen span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.summary-grid strong,
.mobile-screen strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
}

.wide-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--white);
}

.wide-chart i {
  flex: 1;
  background: var(--huma-red);
}

.wide-chart i:nth-child(1) { height: 36%; }
.wide-chart i:nth-child(2) { height: 62%; }
.wide-chart i:nth-child(3) { height: 49%; }
.wide-chart i:nth-child(4) { height: 82%; }
.wide-chart i:nth-child(5) { height: 72%; }
.wide-chart i:nth-child(6) { height: 92%; }

.mini-table {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.mini-table span {
  height: 17px;
  background: linear-gradient(90deg, var(--line) 0 68%, transparent 68%);
}

.mobile-screen {
  position: absolute;
  left: min(700px, 58vw);
  bottom: 10px;
  width: 210px;
  min-height: 340px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-screen strong {
  color: var(--huma-red);
  font-size: 36px;
}

.mobile-screen b {
  margin-top: 18px;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  background: var(--line);
}

.word-grid span {
  min-height: 120px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--huma-red);
  font-size: clamp(28px, 4vw, 62px);
  font-weight: 950;
}

.overview-board {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.board-screen {
  padding: 28px;
}

.summary-grid.dense {
  grid-template-columns: repeat(3, 1fr);
}

.wide-chart.large {
  height: 250px;
}

.feature-lines {
  display: grid;
  border-top: 1px solid var(--line);
}

.feature-lines article {
  display: grid;
  grid-template-columns: minmax(200px, 0.4fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.two-up {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.crm-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.crm-panel span,
.stock-system div,
.usage-grid article {
  min-height: 110px;
  padding: 24px;
  background: var(--paper);
  font-weight: 850;
}

.pipeline {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.pipeline span {
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--huma-red);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 950;
}

.pipeline i {
  color: var(--huma-red);
  font-size: 34px;
  font-style: normal;
}

.stock-system {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.stock-system strong,
.stock-system span {
  display: block;
}

.stock-system span {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 400;
}

.ai-section {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--ink);
}

.ai-section h2 {
  color: var(--white);
}

.ai-section .section-index {
  color: var(--paper-2);
}

.questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: rgba(255, 250, 241, 0.18);
}

blockquote {
  margin: 0;
  min-height: 180px;
  padding: 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 850;
}

.web-mobile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 86px);
  border-bottom: 1px solid var(--line);
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-self: end;
  background: var(--line);
}

.usage-grid h3 {
  color: var(--huma-red);
}

.philosophy {
  border-bottom: 1px solid var(--line);
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 46px;
  background: var(--line);
}

.principles span {
  flex: 1 1 220px;
  min-height: 150px;
  display: grid;
  align-content: center;
  padding: 26px;
  background: var(--paper);
  color: var(--huma-red);
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 950;
}

.principles b {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.final-cta {
  min-height: 86vh;
  display: grid;
  align-content: center;
  background: var(--huma-red);
  color: var(--white);
}

.final-cta h2 {
  color: var(--white);
}

.final-cta p {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(21px, 2.2vw, 32px);
}

.final-cta .button {
  width: fit-content;
  margin-top: 20px;
  background: var(--white);
  color: var(--huma-red);
  border-color: var(--white);
}

.final-cta small {
  margin-top: 32px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.huma-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  background: var(--ink);
  color: var(--paper);
}

.huma-footer h2 {
  color: var(--paper);
}

.footer-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 20px;
}

.huma-footer p {
  color: var(--paper-2);
}

.huma-footer nav {
  display: grid;
  gap: 12px;
  color: var(--paper-2);
}

.huma-footer > span {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 250, 241, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

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

  .back-link {
    display: none;
  }

  .main-screen {
    width: min(920px, 86vw);
  }
}

@media (max-width: 900px) {
  .huma-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .huma-header nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .split,
  .overview-board,
  .two-up,
  .web-mobile,
  .huma-footer {
    grid-template-columns: 1fr;
  }

  .main-screen {
    width: 100%;
  }

  .mobile-screen {
    left: auto;
    right: 18px;
    bottom: -42px;
  }

  .showcase {
    min-height: 660px;
  }

  .summary-grid,
  .summary-grid.dense,
  .stock-system {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .huma-hero,
  .huma-section,
  .final-cta,
  .huma-footer {
    padding: 54px 18px;
  }

  h1 {
    font-size: 54px;
    line-height: 0.93;
  }

  h2 {
    font-size: 42px;
  }

  .hero-copy,
  .lead {
    font-size: 20px;
  }

  .summary-grid,
  .word-grid,
  .crm-panel,
  .questions,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .showcase {
    min-height: auto;
  }

  .main-screen {
    min-height: auto;
    padding: 18px;
  }

  .mobile-screen {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 24px;
    min-height: 260px;
  }

  .feature-lines article {
    grid-template-columns: 1fr;
  }
}
