:root {
  --ink: #17211f;
  --muted: #5f6f6a;
  --line: #d8e0dc;
  --paper: #f7f6f0;
  --white: #ffffff;
  --blue: #2457d6;
  --green: #16866f;
  --gold: #b7832f;
  --shadow: 0 18px 45px rgba(23, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

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

.site-header {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 10px;
}

.nav a {
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  background: rgba(36, 87, 214, 0.08);
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100svh - 156px);
  margin: 0 auto;
  padding: 36px 0 72px;
}

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

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

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

h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 9vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.secondary,
.mini-button {
  background: var(--white);
  color: var(--ink);
}

.signal-panel {
  display: grid;
  gap: 14px;
}

.signal-panel > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
  box-shadow: var(--shadow);
}

.metric {
  display: block;
  font-size: 2.3rem;
  font-weight: 850;
}

.label {
  color: var(--muted);
}

.section,
.lab-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-heading h1,
.section-heading h2 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.area-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

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

.area-card,
.tool-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.area-card h3,
.tool-card h2 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.area-card p,
.tool-card p {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mini-button {
  margin-top: 14px;
}

.lab-output {
  display: block;
  min-height: 72px;
  margin-top: 18px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  min-height: 80px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .hero,
  .area-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    min-height: auto;
    padding-top: 32px;
  }

  h1 {
    max-width: 9ch;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .section,
  .lab-shell,
  .hero {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 3.15rem;
  }
}
