:root {
  color-scheme: light dark;
  --color-bg: #1f1f1f;
  --color-panel: #282828;
  --color-surface: #383838;
  --color-surface-strong: #404040;
  --color-text: #ffffffe0;
  --color-text-secondary: #ffffffa3;
  --color-border: #ffffff3d;
  --color-border-subtle: #ffffff1f;
  --color-accent: #7c66ff;
  --color-accent-hover: #8c78ff;
  --color-accent-text: #b4a9ff;
  --color-accent-solid: #6750e8;
  --color-accent-solid-hover: #5941d6;
  --color-accent-soft: #28238c;
  --color-on-accent: #fff;
  --shadow-panel: 0 12px 32px -8px rgb(0 0 0 / 60%), 0 4px 8px -4px rgb(0 0 0 / 40%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #fff;
    --color-panel: #f7f7f9;
    --color-surface: #f7f7f9;
    --color-surface-strong: #fff;
    --color-text: #000;
    --color-text-secondary: #000000a3;
    --color-border: #0000001f;
    --color-border-subtle: #00000012;
    --color-accent-soft: #f2f0ff;
    --color-accent-text: #5b43d6;
    --shadow-panel: 0 12px 32px -8px rgb(0 0 0 / 18%), 0 4px 8px -4px rgb(0 0 0 / 10%);
  }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-bg);
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-subtle);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 28px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 560;
}

nav a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 5px;
}

.hero {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: auto;
  margin: 0 auto;
  padding: 72px 0 112px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

h1 {
  max-width: 650px;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(48px, 5.6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 590px;
  margin: 28px auto 0;
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.actions {
  display: flex;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 650;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-on-accent);
  background: var(--color-accent-solid);
}

.button-primary:hover {
  background: var(--color-accent-solid-hover);
}

.button-secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.platforms {
  margin: 18px 0 0;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.product-shot {
  position: relative;
  isolation: isolate;
  margin: 0;
}

.product-shot-controls {
  display: flex;
  width: fit-content;
  margin: 0 0 12px auto;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-panel);
}

.product-shot-controls button {
  min-width: 62px;
  padding: 7px 12px;
  border: 0;
  border-radius: 5px;
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.product-shot-controls button[aria-pressed="true"] {
  color: var(--color-text);
  background: var(--color-surface-strong);
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
}

.product-shot-controls button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.product-shot::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: 12px;
  background: var(--color-accent);
  content: "";
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-panel);
}

.product-shot picture {
  display: block;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
  border-top: 1px solid var(--color-border-subtle);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-heading h2,
.developer-section h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  margin: 20px 0 0;
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

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

.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-panel);
}

.feature-card-wide {
  background: var(--color-surface);
}

.feature-index {
  color: var(--color-accent-text);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 56px 0 12px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.feature-card p {
  max-width: 510px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.feature-card-dark {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.feature-card-dark h3 {
  margin-top: 32px;
}

.feature-card-dark p {
  color: var(--color-text-secondary);
}

.feature-card-dark a {
  display: inline-block;
  margin-top: 24px;
  color: var(--color-accent-text);
  font-size: 14px;
  font-weight: 650;
}

.download-section {
  width: auto;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1180px) / 2));
  padding-left: max(24px, calc((100vw - 1180px) / 2));
  background: var(--color-panel);
}

.section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  display: flex;
  min-height: 184px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  flex-direction: column;
  background: var(--color-bg);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.download-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-panel);
}

.download-platform {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.download-card strong {
  margin-top: 8px;
  color: var(--color-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.download-card > span:last-child {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  color: var(--color-accent-text);
  font-size: 14px;
  font-weight: 650;
}

.download-card b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent-soft);
}

.release-link {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 620;
}

.dev-download {
  display: flex;
  max-width: 920px;
  margin: 44px auto 0;
  padding: 32px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  gap: 32px;
  background: var(--color-surface);
}

.dev-download .eyebrow {
  margin-bottom: 12px;
}

.dev-download h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.dev-download p:not(.eyebrow) {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.dev-download .button {
  flex: none;
  gap: 8px;
  white-space: nowrap;
}

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

.developer-section {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
}

.code-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: #ffffffe0;
  background: #1f1f1f;
  box-shadow: var(--shadow-panel);
}

.code-card-header {
  display: flex;
  height: 48px;
  padding: 0 20px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #ffffff3d;
  background: #282828;
}

.code-card-header span {
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: #ffffff3d;
}

.code-card-header span:first-child {
  background: #7c66ff;
}

.code-card pre {
  margin: 0;
  padding: 34px 30px;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.8;
}

.code-muted {
  color: #ffffffa3;
}

.code-card a {
  display: block;
  padding: 18px 30px;
  border-top: 1px solid #ffffff3d;
  color: #b4a9ff;
  font-size: 14px;
  font-weight: 650;
}

footer {
  padding: 64px 0;
  border-top: 1px solid var(--color-border-subtle);
  background: var(--color-panel);
}

.footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  align-items: flex-end;
  justify-content: space-between;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

@media (max-width: 1000px) {
  .hero {
    min-height: auto;
    padding-top: 56px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .developer-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .dev-download {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .site-header,
  .hero,
  .section,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 68px;
  }

  nav {
    gap: 16px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 52px 0 72px;
    gap: 40px;
  }

  h1 {
    font-size: 48px;
  }

  .lead {
    font-size: 16px;
  }

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

  .section {
    padding: 80px 0;
  }

  .feature-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 250px;
    padding: 28px;
  }

  .feature-card h3 {
    margin-top: 56px;
  }

  .download-section {
    width: auto;
    padding-right: 16px;
    padding-left: 16px;
  }

  .dev-download {
    padding: 24px;
    gap: 24px;
  }

  .dev-download .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 36px;
  }
}

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

  .button,
  .download-card {
    transition: none;
  }
}
