:root {
  --bg: #07080c;
  --bg-raise: #0c0e15;
  --bg-term: #0a0b11;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --text: #eceef6;
  --muted: #9a9fb4;
  --dim: #646a80;
  --brand: #4f5bd5;
  --tint: #8e96ff;
  --tint-2: #b6bbff;
  --cjk: system-ui;
  --head: "Plus Jakarta Sans", var(--cjk), ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", var(--cjk), ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* Theme-dependent surfaces (dark values; light overrides below) */
  --heading: #f4f5fb;
  --heading-2: #f2f3f9;
  --code: #dfe2f1;
  --wash-1: rgba(255,255,255,0.03);
  --wash-2: rgba(255,255,255,0.05);
  --wash-3: rgba(255,255,255,0.08);
  --hl: rgba(255,255,255,0.05);
  --hl-2: rgba(255,255,255,0.08);
  --glow-top: rgba(79, 91, 213, 0.22);
  --grid-line: var(--line);
  --nav-stuck: rgba(7, 8, 12, 0.72);
  --panel: linear-gradient(180deg, rgba(18,20,30,0.92), rgba(10,11,17,0.94));
  --panel-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(0,0,0,0.4), 0 30px 80px -30px rgba(79,91,213,0.45), 0 12px 30px -12px rgba(0,0,0,0.6);
  --tab-on-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 2px rgba(0,0,0,0.4);
  --ring-1: rgba(142,150,255,0.10);
  --ring-2: rgba(142,150,255,0.05);
  --halo: radial-gradient(circle, rgba(79,91,213,0.30), rgba(79,91,213,0.08) 45%, transparent 70%);
  --slice: var(--brand);
  --lit: var(--tint-2);
  --lit-glow: drop-shadow(0 0 3px rgba(142,150,255,0.9));
  --coin: var(--tint);
  --coin-glow: rgba(142,150,255,0.55);
  --coin-glow-hot: rgba(182,187,255,1);
  --logo-slice: #8e96ff;
  --logo-text: #fafafa;
  --dot: #3a3f52;
  --feature-bg: var(--bg);
  --feature-hover: #0a0b11;
  --icon-border: rgba(142,150,255,0.18);
  --icon-bg: linear-gradient(180deg, rgba(79,91,213,0.16), rgba(79,91,213,0.04));
  --icon-fill-soft: rgba(142,150,255,0.25);
  --spec-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 70px -35px rgba(79,91,213,0.4);
  --spec-panel: linear-gradient(180deg, rgba(18,20,30,0.9), rgba(10,11,17,0.9));
  --row-line: rgba(255,255,255,0.04);
  --bezel: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  --bezel-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 40px 120px -40px rgba(0,0,0,0.9);
  --shot-glow: rgba(79,91,213,0.55);
  --shot-glow-opacity: 0.7;
  --copied: #b8f0cf;
  --copied-line: rgba(120,220,160,0.35);
  --app-bg: #0f1117;
  --max: 1200px;
  --max-wide: 1280px;
  --gutter: 24px;
  color-scheme: dark;
}

/* Light: same drama on a cool paper ground (app's Paper theme colours) */
:root[data-theme="light"] {
  --bg: #f8f8fb;
  --bg-raise: #ffffff;
  --bg-term: #ffffff;
  --line: #e5e6ef;
  --line-2: #d9dbe8;
  --text: #16172b;
  --muted: #565a74;
  --dim: #868aa1;
  --tint: #4f5bd5;
  --tint-2: #6c77ee;
  --heading: #0b0c1d;
  --heading-2: #0e0f22;
  --code: #22243e;
  --wash-1: rgba(22, 23, 43, 0.025);
  --wash-2: rgba(22, 23, 43, 0.045);
  --wash-3: rgba(22, 23, 43, 0.07);
  --hl: rgba(255, 255, 255, 0.9);
  --hl-2: #ffffff;
  --glow-top: rgba(79, 91, 213, 0.24);
  --grid-line: rgba(79, 91, 213, 0.11);
  --nav-stuck: rgba(248, 248, 251, 0.78);
  --panel: linear-gradient(180deg, #ffffff, #fcfcff);
  --panel-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,23,43,0.03), 0 1px 2px rgba(22,23,43,0.05), 0 10px 30px -10px rgba(22,23,43,0.12), 0 44px 100px -30px rgba(79,91,213,0.48);
  --tab-on-shadow: 0 0 0 1px rgba(22,23,43,0.06), 0 1px 3px rgba(22,23,43,0.10);
  --ring-1: rgba(79, 91, 213, 0.20);
  --ring-2: rgba(79, 91, 213, 0.10);
  --halo: radial-gradient(circle, rgba(79,91,213,0.30), rgba(108,119,238,0.12) 45%, transparent 70%);
  --slice: #4f5bd5;
  --lit: #d4d7ff;
  --lit-glow: drop-shadow(0 0 4px rgba(79,91,213,1)) drop-shadow(0 0 10px rgba(108,119,238,0.7));
  --coin: #6c77ee;
  --coin-glow: rgba(79,91,213,0.45);
  --coin-glow-hot: rgba(79,91,213,1);
  --logo-slice: #4f5bd5;
  --logo-text: #18181b;
  --dot: #c3c6d6;
  --feature-bg: #ffffff;
  --feature-hover: #fbfbff;
  --icon-border: rgba(79,91,213,0.22);
  --icon-bg: linear-gradient(180deg, rgba(79,91,213,0.13), rgba(79,91,213,0.03));
  --icon-fill-soft: rgba(79,91,213,0.2);
  --spec-panel: linear-gradient(180deg, #ffffff, #fcfcff);
  --spec-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,23,43,0.03), 0 10px 30px -12px rgba(22,23,43,0.12), 0 40px 90px -35px rgba(79,91,213,0.42);
  --row-line: rgba(22, 23, 43, 0.06);
  --bezel: linear-gradient(180deg, #ffffff, #f2f3f9);
  --bezel-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,23,43,0.03), 0 2px 6px rgba(22,23,43,0.05), 0 30px 80px -30px rgba(22,23,43,0.28), 0 70px 150px -40px rgba(79,91,213,0.45);
  --shot-glow: rgba(79,91,213,0.5);
  --shot-glow-opacity: 0.6;
  --copied: #18794e;
  --copied-line: rgba(24,121,78,0.35);
  --app-bg: #f8f8fb;
  color-scheme: light;
}
:root[data-theme="light"] h1 {
  background: linear-gradient(180deg, #0b0c1d 30%, #2c3170 115%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .pd { color: var(--brand); -webkit-text-fill-color: var(--brand); }
:root[data-theme="light"] .tabs button[aria-selected="true"] { background: #fff; }
:root[data-theme="light"] .term::before { background: linear-gradient(90deg, transparent, rgba(79,91,213,0.55), transparent); }
:root[data-theme="light"] .feature:hover { background: var(--feature-hover); }
:root[data-theme="light"] .features { box-shadow: 0 1px 2px rgba(22,23,43,0.04), 0 40px 90px -45px rgba(79,91,213,0.35); }
:root[data-theme="light"] .demo-scrim { background: rgba(22, 23, 43, 0.35); }
:root[data-theme="light"] .win-dots i { background: #dcdde8; }
:root[data-theme="light"] ::selection { background: rgba(79, 91, 213, 0.22); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: rgba(79, 91, 213, 0.45); }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 6px; }

/* Background: fine grid, faded out toward the edges, and one restrained glow */
.bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1500px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 38% at 50% 0%, var(--glow-top), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 18%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 18%, #000 30%, transparent 78%);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.nav.is-stuck {
  background: var(--nav-stuck);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { height: 24px; width: auto; display: block; }
.brand svg g path { stroke: var(--logo-slice); }
.brand svg > path { fill: var(--logo-text); }
.brand-sm svg { height: 18px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav-link:hover { color: var(--text); background: var(--wash-2); }
.nav-cta {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(142,150,255,0.25), 0 6px 20px -6px rgba(79,91,213,0.7);
  transition: background-color .15s;
}
.nav-cta:hover { background: #5b67e0; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--gutter) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark-wrap {
  position: relative;
  width: 184px; height: 184px;
  margin-bottom: 56px;
  display: grid; place-items: center;
}
.mark-wrap::before, .mark-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--ring-1);
}
.mark-wrap::before { inset: -36px; }
.mark-wrap::after { inset: -80px; border-color: var(--ring-2); }
.mark-halo {
  position: absolute; inset: -40px;
  border-radius: 50%;
  background: var(--halo);
  filter: blur(6px);
}
.mark { position: relative; width: 100%; height: 100%; overflow: visible; }
.mark path { fill: none; stroke-width: 9; stroke-linecap: butt; }
.slices path { stroke: var(--slice); }
.lit path {
  stroke: var(--lit);
  opacity: 0;
  filter: var(--lit-glow);
}
.coin { fill: var(--coin); filter: drop-shadow(0 0 4px var(--coin-glow)); transform-origin: 46.5px 32px; }

/* Intro: the slices arrive one month at a time, then the coin */
.slices path { opacity: 0; animation: slice-in .5s cubic-bezier(.2,.7,.2,1) forwards; }
.coin { opacity: 0; animation: coin-in .6s cubic-bezier(.2,.8,.2,1.2) 1.05s forwards; }
@keyframes slice-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes coin-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Loop: a light runs round the dial like months passing, the coin answers */
.lit path { animation: month 7s ease-in-out infinite; }
.coin { animation: coin-in .6s cubic-bezier(.2,.8,.2,1.2) 1.05s forwards, coin-pulse 7s ease-in-out 2s infinite; }
@keyframes month {
  0% { opacity: 0; }
  4% { opacity: 1; }
  16% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes coin-pulse {
  0%, 30% { filter: drop-shadow(0 0 4px var(--coin-glow)); }
  36% { filter: drop-shadow(0 0 10px var(--coin-glow-hot)); }
  50%, 100% { filter: drop-shadow(0 0 4px var(--coin-glow)); }
}
.slices path:nth-child(1) { animation-delay: .00s; } .lit path:nth-child(1) { animation-delay: 2.00s; }
.slices path:nth-child(2) { animation-delay: .08s; } .lit path:nth-child(2) { animation-delay: 2.22s; }
.slices path:nth-child(3) { animation-delay: .16s; } .lit path:nth-child(3) { animation-delay: 2.44s; }
.slices path:nth-child(4) { animation-delay: .24s; } .lit path:nth-child(4) { animation-delay: 2.66s; }
.slices path:nth-child(5) { animation-delay: .32s; } .lit path:nth-child(5) { animation-delay: 2.88s; }
.slices path:nth-child(6) { animation-delay: .40s; } .lit path:nth-child(6) { animation-delay: 3.10s; }
.slices path:nth-child(7) { animation-delay: .48s; } .lit path:nth-child(7) { animation-delay: 3.32s; }

.eyebrow {
  margin: 0 0 18px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint);
}
h1, h2, h3 { font-family: var(--head); margin: 0; }
h1 {
  font-size: clamp(42px, 7vw, 100px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--heading);
  text-wrap: balance;
}
.lede {
  max-width: 660px;
  margin: 28px auto 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}

/* Install box */
.term {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin-top: 52px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--panel-shadow);
}
.term::before {
  /* hairline highlight along the top edge */
  content: "";
  position: absolute; left: 12%; right: 12%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142,150,255,0.7), transparent);
}
.term-head {
  display: flex;
  justify-content: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--wash-1);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  border: 0;
  background: transparent;
  padding: 7px 17px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, background-color .15s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--wash-3);
  box-shadow: var(--tab-on-shadow);
}

.panel { padding: 22px 20px 18px 26px; }
.panel[hidden] { display: none; }
.code-row { display: flex; align-items: flex-start; gap: 14px; }
pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 0;
  overflow-x: auto;
  font: 400 15px/1.75 var(--mono);
  color: var(--code);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
code { font-family: inherit; }
pre .p::before { content: "$ "; color: var(--tint); user-select: none; }
pre .k { color: var(--dim); }
pre .kv i { font-style: normal; color: var(--muted); }
.copy {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--wash-1);
  color: var(--muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s;
}
.copy:hover { color: var(--text); background: var(--wash-3); }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy.is-done { color: var(--copied); border-color: var(--copied-line); }
.note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--dim);
}
.note a { color: var(--tint); text-decoration: none; }
.note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.note a::after { content: "\00a0\2192"; }
.mono { font-family: var(--mono); font-size: 0.93em; color: var(--muted); }

.also {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--dim);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px;
}
.also a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: color .15s, border-color .15s; }
.also a:hover { color: var(--text); border-color: var(--tint); }
.also .soon { color: var(--dim); }
.also em {
  font-style: normal;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
  padding: 3px 5px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  vertical-align: 1px;
}
.dot { color: var(--dot); }

/* Live demo: a window with the real app inside */
.demo {
  max-width: calc(var(--max-wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 128px var(--gutter) 0;
}
.demo-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px;
}
.demo-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.demo-head p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 17px; max-width: 560px; }
.demo-actions { display: flex; gap: 8px; flex: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--wash-1);
  color: var(--text);
  font-size: 14.5px; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--wash-3); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px rgba(142,150,255,0.25), 0 6px 20px -6px rgba(79,91,213,0.7);
}
.btn-primary:hover { background: #5b67e0; }

.demo-stage { position: relative; }
.demo-glow {
  position: absolute; left: 6%; right: 6%; top: 4%; bottom: 4%;
  background: radial-gradient(ellipse at 50% 35%, var(--shot-glow), transparent 68%);
  filter: blur(70px);
  opacity: var(--shot-glow-opacity);
  pointer-events: none;
}
.demo-win {
  position: relative;
  padding: 8px;
  border-radius: 20px;
  background: var(--bezel);
  border: 1px solid var(--line-2);
  box-shadow: var(--bezel-shadow);
}
.win-bar {
  display: flex; align-items: center; gap: 12px;
  height: 40px;
  padding: 0 8px 0 10px;
}
.win-dots { display: flex; gap: 7px; flex: 1; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-url {
  flex: 0 1 380px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 28px; padding: 0 14px;
  border-radius: 8px;
  background: var(--wash-2);
  border: 1px solid var(--line);
  font: 400 13px/1 var(--mono);
  color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.win-url .live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.16); flex: none; }
.win-tools { flex: 1; display: flex; justify-content: flex-end; gap: 4px; }
.win-tool {
  display: inline-grid; place-items: center;
  width: 30px; height: 28px;
  border: 0; border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}
.win-tool:hover { color: var(--text); background: var(--wash-3); }
.win-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.win-close { display: none; }
.demo-view {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 820px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--app-bg);
}
.demo-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--app-bg); }
.demo-poster { display: none; }
.demo-poster img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.demo-note {
  margin: 18px 0 0;
  text-align: center;
  font: 400 13px/1.5 var(--mono);
  color: var(--dim);
}

/* Expanded: the same window, pinned over the page (the iframe keeps its state) */
.demo-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 5, 10, 0.6);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.is-demo-open .demo-scrim { opacity: 1; pointer-events: auto; }
.is-demo-open { overflow: hidden; }
.demo-win.is-expanded {
  position: fixed; z-index: 100;
  inset: 16px;
  display: flex; flex-direction: column;
  animation: win-in .22s cubic-bezier(.2,.8,.2,1);
}
.demo-win.is-expanded .demo-view { flex: 1; aspect-ratio: auto; max-height: none; }
.demo-win.is-expanded .win-expand { display: none; }
.demo-win.is-expanded .win-close { display: inline-grid; }
@keyframes win-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 152px var(--gutter) 0;
}
.section-head { text-align: center; margin-bottom: 64px; }
h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--heading-2);
  text-wrap: balance;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.feature {
  background: var(--feature-bg);
  padding: 38px 36px 40px;
  transition: background-color .2s;
}
.feature:hover { background: var(--feature-hover); }
.icon {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--icon-border);
  background: var(--icon-bg);
  box-shadow: inset 0 1px 0 var(--hl);
  fill: none; stroke: var(--tint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 22px;
}
.icon .fill { fill: var(--tint); stroke: none; }
.icon .fill-soft { fill: var(--icon-fill-soft); }
.feature h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}
.feature p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); }

/* Self-hosted */
.own {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.own .eyebrow { text-align: left; }
.own-lede { margin: 22px 0 0; font-size: 18.5px; color: var(--muted); max-width: 520px; }
.own-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.own-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16.5px; color: var(--muted);
}
.own-list li::before {
  content: "";
  position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,91,213,0.18);
}
.own-list strong { color: var(--text); font-weight: 600; }

.spec {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--spec-panel);
  box-shadow: var(--spec-shadow);
  font-family: var(--mono);
  font-size: 14.5px;
  overflow: hidden;
}
.spec-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.spec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.15);
}
.spec dl { margin: 0; padding: 8px 0; }
.spec dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 9px 18px;
}
.spec dl div + div { border-top: 1px solid var(--row-line); }
.spec dt { color: var(--dim); }
.spec dd { margin: 0; color: var(--code); overflow-wrap: anywhere; }
.spec .dim { color: var(--dim); }

/* Final */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: 24px; }
.final-lede { margin: 18px 0 0; color: var(--muted); font-size: 19px; max-width: 520px; text-wrap: balance; }
.term-solo { max-width: 680px; margin-top: 32px; }
.term-solo .code-row { padding: 14px 14px 14px 22px; align-items: center; }
.final-links { margin: 20px 0 0; font-size: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.final-links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.final-links a:hover { color: var(--text); border-color: var(--tint); }

/* Japanese and Chinese: the bundled fonts have no CJK glyphs, so use the system's (no CJK web fonts). */
:root:lang(ja) { --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui; }
:root:lang(zh-CN) { --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui; }
:root:lang(ja) h1, :root:lang(zh-CN) h1, :root:lang(ja) h2, :root:lang(zh-CN) h2 { letter-spacing: 0; line-break: strict; }
:root:lang(ja) h1, :root:lang(ja) h2, :root:lang(ja) h3 { word-break: auto-phrase; }
:root:lang(ja) body, :root:lang(zh-CN) body { line-break: strict; }

/* Language menu in the nav */
.lang { position: relative; }
.lang summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px;
  border-radius: 9px; border: 1px solid transparent;
  color: var(--muted);
  font: 500 13px/1 var(--mono);
  cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--wash-2); border-color: var(--line); }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  min-width: 200px; margin: 0; padding: 6px;
  list-style: none;
  background: var(--bg-raise);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.45);
}
.lang-menu a {
  display: block; padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted); font-size: 14.5px; text-decoration: none;
}
.lang-menu a:hover { color: var(--text); background: var(--wash-2); }
.lang-menu a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lang-menu a[aria-current="page"]::after { content: "✓"; float: right; color: var(--tint); }

/* "Also in your language" hint; never shown without JavaScript */
.lang-hint {
  position: fixed; left: 50%; bottom: 18px; z-index: 30;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 10px 10px 16px;
  background: var(--bg-raise);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.5);
  font-size: 14.5px; color: var(--muted);
}
.lang-hint a { color: var(--text); font-weight: 600; text-decoration: none; }
.lang-hint a:hover { color: var(--tint-2); }
.lang-hint button {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--dim); font-size: 18px; line-height: 1; cursor: pointer;
}
.lang-hint button:hover { color: var(--text); background: var(--wash-2); }

/* Footer */
.footer { margin-top: 120px; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--dim); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-langs { flex-basis: 100%; display: flex; gap: 6px 18px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-langs a { color: var(--dim); font-size: 13.5px; text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current="page"] { color: var(--text); }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 72px;
  align-items: start;
}
.faq-intro { position: sticky; top: 112px; }
.faq-intro .eyebrow { text-align: left; }
.faq-intro p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 17px; max-width: 360px; }
.faq-intro a { color: var(--tint); text-decoration: none; }
.faq-intro a:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font: 600 18px/1.4 var(--head);
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color .15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--heading); }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--tint), var(--tint)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--tint), var(--tint)) center / 1.5px 10px no-repeat,
    var(--wash-1);
  transition: transform .2s, background-size .2s;
}
.faq-list details[open] summary::after {
  background:
    linear-gradient(var(--tint), var(--tint)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--tint), var(--tint)) center / 1.5px 0 no-repeat,
    var(--wash-3);
}
.faq-a { padding: 0 52px 24px 4px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: 12px; }
.faq-a a { color: var(--tint); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-a code {
  font: 400 0.88em/1 var(--mono);
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--wash-2);
  border: 1px solid var(--line);
  color: var(--code);
  overflow-wrap: anywhere;
}
.faq-a pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.faq-a pre {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--wash-1);
  border: 1px solid var(--line);
  font-size: 13.5px;
}

/* Theme switch in the nav */
.theme-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s;
}
.theme-btn:hover { color: var(--text); background: var(--wash-2); border-color: var(--line); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }

/* Small screens */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .own { grid-template-columns: 1fr; gap: 44px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav-link span, .nav-text { display: none; }
  .hero { padding-top: 48px; }
  .mark-wrap { width: 112px; height: 112px; margin-bottom: 36px; }
  .mark-wrap::before { inset: -22px; }
  .mark-wrap::after { inset: -46px; }
  .lede { font-size: 16.5px; }
  .term { margin-top: 36px; border-radius: 12px; }
  .term-head { padding: 6px; }
  .tabs { width: 100%; }
  .tabs button { flex: 1 0 auto; padding: 6px 8px; font-size: 13px; }
  .panel { padding: 14px 12px 14px 14px; }
  .code-row { flex-direction: column; align-items: stretch; gap: 12px; }
  pre {
    font-size: 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  pre.wrap { white-space: pre-wrap; -webkit-mask-image: none; mask-image: none; }
  .copy { width: 100%; height: 38px; justify-content: center; }
  .demo { padding-top: 96px; }
  .demo-head { flex-direction: column; align-items: stretch; gap: 18px; }
  .demo-actions { display: none; }
  .demo-win { padding: 5px; border-radius: 14px; }
  .win-bar { height: 34px; }
  .win-url { font-size: 12px; }
  .demo-view { border-radius: 9px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { position: static; }
  .faq-list summary { font-size: 16.5px; padding: 18px 2px; }
  .faq-a { padding: 0 8px 20px 2px; font-size: 15.5px; }
  .theme-btn { width: 34px; height: 34px; }
  .lang summary { height: 34px; padding: 0 8px; }
  .nav-links { gap: 2px; }
  .section { padding-top: 96px; }
  .section-head { margin-bottom: 36px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 26px 22px 28px; }
  .spec { font-size: 12.5px; }
  .spec dl div { grid-template-columns: 64px 1fr; padding: 9px 14px; }
  .also { gap: 6px 16px; }
  .also .dot { display: none; }
  .term-solo .code-row { padding: 14px; align-items: stretch; }
  .footer { margin-top: 88px; }
}

/* Phones get a poster and a link instead of a cramped app */
@media (max-width: 767px) {
  .demo-view { aspect-ratio: 16 / 11; }
  .demo-view iframe, .win-tools { display: none; }
  .demo-poster { display: block; position: absolute; inset: 0; }
  .demo-poster img { opacity: 0; transition: opacity .3s; }
  .demo-poster img.is-on { opacity: 1; }
  .demo-poster img + img { position: absolute; inset: 0; }
  .demo-open {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    white-space: nowrap;
  }
}
@media (min-width: 768px) {
  .demo-open-m { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slices path, .coin { animation: none !important; opacity: 1; }
  .lit path { animation: none !important; opacity: 0; }
  .demo-win.is-expanded { animation: none; }
}

/* Plus Jakarta Sans sets the full stop loose at display sizes */
.pd { margin-left: -0.07em; }
pre .nw { white-space: nowrap; }
/* The expanded demo must sit above the sticky nav */
.is-demo-open main { z-index: 20; }
