:root {
  color-scheme: dark;
  --bg: #0d0e12; --bg-2: #13151b; --bg-3: #1a1d25; --line: #23262f; --line-2: #2f333e;
  --text: #e6e7ec; --text-2: #a2a7b5; --text-3: #6e7383; --strong: #fff;
  --accent: #8b7cff; --accent-2: #b8aeff; --accent-bg: rgba(139, 124, 255, .14);
  --green: #5fd4a0; --pink: #f08fc0; --blue: #6cb6ff; --yellow: #f2c46b;
  --serif: "Instrument Serif", ui-serif, "New York", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: -20% -10% auto; height: 900px; background: radial-gradient(closest-side, rgba(139, 124, 255, .20), transparent), radial-gradient(600px 400px at 85% 30%, rgba(108, 182, 255, .08), transparent); pointer-events: none; z-index: -1; }
a { color: inherit; text-decoration: none; }
kbd { font: 500 .78em var(--ui); padding: .12em .45em; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg-3); color: var(--text); white-space: nowrap; }
em { font-style: italic; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(16px, calc((100vw - 1120px) / 2)); background: rgba(13, 14, 18, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15.5px; transition: transform .15s, background .15s, box-shadow .15s; }
.btn svg { width: 19px; height: 19px; fill: currentColor; margin-top: -2px; }
.btn-primary { background: #fff; color: #0d0e12; box-shadow: 0 10px 30px rgba(139, 124, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(139, 124, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-small { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; background: var(--accent); color: #fff; }
.btn-small:hover { filter: brightness(1.1); }

/* Hero */
.hero { padding: 88px 16px 40px; text-align: center; max-width: 1180px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 13px; color: var(--text-2); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font: 400 clamp(44px, 7.4vw, 92px) / 1.02 var(--serif); letter-spacing: -.02em; margin: 0 auto; color: var(--strong); max-width: 16ch; }
h1 em { color: var(--accent-2); }
.lede { max-width: 620px; margin: 26px auto 0; font-size: clamp(16.5px, 2vw, 19px); color: var(--text-2); line-height: 1.6; }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.meta { margin: 16px 0 0; font-size: 13px; color: var(--text-3); }

/* Product window */
.window { margin: 64px auto 0; max-width: 1080px; border-radius: 14px; background: #121318; border: 1px solid #2a2d37; box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03), 0 -1px 0 rgba(255, 255, 255, .08) inset; overflow: hidden; text-align: left; font-size: 13px; }
.win-bar { display: grid; grid-template-columns: 1fr minmax(160px, 380px) 1fr; align-items: center; height: 40px; padding: 0 14px; background: #0e0f13; border-bottom: 1px solid #22242d; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-search { height: 26px; display: grid; place-items: center; border-radius: 7px; border: 1px solid #2c2f3a; background: #16171d; color: var(--text-3); font-size: 12px; }
.win-body { display: grid; grid-template-columns: 230px 1fr; min-height: 470px; }
.win-side { background: #16171d; border-right: 1px solid #22242d; padding: 10px 0; }
.side-h { padding: 4px 16px 10px; font: 600 10.5px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.t-row { padding: 3px 16px; color: var(--text); white-space: nowrap; }
.t-d1 { padding-left: 30px; } .t-d2 { padding-left: 44px; }
.t-md::before { content: "M↓"; font: 700 9px var(--mono); color: var(--blue); margin-right: 7px; }
.t-on { background: var(--accent-bg); color: #fff; }
.win-main { display: flex; flex-direction: column; min-width: 0; background: #121318; }
.tabs { display: flex; align-items: flex-end; height: 38px; padding: 0 6px; background: #0e0f13; border-bottom: 1px solid #22242d; overflow: hidden; }
.tab { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 16px; color: var(--text-3); white-space: nowrap; border-radius: 9px 9px 0 0; position: relative; }
.tab + .tab::before { content: ""; position: absolute; left: 0; top: 8px; height: 16px; width: 1px; background: #2c2f3a; }
.tab.on { background: #121318; color: #fff; box-shadow: 0 0 0 1px #22242d; margin-bottom: -1px; height: 33px; }
.tab.on + .tab::before { display: none; }
.md { font: 700 9px var(--mono); color: var(--blue); }
.doc { padding: 34px clamp(20px, 6%, 70px) 30px; max-width: 760px; font-size: 15px; line-height: 1.7; }
.doc h2 { font: 700 27px/1.2 var(--ui); letter-spacing: -.02em; margin: 0 0 12px; color: #fff; padding-bottom: 10px; border-bottom: 1px solid #22242d; }
.doc h3 { font: 700 18px var(--ui); margin: 0 0 8px; color: #fff; }
.doc p { margin: 0 0 18px; color: var(--text); }
.doc code { font: 12.5px var(--mono); color: var(--pink); background: #1f2129; border: 1px solid #22242d; padding: 1px 5px; border-radius: 5px; }
.tasks { list-style: none; padding: 0; margin: 0; }
.tasks li { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.tasks li.done { color: var(--text-3); text-decoration: line-through; }
.box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--text-3); flex: none; }
.box.on { background: var(--accent); border-color: var(--accent); position: relative; }
.box.on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 22px; font-size: 13.5px; border: 1px solid #22242d; border-radius: 10px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 9px 13px; border-bottom: 1px solid #22242d; }
.doc th { background: #16171d; color: #fff; font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.doc td + td, .doc th + th { border-left: 1px solid #22242d; }

/* The live-edit swap animation */
.swap { display: grid; margin: 0 -14px 4px; }
.swap > * { grid-area: 1 / 1; }
.swap-read { padding: 6px 14px; animation: showRead 7s infinite; }
.swap-edit { border-radius: 10px; background: #16171d; box-shadow: 0 0 0 1px rgba(139, 124, 255, .6), 0 0 0 5px rgba(139, 124, 255, .14); animation: showEdit 7s infinite; overflow: hidden; }
.swap-edit pre { margin: 0; padding: 12px 14px 6px; font: 13px/1.75 var(--mono); color: var(--text); white-space: pre-wrap; }
.swap-edit .m { color: var(--accent); font-weight: 700; } .swap-edit .k { color: var(--green); } .swap-edit .c { color: var(--pink); } .swap-edit .b { color: #fff; font-weight: 700; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent-2); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.edit-hint { display: flex; justify-content: space-between; padding: 5px 14px 7px; border-top: 1px solid #22242d; font-size: 11px; color: var(--text-3); }
.edit-hint kbd { font-size: 10px; }
@keyframes showRead { 0%, 38% { opacity: 1; } 44%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes showEdit { 0%, 38% { opacity: 0; transform: scale(.995); } 44%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .swap-read, .swap-edit, .caret { animation: none; } .swap-edit { opacity: 0; } }
.win-status { display: flex; gap: 16px; height: 26px; align-items: center; padding: 0 14px; font-size: 11.5px; color: var(--text-3); background: #0e0f13; border-top: 1px solid #22242d; white-space: nowrap; overflow: hidden; }
.win-status .grow { flex: 1; }
@media (max-width: 760px) {
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .win-side { display: none; }
  .win-bar { grid-template-columns: auto 1fr; gap: 14px; }
  .win-bar > span:last-child { display: none; }
  .tab:nth-child(n+3) { display: none; }
  .doc { padding: 22px 18px; font-size: 14px; }
  .doc table { display: block; overflow-x: auto; white-space: nowrap; }
  .win-status span:nth-child(n+4) { display: none; }
}

/* Sections */
.section { max-width: 1120px; margin: 0 auto; padding: 110px 16px 0; }
.h2 { font: 400 clamp(36px, 5vw, 58px) / 1.05 var(--serif); letter-spacing: -.015em; margin: 0; color: var(--strong); text-align: center; }
.h2 em { color: var(--accent-2); }
.sub { text-align: center; color: var(--text-2); font-size: 17.5px; max-width: 600px; margin: 16px auto 0; }
.steps { list-style: none; padding: 0; margin: 54px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 26px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--line); }
.steps .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-bg); color: var(--accent-2); font-weight: 700; font-size: 14px; }
.steps h3, .card h3 { margin: 16px 0 6px; font-size: 18px; letter-spacing: -.01em; color: #fff; }
.steps p, .card p { margin: 0; color: var(--text-2); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 54px; }
.card { padding: 22px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { margin-top: 0; font-size: 16.5px; }
.card p { font-size: 14.5px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .steps, .grid { grid-template-columns: 1fr; } .section { padding-top: 80px; } }

/* Install */
.install-card { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; padding: 44px; border-radius: 24px; background: radial-gradient(600px 300px at 0% 0%, rgba(139, 124, 255, .16), transparent), var(--bg-2); border: 1px solid var(--line-2); }
.install-card img { border-radius: 26px; filter: drop-shadow(0 16px 30px rgba(111, 90, 232, .35)); }
.install-card .h2, .install-card .sub { text-align: left; margin-left: 0; }
.install-card .btn { margin-top: 26px; }
.howto { margin: 28px 0 0; padding-left: 20px; color: var(--text-2); font-size: 15px; display: grid; gap: 10px; }
.howto b { color: var(--text); font-weight: 600; }
.checksum { margin-top: 22px; font-size: 13px; color: var(--text-3); }
.checksum summary { cursor: pointer; }
.checksum code { display: block; margin-top: 8px; font: 12px var(--mono); color: var(--text-2); word-break: break-all; }
@media (max-width: 720px) { .install-card { grid-template-columns: 1fr; padding: 28px 20px; gap: 18px; } .install-card img { width: 80px; height: 80px; border-radius: 19px; } .install-card .btn { width: 100%; height: auto; min-height: 48px; padding: 12px 16px; text-align: center; } }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1120px; margin: 110px auto 0; padding: 28px 16px 48px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.foot span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; }
.foot img { border-radius: 4px; }
