:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-soft: #e5e5ea;
  --text: #1c1c1e;
  --muted: #636366;
  --line: rgba(60, 60, 67, 0.18);
  --accent: #007aff;
  --accent-strong: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --link-underline: rgba(0, 122, 255, 0.5);
  --surface-translucent: rgba(255, 255, 255, 0.84);
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --control-radius: 12px;
  --tile-radius: 16px;
  --media-radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-soft: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --line: #38383a;
  --accent: #0a84ff;
  --accent-strong: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.18);
  --link-underline: rgba(10, 132, 255, 0.62);
  --surface-translucent: rgba(28, 28, 30, 0.84);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-soft: #2c2c2e;
    --text: #f5f5f7;
    --muted: #a1a1aa;
    --line: #38383a;
    --accent: #0a84ff;
    --accent-strong: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --link-underline: rgba(10, 132, 255, 0.62);
    --surface-translucent: rgba(28, 28, 30, 0.84);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: none;
}

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

.theme-image__dark {
  display: none;
}

:root[data-theme="dark"] .theme-image__light {
  display: none;
}

:root[data-theme="dark"] .theme-image__dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-image__light {
    display: none;
  }

  :root:not([data-theme]) .theme-image__dark {
    display: block;
  }
}

a {
  color: inherit;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 0.22em;
}

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

.site-header,
.site-footer,
.hero,
.section,
.cta,
.content-page {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 700;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  min-width: 112px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .button--secondary,
:root[data-theme="dark"] .feature,
:root[data-theme="dark"] .screenshot-card,
:root[data-theme="dark"] .detail-list article,
:root[data-theme="dark"] .step,
:root[data-theme="dark"] .content-section,
:root[data-theme="dark"] .roadmap-item,
:root[data-theme="dark"] .faq-list section {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle,
  :root:not([data-theme]) .button--secondary,
  :root:not([data-theme]) .feature,
  :root:not([data-theme]) .screenshot-card,
  :root:not([data-theme]) .detail-list article,
  :root:not([data-theme]) .step,
  :root:not([data-theme]) .content-section,
  :root:not([data-theme]) .roadmap-item,
  :root:not([data-theme]) .faq-list section {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

.theme-toggle__icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

:root[data-theme-mode="system"] .theme-toggle__icon {
  border-radius: 4px;
  background: transparent;
}

:root[data-theme-mode="system"] .theme-toggle__icon::after {
  position: absolute;
  right: 3px;
  bottom: -5px;
  left: 3px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

:root[data-theme-mode="light"] .theme-toggle__icon {
  background: transparent;
}

:root[data-theme-mode="light"] .theme-toggle__icon::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

:root[data-theme-mode="dark"] .theme-toggle__icon {
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.theme-toggle__label {
  min-width: 48px;
  text-align: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
  min-height: calc(100svh - 92px);
  padding: 22px 0 80px;
}

.hero__content {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.2rem;
}

.hero__lead {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 42px 0 0;
}

.stats div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.stats dt {
  font-weight: 900;
}

.stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero__media {
  border: 1px solid var(--line);
  border-radius: var(--media-radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: clamp(12px, 2vw, 22px);
}

.hero__media .theme-image,
.hero__media img {
  width: 100%;
}

.hero__media img {
  max-height: min(760px, calc(100svh - 150px));
  object-fit: contain;
}

.section {
  padding: 74px 0;
}

.section__heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section__copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.feature {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  padding: 24px;
  background: var(--surface);
}

.feature__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 42px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature p,
.detail-list p,
.cta p {
  margin: 12px 0 0;
  color: var(--muted);
}

.screenshots {
  overflow: hidden;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.screenshot-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  padding: 12px;
  background: var(--surface);
}

.screenshot-card .theme-image,
.screenshot-card img {
  width: 100%;
}

.screenshot-card img {
  border-radius: calc(var(--tile-radius) - 2px);
}

:root[data-theme="dark"] .screenshot-card img {
  border: 1px solid #000000;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .screenshot-card img {
    border: 1px solid #000000;
  }
}

.screenshot-card figcaption {
  padding: 12px 2px 2px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.steps {
  display: grid;
  gap: 12px;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list article {
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  padding: 18px;
  background: var(--surface-translucent);
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  padding: 18px;
  background: var(--surface-translucent);
}

.step span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-weight: 900;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface-soft);
}

.cta > div {
  max-width: 720px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.content-page {
  padding: 48px 0 80px;
}

.content-article {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin-inline: auto;
}

.content-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.content-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.content-hero p,
.content-section p,
.roadmap-item p,
.faq-list p {
  color: var(--muted);
}

.content-hero p {
  max-width: 64ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.content-section {
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
}

.content-section h2,
.roadmap-item h2,
.faq-list h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.content-section .button {
  margin-top: 18px;
}

.roadmap-list,
.faq-list {
  display: grid;
  gap: 12px;
}

.roadmap-item,
.faq-list section {
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  padding: clamp(20px, 4vw, 30px);
  background: var(--surface);
}

.roadmap-item p:last-child,
.faq-list p {
  margin-bottom: 0;
}

.content-section li {
  color: var(--muted);
}

.content-section ul,
.content-section ol {
  padding-left: 1.2rem;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
  }

  h1 {
    max-width: 11ch;
  }

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

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

  .feature {
    min-height: auto;
  }

  .feature__icon {
    margin-bottom: 28px;
  }

  .cta,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  .hero,
  .section,
  .cta,
  .content-page {
    width: min(100% - 24px, 1120px);
  }

  .nav-links {
    gap: 18px;
  }

  .theme-toggle {
    min-width: 42px;
    padding: 0;
  }

  .theme-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero__media img {
    max-height: none;
  }

  .step {
    grid-template-columns: 36px 1fr;
    padding: 16px;
  }
}
