:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #5d6878;
  --line: #d8dee8;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --soft: #eef4f7;
  --brand: #0f766e;
  --brand-dark: #134e4a;
  --accent: #b45309;
  --blue: #2563eb;
  --code: #111827;
  --code-line: #243244;
  --shadow: 0 18px 45px rgba(24, 33, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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.55;
}

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

a:hover {
  color: var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 222, 232, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

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

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 700;
}

.nav-cta:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

.hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0.62) 100%),
    url("data:image/svg+xml,%3Csvg width='1400' height='820' viewBox='0 0 1400 820' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1400' height='820' fill='%23eef4f7'/%3E%3Cg transform='translate(770 70)' opacity='.95'%3E%3Crect x='0' y='0' width='310' height='420' rx='10' fill='%23ffffff' stroke='%23c7d2df'/%3E%3Crect x='28' y='34' width='114' height='18' rx='4' fill='%230f766e'/%3E%3Crect x='28' y='76' width='248' height='10' rx='4' fill='%23d8dee8'/%3E%3Crect x='28' y='100' width='210' height='10' rx='4' fill='%23d8dee8'/%3E%3Crect x='28' y='148' width='248' height='34' rx='5' fill='%23f3f6f9'/%3E%3Crect x='28' y='206' width='248' height='8' rx='4' fill='%23c7d2df'/%3E%3Crect x='28' y='232' width='248' height='8' rx='4' fill='%23c7d2df'/%3E%3Crect x='28' y='258' width='160' height='8' rx='4' fill='%23c7d2df'/%3E%3Crect x='170' y='338' width='106' height='34' rx='5' fill='%23b45309'/%3E%3C/g%3E%3Cg transform='translate(1035 185)' opacity='.9'%3E%3Crect x='0' y='0' width='250' height='330' rx='10' fill='%23ffffff' stroke='%23c7d2df'/%3E%3Crect x='24' y='28' width='202' height='46' rx='5' fill='%232563eb'/%3E%3Crect x='24' y='106' width='202' height='10' rx='4' fill='%23d8dee8'/%3E%3Crect x='24' y='134' width='202' height='10' rx='4' fill='%23d8dee8'/%3E%3Crect x='24' y='162' width='120' height='10' rx='4' fill='%23d8dee8'/%3E%3Crect x='24' y='228' width='202' height='50' rx='5' fill='%23f3f6f9'/%3E%3C/g%3E%3Cg transform='translate(875 540)' opacity='.92'%3E%3Crect x='0' y='0' width='430' height='116' rx='12' fill='%23ffffff' stroke='%23c7d2df'/%3E%3Crect x='24' y='28' width='92' height='14' rx='4' fill='%230f766e'/%3E%3Crect x='24' y='62' width='382' height='8' rx='4' fill='%23d8dee8'/%3E%3Crect x='24' y='84' width='282' height='8' rx='4' fill='%23d8dee8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-inner,
.section-inner,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  width: min(640px, 100%);
  padding: 76px 0 86px;
}

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

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

h1 {
  font-size: clamp(42px, 8vw, 74px);
  max-width: 780px;
}

h2 {
  font-size: clamp(30px, 5vw, 46px);
}

h3 {
  font-size: 20px;
}

.lead {
  margin: 22px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 750;
}

.button.primary {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.button.primary:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section.soft {
  background: var(--wash);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(24, 33, 47, 0.04);
}

.card-body {
  padding: 22px;
}

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

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.code-block {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  color: #dce7f3;
  background: var(--code);
  font: 14px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.code-block code {
  white-space: pre;
}

.template-preview {
  min-height: 160px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.mini-doc {
  height: 132px;
  border: 1px solid #c7d2df;
  border-radius: 7px;
  background: #ffffff;
  padding: 14px;
}

.mini-line,
.mini-line.short,
.mini-line.medium {
  height: 8px;
  margin-top: 12px;
  border-radius: 8px;
  background: #ccd6e3;
}

.mini-line.short {
  width: 42%;
}

.mini-line.medium {
  width: 68%;
}

.mini-bar {
  height: 26px;
  border-radius: 5px;
  background: var(--brand);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 13px;
  font-weight: 650;
}

.page-hero {
  padding: 72px 0 48px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
}

.page-content {
  padding: 56px 0 84px;
}

.page-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
}

.side-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.side-nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-weight: 650;
}

.page-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.page-card + .page-card {
  margin-top: 18px;
}

.check-list,
.plain-list {
  padding-left: 20px;
  color: var(--muted);
}

.check-list li,
.plain-list li {
  margin: 8px 0;
}

.notice {
  padding: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff7ed;
  color: #6b3a04;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.catalog-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 14px;
}

.catalog-table th,
.catalog-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.catalog-table th {
  color: var(--ink);
  background: var(--wash);
  font-weight: 750;
}

.catalog-table code {
  display: inline-block;
  margin: 2px 0;
  color: var(--ink);
  font-size: 13px;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-inner strong {
  color: #ffffff;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    background-position: 58% center;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.three,
  .grid.two,
  .metric-row,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }
}

@media (max-width: 520px) {
  .hero-copy {
    padding: 54px 0 64px;
  }

  .section {
    padding: 52px 0;
  }

  .page-card {
    padding: 22px;
  }
}
