:root {
  --background: #f7f4ee;
  --foreground: #24211d;
  --ink: #24211d;
  --muted: #6d665d;
  --line: #d8d0c4;
  --green: #245c45;
  --blue: #244c73;
  --red: #9e3f35;
  --gold: #aa7a24;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

.hero {
  min-height: 96vh;
  padding: 28px clamp(20px, 5vw, 72px) 56px;
  background:
    linear-gradient(90deg, rgba(36, 33, 29, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(36, 33, 29, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #f7f4ee 0%, #efe6d7 54%, #dfe7e0 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffdf8;
  font-weight: 800;
  letter-spacing: 0;
  margin-right: auto;
}

.hero-grid {
  max-width: 1180px;
  margin: 74px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.lede {
  max-width: 640px;
  color: #514a42;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin-bottom: 34px;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-weight: 800;
}

.button.primary {
  background: var(--ink);
  color: #fffdf8;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.58);
}

.product-frame,
.panel,
.method-grid article,
.safety-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 24px 70px rgba(36, 33, 29, 0.12);
}

.product-frame {
  padding: clamp(20px, 3vw, 30px);
}

.frame-header,
.panel-title,
.report-table article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.frame-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.frame-header span,
.panel-title span,
.report-table span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.frame-header strong {
  color: var(--red);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.signal-grid div {
  min-height: 126px;
  border: 1px solid var(--line);
  background: #f8f1e6;
  padding: 16px;
}

.metric {
  display: block;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  font-weight: 900;
  color: var(--blue);
}

.signal-grid p,
.flow-map span {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.flow-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.flow-map span {
  min-height: 78px;
  display: flex;
  align-items: end;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(36, 76, 115, 0.18) 49% 52%, transparent 53%),
    #fffdf8;
  padding: 12px;
  font-weight: 800;
  color: var(--ink);
}

.workspace,
.method,
.package {
  padding: 70px clamp(20px, 5vw, 72px);
}

.workspace-heading,
.method,
.package {
  max-width: 1180px;
  margin: 0 auto;
}

.workspace-heading p:not(.eyebrow),
.package-copy p,
.method-grid p,
.safety-card p {
  color: var(--muted);
  line-height: 1.65;
}

.demo-grid {
  max-width: 1180px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.panel {
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: none;
}

.panel-title {
  align-items: start;
  margin-bottom: 20px;
}

.panel-title h3 {
  font-size: 24px;
  margin-bottom: 0;
}

.context-list {
  border: 1px solid var(--line);
  background: #f8f1e6;
  padding: 16px;
  margin-bottom: 16px;
}

.context-list p {
  margin-bottom: 8px;
  color: #514a42;
  line-height: 1.45;
}

.context-list p:last-child {
  margin-bottom: 0;
}

.evidence-list {
  display: grid;
  gap: 12px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  background: #fffdf8;
}

.evidence-item > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fffdf8;
  font-weight: 900;
  background: var(--blue);
}

.level-a > span,
.level-b > span {
  background: var(--green);
}

.level-c > span {
  background: var(--gold);
}

.level-d > span {
  background: var(--red);
}

.evidence-item h4 {
  margin-bottom: 6px;
  font-size: 16px;
}

.evidence-item p,
.report-table p,
.action-plan li {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.report-table {
  display: grid;
  gap: 12px;
}

.report-table article {
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 16px;
}

.report-table strong {
  color: var(--green);
}

.report-table p {
  margin-top: 8px;
}

.action-plan {
  margin-top: 18px;
  background: var(--ink);
  color: #fffdf8;
  padding: 20px;
}

.action-plan h4 {
  margin-bottom: 12px;
}

.action-plan ol {
  margin: 0;
  padding-left: 20px;
}

.action-plan li {
  color: #efe6d7;
  margin-bottom: 8px;
}

.method {
  border-top: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.method-grid article {
  min-height: 230px;
  padding: 22px;
  box-shadow: none;
}

.method-grid span {
  color: var(--blue);
  font-weight: 900;
}

.method-grid h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.package {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.safety-card {
  padding: 24px;
  background: #fffdf8;
  box-shadow: none;
}

.safety-card h3 {
  color: var(--red);
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .hero-grid,
  .demo-grid,
  .package {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  .nav {
    gap: 14px;
  }

  .signal-grid,
  .flow-map,
  .method-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

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