:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --panel: #ffffff;
  --ink: #17201b;
  --muted: #5c665f;
  --line: #dfe4db;
  --accent: #0f6f5c;
  --accent-2: #2f64a3;
  --warm: #c46b38;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-2);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.95rem;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

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

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

h1,
h2 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 6vw, 4.5rem);
}

h2 {
  font-size: 1.15rem;
}

p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  font-size: 1.15rem;
}

.system-panel {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 111, 92, 0.08), transparent 55%),
    linear-gradient(225deg, rgba(47, 100, 163, 0.1), transparent 48%),
    var(--panel);
  box-shadow: 0 16px 40px rgba(23, 32, 27, 0.08);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.data-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 32px;
}

.data-flow div {
  display: grid;
  min-height: 98px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-weight: 800;
}

.data-flow div:nth-child(1) {
  border-top-color: var(--accent);
}

.data-flow div:nth-child(2) {
  border-top-color: var(--accent-2);
}

.data-flow div:nth-child(3) {
  border-top-color: var(--warm);
}

.data-flow div:nth-child(4) {
  border-top-color: #798144;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 72px;
}

article,
.document section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.document {
  max-width: 780px;
  padding: 56px 0 72px;
}

.document section {
  margin-top: 32px;
}

ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

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

@media (max-width: 820px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .system-panel {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  nav {
    width: 100%;
    justify-content: space-between;
  }

  .data-flow {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
