:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --paper: #ffffff;
  --paper-2: #fbfcfd;
  --ink: #1f2328;
  --muted: #626c76;
  --line: #d8dee4;
  --line-strong: #b7c0ca;
  --soft: #edf1f5;
  --accent: #0969da;
  --accent-soft: #eaf3ff;
  --dark: #15191e;
  --shadow: rgba(31, 35, 40, .12);
  --shadow-strong: rgba(31, 35, 40, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
}

code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: .95em;
}

h1,
h2,
h3,
p,
figure,
ol,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.wrap {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(216, 222, 228, .86);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}

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

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
}

.nav a {
  padding: 5px 9px;
  border-radius: 5px;
  color: #4f5964;
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.hero {
  padding: 48px 0 26px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(560px, 1.24fr);
  gap: 30px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .08em;
}

h1 {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.1;
  word-break: keep-all;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.lead {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 13px;
}

.preview-switch {
  display: inline-flex;
  gap: 2px;
  margin-top: 10px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
}

.preview-switch a {
  min-width: 46px;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.preview-switch a:hover {
  background: var(--soft);
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  font-weight: 680;
  text-decoration: none;
}

.button:hover {
  border-color: var(--line-strong);
  background: var(--paper-2);
}

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

.product-frame {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  aspect-ratio: 1143 / 719;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 18px 42px var(--shadow-strong);
}

.product-frame picture,
.product-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.product-frame img {
  object-fit: cover;
  object-position: center top;
}

.section {
  padding: 28px 0;
}

.section-title {
  max-width: 720px;
  margin-bottom: 14px;
}

.section-title p,
.note-flow p,
.docs-panel p,
.principles p,
.value p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-title .eyebrow {
  margin-bottom: 8px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(31, 35, 40, .03);
}

.principles article {
  min-height: 150px;
  padding: 18px;
  border-right: 1px solid var(--line);
  transition: background-color .16s ease, border-color .16s ease;
}

.principles article:hover {
  background: var(--paper-2);
}

.principles article:last-child {
  border-right: 0;
}

.principles span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.note-flow {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 24px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(31, 35, 40, .03);
}

.steps {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps strong {
  font-size: 16px;
}

.steps span {
  color: var(--muted);
}

.docs-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  gap: 20px;
  align-items: start;
}

.doc-actions,
.feature-list,
.docs-grid,
.value-grid {
  display: grid;
  gap: 10px;
}

.doc-actions,
.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.feature-link,
.doc-card a,
.value {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.feature-link,
.doc-card a {
  min-height: 92px;
  padding: 14px;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.feature-link:hover,
.doc-card a:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px var(--shadow);
  transform: translateY(-1px);
}

.feature-link strong,
.doc-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.feature-link span,
.doc-card span,
.doc-card small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.value {
  min-height: 150px;
  padding: 18px;
}

.command,
.flow pre {
  overflow: auto;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #24292f;
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
}

.closing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.closing-panel h2 {
  margin-bottom: 0;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.flow pre {
  min-height: 132px;
  margin: 0;
}

.docs-hero {
  max-width: 760px;
}

.site-footer {
  margin-top: 32px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 720;
}

@media (max-width: 980px) {
  .hero-layout,
  .note-flow,
  .docs-panel,
  .closing-panel,
  .principles,
  .value-grid,
  .feature-list,
  .docs-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .principles article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 24px, 1080px);
  }

  .site-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px;
  }

  .hero {
    padding-bottom: 20px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .note-flow {
    padding: 18px;
  }

  .steps li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

  .closing-actions {
    justify-content: flex-start;
  }


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