:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-muted: #f4f4f5;
  --text: #09090b;
  --text-soft: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --nav-active: #ececef;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.04);
  --btn: #18181b;
  --btn-text: #fafafa;
  --accent-a: #6b7dff;
  --accent-b: #9aaee8;
  --heading: #8ea0d8;
  --blob-a: #80e6ff;
  --blob-b: #9089fc;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --green-text: #166534;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 64px;
  --max: 1120px;
}

html.dark {
  --bg: #09090b;
  --bg-soft: #111114;
  --bg-muted: #18181b;
  --text: #fafafa;
  --text-soft: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #71717a;
  --border: #27272a;
  --border-strong: #3f3f46;
  --nav-active: #27272a;
  --card: #18181b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.25);
  --btn: #fafafa;
  --btn-text: #09090b;
  --heading: #b4c2ee;
  --green-bg: #14532d;
  --green-text: #bbf7d0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font-family: inherit; }

.gradient-text {
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent-a) 70%, white), color-mix(in oklab, var(--accent-b) 80%, white) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.dark .gradient-text {
  background: linear-gradient(90deg, #9aa8ff, #c5d0f5 55%);
  -webkit-background-clip: text;
  background-clip: text;
}

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

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

.site-header .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
}

.nav a.is-active,
.nav a:hover {
  background: var(--nav-active);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover { background: var(--nav-active); }

.stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
}

.stars:hover { background: var(--nav-active); }

.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  text-decoration: none;
  background: var(--btn);
  color: var(--btn-text);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.btn:hover { opacity: 0.9; }

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-play {
  background: #111;
  color: #fff;
  gap: 10px;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  color: var(--text-soft);
  background: color-mix(in oklab, var(--bg) 80%, white);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 24px;
}

.blob {
  pointer-events: none;
  position: absolute;
  width: 42rem;
  height: 28rem;
  border-radius: 999px;
  background: linear-gradient(to top right, var(--blob-a), var(--blob-b));
  opacity: 0.28;
  filter: blur(8px);
  transform: rotate(30deg);
}

.blob-a { top: -8rem; left: 8%; }
.blob-b { right: -10rem; bottom: -8rem; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
  min-height: 560px;
}

.lede {
  font-size: 18px;
  color: var(--text);
  max-width: 40rem;
  margin: 0 auto 22px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
}

.hero .lede {
  margin: 0 0 22px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 10px;
}

.version {
  color: var(--muted);
  font-size: 14px;
}

.fineprint {
  color: var(--faint);
  font-size: 13px;
  margin-top: 10px;
}

.fineprint a { color: var(--muted); }

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(620px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.18));
}

.badge-card {
  display: inline-flex;
  border: 1px solid color-mix(in oklab, #7c3aed 35%, var(--border));
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  margin: 8px 0 4px;
}

.badge-card .laurel {
  padding: 10px 12px;
  font-size: 20px;
}

.badge-card .copy {
  padding: 8px 14px 8px 0;
}

.badge-card small {
  display: block;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--muted);
}

.badge-card strong {
  font-size: 14px;
}

.section {
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.section h2 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.section .sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 40rem;
}

.center { text-align: center; }
.center .sub { margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.feature {
  text-align: center;
  padding: 8px;
}

.feature .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent-a) 10%, var(--bg-muted));
  color: var(--accent-a);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.shot {
  margin-top: 28px;
  border-radius: 28px;
  overflow: hidden;
  background: #0b0b0d;
}

.shot img {
  width: 100%;
  object-fit: cover;
  max-height: 640px;
}

.stat {
  text-align: center;
  padding: 24px 0 8px;
}

.stat .num {
  font-size: clamp(52px, 8vw, 84px);
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
}

.cta-band .hero-cta { justify-content: center; }

.faq-list {
  max-width: 760px;
  margin: 28px auto 0;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 18px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}

.faq-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-item .faq-body {
  color: var(--muted);
  padding: 0 0 16px;
}

.donors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.donor {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--card);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.donor strong { display: block; font-size: 14px; }
.donor span { color: var(--muted); font-size: 13px; }

.community {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card:hover { border-color: var(--border-strong); }

.card h3 { margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); }

.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin: 24px 0;
}

.sponsors img { height: 36px; width: auto; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.site-footer a { color: var(--muted); }

.legal-links {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.page-hero {
  padding: 64px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}

.chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--muted);
}

.chip.ok {
  background: var(--green-bg);
  color: var(--green-text);
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2, .prose h3 { letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text-soft); }
.prose a { color: var(--accent-a); }

.steps {
  display: grid;
  gap: 12px;
  margin: 20px 0 32px;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.abi, .platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.abi-card, .platform-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: var(--card);
}

.abi-card.recommended { border-color: color-mix(in oklab, var(--accent-a) 40%, var(--border)); }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.dl-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: var(--card);
  text-align: left;
}

.dl-card .os { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.dl-card .size { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

.tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: 999px;
  width: fit-content;
  margin: 8px 0 18px;
}

.tabs button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.tabs button.is-active { background: var(--card); box-shadow: var(--shadow); }

.hidden { display: none !important; }

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

.docs-side a {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}

.docs-side a.is-active,
.docs-side a:hover {
  background: var(--nav-active);
  color: var(--text);
}

.docs-side h4 {
  margin: 18px 10px 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.callout {
  border: 1px solid var(--border);
  background: var(--bg-muted);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0;
}

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: 24px;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
}

.dropzone.is-over { border-color: var(--accent-a); background: color-mix(in oklab, var(--accent-a) 8%, var(--bg)); }

.playlist-list { display: grid; gap: 8px; margin: 16px 0; }

.playlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.blog-list { display: grid; gap: 14px; margin-top: 28px; }

.blog-item {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: var(--card);
}

.blog-item time { color: var(--muted); font-size: 13px; }
.blog-item h3 { margin: 6px 0; }

.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.policy-page {
  background: var(--bg);
}

.policy-doc {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding: 48px 0 96px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 4px 0 4px 18px;
  border-left: 1px solid var(--border);
}

.policy-toc p {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.policy-toc .policy-docs {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.policy-toc .policy-docs a.is-current {
  color: var(--text);
  font-weight: 600;
}

.policy-toc nav {
  display: grid;
  gap: 2px;
}

.policy-toc a {
  display: block;
  text-decoration: none;
  padding: 6px 0 6px 2px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -20px;
  padding-left: 18px;
}

.policy-toc a:hover {
  color: var(--text);
}

.policy-toc a.is-active {
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--text);
}

.policy-article {
  max-width: 720px;
}

.policy-masthead {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.policy-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.policy-masthead h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  font-weight: 700;
}

.policy-lead {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
  max-width: 42em;
}

.policy-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 0;
}

.policy-facts dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.policy-facts dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--text);
}

.policy-article section {
  padding: 40px 0 8px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.policy-article section + section {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.policy-article h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.policy-article h2 span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 1.8em;
}

.policy-article p,
.policy-article li {
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.75;
}

.policy-article p { margin: 0 0 16px; }
.policy-article p:last-child { margin-bottom: 0; }

.policy-article ul {
  margin: 8px 0 16px;
  padding-left: 1.2em;
}

.policy-article a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.policy-article a:hover {
  text-decoration-color: var(--text);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 15px;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.policy-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.policy-table td:first-child {
  color: var(--text);
  width: 42%;
  padding-right: 16px;
}

.policy-notice {
  margin: 8px 0 20px;
  padding: 14px 0 14px 16px;
  border-left: 2px solid var(--text);
}

.policy-notice p {
  margin: 0;
  font-size: 15.5px;
}

.policy-uses {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: use;
}

.policy-uses li {
  position: relative;
  padding: 16px 0 16px 36px;
  border-top: 1px solid var(--border);
  counter-increment: use;
}

.policy-uses li::before {
  content: counter(use, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.policy-contact {
  font-style: normal;
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.policy-contact strong {
  display: block;
  margin-bottom: 6px;
}

.policy-contact a {
  color: var(--text);
}

@media (max-width: 980px) {
  .policy-doc {
    width: min(720px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 72px;
  }
  .policy-toc {
    position: static;
    border-left: 0;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border);
  }
  .policy-toc a {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .policy-toc a.is-active {
    border-left-color: transparent;
  }
  .policy-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 980px) {
  .hero-grid, .split, .features, .donors, .community, .dl-grid, .docs-layout, .abi, .platforms {
    grid-template-columns: 1fr;
  }
  .features { grid-template-columns: 1fr 1fr; }
  .donors { grid-template-columns: 1fr 1fr; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    align-items: stretch;
  }
  .menu-toggle { display: grid; }
  .hero-grid { min-height: auto; }
  .hero { padding-top: 24px; }
}

@media (max-width: 640px) {
  .features, .donors, .community { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
}
