/* Variant A: the page is built around the program's own window. */
.va { background: #090a0f; }
.va .wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.va h1, .va h2, .va h3 { font-weight: 600; letter-spacing: -0.02em; }

.bar { border-bottom: 1px solid var(--line-soft); }
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px var(--font-display); }
.bar-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--text2); }
.bar-links a:hover { color: var(--text); }

/* The language menu: the code on a button, the languages by their own names in a list under it. */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; font: 600 12.5px var(--font); color: var(--text2); cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 9px; transition: color 150ms ease, border-color 150ms ease; }
.lang-btn:hover, .lang-btn[aria-expanded='true'] { color: var(--text); border-color: var(--line-strong); }
.lang-btn .chev { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms ease; }
.lang-btn[aria-expanded='true'] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: flex; flex-direction: column; min-width: 150px; padding: 4px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
.lang-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; padding: 0 10px; font: 500 13.5px var(--font); color: var(--text2); text-align: left; cursor: pointer; background: transparent; border: 0; border-radius: 7px; }
.lang-list button:hover { color: var(--text); background: var(--tint); }
.lang-list button svg { color: var(--acc-text); visibility: hidden; }
.lang-list button[aria-checked='true'] { color: var(--text); }
.lang-list button[aria-checked='true'] svg { visibility: visible; }
.btn svg[fill='currentColor'] { fill: currentColor; stroke: none; }

.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 76px 0 44px; }
.intro h1 { max-width: 720px; margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; text-wrap: balance; }
.va .btn-primary { background: #6366f1; box-shadow: none; }
.va .btn-primary:hover { background: #575ae6; transform: none; }
.intro-side p { max-width: 480px; margin: 0 0 24px; font-size: 16.5px; line-height: 1.6; color: var(--text2); }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.get-facts { font: 13px var(--mono); color: var(--muted); }
.os-note { display: block; min-height: 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* The window: a sidebar made of the page itself and the content of the program. */
.stage { padding-bottom: 96px; }
.win { position: relative; overflow: hidden; background: #0b0c12; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95); }
.win-title { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 12px; font-size: 12px; color: var(--muted); background: #0e1017; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.win-title .ctl { display: flex; margin-left: auto; }
.win-title .ctl i { display: grid; place-items: center; width: 46px; height: 34px; font-style: normal; font-size: 11px; color: var(--muted); }
.win-title .ctl i.x { font-size: 12px; }
.win-body { position: relative; display: grid; grid-template-columns: 216px minmax(0, 1fr); }

.side { display: flex; flex-direction: column; padding: 0 8px 10px; background: #0c0e15; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.side-logo { display: flex; align-items: center; gap: 9px; height: 50px; padding: 0 8px; margin: 0 -8px 8px; font: 700 14px var(--font-display); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side button { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 8px; overflow: hidden; font-size: 13.5px; color: var(--text2); text-align: left; cursor: pointer; background: transparent; border: 0; border-radius: 10px; transition: background 160ms ease, color 160ms ease; }
.side button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.side .ni { display: grid; place-items: center; flex: none; width: 26px; height: 26px; color: var(--text2); background: rgba(255, 255, 255, 0.06); border-radius: 7px; transition: background 160ms ease, color 160ms ease; }
.side .ni svg { width: 14px; height: 14px; }
.side button.on { color: var(--text); background: rgba(99, 102, 241, 0.16); }
.side button.on .ni { color: #fff; background: var(--grad); }
.side em { display: grid; place-items: center; min-width: 18px; height: 18px; margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: #fbbf24; background: rgba(251, 191, 36, 0.16); border-radius: 9px; }
.side u { position: absolute; bottom: 0; left: 10px; right: 10px; height: 2px; background: rgba(165, 180, 252, 0.7); border-radius: 2px; transform: scaleX(0); transform-origin: left; }
.ticking .side button.on u { animation: tick var(--period) linear forwards; }
@keyframes tick { to { transform: scaleX(1); } }
.side-lock { margin-top: auto; }

.shots { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1200 / 900; background: #090a0f; }
.shots img { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: scale(1.012); transform-origin: 30% 0; transition: opacity 420ms ease, transform 700ms ease; }
.shots img.on { opacity: 1; transform: none; }
.stage-caption { max-width: 760px; min-height: 52px; margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--text2); }
.stage-caption b { font-weight: 600; color: var(--text); }

/* Locked: what the key window looks like. */
.lock { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; visibility: hidden; opacity: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(18, 20, 32, 0.6), rgba(6, 7, 11, 0.94)); transition: opacity 360ms ease, visibility 0s 360ms; }
.locked .lock { visibility: visible; opacity: 1; transition: opacity 360ms ease; }
.locked .side, .locked .shots { filter: blur(14px) saturate(0.8); transition: filter 360ms ease; }
.side, .shots { transition: filter 360ms ease; }
.key-card { display: flex; flex-direction: column; align-items: center; width: min(360px, 80%); padding: 26px 26px 22px; background: rgba(16, 18, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); transition: filter 300ms ease, opacity 300ms ease; }
.key-card h3 { margin: 12px 0 18px; font-size: 18px; }
.key-user { align-self: stretch; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.key-user label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.key-user b { font: 400 13.5px var(--mono); color: var(--text); }
.key-card label { align-self: flex-start; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.key-field { display: flex; align-items: center; width: 100%; height: 38px; padding: 0 12px; font-size: 15px; letter-spacing: 0.12em; color: var(--text); background: #06070b; border: 1px solid rgba(139, 140, 255, 0.55); border-radius: 10px; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16); }
.key-field i { width: 1px; height: 18px; margin-left: 2px; background: var(--text); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.key-go { width: 100%; height: 38px; margin-top: 18px; font: 600 13.5px var(--font); color: #fff; cursor: pointer; background: #6366f1; border: 0; border-radius: 10px; }
.key-card small { margin-top: 16px; font-size: 12px; color: var(--muted); }
.lock-ring { position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; visibility: hidden; opacity: 0; transition: opacity 240ms ease; }
.lock-ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.lock-ring circle { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 3.5; }
.lock-ring .arc { stroke: #a5b4fc; stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: calc(126 - 42 * var(--step, 0)); transition: stroke-dashoffset 500ms ease; }
.lock-ring span { font-size: 14px; font-weight: 500; }
.opening .lock-ring { visibility: visible; opacity: 1; }
.opening .key-card { filter: blur(8px); opacity: 0.5; }

/* How the data is kept: the file itself, with and without the key. */
.storage { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; padding-bottom: 104px; }
.st-text h2, .tail h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.st-text p { max-width: 440px; margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--text2); }
.st-spec { margin: 30px 0 0; }
.st-spec div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.st-spec div:last-child { border-bottom: 1px solid var(--line-soft); }
.st-spec dt { font-size: 14px; color: var(--text2); }
.st-spec dd { margin: 0; font: 13px var(--mono); color: var(--text); text-align: right; }
.vault { overflow: hidden; background: #0b0c12; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.95); }
.vault-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 8px 0 14px; background: #0e1017; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.vault-name { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--font); color: var(--text); }
.vault-name svg { color: var(--muted); }
.vault-name small { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; padding: 2px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 9px; }
.seg button { height: 28px; padding: 0 11px; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; background: transparent; border: 0; border-radius: 7px; transition: background 150ms ease, color 150ms ease; }
.seg button:hover { color: var(--text2); }
.seg button.on { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.vault-key { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.vault-key b { min-width: 92px; font: 13px var(--mono); letter-spacing: 0.08em; color: var(--text); }
.vault-progress { flex: 1; height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
.vault-progress u { display: block; width: 0; height: 100%; background: #a5b4fc; transition: width 800ms ease; }
.vault-key small { min-width: 132px; font: 12px var(--mono); color: var(--text2); text-align: right; }
.vault-body { min-height: calc(14 * 1.8em + 36px); margin: 0; padding: 18px 16px; overflow-x: auto; font: 12.5px/1.8 var(--mono); color: var(--text2); white-space: pre; }
.vault-body .o { color: #5d6378; }
.vault-body .h { font-weight: 600; color: var(--acc-text); }
.vault-body .n { color: var(--text); }

/* What is new and where to get it. */
.tail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; padding-bottom: 96px; }
.ver { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 12px; }
.ver b { font-size: 20px; font-weight: 600; }
.ver span { font-size: 13px; color: var(--muted); }
.news ul { margin: 0; padding: 0; list-style: none; }
.news li { position: relative; padding: 9px 0 9px 18px; font-size: 14.5px; color: var(--text2); border-top: 1px solid var(--line-soft); }
.news li::before { position: absolute; top: 18px; left: 2px; width: 5px; height: 5px; content: ''; background: #a5b4fc; border-radius: 50%; }
.dl h2 { margin-bottom: 22px; }
.plat-get { display: flex; gap: 8px; }
.plat { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.plat-ico { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft); border-radius: 12px; }
.plat-ico svg { width: 20px; height: 20px; }
.plat-main b { display: block; font-size: 15.5px; font-weight: 600; }
.plat-main span { font-size: 13.5px; color: var(--muted); }
.plat.off .plat-ico, .plat.off .plat-main { opacity: 0.55; }
.plat.mine .plat-main b::after { margin-left: 8px; content: attr(data-mine); font-size: 12px; font-weight: 500; color: var(--acc-text); }
.plat-hash { display: flex; grid-column: 2 / -1; align-items: center; gap: 10px; min-width: 0; margin-top: 10px; padding: 6px 6px 6px 12px; background: var(--sunken); border: 1px solid var(--line-soft); border-radius: 10px; }
.plat-hash span { font-size: 12px; color: var(--muted); }
.plat-hash code { flex: 1; min-width: 0; overflow: hidden; font: 12px var(--mono); color: var(--text2); text-overflow: ellipsis; white-space: nowrap; }
.plat-hash .btn { width: 32px; padding: 0; }
.plat-how { grid-column: 2 / -1; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.plat-how code { font: 12px var(--mono); color: var(--text2); }
.dl-note { margin: 18px 0 0; padding-top: 18px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line-soft); }

.foot { padding: 28px 0 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot .brand { font-size: 14px; color: var(--text); }
.proj { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; color: var(--text2); }
.proj:hover { color: var(--text); }

@media (max-width: 980px) {
  .intro, .storage, .tail { grid-template-columns: 1fr; gap: 28px; }
  .bar-links { display: none; }
  .bar .lang { margin-left: auto; }
}
@media (max-width: 720px) {
  .intro { padding-top: 44px; }
  .win-body { grid-template-columns: 1fr; }
  .side { flex-direction: row; padding: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); scrollbar-width: none; }
  .side-logo { display: none; }
  .side-nav { flex-direction: row; }
  .side button { flex: none; }
  .side-lock { margin-top: 0; }
  .vault-body { font-size: 9.5px; padding: 14px 12px; }
  .va { padding-bottom: 110px; }
  .vault-key small { min-width: 0; }
  .plat { grid-template-columns: 40px minmax(0, 1fr); }
  .plat > .plat-get, .plat > .pill { grid-column: 2; justify-self: start; margin-top: 8px; }
  .proj { margin-left: 0; }
}

.demo-bar span { color: var(--muted); padding-left: 4px; }
.va { padding-bottom: 56px; }
