:root {
  color-scheme: light dark;
  --page: #f6f8fc;
  --surface: #fff;
  --ink: #14203a;
  --muted: #4b5b73;
  --line: #d7dfed;
  --blue: #1747d6;
  --link: #1944ba;
  --hero: #0e172b;
  --hero-line: #35425a;
  --hero-ink: #f6f8ff;
  --hero-muted: #becce1;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111a2d;
    --surface: #18233a;
    --ink: #edf2fc;
    --muted: #b9c6da;
    --line: #35445e;
    --link: #a8bdff;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.68;
}
button,
input {
  font: inherit;
}
a {
  color: var(--link);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #759aff;
  outline-offset: 4px;
}
.wrap {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.23;
  letter-spacing: -0.055em;
  word-break: keep-all;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
h3 {
  font-size: clamp(1.55rem, 2.85vw, 2.3rem);
}
[id] {
  scroll-margin-top: 24px;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 6px;
  left: 6px;
  padding: 8px 12px;
  background: var(--surface);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero {
  color: var(--hero-ink);
  background: var(--hero);
}
.site-header {
  border-bottom: 1px solid var(--hero-line);
}
.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 850;
  font-size: 1.15rem;
  white-space: nowrap;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  letter-spacing: -0.04em;
}
.main-nav,
.account-nav,
.download-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a,
.account-nav > a:not(.button),
.text-link {
  color: var(--hero-muted);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover,
.account-nav > a:not(.button):hover,
.text-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  padding: 9px 17px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover {
  background: #123bb8;
}
.button-small {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 0.875rem;
}
.button-outline {
  color: var(--link);
  background: var(--surface);
  border-color: var(--line);
}
.button-outline:hover {
  background: var(--page);
}
.hero {
  padding: clamp(36px, 6vw, 76px) 0 38px;
}
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(2.08rem, 5.7vw, 5rem);
  line-height: 1.09;
  letter-spacing: -0.071em;
}
.hero-lead {
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 580px;
  margin-top: 17px;
  word-break: keep-all;
}
.hero-actions {
  margin-top: 23px;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-flow {
  padding: 0;
  margin: 0 0 3px;
  min-width: 200px;
  list-style: none;
}
.hero-flow li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 0;
  border-top: 1px solid var(--hero-line);
  color: var(--hero-muted);
  font-size: 0.92rem;
}
.hero-flow span {
  color: #a9bfff;
  font:
    700 0.78rem ui-monospace,
    monospace;
}

.shot {
  position: relative;
  display: block;
  border-radius: 12px;
  border: 1px solid #46536b;
  background: #191c22;
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-shot {
  border-radius: 14px;
  box-shadow: 0 18px 55px #02071164;
}
.zoom-label {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 6px;
  padding: 4px 8px;
  background: #10213bee;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.shot:hover .zoom-label {
  background: #1747d6;
}
figcaption {
  padding: 8px 1px 0;
  font-size: 0.83rem;
  color: var(--muted);
}
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--hero-muted);
}

.features {
  padding-block: 64px 26px;
}
.section-heading {
  display: grid;
  gap: 17px;
  padding-bottom: 30px;
}
.feature-nav {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
}
.feature-nav a {
  font-weight: 700;
  text-underline-offset: 4px;
  padding-block: 3px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.81fr) minmax(0, 1.19fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.feature-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.feature-reverse .feature-media {
  grid-column: 1;
  grid-row: 1;
}
.feature-reverse .feature-copy {
  grid-column: 2;
  grid-row: 1;
}
.feature-copy p,
.feature-copy ul {
  color: var(--muted);
  margin-top: 14px;
}
.feature-copy ul {
  margin-bottom: 0;
  padding-left: 18px;
}
.feature-copy li + li {
  margin-top: 11px;
}
.feature-copy strong {
  color: var(--ink);
}
.feature-media {
  min-width: 0;
  align-self: center;
}
.media-stack {
  display: grid;
  gap: 16px;
}
.portrait-media {
  width: min(100%, 475px);
  margin-inline: auto;
}
.endpoint {
  margin-top: 22px;
}
.endpoint label {
  display: block;
  color: var(--ink);
  font-weight: 750;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.endpoint-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.endpoint input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--ink);
  font:
    600 0.9rem ui-monospace,
    monospace;
}
#copy-status {
  display: block;
  min-height: 1.6em;
  font-size: 0.8rem;
  color: var(--muted);
}
.feature-copy .fine-print {
  margin-top: 6px;
  font-size: 0.85rem;
}
.fine-print code {
  font-family: ui-monospace, monospace;
}

.workflow {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 48px 0;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
  list-style: none;
  gap: 22px;
  padding: 0;
  margin: 24px 0 0;
}
.workflow-steps li {
  counter-increment: step;
  border-top: 2px solid var(--line);
  padding-top: 14px;
}
.workflow-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--link);
  font:
    750 0.85rem ui-monospace,
    monospace;
  margin-bottom: 9px;
}
.workflow-steps strong,
.workflow-steps span {
  display: block;
}
.workflow-steps span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.91rem;
}
.download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 46px 50px;
  gap: 20px;
}
.download p {
  color: var(--muted);
  margin-top: 8px;
}
.download-actions {
  flex-wrap: wrap;
  gap: 9px;
}
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 20px 0;
  font-size: 0.85rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
}

.image-dialog {
  width: min(1200px, calc(100% - 28px));
  max-height: 94vh;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.image-dialog::backdrop {
  background: #030816de;
}
.image-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.image-toolbar p {
  font-weight: 750;
}
.image-actions {
  display: flex;
  gap: 7px;
}
#image-scroll {
  max-height: 77dvh;
  overflow: auto;
}
.image-dialog img {
  display: block;
  width: 100%;
  max-height: 77dvh;
  object-fit: contain;
}
#image-scroll.original-size img {
  width: auto;
  max-height: none;
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .main-nav,
  .hero-flow {
    display: none;
  }
  .hero-intro,
  .feature,
  .feature-reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-reverse .feature-media,
  .feature-reverse .feature-copy {
    grid-area: auto;
  }
  .features {
    padding-top: 42px;
  }
  .feature {
    gap: 22px;
    padding-block: 34px;
  }
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .header-inner {
    gap: 8px;
  }
  .brand {
    gap: 7px;
    font-size: 1rem;
  }
  .account-nav {
    gap: 9px;
    font-size: 0.875rem;
  }
  .hero-figure figcaption {
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .shot,
  .hero-shot {
    border-radius: 8px;
  }
}
