:root {
  color-scheme: light;
  --page: #f7f8fa;
  --surface: #fff;
  --surface-soft: #f0f2f5;
  --ink: #17191e;
  --muted: #565f6d;
  --line: #dfe2e8;
  --accent: #315fd2;
  --on-accent: #fff;
  --accent-hover: #234db8;
  --brand-square: #17191e;
  --brand-stroke: #fff;
  --frame-shadow: 0 18px 55px rgb(24 31 47 / 10%), 0 2px 8px rgb(24 31 47 / 6%);
  --ambient-aqua: rgb(71 204 200 / 13%);
  --ambient-blue: rgb(49 95 210 / 12%);
  --ambient-wash: rgb(49 95 210 / 3%);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --page: #15171b;
    --surface: #1d2025;
    --surface-soft: #24282f;
    --ink: #f1f3f6;
    --muted: #a8afbb;
    --line: #343943;
    --accent: #8ba9ff;
    --on-accent: #15171b;
    --accent-hover: #adc2ff;
    --brand-square: #f1f3f6;
    --brand-stroke: #17191e;
    --frame-shadow: 0 18px 55px rgb(0 0 0 / 24%), 0 2px 8px rgb(0 0 0 / 18%);
    --ambient-aqua: rgb(69 204 200 / 17%);
    --ambient-blue: rgb(71 111 226 / 20%);
    --ambient-wash: rgb(71 111 226 / 6%);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #15171b;
  --surface: #1d2025;
  --surface-soft: #24282f;
  --ink: #f1f3f6;
  --muted: #a8afbb;
  --line: #343943;
  --accent: #8ba9ff;
  --on-accent: #15171b;
  --accent-hover: #adc2ff;
  --brand-square: #f1f3f6;
  --brand-stroke: #17191e;
  --frame-shadow: 0 18px 55px rgb(0 0 0 / 24%), 0 2px 8px rgb(0 0 0 / 18%);
  --ambient-aqua: rgb(69 204 200 / 17%);
  --ambient-blue: rgb(71 111 226 / 20%);
  --ambient-wash: rgb(71 111 226 / 6%);
}

:root[data-theme='light'] {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background-color: var(--page);
  background-image:
    radial-gradient(ellipse 72% 560px at 26% 0%, var(--ambient-aqua), transparent 100%),
    radial-gradient(ellipse 68% 620px at 80% 0%, var(--ambient-blue), transparent 100%),
    linear-gradient(180deg, var(--ambient-wash), transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 860px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.wrap {
  width: min(1184px, calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--page);
  border-radius: 6px;
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.brand-mark {
  width: 27px;
  height: 27px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 7px 6px;
  border-radius: 8px;
  background: var(--brand-square);
}
.brand-mark i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-stroke);
}
.brand-mark i:nth-child(2) {
  width: 75%;
}
.brand-mark i:nth-child(3) {
  width: 50%;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.primary-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.16s ease;
}
.primary-nav a:hover,
.footer-nav a:hover {
  color: var(--ink);
}
.primary-nav .nav-github {
  color: var(--ink);
}
.theme-toggle {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--muted);
}
.theme-toggle[hidden] {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
  padding-block: 94px 98px;
}
.hero-copy {
  max-width: 470px;
  padding-bottom: 10px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.095em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}
h1,
h2 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.055em;
}
h1 {
  margin-bottom: 23px;
  font-size: clamp(42px, 4.5vw, 56px);
  line-height: 1.035;
}
.hero-lede {
  max-width: 410px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 620;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button-primary:hover {
  background: var(--accent-hover);
}
.button-quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.button-quiet:hover {
  border-color: var(--muted);
}
.hero-visual {
  min-width: 0;
  margin: 0;
  transform: translateY(12px);
}
.screenshot-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--frame-shadow);
}
.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-visual figcaption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 420px;
  margin: 17px 3px 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.section {
  padding-block: 112px;
}
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.product-visual {
  min-width: 0;
}
.methods-frame {
  border-radius: 9px;
}
.image-caption {
  display: flex;
  gap: 13px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.product-copy {
  padding-block: 20px;
}
.product-copy .eyebrow,
.download-heading .eyebrow {
  margin-bottom: 16px;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.15vw, 49px);
  line-height: 1.1;
}
.section-intro {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.benefits {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.benefit {
  padding: 17px 0 16px;
  border-bottom: 1px solid var(--line);
}
.benefit h3 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.benefit p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.workflow {
  background: var(--surface-soft);
}
.workflow-heading {
  max-width: 610px;
}
.workflow-heading .eyebrow {
  margin-bottom: 16px;
}
.workflow-heading h2 {
  margin-bottom: 16px;
}
.workflow-heading .section-intro {
  max-width: 450px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  margin-top: 62px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding-top: 17px;
}
.step-label {
  margin-bottom: 11px;
  font-size: 14px;
  font-weight: 650;
}
.step > p:last-child {
  max-width: 300px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 620;
}
.text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.workflow-link {
  margin-top: 30px;
}
.download {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(48px, 9vw, 128px);
  align-items: start;
}
.download-heading h2 {
  max-width: 400px;
}
.download-content {
  min-width: 0;
}
.download-source {
  max-width: 350px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.platform-list {
  border-top: 1px solid var(--line);
}
.platform-link {
  display: flex;
  min-height: 63px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 620;
  transition:
    padding 0.16s ease,
    color 0.16s ease;
}
.platform-link:hover {
  padding-inline: 5px;
  color: var(--accent);
}
.platform-link small {
  margin-left: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
}
.platform-arrow {
  color: var(--accent);
  font-size: 18px;
}
.release-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 12px;
}
.signing-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.cli-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.cli-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cli-callout code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.author {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.author-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.author h2 {
  font-size: clamp(34px, 3.5vw, 44px);
}
.author-role {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 550;
}
.author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 92px;
}
.footer-brand {
  font-size: 13px;
}
.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.footer-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 19px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .wrap {
    width: min(100% - 48px, 720px);
  }
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0 22px;
  }
  .primary-nav {
    gap: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 72px 80px;
  }
  .hero-copy {
    max-width: 600px;
  }
  .hero-lede {
    max-width: 520px;
  }
  .hero-visual {
    transform: none;
  }
  .product {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .product-visual {
    max-width: 680px;
  }
  .product-copy {
    max-width: 620px;
  }
  .download {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .download-heading {
    max-width: 620px;
  }
  .author-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-inner {
    grid-template-columns: auto 1fr;
    padding-block: 22px;
  }
  .footer-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 68px;
    gap: 0 10px;
  }
  .brand {
    gap: 8px;
    font-size: 13px;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    padding: 6px 5px;
  }
  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 0 0 13px;
    font-size: 11px;
  }
  .theme-toggle {
    min-height: 44px;
    margin-left: auto;
    padding-inline: 10px;
    font-size: 11px;
  }
  .hero {
    gap: 39px;
    padding-block: 57px 65px;
  }
  .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }
  h1 {
    font-size: clamp(32px, 9.4vw, 42px);
  }
  .hero-lede {
    font-size: 15px;
  }
  .hero-actions {
    align-items: stretch;
  }
  .button {
    min-height: 46px;
    padding-inline: 13px;
    font-size: 12px;
  }
  .hero-visual figcaption {
    margin-top: 12px;
    font-size: 10px;
  }
  .section {
    padding-block: 76px;
  }
  .product {
    gap: 35px;
  }
  h2 {
    font-size: clamp(34px, 9vw, 44px);
  }
  .section-intro {
    font-size: 14px;
  }
  .benefits {
    margin-top: 26px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 45px;
    padding-top: 0;
    border-top: 0;
  }
  .step {
    padding: 0;
  }
  .step-label {
    margin-bottom: 5px;
  }
  .workflow-link {
    margin-top: 22px;
  }
  .download {
    gap: 27px;
  }
  .platform-link {
    min-height: 60px;
    font-size: 13px;
  }
  .platform-link small {
    font-size: 11px;
  }
  .release-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .cli-callout {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-inner {
    gap: 10px 18px;
  }
  .footer-inner > p {
    font-size: 10px;
  }
  .footer-nav {
    gap: 5px 16px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: clamp(28px, 9.3vw, 33px);
  }
}

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