:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f646d;
  --line: #dadfe7;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --surface-strong: #eceff3;
  --green: #13795b;
  --green-soft: #dff4ea;
  --amber: #b66a00;
  --amber-soft: #fff0d7;
  --red-soft: #ffe7e2;
  --red: #a53a25;
  --shadow: 0 18px 50px rgba(20, 26, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  overflow-wrap: anywhere;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

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

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

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

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  min-height: calc(100vh - 92px);
  align-items: center;
  padding: 36px 0;
}

.intro-copy {
  padding: clamp(22px, 4vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.workflow-visual {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workflow-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.workspace-box {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.workspace-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-start,
.section-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-start {
  padding: 24px;
}

.quick-start ol {
  margin: 0 0 18px 20px;
  padding: 0;
}

.quick-start li + li {
  margin-top: 7px;
}

.command-box,
.command-card,
.flow-step,
.restart-grid article,
.do-dont {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.command-box {
  position: relative;
  padding: 14px;
  background: #101215;
  color: #f6f7f8;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

.command-box pre,
.command-card pre {
  padding-right: 72px;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 58px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-weight: 800;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--green-soft);
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.section-block {
  margin: 22px 0;
  padding: clamp(22px, 4vw, 36px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.flow-grid,
.command-grid,
.restart-grid {
  display: grid;
  gap: 14px;
}

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

.flow-step {
  position: relative;
  min-height: 240px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(223, 244, 234, 0.42), rgba(255, 255, 255, 0) 44%),
    #fff;
}

.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.flow-step p,
.command-card p,
.restart-grid p,
.do-dont li,
.trouble-list p {
  color: var(--muted);
}

.flow-step code {
  display: block;
  margin-top: 16px;
  padding: 10px;
  border-radius: 7px;
  background: var(--surface);
  color: #222;
  font-size: 13px;
}

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

.command-card {
  position: relative;
  min-height: 230px;
  padding: 18px;
}

.command-card pre {
  margin-top: 16px;
  padding: 14px;
  border-radius: 7px;
  background: #101215;
  color: #f6f7f8;
}

.role-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.role-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(220px, 1.6fr) minmax(180px, 1fr);
  gap: 14px;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.role-row:last-child {
  border-bottom: 0;
}

.role-head {
  background: var(--surface-strong);
  color: #2b2f36;
  font-weight: 900;
}

.role-row code {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--surface);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checklist input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--green);
}

.do-dont {
  padding: 18px;
}

.do-dont h3:nth-of-type(1) {
  color: var(--green);
}

.do-dont h3:nth-of-type(2) {
  margin-top: 20px;
  color: var(--red);
}

.do-dont ul {
  margin: 0;
  padding-left: 20px;
}

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

.restart-grid article {
  padding: 18px;
}

.trouble-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

summary {
  min-height: 54px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
  padding: 22px 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  transform: translateY(16px);
  opacity: 0;
  padding: 12px 14px;
  border-radius: 7px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 920px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .intro-section,
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .flow-grid,
  .command-grid,
  .restart-grid {
    grid-template-columns: 1fr;
  }

  .role-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .top-nav a {
    padding: 8px 9px;
  }

  .intro-copy,
  .quick-start,
  .section-block {
    padding: 18px;
  }

  .command-box pre,
  .command-card pre {
    padding-right: 0;
    padding-top: 44px;
  }
}
