:root {
  --page: #ffffff;
  --surface: #f5f7f9;
  --surface-strong: #eceff2;
  --ink: #15171a;
  --muted: #626a73;
  --line: #dce1e6;
  --accent: #0878d1;
  --accent-strong: #005fa8;
  --local: #18735f;
  --shadow: 0 18px 50px rgba(21, 23, 26, 0.12);
  --content: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(8, 120, 209, 0.35);
  outline-offset: 3px;
}

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

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

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 225, 230, 0.85);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.content-width {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 8px;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-footer a:hover {
  color: var(--ink);
}

.hero {
  padding: 54px 20px 42px;
  text-align: center;
}

.hero-inner {
  width: min(100%, 760px);
  margin-inline: auto;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(21, 23, 26, 0.14);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 8px;
  font-size: 64px;
  font-weight: 760;
  line-height: 1.05;
}

.hero-lead {
  margin-bottom: 14px;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.3;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.demo-section {
  padding: 18px 0 70px;
  background: var(--surface);
}

.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #cfd5db;
  border-radius: 8px;
  background: #e8ebee;
  box-shadow: var(--shadow);
}

.demo-poster,
.demo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-video[hidden],
.demo-poster[hidden],
.demo-overlay[hidden] {
  display: none;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: rgba(17, 20, 24, 0.54);
  pointer-events: none;
}

.play-control {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
}

.demo-overlay-copy {
  display: grid;
  text-align: left;
}

.demo-overlay-copy strong {
  font-size: 17px;
}

.demo-overlay-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.demo-caption {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.download-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.download-link {
  display: flex;
  width: 214px;
  min-height: 62px;
  align-items: center;
  gap: 13px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.download-link:not(.is-disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 23, 26, 0.14);
}

.download-link--store {
  color: #ffffff;
  background: var(--ink);
}

.download-link--store img {
  filter: invert(1);
}

.download-link--github {
  color: var(--ink);
  background: #ffffff;
}

.download-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.download-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.download-copy small {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-copy strong {
  font-size: 19px;
  line-height: 1.25;
}

.feature-band {
  padding: 86px 0 92px;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.feature-grid article {
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.feature-grid article:first-child {
  border-color: var(--accent);
}

.feature-grid article:nth-child(2) {
  border-color: var(--local);
}

.feature-grid h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.trust-line {
  margin: 54px 0 0;
  color: var(--local);
  font-size: 15px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.document-main {
  padding: 74px 20px 96px;
}

.document {
  width: min(100%, 760px);
  margin-inline: auto;
}

.document-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  margin-bottom: 14px;
  font-size: 46px;
  line-height: 1.15;
}

.document-header > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
}

.document section {
  padding-top: 42px;
}

.document h2 {
  margin-bottom: 14px;
  font-size: 25px;
  line-height: 1.3;
}

.document p,
.document li {
  color: #3f464e;
}

.document ul,
.document ol {
  padding-left: 24px;
}

.document li + li {
  margin-top: 9px;
}

.document a {
  color: var(--accent-strong);
  font-weight: 650;
}

.document-related {
  margin: 52px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.not-found {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
  text-align: center;
}

.not-found img {
  margin-bottom: 24px;
  border-radius: 17px;
}

.not-found h1 {
  margin-bottom: 10px;
  font-size: 42px;
}

.not-found > p:not(.eyebrow) {
  color: var(--muted);
}

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 7px;
  color: #ffffff;
  background: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .content-width {
    width: min(calc(100% - 28px), var(--content));
  }

  .header-inner {
    min-height: 62px;
  }

  .brand span {
    display: none;
  }

  .site-nav {
    gap: 20px;
  }

  .hero {
    padding: 42px 16px 34px;
  }

  .hero-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 18px;
    border-radius: 19px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 23px;
  }

  .hero-description {
    font-size: 16px;
  }

  .demo-section {
    padding-top: 14px;
    padding-bottom: 54px;
  }

  .demo-frame {
    aspect-ratio: 4 / 3;
  }

  .download-actions {
    align-items: center;
    flex-direction: column;
  }

  .download-link {
    width: min(100%, 300px);
  }

  .feature-band {
    padding: 64px 0 70px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .trust-line {
    margin-top: 40px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
  }

  .document-main {
    padding: 52px 18px 72px;
  }

  .document-header h1 {
    font-size: 36px;
  }
}

@media (max-width: 430px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .demo-overlay {
    gap: 10px;
  }

  .play-control {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .download-link {
    transition: none;
  }
}
