:root {
  --bg: #f7f8f4;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #63635d;
  --line: #d8ddd2;
  --green: #2c7a52;
  --aqua: #2c9aa0;
  --coral: #df604c;
  --yellow: #f0bf4b;
  --shadow: 0 24px 70px rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 248, 244, 0.9)),
    repeating-linear-gradient(90deg, rgba(23, 23, 23, 0.03) 0 1px, transparent 1px 72px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  background: rgba(247, 248, 244, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 221, 210, 0.8);
}

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

#brandCanvas {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(44, 122, 82, 0.08);
}

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

.hero {
  min-height: clamp(620px, calc(100vh - 150px), 760px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: 48px;
  padding: 48px 0 28px;
}

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

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-lede {
  margin: 26px 0 30px;
  color: #42423d;
  font-size: 18px;
  max-width: 610px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
  box-shadow: 0 12px 30px rgba(23, 23, 23, 0.16);
}

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

.hero-panel {
  min-width: 0;
  border: 1px solid #cfd7cc;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf7;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.panel-top span:nth-child(1) {
  background: var(--coral);
}

.panel-top span:nth-child(2) {
  background: var(--yellow);
}

.panel-top span:nth-child(3) {
  background: var(--green);
}

.panel-top strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

#workspaceCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f8f9f4;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.stats-strip div {
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

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

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.stats-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section,
.workflow,
.detail-band,
.sources {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 36px;
  margin-bottom: 34px;
}

.section-heading h2,
.detail-band h2,
.sources h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.feature-grid,
.fit-grid {
  display: grid;
  gap: 16px;
}

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

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

.feature-grid article,
.fit-grid article,
.workflow-list article,
.detail-columns article,
.sources {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.feature-grid article,
.fit-grid article,
.detail-columns article {
  padding: 24px;
}

.feature-number {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--coral);
  font-weight: 850;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.15;
}

article p,
.sources p {
  margin: 0;
  color: var(--muted);
}

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

.section-heading.compact {
  grid-template-columns: 1fr;
  gap: 0;
}

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

.workflow-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px;
}

.workflow-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e7f1e8;
  color: var(--green);
  font-weight: 850;
}

.detail-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: start;
}

.detail-columns {
  display: grid;
  gap: 14px;
}

.sources {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px;
  margin-bottom: 74px;
}

.sources a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 760;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .detail-band,
  .sources {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .feature-grid,
  .fit-grid,
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip div:nth-child(2) {
    border-right: 0;
  }

  .stats-strip div:nth-child(1),
  .stats-strip div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .sources a {
    justify-self: start;
  }
}

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    gap: 28px;
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

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

  .stats-strip,
  .feature-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip div,
  .stats-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .section,
  .workflow,
  .detail-band,
  .sources {
    padding: 64px 0;
  }

  .feature-number {
    margin-bottom: 28px;
  }

  .workflow-list article {
    grid-template-columns: 1fr;
  }

  .sources {
    padding: 22px;
    margin-bottom: 52px;
  }

  .site-footer {
    flex-direction: column;
  }
}
