:root {
  color-scheme: dark;
  --canvas: #12101c;
  --canvas-alt: #16151d;
  --surface: #1e1d27;
  --surface-hover: #252433;
  --line: #2e2c3a;
  --ink: #f4f2fb;
  --ink-muted: #9b97ad;
  --brand: #a78bfa;
  --brand-strong: #8b5cf6;
  --brand-soft: #2a2448;
  --on-brand: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
  --header-h: 64px;
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--brand-soft);
  color: var(--ink);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

pre {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
  color: var(--ink);
}

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

.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--brand-strong);
  color: var(--on-brand);
  border-radius: 8px;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  clip: auto;
  overflow: visible;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-strong);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: #7c4eef;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-small {
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  color: var(--ink-muted);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 11px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 360px at 0% 20%, rgba(217, 70, 239, 0.1), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.lede {
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-shot {
  margin: 0;
}

.hero-shot img,
.demo-step figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: var(--surface);
}

.hero-shot figcaption,
.demo-step figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--canvas-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 0.6rem;
}

.feature-grid li:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.demo-step {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.2rem;
  align-items: center;
}

.demo-step-reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.demo-step-reverse .demo-copy {
  order: 2;
}

.demo-step figure {
  margin: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.download-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.download-card .btn {
  align-self: flex-start;
  margin: 0.5rem 0 0.2rem;
}

.download-card pre {
  margin-top: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.download-card.recommended {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-strong) 40%, transparent);
}

.os-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.download-card h3 {
  margin-bottom: 0.2rem;
}

.recommended-badge {
  display: none;
  align-self: flex-start;
  margin: 0 0 0.2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 650;
}

.download-card.recommended .recommended-badge {
  display: inline-flex;
}

.tables {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.4rem;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap h3 {
  margin-bottom: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-links {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.about-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 0.9rem;
}

.about-name {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.about-card p {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .hero-inner,
  .demo-step,
  .demo-step-reverse,
  .tables,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .demo-step-reverse .demo-copy {
    order: 0;
  }

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

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

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 20px 1rem;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
  }

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

  .hero {
    padding-top: 2.5rem;
  }
}

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