:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f6f3;
  --text: #11120f;
  --muted: #5f665f;
  --muted-strong: #394139;
  --line: #dde2da;
  --line-strong: #b8c0b5;
  --surface: #ffffff;
  --surface-dark: #08111d;
  --accent: #2f6f68;
  --accent-warm: #c76e2f;
  --accent-soft: #e2f0ea;
  --shadow: 0 24px 80px rgba(19, 24, 20, 0.12);
  --font-display: "Segoe UI Variable Display", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-body: "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#root {
  isolation: isolate;
}

.page-shell {
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(221, 226, 218, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

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

.site-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 560;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.nav-star-count {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 500;
}

.nav-star-icon {
  width: 0.82em;
  height: 0.82em;
  margin-left: 2px;
  fill: currentColor;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--text);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.header-action:hover,
.header-action:focus-visible {
  background: var(--text);
  color: var(--bg);
}

.hero-section {
  padding: 54px 48px 34px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero-mark {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  object-fit: contain;
}

.hero-copy h1 {
  margin: 0;
  max-width: 9ch;
  font-family: var(--font-display);
  font-size: 7.35rem;
  font-weight: 760;
  line-height: 0.9;
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 1.42rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.hero-actions .hero-platform-note {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 720;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--bg);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--text);
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: minmax(520px, 0.68fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
  width: min(1548px, calc(100% + 48px));
  margin: 36px 0 0 -24px;
}

.hero-visual-grid .git-activity-section {
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.hero-visual-grid .activity-heading,
.hero-visual-grid .activity-detail {
  display: none;
}

.hero-visual-grid .activity-shell {
  display: block;
  min-width: 0;
  max-width: none;
  height: 100%;
  margin: 0;
}

.hero-visual-grid .activity-panel {
  min-width: 0;
  max-width: 100%;
  height: 100%;
  padding: 18px;
}

.hero-visual-grid .activity-toolbar strong {
  font-size: 0.86rem;
}

.hero-visual-grid .activity-sync {
  min-height: 20px;
  margin-top: 6px;
  padding: 0 6px;
  font-size: 0.66rem;
}

.hero-visual-grid .activity-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 20px;
}

.hero-visual-grid .activity-stats div {
  padding: 12px;
}

.hero-visual-grid .activity-stats dt {
  font-size: 0.72rem;
}

.hero-visual-grid .activity-stats dd {
  font-size: 1.12rem;
}

.hero-visual-grid .heatmap-scroll {
  padding-bottom: 6px;
}

.hero-visual-grid .heatmap-months {
  grid-template-columns: repeat(var(--week-count), 8px);
  column-gap: 3px;
  margin-left: 30px;
  font-size: 0.68rem;
}

.hero-visual-grid .heatmap-body {
  grid-template-columns: 22px max-content;
  gap: 8px;
}

.hero-visual-grid .heatmap-weekdays {
  grid-template-rows: repeat(7, 8px);
  row-gap: 3px;
  font-size: 0.66rem;
  line-height: 8px;
}

.hero-visual-grid .heatmap-grid {
  grid-template-columns: repeat(var(--week-count), 8px);
  grid-template-rows: repeat(7, 8px);
  gap: 3px;
}

.hero-visual-grid .heatmap-day {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.hero-visual-grid .heatmap-legend {
  margin-top: 8px;
}

.product-preview {
  width: min(1120px, 100%);
  margin: 36px auto 0;
  overflow: hidden;
  border: 1px solid #1c2a3d;
  border-radius: 8px;
  background: var(--surface-dark);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8c5d6;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.78rem;
}

.product-preview img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: left top;
}

.hero-visual-grid .product-preview {
  width: 100%;
  margin: 0;
}

.hero-visual-grid .product-preview img {
  height: 360px;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  background: var(--bg);
  font-size: 0.98rem;
}

.intro-section,
.workflow-section,
.surfaces-section,
.launch-section {
  padding: 86px 48px;
}

.intro-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 760;
}

.intro-section h2,
.section-header h2,
.surfaces-copy h2,
.launch-section h2 {
  margin: 0;
  max-width: 920px;
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 740;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.feature-section {
  padding: 0 48px;
}

.git-activity-section {
  padding: 86px 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(226, 240, 234, 0.52), rgba(255, 255, 255, 0) 42%),
    var(--bg);
}

.activity-heading {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto 42px;
}

.activity-heading h2 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 740;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.activity-heading p:last-child {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.activity-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.activity-panel,
.activity-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 64px rgba(19, 24, 20, 0.08);
}

.activity-panel {
  min-width: 0;
  padding: 22px;
}

.activity-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.activity-toolbar strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.activity-sync {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 8px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
}

.activity-sync.is-loading {
  color: var(--muted);
  background: #f3f5f1;
}

.activity-sync.is-fallback {
  color: #9a531f;
  border-color: #efd6bd;
  background: #fff4e8;
}

.activity-eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0;
}

.year-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.year-switcher button,
.year-switcher span {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 720;
}

.year-switcher button {
  cursor: pointer;
}

.year-switcher button:hover,
.year-switcher button:focus-visible,
.year-switcher button.is-active,
.year-switcher span.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.activity-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 28px;
}

.activity-stats div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.activity-stats dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.activity-stats dd {
  margin: 8px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 760;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.heatmap-scroll {
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.heatmap-months {
  display: grid;
  grid-template-columns: repeat(var(--week-count), 14px);
  column-gap: 4px;
  width: max-content;
  margin-left: 34px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1;
}

.heatmap-months span {
  min-width: 32px;
  white-space: nowrap;
}

.heatmap-body {
  display: grid;
  grid-template-columns: 24px max-content;
  gap: 10px;
  align-items: start;
  width: max-content;
  margin-top: 10px;
}

.heatmap-weekdays {
  display: grid;
  grid-template-rows: repeat(7, 14px);
  row-gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 14px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(var(--week-count), 14px);
  grid-template-rows: repeat(7, 14px);
  grid-auto-flow: column;
  gap: 4px;
}

.heatmap-day {
  display: inline-block;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid rgba(17, 18, 15, 0.04);
  border-radius: 3px;
}

button.heatmap-day {
  cursor: pointer;
}

button.heatmap-day:hover,
button.heatmap-day:focus-visible,
button.heatmap-day.is-selected {
  outline: 2px solid #11120f;
  outline-offset: 2px;
}

.heatmap-day-0 {
  background: #edf1ea;
}

.heatmap-day-1 {
  background: #bde2cf;
}

.heatmap-day-2 {
  background: #73c49b;
}

.heatmap-day-3 {
  background: #2f9368;
}

.heatmap-day-4 {
  background: #17603f;
}

.heatmap-day.is-outside-year {
  opacity: 0.28;
}

.heatmap-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.activity-detail {
  padding: 22px;
}

.activity-detail p {
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 760;
}

.activity-detail h3 {
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.08;
}

.commit-list {
  display: grid;
  gap: 8px;
}

.commit-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  min-height: 42px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

a.commit-row:hover,
a.commit-row:focus-visible {
  border-color: var(--text);
  transform: translateY(-1px);
}

.commit-row span {
  color: var(--accent-warm);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.76rem;
  line-height: 1.45;
}

.commit-row strong {
  min-width: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.commit-overflow,
.empty-activity {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feature-story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}

.feature-story h3 {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 720;
  line-height: 1.08;
}

.feature-story p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.feature-console {
  border: 1px solid #263349;
  border-radius: 8px;
  background: #0b1524;
  color: #e7edf6;
  box-shadow: 0 18px 60px rgba(9, 17, 29, 0.16);
}

.console-title {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8fe1d7;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.86rem;
}

.console-list {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.console-list span {
  min-height: 40px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #cad6e8;
  font-size: 0.94rem;
}

.workflow-section {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 56px auto 0;
}

.workflow-step {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.workflow-step span {
  display: block;
  color: var(--accent-warm);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 760;
}

.workflow-step h3 {
  margin: 88px 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.18;
}

.workflow-step p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.surfaces-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 70px;
  max-width: 1216px;
  margin: 0 auto;
}

.surfaces-copy p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.surface-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.surface-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.surface-item p {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 760;
}

.surface-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.18;
}

.surface-item span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.launch-section {
  max-width: 1120px;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11120f;
  color: #ffffff;
}

.launch-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 760;
}

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

.launch-section h2 {
  color: #ffffff;
}

.launch-section p {
  max-width: 650px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  line-height: 1.75;
}

.launch-section .button-primary {
  background: #ffffff;
  color: #11120f;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 48px 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .hero-visual-grid {
    grid-template-columns: 1fr;
    width: min(1120px, 100%);
  }

  .hero-visual-grid .product-preview img {
    height: 300px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .site-nav {
    display: none;
  }

  .hero-section,
  .intro-section,
  .git-activity-section,
  .workflow-section,
  .surfaces-section,
  .launch-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-copy h1 {
    font-size: 5.35rem;
  }

  .hero-mark {
    width: 92px;
    height: 92px;
  }

  .hero-copy p {
    font-size: 1.22rem;
  }

  .intro-section,
  .activity-heading,
  .section-header,
  .feature-story,
  .activity-shell,
  .surfaces-section {
    grid-template-columns: 1fr;
  }

  .intro-section h2,
  .activity-heading h2,
  .section-header h2,
  .surfaces-copy h2,
  .launch-section h2 {
    font-size: 3rem;
  }

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

  .workflow-grid,
  .proof-list {
    grid-template-columns: 1fr;
  }

  .product-preview img {
    height: 270px;
  }

  .hero-visual-grid .product-preview img {
    height: 270px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .brand-lockup span {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-action {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero-section {
    padding-top: 40px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-brand {
    gap: 14px;
  }

  .hero-mark {
    width: 62px;
    height: 62px;
  }

  .hero-copy p {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .preview-toolbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 64px;
    gap: 4px;
  }

  .product-preview img {
    height: 220px;
  }

  .hero-visual-grid .product-preview img {
    height: 220px;
  }

  .intro-section,
  .git-activity-section,
  .workflow-section,
  .surfaces-section,
  .launch-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .intro-section h2,
  .activity-heading h2,
  .section-header h2,
  .surfaces-copy h2,
  .launch-section h2 {
    font-size: 1.82rem;
    line-height: 1.14;
  }

  .activity-heading {
    gap: 20px;
    margin-bottom: 30px;
  }

  .activity-toolbar {
    display: grid;
  }

  .hero-visual-grid .activity-toolbar {
    display: flex;
  }

  .year-switcher {
    justify-content: flex-start;
  }

  .activity-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual-grid .activity-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual-grid .activity-stats dd {
    font-size: 1rem;
  }

  .activity-panel,
  .activity-detail {
    padding: 16px;
  }

  .feature-section {
    padding: 0 24px;
  }

  .feature-story {
    padding: 52px 0;
  }

  .feature-story h3 {
    font-size: 1.82rem;
    line-height: 1.12;
  }

  .workflow-step {
    min-height: 240px;
  }

  .workflow-step h3 {
    margin-top: 52px;
  }

  .site-footer {
    flex-direction: column;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.docs-page-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(226, 240, 234, 0.34), rgba(255, 255, 255, 0) 260px),
    var(--bg);
}

.docs-header {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.docs-header-nav {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 660;
}

.docs-header-nav a:not(.button) {
  transition: color 160ms ease;
}

.docs-header-nav a:not(.button):hover,
.docs-header-nav a:not(.button):focus-visible {
  color: var(--text);
}

.docs-download-button {
  min-height: 40px;
  padding: 0 15px;
  font-size: 0.9rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 760px) minmax(170px, 210px);
  gap: 28px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 42px 48px 76px;
}

.docs-sidebar,
.docs-toc {
  align-self: start;
  position: sticky;
  top: 96px;
}

.docs-sidebar-inner > p,
.docs-toc p,
.docs-mobile-nav span {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 780;
}

.docs-nav-section {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.docs-nav-section > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.docs-nav-link {
  display: grid;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.docs-nav-link:hover,
.docs-nav-link:focus-visible,
.docs-nav-link.is-active {
  border-color: var(--line);
  background: var(--accent-soft);
  color: var(--text);
}

.docs-nav-link strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.docs-main-column {
  min-width: 0;
}

.docs-mobile-nav {
  display: none;
}

.docs-content {
  min-width: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.78;
}

.docs-content > *:first-child {
  margin-top: 0;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0;
  scroll-margin-top: 96px;
}

.docs-content h1 {
  margin: 0 0 24px;
  font-size: 4.1rem;
  font-weight: 760;
  line-height: 0.98;
}

.docs-content h2 {
  margin: 56px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 2rem;
  font-weight: 740;
  line-height: 1.12;
}

.docs-content h3 {
  margin: 34px 0 10px;
  font-size: 1.34rem;
  font-weight: 720;
  line-height: 1.2;
}

.docs-content p,
.docs-content ul,
.docs-content ol,
.docs-content blockquote,
.docs-content pre,
.docs-content table {
  margin: 18px 0 0;
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.32rem;
}

.docs-content li + li {
  margin-top: 8px;
}

.docs-content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-content code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9f5;
  color: var(--text);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.9em;
  padding: 0.12em 0.34em;
}

.docs-content pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid #263349;
  border-radius: 8px;
  background: #0b1524;
  color: #e7edf6;
}

.docs-content pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.docs-content blockquote {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
}

.docs-content blockquote p {
  margin: 0;
}

.docs-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.docs-content th,
.docs-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.docs-content th {
  color: var(--text);
  background: #f8faf7;
  font-weight: 760;
}

.docs-toc > div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.docs-toc nav {
  display: grid;
  gap: 10px;
}

.docs-toc a,
.docs-toc span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.docs-toc a {
  transition: color 160ms ease;
}

.docs-toc a:hover,
.docs-toc a:focus-visible {
  color: var(--text);
}

.docs-toc a.is-nested {
  padding-left: 14px;
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 24px;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 980px) {
  .docs-header {
    grid-template-columns: 1fr auto;
  }

  .docs-header-nav {
    display: inline-flex;
    gap: 16px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    padding: 32px 24px 64px;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-mobile-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 26px;
  }

  .docs-mobile-nav select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.96rem;
    font-weight: 650;
  }

  .docs-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .docs-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .docs-header-nav {
    justify-self: start;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  .docs-download-button {
    width: auto;
    min-height: 36px;
  }

  .docs-layout {
    padding-top: 28px;
  }

  .docs-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .docs-content h1 {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .docs-content h2 {
    margin-top: 44px;
    font-size: 1.55rem;
  }

  .docs-content h3 {
    font-size: 1.18rem;
  }
}
