:root {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --line: #272727;
  --line-2: #313131;
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: "Geist", system-ui, sans-serif; font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, .heading-1, .heading-2, .heading-3, .heading-4 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; border-radius: 8px; }

/* Text styles */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 8px 12px; background: #FFFFFF; color: #000000; border-radius: 8px; transform: translateY(-200%); transition: transform 300ms var(--ease); }
.skip:focus { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; white-space: nowrap; transition: transform 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease), opacity 300ms var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-light { background: #FFFFFF; color: #000000; }
.btn-light:hover { background: #E5E5E5; }
.btn-dark { background: var(--surface-2); border-color: var(--line-2); }
.btn-dark:hover { background: var(--line); border-color: #3F3F3F; }
.btn i { font-size: 16px; }
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Nav */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 12px; background: rgba(24, 24, 24, 0.72); border: 1px solid var(--line); border-radius: 16px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #FFFFFF; color: #000000; font-size: 12px; line-height: 16px; font-weight: 700; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 4px 12px; border-radius: 8px; color: var(--muted); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--line); }
.nav-cta { border-radius: 8px; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 500ms var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 96px 24px 48px; opacity: 0; transition: opacity 500ms var(--ease); }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(2) { transition-delay: 60ms; }
.mobile-menu.is-open li:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.is-open li:nth-child(4) { transition-delay: 180ms; }

/* Layout */
main > section { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.hero { padding-top: 160px !important; padding-bottom: 96px !important; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 9999px; color: var(--muted); margin-bottom: 24px; }
.eyebrow i { font-size: 16px; color: var(--text); }
.hero h1, .hero-sub { max-width: 680px; }
.hero-sub { color: var(--muted); margin-top: 24px; }
.hero-actions { margin-top: 32px; }
.proof { margin-top: 24px; display: flex; align-items: center; gap: 8px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.proof > span:not(.dot) { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.proof i { font-size: 16px; color: var(--text); }
.dot { width: 4px; height: 4px; border-radius: 9999px; background: var(--line-2); }
.icon-strip { margin-top: 64px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.icon-strip img { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--line-2); color: var(--muted); transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.chip:hover { color: var(--text); }
.chip:active { transform: scale(0.98); }
.chip.is-on { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; transition: transform 500ms var(--ease), border-color 300ms var(--ease), opacity 300ms var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card[hidden] { display: none; }
.card-top { display: flex; gap: 16px; align-items: center; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; border: 1px solid var(--line); }
.desc { flex: 1; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: block; border-radius: 8px; transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: scale(0.98); }
.badge img { height: 40px; width: auto; }
.downloads { display: flex; gap: 8px; flex-wrap: wrap; }
.site-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); border-radius: 0; transition: color 300ms var(--ease); }
.site-link:hover { color: var(--text); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 24px; border: 1px solid var(--line); border-radius: 24px; color: var(--muted); }
.empty[hidden] { display: none; }
.empty i { font-size: 32px; }

.tagline { padding-top: 96px !important; padding-bottom: 96px !important; display: flex; justify-content: center; text-align: center; }
.tagline p { max-width: 680px; }
.reveal-words .w { color: rgba(255, 255, 255, 0.3); transition: color 500ms var(--ease); }
.reveal-words .w.on { color: #FFFFFF; }

.install { padding-top: 96px !important; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: var(--line); margin-bottom: 8px; }

.faq { padding-top: 96px !important; }
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; max-width: 768px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color 300ms var(--ease); }
details[open] { border-color: var(--line-2); }
summary { list-style: none; cursor: pointer; padding: 16px 24px; display: flex; justify-content: space-between; gap: 16px; border-radius: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); transition: transform 500ms var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 16px; }

.final { padding-top: 96px !important; padding-bottom: 96px !important; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }

.footer { max-width: 1152px; margin: 0 auto; padding: 32px 24px 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer ul { display: flex; gap: 16px; }
.footer a { color: var(--muted); transition: color 300ms var(--ease); }
.footer a:hover { color: var(--text); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal pages */
.doc { max-width: 680px; margin: 0 auto; padding: 160px 24px 96px; }
.doc h1 { margin-bottom: 24px; }
.doc h2 { margin: 32px 0 8px; }
.doc p { color: var(--muted); margin-bottom: 12px; }
.doc a.back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 32px; color: var(--muted); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav { gap: 64px; }
  main > section { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 128px !important; padding-bottom: 64px !important; }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .hero h1 br, .proof .dot { display: none; }
  .proof { column-gap: 16px; row-gap: 4px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .heading-4 { font-size: 24px; line-height: 32px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .icon-strip { gap: 8px; margin-top: 48px; }
  .icon-strip img { width: 40px; height: 40px; border-radius: 12px; }
  .tagline, .install, .faq, .final { padding-top: 64px !important; }
  .tagline, .final { padding-bottom: 64px !important; }
  .footer { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: opacity, color, background-color, border-color !important; }
  .reveal { transform: none; }
  .btn:hover, .card:hover, .badge:hover { transform: none; }
  .mobile-menu li { transform: none; }
}
