:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef6ff;
  --ink: #102033;
  --muted: #5f6f82;
  --line: #d9e2ec;
  --blue: #2563eb;
  --teal: #0f766e;
  --green: #16a34a;
  --amber: #d97706;
  --danger: #b91c1c;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  color-scheme: light;
  font-family: Satoshi, Geist, Aptos, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  color: var(--ink);
  min-width: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  min-width: 0;
  text-decoration: none;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.text-link:hover {
  color: var(--ink);
}

.button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #b8c6d8;
}

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

.button.accent {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  max-width: 780px;
  overflow-wrap: anywhere;
}

.subhead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.6;
  max-width: 760px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workflow-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  display: block;
}

.summary-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  padding: 18px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.content-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

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

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

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

.step-list,
.note-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.step-list li,
.note-list li {
  margin-bottom: 10px;
}

.step-list li:last-child,
.note-list li:last-child {
  margin-bottom: 0;
}

.mini-callout {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid #d6e7ff;
}

.mini-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.code-block {
  margin: 14px 0 0;
  padding: 14px;
  background: #f4f8ff;
  border: 1px solid #d7e5ff;
  border-radius: 8px;
  overflow-x: auto;
  color: #0f3f85;
  line-height: 1.55;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  font-size: 13px;
}

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

th {
  background: #f6f8fb;
  color: #26374a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.related-links {
  display: grid;
  gap: 10px;
}

.related-link {
  display: block;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fbff;
  text-decoration: none;
}

.related-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.related-link span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid #b7e4d4;
  background: #ecfdf5;
  border-radius: 8px;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.cta p {
  margin: 0;
  color: #315c4e;
  line-height: 1.5;
}

footer {
  margin-top: 34px;
  padding: 22px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero,
  .summary-grid,
  .content-grid,
  .cta {
    grid-template-columns: 1fr;
  }

  .workflow-visual {
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  main {
    width: 100%;
    max-width: 1180px;
  }

  .topbar-inner {
    min-height: auto;
    padding: 12px 28px 12px 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding: 28px 28px 56px 12px;
  }

  .top-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(26px, 7vw, 29px);
    line-height: 1.08;
  }

  .subhead {
    font-size: 16px;
  }

  .workflow-visual {
    object-fit: contain;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
