:root {
  color-scheme: light;
  --paper: #f5f5f7;
  --panel: #fff;
  --ink: #1d1d1f;
  --muted: #62626a;
  --line: #1d1d1f14;
  --accent: #006edb;
  --accent-hover: #0068dd;
  --soft-blue: #eaf3ff;
  --glass: #ffffffbd;
  --glass-border: #ffffffed;
  --card-shadow: 0 4px 6px #141b2d03, 0 18px 54px #141b2d07;
  --lift-shadow: 0 12px 20px #141b2d06, 0 30px 70px #141b2d0c;
  --ease: cubic-bezier(.22,1,.36,1);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111216;
  --panel: #1b1d23;
  --ink: #f5f5f7;
  --muted: #a2a5af;
  --line: #ffffff18;
  --accent: #64a7ff;
  --accent-hover: #8ebeff;
  --soft-blue: #25344c;
  --glass: #21232bcc;
  --glass-border: #ffffff18;
  --card-shadow: 0 4px 6px #0000000a, 0 18px 54px #00000024;
  --lift-shadow: 0 12px 20px #00000018, 0 30px 70px #00000038;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-clearance,130px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
::selection { background: var(--soft-blue); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a,button,select,summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button,select { font: inherit; color: inherit; cursor: pointer; }
button { border: 0; background: none; }
button,a,select { transition: background-color .2s ease,box-shadow .25s ease,color .2s ease,transform .25s var(--ease); }
a:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
h1,h2,h3,p,figure { margin-top: 0; }
h1,h2,h3 { font-weight: 650; overflow-wrap: anywhere; text-wrap: balance; }
h1 { font-size: clamp(3.1rem,6.6vw,6.1rem); line-height: 1.045; letter-spacing: -.045em; margin-bottom: 1.55rem; }
h2 { font-size: clamp(2.25rem,4.4vw,3.8rem); line-height: 1.09; letter-spacing: -.04em; margin-bottom: 1.6rem; }
h3 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.032em; margin-bottom: 1rem; }
p { text-wrap: pretty; }
.skip { position: fixed; top: -6rem; left: 1rem; padding: 1rem 1.4rem; background: var(--panel); border-radius: 14px; z-index: 100; }
.skip:focus { top: 1rem; }
.site-header {
  position: sticky; top: 16px; z-index: 20; width: calc(100% - 48px); max-width: 1180px;
  margin: 16px auto 0; padding: 12px 22px; display: flex; align-items: center; gap: 24px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: 0 8px 32px #141b2d08, inset 0 1px 0 #ffffff24;
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.45rem; font-weight: 650; letter-spacing: -.06em; flex-shrink: 0; }
.brand img { display: block; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-left: auto; }
nav a { font-size: .82rem; font-weight: 500; padding: .6rem .75rem; border-radius: 12px; white-space: nowrap; }
nav a:hover { background: var(--line); }
.preferences { display: flex; flex-wrap: wrap; flex-shrink: 0; max-width: 100%; gap: 10px; }
.preferences,.site-header nav,.window-label>*,.steps>*,.ownership>*,.privacy-card>*,.platforms>*,.faq>*,footer>* { min-width: 0; }
.preferences label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.preference-label { font-size: .63rem; color: var(--muted); padding-left: 3px; }
.preferences select {
  min-height: 32px; max-width: 100%; border: 0; border-radius: 9px;
  padding: .2rem 24px .2rem .5rem; font-size: .73rem;
  -webkit-appearance: none; appearance: none; background-color: var(--line);
  background-image: linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position: right 12px center,right 8px center; background-size: 4px 4px; background-repeat: no-repeat;
}
.hero { position: relative; isolation: isolate; overflow: clip; padding: 82px 24px 48px; }
.hero-wash { position: absolute; inset: 2% 0 -20%; z-index: -1; background: radial-gradient(ellipse at 33% 60%,#c3dafa7a,transparent 48%),radial-gradient(ellipse at 77% 53%,#dbd9f970,transparent 45%); pointer-events: none; }
html[data-theme="dark"] .hero-wash { background: radial-gradient(ellipse at 32% 60%,#17457450,transparent 48%),radial-gradient(ellipse at 77% 53%,#3c275344,transparent 45%); }
.hero-copy { max-width: 1040px; margin: auto; text-align: center; animation: arrive .8s var(--ease) both; }
.eyebrow { font-size: .73rem; line-height: 1.5; font-weight: 600; letter-spacing: .075em; color: var(--muted); margin: 0 0 1.2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.75rem; padding: .5rem .9rem; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass); box-shadow: 0 2px 10px #141b2d05; font-size: .65rem; }
.hero-badge svg { width: 14px; height: 14px; color: var(--accent); }
.lead { font-size: 1.17rem; line-height: 1.65; color: var(--muted); }
.hero .lead { max-width: 610px; margin: 0 auto; }
.actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: 1.75rem 0 1.1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .8rem 1.4rem; min-height: 48px; max-width: 100%; font-size: .93rem; font-weight: 550; border: 1px solid transparent; border-radius: 999px; }
.primary { background: #0071e3; color: #fff; box-shadow: 0 5px 14px #007aff20; }
.primary:hover { background: #006be6; box-shadow: 0 7px 22px #007aff35; transform: translateY(-2px); }
.secondary { background: var(--glass); border-color: var(--glass-border); box-shadow: 0 2px 8px #141b2d05; }
.secondary:hover { background: var(--panel); transform: translateY(-2px); }
.button:active { transform: scale(.975); box-shadow: none; }
.preview { font-size: .7rem; color: var(--muted); margin: 0; }
.workspace {
  --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative; max-width: 1100px; margin: 3.3rem auto 0; padding: 8px 8px 0;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 22px;
  box-shadow: 0 2px 6px #141b2d06,0 32px 90px #22366b20,inset 0 1px 0 #ffffff60;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transform: perspective(1800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .55s var(--ease); animation: arrive 1s .13s var(--ease) both;
}
html[data-theme="dark"] .workspace { box-shadow: 0 32px 90px #0007,inset 0 1px 0 #ffffff12; }
.window-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: .45rem .7rem .85rem; font-size: .68rem; color: var(--muted); }
.window-dots { display: flex; gap: 6px; width: 50px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #93959c52; }
.window-separator { color: var(--muted); opacity: .5; margin: 0 .3rem; }
.window-lock { width: 50px; display: flex; justify-content: flex-end; }
.window-lock svg { width: 13px; height: 13px; }
.workspace>a { display: block; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.workspace img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.workspace figcaption { text-align: center; padding: .65rem .5rem; font-size: .65rem; color: var(--muted); }
.principles { max-width: 900px; margin: 0 auto 12px; display: flex; justify-content: center; gap: 3rem; padding: 1.7rem 24px; }
.principles span { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
.principles svg { width: 18px; height: 18px; color: var(--ink); }
.section { max-width: 1180px; margin: auto; padding: 84px 24px; }
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading .eyebrow { margin-bottom: .9rem; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.steps article,.platforms article { background: var(--panel); border: 1px solid var(--glass-border); border-radius: 28px; box-shadow: var(--card-shadow); transition: transform .4s var(--ease),box-shadow .4s var(--ease); }
.steps article { padding: 32px; }
.feature-icon { display: inline-flex; padding: 13px; border-radius: 17px; color: var(--accent); background: var(--soft-blue); margin-bottom: 2rem; }
.feature-icon svg { width: 26px; height: 26px; }
.steps .eyebrow { margin-bottom: .65rem; font-size: .65rem; }
.steps p:last-child { color: var(--muted); font-size: .93rem; margin: 0; }
@media(hover:hover) and (pointer:fine) {
  .steps article:hover,.platforms article:hover { transform: translateY(-5px); box-shadow: var(--lift-shadow); }
}
.ownership { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.ownership>div>p:last-child { max-width: 30rem; color: var(--muted); }
.markdown { margin: 0; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 24px; box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: hidden; }
.markdown figcaption { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .7rem; font-size: .78rem; color: var(--muted); }
.file-icon svg { width: 18px; height: 18px; color: var(--accent); }
.file-extension { margin-left: auto; font-size: .7rem; padding: 3px 8px; background: var(--line); border-radius: 6px; }
.markdown pre { padding: 20px 28px 28px; margin: 0; font: .78rem/2.1 ui-monospace,"SFMono-Regular",Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.privacy { padding-top: 44px; padding-bottom: 44px; }
.privacy-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; padding: 54px; border-radius: 32px; border: 1px solid var(--glass-border); background: linear-gradient(120deg,var(--panel),var(--glass)); box-shadow: var(--card-shadow); }
.privacy-icon { display: inline-flex; padding: 15px; margin-bottom: 1.8rem; border-radius: 20px; background: var(--soft-blue); color: var(--accent); }
.privacy-icon svg { width: 30px; height: 30px; }
.privacy-title h2 { font-size: clamp(2rem,3.5vw,3rem); margin-bottom: 0; }
.privacy-copy .lead { font-size: 1.04rem; }
.privacy-copy p { color: var(--muted); font-size: .9rem; }
.text-link { color: var(--accent); font-size: .93rem; font-weight: 500; padding: .2rem 0; text-align: left; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.download-heading { max-width: 700px; margin: auto; text-align: center; }
.download-heading p:last-child { color: var(--muted); max-width: 570px; margin: 0 auto; }
#release-status { color: var(--muted); font-size: .72rem; text-align: center; margin: 1.8rem 0 2rem; }
.platforms { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.platforms article { padding: 32px; display: flex; flex-direction: column; }
.platform-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--line); margin-bottom: 1.5rem; }
.platform-icon svg { width: 28px; height: 28px; }
.platforms .eyebrow { margin-bottom: .45rem; font-size: .65rem; }
.platforms h3 { font-size: 1.8rem; margin-bottom: 1.4rem; }
.requirement { color: var(--muted); font-size: .87rem; flex: 1; }
.platforms .button { width: 100%; padding-inline: .8rem; font-size: .8rem; min-height: 44px; }
.unavailable { background: var(--line); color: var(--muted); }
.release-detail { font-size: .75rem; margin-top: 1rem; color: var(--muted); }
.release-detail p { margin-bottom: .2rem; }
.release-detail code { display: block; overflow-wrap: anywhere; padding-top: .75rem; font: .68rem/1.7 ui-monospace,"SFMono-Regular",Consolas,monospace; }
.platforms details { padding: .8rem 0; font-size: .77rem; }
.platforms details p { color: var(--muted); padding-top: .65rem; margin: 0; }
summary { cursor: pointer; font-weight: 550; }
.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: 5rem; align-items: start; padding-bottom: 100px; }
.faq h2 { font-size: clamp(2rem,3.5vw,3rem); }
.faq-list { border-radius: 24px; padding: 8px 26px; background: var(--panel); box-shadow: var(--card-shadow); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq details:last-child { border: 0; }
.faq summary { font-size: .93rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.35rem; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: .9rem 0 0; color: var(--muted); font-size: .9rem; animation: detail-in .25s var(--ease); }
footer { max-width: 1132px; margin: auto; border-top: 1px solid var(--line); padding: 36px 0 28px; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 20px; align-items: center; }
footer .brand { font-size: 1.3rem; }
footer p { font-size: .82rem; margin: 0; color: var(--muted); max-width: 26rem; }
footer>a:last-of-type { justify-self: end; font-size: .78rem; }
footer small { grid-column: 1/-1; color: var(--muted); font-size: .68rem; }
dialog { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-border); border-radius: 28px; box-shadow: 0 32px 120px #0004; padding: 32px; max-width: 680px; width: calc(100% - 32px); max-height: 85dvh; -webkit-backdrop-filter: blur(32px) saturate(140%); backdrop-filter: blur(32px) saturate(140%); }
dialog[open] { animation: dialog-in .3s var(--ease); }
dialog::backdrop { background: #060b204d; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.close { display: block; margin: 0 0 1.5rem auto; padding: .45rem .9rem; border-radius: 999px; background: var(--line); font-size: .8rem; }
dialog h2 { font-size: 2rem; }
dialog p { color: var(--muted); font-size: .95rem; }
@keyframes arrive { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@keyframes detail-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
/* Content is always readable. JS adds a one-time reveal only when it enters view. */
[data-reveal].is-revealing { animation: arrive .7s var(--ease); }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .site-header,.workspace,.markdown,dialog,.hero-badge,.secondary { background: var(--panel); }
}
@media(max-width:1000px) {
  .site-header { gap: 14px; padding-inline: 18px; }
  nav a { padding-inline: .45rem; }
  .ownership,.privacy-card,.faq { gap: 3rem; }
  .steps article,.platforms article { padding: 26px; }
  .privacy-card { padding: 40px; }
  footer { margin-inline: 24px; }
}
@media(max-width:760px) {
  html { scroll-padding-top: var(--header-clearance,145px); }
  .site-header { top: 8px; width: calc(100% - 24px); margin-top: 8px; flex-wrap: wrap; gap: 8px; padding: 10px 14px 6px; border-radius: 22px; }
  .brand { font-size: 1.4rem; }
  .site-header nav { order: 3; width: 100%; margin: 0; gap: 8px; }
  nav a { padding: .5rem .65rem; font-size: .76rem; }
  .preferences { margin-left: auto; gap: 7px; }
  .hero { padding: 52px 20px 22px; }
  h1 { font-size: clamp(2.8rem,8.2vw,4.2rem); letter-spacing: -.04em; line-height: 1.075; }
  .hero-badge { font-size: .56rem; gap: .4rem; padding: .45rem .65rem; margin-bottom: 1.3rem; }
  .hero .lead { font-size: 1.05rem; max-width: 30rem; }
  .actions { gap: 10px; margin-top: 1.5rem; }
  .button { font-size: .86rem; padding: .75rem 1.1rem; gap: .6rem; }
  .preview { font-size: .63rem; }
  .workspace { margin-top: 2.4rem; padding: 5px 5px 0; border-radius: 15px; }
  .workspace>a { border-radius: 9px; }
  .window-label { padding: .35rem .4rem .55rem; font-size: .55rem; }
  .window-dots { width: 34px; gap: 4px; }
  .window-dots i { width: 6px; height: 6px; }
  .window-lock { width: 34px; }
  .window-lock svg { width: 11px; height: 11px; }
  .workspace figcaption { font-size: .55rem; padding: .5rem; }
  .principles { gap: .7rem 1.2rem; flex-wrap: wrap; padding: 18px 24px; }
  .principles span { font-size: .72rem; gap: .4rem; }
  .principles svg { width: 16px; height: 16px; }
  .section { padding: 52px 24px; }
  .section-heading { margin-bottom: 2rem; }
  h2 { font-size: 2.4rem; }
  .steps,.ownership,.privacy-card,.platforms,.faq { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .steps article { padding: 28px; border-radius: 24px; }
  .feature-icon { margin-bottom: 1.6rem; }
  .ownership { gap: 30px; }
  .ownership>div>p:last-child { margin-bottom: 0; }
  .privacy { padding-top: 20px; padding-bottom: 20px; }
  .privacy-card { padding: 30px 26px; border-radius: 28px; gap: 24px; }
  .privacy-title h2 { font-size: 2.15rem; }
  .privacy-copy p:last-of-type { margin-bottom: .9rem; }
  .platforms article { padding: 30px; border-radius: 24px; }
  .platforms .button { max-width: 100%; }
  .faq { gap: 24px; padding-bottom: 56px; }
  .faq-list { padding: 5px 22px; }
  footer { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; }
  footer>a:last-of-type { justify-self: start; }
  dialog { padding: 26px; }
}
@media(max-width:360px) {
  .site-header { justify-content: center; }
  .preferences { margin-left: 0; }
  .hero { padding-inline: 16px; }
  .hero-badge { letter-spacing: .03em; }
  .section { padding-inline: 20px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
  .workspace { transform: none!important; }
}
@media(prefers-contrast:more) {
  :root { --muted:#414149; --line:#61616a; --glass:var(--panel); }
  html[data-theme="dark"] { --muted:#d4d5dc; --line:#92949e; }
  .site-header,.workspace,.markdown,dialog { backdrop-filter:none; -webkit-backdrop-filter:none; }
}
