:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #191b1f;
  --panel-2: #22252b;
  --text: #f3f0e8;
  --muted: #b9b3a6;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #e4b95f;
  --red: #c95e50;
  --green: #72b58a;
  --blue: #6aa6c8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(16, 17, 19, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover,
.link-list a:hover,
.doc-card-list a:hover,
.text-link:hover {
  color: var(--text);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.nav-action {
  color: var(--bg);
  background: var(--gold);
  border-color: transparent;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 68px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 17, 19, 0.92), rgba(16, 17, 19, 0.64) 48%, rgba(16, 17, 19, 0.18)),
    linear-gradient(0deg, var(--bg), rgba(16, 17, 19, 0.04) 42%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(72px, 12vw, 150px) clamp(18px, 8vw, 120px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  color: #eee8dd;
  font-size: clamp(1.05rem, 1.75vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.primary {
  color: var(--bg);
  background: var(--gold);
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.intro,
.section,
.download,
.docs-page,
footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  transform: translateY(-30px);
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro > div {
  min-height: 154px;
  padding: 26px;
  background: var(--panel);
}

.metric {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
}

.intro p,
article p,
.split-section p,
.download p {
  color: var(--muted);
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-grid,
.tutorial-grid,
.steps-grid,
.detail-grid,
.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article,
.tutorial-grid article,
.steps-grid article,
.detail-grid article,
.practical-grid article {
  min-height: 205px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid article:nth-child(2),
.feature-grid article:nth-child(5) {
  border-top-color: rgba(228, 185, 95, 0.5);
}

.feature-grid article:nth-child(3),
.feature-grid article:nth-child(6) {
  border-top-color: rgba(114, 181, 138, 0.5);
}

.quick-start {
  padding-top: 44px;
}

.steps-grid {
  grid-template-columns: repeat(4, 1fr);
}

.steps-grid article {
  min-height: 230px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  color: var(--bg);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  margin-top: 16px;
  padding: 30px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-panel h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.08;
}

.workflow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid article {
  min-height: 185px;
}

code {
  padding: 2px 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.release-section {
  padding-top: 20px;
}

.release-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 34px;
  padding: 34px;
  background: linear-gradient(135deg, var(--panel), rgba(34, 37, 43, 0.72));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.release-panel p {
  color: var(--muted);
}

.release-panel h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.3rem);
}

.release-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-list li {
  padding: 15px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.release-list strong {
  color: var(--text);
}

.practical-section {
  padding-bottom: 16px;
}

.practical-grid article {
  min-height: 170px;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.shot {
  margin: 0;
  overflow: hidden;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #050607;
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--muted);
}

figcaption strong {
  color: var(--text);
}

.screenshot-note {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 42px;
  align-items: start;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.doc-card-list {
  display: grid;
  gap: 12px;
}

.doc-card-list a {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.doc-card-list strong {
  color: var(--text);
}

.docs-page {
  padding: 70px 0;
}

.docs-hero {
  max-width: 820px;
  margin-bottom: 36px;
}

.docs-hero h1 {
  font-size: clamp(3.6rem, 9vw, 7rem);
}

.docs-hero p {
  color: var(--muted);
  font-size: 1.16rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
}

.doc-tab {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 16px;
  color: var(--muted);
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.doc-tab span {
  color: var(--text);
  font-weight: 800;
}

.doc-tab small {
  line-height: 1.35;
}

.doc-tab.is-active {
  border-color: rgba(228, 185, 95, 0.72);
  box-shadow: inset 4px 0 0 var(--gold);
}

.doc-reader {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-reader-toolbar h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.markdown-body {
  padding: 30px;
  color: var(--muted);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--text);
}

.markdown-body h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.markdown-body h2 {
  margin-top: 36px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.markdown-body h3 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.markdown-body a {
  color: var(--gold);
  font-weight: 700;
}

.markdown-body ul,
.markdown-body ol {
  display: grid;
  gap: 8px;
  padding-left: 24px;
}

.markdown-body pre {
  overflow-x: auto;
  padding: 16px;
  color: #f6efe2;
  background: #090a0c;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.markdown-body pre code {
  padding: 0;
  background: transparent;
}

.markdown-body details {
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.markdown-body summary {
  color: var(--text);
  cursor: pointer;
}

.tutorial-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--bg);
  background: var(--green);
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 800;
}

.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
  margin-bottom: 70px;
  padding: 34px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download h2 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    margin-left: 18px;
  }

  .intro,
  .feature-grid,
  .tutorial-grid,
  .steps-grid,
  .detail-grid,
  .practical-grid,
  .split-section,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .workflow-panel,
  .release-panel {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .download,
  figcaption,
  .doc-reader-toolbar,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav-action {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-actions .button,
  .download .button {
    width: 100%;
  }

  .intro {
    width: calc(100% - 24px);
  }

  .section,
  .download,
  .docs-page,
  footer {
    width: calc(100% - 24px);
  }
}
