:root {
  --bg: #0E1116;
  --bg-grad: #0A0D12;
  --surface: #161A21;
  --text: #E6E9EF;
  --text-muted: #8A94A6;
  --accent: #4C8BF5;
  --accent-hover: #6BA2FF;
  --accent-contrast: #FFFFFF;
  --border: #242A33;
  --radius: 14px;
  --max-width: 1080px;
  --shot-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --bg-grad: #F4F6FB;
    --surface: #F7F8FB;
    --text: #0E1116;
    --text-muted: #5A6478;
    --border: #E2E6EE;
    --shot-shadow: 0 30px 80px -20px rgba(14, 17, 22, 0.18);
  }
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 800px at 50% -10%, var(--bg) 0%, var(--bg-grad) 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px 32px;
}

.hero {
  text-align: center;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.logo {
  width: clamp(72px, 10vw, 96px);
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 20px;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 auto 20px;
  max-width: 18ch;
}

.sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 36px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 120ms ease, transform 120ms ease;
  box-shadow: 0 4px 24px -8px rgba(76, 139, 245, 0.6);
}
.cta:hover { background: var(--accent-hover); }
.cta:active { transform: translateY(1px); }
.cta[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }

.meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}
.meta .dot { opacity: 0.7; }
.meta #meta-version:empty { display: none; }
.meta #meta-version:empty + #meta-platforms { margin-left: 0; }

.alt-platform { display: inline; position: relative; }
.alt-platform summary {
  display: inline;
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.alt-platform summary::-webkit-details-marker { display: none; }
.alt-platform summary:hover { color: var(--accent-hover); }
.alt-platform[open] summary { color: var(--accent-hover); }
.alt-platform ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  min-width: 220px;
}
.alt-platform ul a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 4px 6px;
  border-radius: 8px;
}
.alt-platform ul a:hover { background: var(--bg); color: var(--accent); }

.frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shot-shadow);
  overflow: hidden;
  margin: 0;
}
.frame .chrome {
  display: none;
  height: 28px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.frame .chrome span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}
html.is-mac .frame .chrome { display: flex; }
html.is-mac .frame .chrome span:nth-child(1) { background: #FF5F57; }
html.is-mac .frame .chrome span:nth-child(2) { background: #FEBC2E; }
html.is-mac .frame .chrome span:nth-child(3) { background: #28C840; }
.frame .shot-svg,
.frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.shot-hero {
  position: relative;
  isolation: isolate;
  max-width: var(--max-width);
  margin: 0 auto clamp(64px, 8vw, 112px);
}
.shot-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 40%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(76, 139, 245, 0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8vw, 112px);
  padding-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--border);
}
.feature-rows .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-rows .row { grid-template-columns: 1fr 1.3fr; gap: 56px; }
  .feature-rows .row:nth-child(even) .row-copy { order: 2; }
}
.feature-rows .row-copy h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.feature-rows .row-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 44ch;
  line-height: 1.55;
}
.feature-rows code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

footer {
  padding: 32px 24px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
footer p { margin: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
footer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--accent); }
footer #footer-version:empty { display: none; }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
