:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #5b5bf0;
  --accent-fg: #ffffff;
  --glass: rgba(251, 251, 253, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 64px rgba(0, 0, 0, 0.10);
  --glow: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(91, 91, 240, 0.14), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0e;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --card: #16161a;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #8a8aff;
    --accent-fg: #0b0b0e;
    --glass: rgba(11, 11, 14, 0.68);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
    --glow: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(138, 138, 255, 0.18), transparent 70%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 100%/1.55 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main, footer { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Translucent header: content scrolls under it */
header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem max(1.25rem, calc((100% - 60rem) / 2 + 1.25rem));
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  font-weight: 600; letter-spacing: -0.01em;
}
header img { width: 1.5rem; height: 1.5rem; }
header { transition: box-shadow 200ms ease; }
header.scrolled { box-shadow: 0 1px 0 var(--border); }
header nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; font-weight: 400; font-size: 0.875rem; }
header nav a:not(.button) { color: var(--fg); opacity: 0.8; }
header nav a:not(.button):hover { opacity: 1; text-decoration: none; }

/* Header download: materializes from the right once the hero button is gone */
.button-sm { padding: 0.4rem 0.95rem; font-size: 0.8125rem; }
.header-cta {
  opacity: 0; transform: scale(0.92); pointer-events: none;
  margin-left: -0.5rem; max-width: 0; overflow: hidden; white-space: nowrap;
  transform-origin: right center;
  transition: opacity 250ms ease, transform 350ms cubic-bezier(0.2, 0.9, 0.3, 1), max-width 350ms cubic-bezier(0.2, 0.9, 0.3, 1), margin 350ms ease;
}
header.show-cta .header-cta { opacity: 1; transform: none; pointer-events: auto; max-width: 8rem; margin-left: 0; }

/* Type: tracking tightens and leading closes as size grows */
h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 700;
  margin: 1.5rem auto 1rem; max-width: 18ch;
  text-wrap: balance;
}
h2 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; margin: 5rem 0 0.75rem; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
p { max-width: 38rem; }
.small { font-size: 0.8125rem; letter-spacing: 0.01em; color: var(--muted); }

.hero { text-align: center; padding: 5rem 0 2rem; background: var(--glow); }
.hero p { margin-inline: auto; }
.hero > img { width: 6rem; height: 6rem; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18)); }
.lede {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.4;
  color: var(--muted); margin: 0 auto 2rem; text-wrap: balance;
}

/* Buttons respond on press, not release */
.button {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 980px;
  background: var(--accent); color: var(--accent-fg); font-weight: 600;
  transition: transform 100ms ease-out, filter 150ms ease;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button:active { transform: scale(0.97); }

.demo {
  margin: 3.5rem auto 0; aspect-ratio: 16 / 9; border-radius: 1.25rem;
  border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; color: var(--muted); overflow: hidden;
}
.demo video { width: 100%; height: 100%; object-fit: cover; }

/* Feature rows: text beside a media card, alternating sides */
.feature {
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 3rem;
  margin-top: 7rem;
}
.feature:nth-of-type(odd) { grid-template-columns: 1.25fr 1fr; }
.feature:nth-of-type(odd) .feature-text { order: 2; }
.feature h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 1rem; }
.feature-text p { font-size: 1.125rem; line-height: 1.55; color: var(--muted); margin: 0; }
.feature-media {
  aspect-ratio: 4 / 3; border-radius: 1.5rem; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #e6e9f7 0%, #9fb3e0 55%, #3a5aa8 100%);
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); font-size: 0.875rem;
  overflow: hidden;
}
.feature-media video, .feature-media img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-color-scheme: dark) {
  .feature-media { background: linear-gradient(160deg, #2a2f4a 0%, #26346b 55%, #101a3d 100%); }
}
@media (max-width: 720px) {
  .feature, .feature:nth-of-type(odd) { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 4.5rem; }
  .feature:nth-of-type(odd) .feature-text { order: 0; }
}

/* Centered sections */
.centered { text-align: center; margin-top: 7rem; }
.centered h2 { margin-top: 0; }
.centered p { margin-inline: auto; font-size: 1.125rem; color: var(--muted); }
.centered .demo { margin-top: 2rem; }
.support {
  background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem;
  padding: 3.5rem 1.5rem; box-shadow: var(--shadow-sm);
}
.faq { max-width: 38rem; margin: 7rem auto 0; }
.faq h2 { margin-top: 0; text-align: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 4rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1.125rem;
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

details { border-bottom: 1px solid var(--border); padding: 1rem 0; max-width: 38rem; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform 200ms ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0.5rem 0 0; }

footer {
  margin-top: 6rem; padding-top: 2rem; padding-bottom: 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.8125rem; display: flex; gap: 1.25rem; flex-wrap: wrap;
}
footer a { color: var(--muted); }
.prose { padding: 3rem 1.25rem; }
.prose h1 { margin-left: 0; font-size: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, summary::after, .header-cta, header { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --border: currentColor; --muted: var(--fg); }
  header { background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--fg); }
}
