:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: #0b0b0d;
  --surface-2: #0f0f12;
  --line: #222024;
  --line-soft: #18171a;
  --text: #f1eff0;
  --muted: #8d878a;
  --muted-2: #655f62;
  --accent: #7c2937;
  --accent-hover: #8b3040;
  --accent-soft: rgba(124, 41, 55, .11);
  --ease: cubic-bezier(.2,.75,.2,1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, video { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header { position: relative; z-index: 10; padding: 20px 20px 0; }
.pill-nav { width: min(980px, 100%); height: 50px; margin: 0 auto; padding: 4px 5px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid #292226; border-radius: 999px; background: rgba(9,9,10,.94); }
.brand { justify-self: start; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.brand img { width: 22px; height: 22px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { height: 36px; padding: 0 15px; display: inline-flex; align-items: center; border-radius: 999px; color: #8e878a; font-size: 12px; transition: color .16s var(--ease), background .16s var(--ease); }
.nav-link:hover { color: #d7d2d4; }
.nav-link.active { color: #f1edef; background: #151012; }
.github-link { justify-self: end; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #8d8589; transition: color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease); }
.github-link:hover { color: #e8e2e4; background: #121013; transform: translateY(-1px); }
.github-link svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }

.home-main { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }
.home-hero { min-height: calc(100vh - 70px); padding: 66px 0 82px; display: grid; grid-template-columns: minmax(0,.82fr) minmax(460px,1.18fr); gap: 72px; align-items: center; }
.hero-copy { max-width: 485px; }
.product-mark { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 21px; color: #8c8286; font-size: 12px; }
.product-mark img { width: 23px; height: 23px; object-fit: contain; }
h1 { margin: 0; letter-spacing: -.055em; }
.hero-copy h1 { font-size: clamp(48px, 6.3vw, 76px); line-height: .97; font-weight: 690; }
.hero-copy h1 span { color: #a33d4f; }
.hero-copy > p { max-width: 440px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-actions { margin-top: 29px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.primary-button { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #9b4150; border-radius: 10px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 650; box-shadow: inset 0 1px rgba(255,255,255,.05); transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); }
.primary-button:hover { background: var(--accent-hover); border-color: #aa4a5a; transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { width: 16px; height: 16px; }
.quiet-link { display: inline-flex; align-items: center; gap: 7px; color: #8b8386; font-size: 12px; transition: color .16s var(--ease), gap .16s var(--ease); }
.quiet-link:hover { color: #d3cccf; gap: 10px; }

.tutorial { min-width: 0; }
.video-topline { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; color: #6e676a; font-size: 10px; letter-spacing: .02em; }
.video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid #282126; border-radius: 13px; background: #050506; box-shadow: 0 24px 70px rgba(0,0,0,.22); transition: border-color .2s var(--ease), transform .24s var(--ease); }
.video-frame:hover { border-color: #3b2b31; transform: translateY(-2px); }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #050506; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #09090a; }
.video-placeholder[hidden] { display: none; }
.video-placeholder svg { width: 28px; height: 28px; margin-bottom: 12px; color: #9a3b4b; }
.video-placeholder strong { font-size: 13px; font-weight: 620; }
.video-placeholder span { margin-top: 6px; color: #696265; font-size: 11px; }
.video-placeholder code { color: #9f9297; }

.enter { animation: enter .48s var(--ease) both; }
.delay-1 { animation-delay: .08s; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* Documentation */
.docs-main { width: min(1040px, calc(100% - 44px)); margin: 0 auto; padding: 72px 0 110px; }
.docs-layout { display: grid; grid-template-columns: 190px minmax(0, 700px); gap: 76px; justify-content: center; align-items: start; }
.docs-sidebar { position: sticky; top: 32px; padding-top: 5px; }
.docs-label { display: block; margin-bottom: 15px; color: #5f585b; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.docs-sidebar nav { display: flex; flex-direction: column; }
.docs-sidebar a { padding: 7px 0; color: #777074; font-size: 12px; transition: color .14s var(--ease), transform .14s var(--ease); }
.docs-sidebar a:hover { color: #d1cbcd; transform: translateX(2px); }
.docs-header { padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.docs-header > span { color: #9e3b4c; font-size: 11px; font-weight: 650; }
.docs-header h1 { margin-top: 9px; font-size: clamp(40px, 6vw, 58px); line-height: 1; font-weight: 680; }
.docs-header p { max-width: 580px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.doc-section { scroll-margin-top: 24px; padding: 46px 0; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 22px; border-bottom: 1px solid var(--line-soft); }
.step-number { color: #5b5356; font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding-top: 4px; }
.doc-section h2 { margin: 0 0 13px; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; font-weight: 650; }
.doc-section h3 { margin: 27px 0 8px; font-size: 14px; font-weight: 650; }
.doc-section p { margin: 0 0 14px; color: #91898c; font-size: 13px; line-height: 1.72; }
.doc-section strong { color: #d7d0d3; font-weight: 620; }
.doc-section code { padding: 2px 5px; border: 1px solid #252024; border-radius: 5px; background: #0c0c0e; color: #b6adb0; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps { margin: 25px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.steps li { min-height: 55px; display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 18px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.steps b { color: #d7d1d3; font-size: 12px; font-weight: 620; }
.steps span { color: #777074; font-size: 12px; line-height: 1.5; }
.path-list { margin: 23px 0; border-top: 1px solid var(--line-soft); }
.path-list > div { min-height: 58px; display: grid; grid-template-columns: 165px minmax(0,1fr); gap: 18px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.path-list > div > code { justify-self: start; }
.path-list span { color: #7b7477; font-size: 12px; line-height: 1.5; }
.doc-note { padding-left: 14px; border-left: 2px solid #71303c; color: #80777a !important; }
.flow-line { margin: 24px 0; padding: 13px 0; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: #8c8386; font-size: 11px; flex-wrap: wrap; }
.flow-line i { color: #4c4548; font-style: normal; }
.code-block { margin: 14px 0 24px; padding: 12px 14px; border: 1px solid #242024; border-radius: 8px; background: #0a0a0c; display: flex; flex-direction: column; gap: 6px; }
.code-block span { color: #655d60; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.code-block code { padding: 0; border: 0; background: transparent; color: #aea5a8; }
.doc-section ul { margin: 11px 0 18px; padding-left: 18px; color: #8e8689; font-size: 13px; line-height: 1.8; }
.choice-row { min-height: 55px; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 18px; align-items: center; border-bottom: 1px solid var(--line-soft); }
.choice-row:first-of-type { margin-top: 20px; border-top: 1px solid var(--line-soft); }
.choice-row b { color: #c44e61; font-size: 12px; }
.choice-row span { color: #7d7578; font-size: 12px; }
.faq { margin-top: 21px; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { padding: 17px 0; cursor: pointer; color: #c9c2c5; font-size: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: #71696c; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 24px 17px 0; margin: 0; }

/* Download page */
.download-main { width: min(760px, calc(100% - 40px)); min-height: calc(100vh - 70px); margin: 0 auto; display: grid; place-items: center; padding: 60px 0 90px; }
.download-page { width: 100%; text-align: center; }
.download-page > img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 20px; }
.download-kicker { display: block; color: #9b3b4b; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
.download-page h1 { margin-top: 10px; font-size: clamp(38px, 7vw, 60px); font-weight: 680; }
.download-page p { margin: 13px 0 27px; color: var(--muted); font-size: 14px; }
.primary-button.large { min-height: 48px; padding: 0 21px; }
.download-meta { margin: 22px 0 15px; display: flex; justify-content: center; align-items: center; gap: 9px; color: #655e61; font-size: 10px; flex-wrap: wrap; }
.download-meta i { width: 3px; height: 3px; border-radius: 50%; background: #483f42; }
.quiet-link.centered { justify-content: center; }

@media (max-width: 900px) {
  .home-hero { min-height: 0; grid-template-columns: 1fr; gap: 48px; padding-top: 72px; }
  .hero-copy { max-width: 590px; }
  .tutorial { max-width: 760px; }
  .docs-layout { grid-template-columns: 1fr; gap: 34px; }
  .docs-sidebar { position: static; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
  .docs-sidebar nav { flex-direction: row; gap: 15px; overflow-x: auto; scrollbar-width: none; }
  .docs-sidebar nav::-webkit-scrollbar { display: none; }
  .docs-sidebar a { white-space: nowrap; }
}

@media (max-width: 650px) {
  .site-header { padding: 11px 10px 0; }
  .pill-nav { height: 46px; grid-template-columns: auto 1fr auto; }
  .brand { height: 36px; padding: 0 8px; }
  .brand span { display: none; }
  .brand img { width: 21px; height: 21px; }
  .nav-links { justify-content: center; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { height: 34px; padding: 0 10px; font-size: 11px; white-space: nowrap; }
  .github-link { width: 36px; height: 36px; }
  .home-main, .docs-main { width: min(100% - 28px, 1120px); }
  .home-hero { padding: 64px 0 54px; gap: 40px; }
  .hero-copy h1 { font-size: clamp(43px, 14vw, 63px); }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .video-frame { border-radius: 10px; }
  .docs-main { padding-top: 48px; }
  .docs-header { padding-bottom: 31px; }
  .doc-section { grid-template-columns: 1fr; gap: 8px; padding: 35px 0; }
  .step-number { padding: 0; }
  .steps li, .path-list > div { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .choice-row { grid-template-columns: 50px minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.primary-button.is-unavailable {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
  background: #33272a;
  border-color: #46363a;
}
.download-meta .is-error { color: #b96b78; }
