:root {
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --text: #15172A;
  --soft: #5A5F78;
  --line: #E3E1DC;
  --accent: #3A2DB0;
  --accent-soft: #EDEBFF;
  --stage: #0E1120;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1120;
    --surface: #181C34;
    --text: #F3F1EC;
    --soft: #AEB3CC;
    --line: #262B4A;
    --accent: #9A8CFF;
    --accent-soft: #231F4D;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
header.top .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); text-decoration: none;
}
header.top .brand img { width: 32px; height: 32px; }
header.top nav a { margin-left: 20px; color: var(--soft); text-decoration: none; font-size: 15px; }
header.top nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 56px 0 40px; }
.hero img.icon { width: 112px; height: 112px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 18px 0 14px; letter-spacing: -0.02em; }
.hero p { font-size: 20px; color: var(--soft); max-width: 640px; margin: 0 auto 28px; }

.button {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600;
}
/* Before release: the same shape, but not a link. */
.button.soon { background: var(--accent-soft); color: var(--accent); cursor: default; }
.note { font-size: 14px; color: var(--soft); margin-top: 12px; }

/* A drawing of the split screen, so the page shows the idea before a video exists. */
.preview {
  margin: 40px auto 0; max-width: 860px; aspect-ratio: 16 / 10;
  border-radius: 18px; overflow: hidden; position: relative;
  background: radial-gradient(ellipse at 50% 55%, #1A1F33 0%, #03030A 75%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.preview .box {
  position: absolute; left: 5%; top: 21%; width: 29%; height: 58%;
  background: linear-gradient(#5B6274, #2B2F3C);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.preview .box::before {
  content: ""; position: absolute; left: 34%; top: 14%; width: 32%; aspect-ratio: 1;
  border-radius: 50%; background: #D9A887;
}
.preview .box::after {
  content: ""; position: absolute; left: 18%; bottom: 0; width: 64%; height: 46%;
  border-radius: 40% 40% 0 0; background: #232733;
}
.preview .slide {
  position: absolute; left: 38%; top: 24%; width: 57%; height: 52%;
  background: #F2F1EC;
}
.preview .slide::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24%; background: #3A2DB0;
}
.preview .slide::after {
  content: ""; position: absolute; left: 8%; top: 38%; width: 60%; height: 8%;
  background: #C9C7C0; box-shadow: 0 2.4em 0 #C9C7C0, 0 4.8em 0 #DEDCD5;
  font-size: 10px;
}

section.features { padding: 64px 0 24px; }
section.features h2 { text-align: center; font-size: 32px; margin: 0 0 32px; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--soft); font-size: 16px; }

.private {
  margin: 48px 0; padding: 28px; border-radius: 16px; background: var(--accent-soft); text-align: center;
}
.private h2 { margin: 0 0 8px; font-size: 24px; }
.private p { margin: 0 auto; max-width: 620px; color: var(--soft); }

article.doc { max-width: 720px; margin: 0 auto; padding: 32px 0 48px; }
article.doc h1 { font-size: 36px; line-height: 1.2; margin: 16px 0 6px; }
article.doc .updated { color: var(--soft); font-size: 15px; margin-bottom: 28px; }
article.doc h2 { font-size: 21px; margin: 32px 0 6px; }
article.doc p, article.doc li { color: var(--text); }
article.doc dl { margin: 0; }
article.doc dt { font-weight: 600; margin-top: 22px; }
article.doc dd { margin: 4px 0 0; color: var(--soft); }
kbd {
  font: 14px ui-monospace, Menlo, monospace; padding: 1px 6px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface);
}
table.keys { border-collapse: collapse; width: 100%; margin-top: 8px; }
table.keys td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.keys td:first-child { white-space: nowrap; padding-right: 16px; }

footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px;
  color: var(--soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px;
}
footer a { color: var(--soft); }

@media (max-width: 560px) {
  header.top nav a { margin-left: 14px; }
  .hero { padding-top: 32px; }
  .hero p { font-size: 18px; }
}
