/* Clavis — site styles. Dark "vault at night": ink navy, one cobalt→cyan accent. */

:root {
  --ink:    #05080F;
  --ink-2:  #080D1B;
  --ink-3:  #0D1528;
  --panel:  rgba(255, 255, 255, 0.025);
  --line:   rgba(140, 170, 255, 0.10);
  --line-2: rgba(140, 170, 255, 0.20);
  --text:   #E8ECF6;
  --muted:  #9AA5BF;
  --dim:    #66718C;
  --cobalt: #2F6BFF;
  --azure:  #2FA6FF;
  --cyan:   #46E6FF;
  --paper:  #EEF2FB;
  --grad:   linear-gradient(115deg, #3D7BFF 0%, #2FA6FF 55%, #46E6FF 100%);
  --serif:  "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans:   "Hanken Grotesk", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap:   1180px;
  --radius: 22px;
  --ease:   cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(47, 166, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ── Atmosphere: glows, fine grid, grain ─────────────────────────────── */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 12% -10%, rgba(47, 107, 255, .20), transparent 60%),
    radial-gradient(50vw 40vw at 100% 30%, rgba(70, 230, 255, .08), transparent 60%),
    radial-gradient(70vw 60vw at 50% 120%, rgba(47, 107, 255, .12), transparent 60%),
    var(--ink);
}
.sky::before {                     /* hairline grid, fading out from the centre */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 170, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ── Type ────────────────────────────────────────────────────────────── */
.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--azure);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display {
  font: 400 clamp(52px, 7.4vw, 104px)/.95 var(--serif); letter-spacing: -.015em;
}
.display em, .h2 em, .statement em {
  font-style: italic;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.h2 { font: 400 clamp(38px, 4.6vw, 64px)/1.02 var(--serif); letter-spacing: -.01em; }
.lede { color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); max-width: 34em; }
.mono { font-family: var(--mono); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.btn-primary {
  color: #03101F; background: var(--grad);
  box-shadow: 0 10px 40px -10px rgba(47, 166, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(70, 230, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fineprint { font: 400 13px/1.5 var(--mono); color: var(--dim); letter-spacing: .02em; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 15, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 24px -6px rgba(47, 107, 255, .7); }
.brand span { font: 400 27px/1 var(--serif); letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
  position: relative; padding: 10px 16px; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: 15px; transition: color .3s, background .3s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.nav-links .btn { --h: 42px; padding: 0 20px; font-size: 14.5px; margin-left: 10px; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text);
  }
  .nav-links {
    position: fixed; top: 76px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 20px; background: rgba(8, 13, 27, .96); border: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 14px 16px; }
  .nav-links .btn { margin: 6px 0 0; }
}

/* ── Hero / lock story (home) ────────────────────────────────────────── */
.story { position: relative; height: 330vh; }
.stage {
  position: sticky; top: 0; height: 100vh; min-height: 640px;
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 40px;
  padding-top: 76px;
}
.story-copy { position: relative; z-index: 2; }
.story-copy .display { margin: 22px 0 22px; }
.story-copy .lede { margin: 0 0 34px; }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 4px; max-width: 30em; position: relative; }
.steps::before {                    /* rail */
  content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2);
}
.steps::after {                     /* progress along the rail */
  content: ""; position: absolute; left: 15px; top: 14px; width: 1px;
  height: calc((100% - 28px) * var(--p, 0)); background: var(--grad); box-shadow: 0 0 12px var(--azure);
}
.steps li {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: baseline;
  color: var(--dim); transition: color .5s var(--ease);
}
.steps li b {
  width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font: 500 11px/1 var(--mono); color: var(--dim); background: var(--ink); border: 1px solid var(--line-2);
  transition: all .5s var(--ease);
}
.steps li span { font-size: 16px; padding: 4px 0; }
.steps li.on { color: var(--text); }
.steps li.on b { color: #03101F; background: var(--grad); border-color: transparent; box-shadow: 0 0 18px rgba(70, 230, 255, .55); }

.scene-wrap { position: relative; height: min(76vh, 640px); perspective: 1400px; }
.scene { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); overflow: visible; }
.scene text { font-family: var(--mono); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
  transition: opacity .5s;
}
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--azure), transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 960px) {
  .story { height: 300vh; }
  .stage { grid-template-columns: 1fr; gap: 0; align-content: center; padding-top: 88px; }
  .scene-wrap { order: -1; height: 40vh; min-height: 260px; }
  .story-copy .display { font-size: clamp(42px, 11vw, 64px); margin: 12px 0 14px; }
  .story-copy .lede { margin-bottom: 20px; font-size: 16px; }
  .steps { display: none; }
  .scroll-hint { display: none; }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.block { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.block-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.block-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s;
}
.card::before {                      /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 166, 255, .12), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px;
  background: linear-gradient(145deg, rgba(47, 107, 255, .22), rgba(70, 230, 255, .06)); border: 1px solid rgba(70, 230, 255, .2);
  color: var(--cyan);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font: 600 19px/1.3 var(--sans); margin-bottom: 10px; letter-spacing: -.005em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Product showcase */
.showcase { position: relative; display: grid; grid-template-columns: 1fr; }
.windows { position: relative; height: clamp(320px, 52vw, 640px); }
.window {
  position: absolute; border-radius: 14px; overflow: hidden;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(140, 170, 255, .14);
  transition: transform .2s linear;
}
.window img { width: 100%; height: auto; }
.window.back  { width: 64%; right: 0;  top: 0;   opacity: .9; }
.window.front { width: 70%; left: 0;   top: 16%; }
.windows::after {
  content: ""; position: absolute; left: 20%; right: 10%; bottom: -8%; height: 40%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(47, 107, 255, .35), transparent 70%); filter: blur(30px);
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: clamp(40px, 5vw, 70px); }
.tag {
  font: 500 13px/1 var(--mono); color: var(--muted); padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
}

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.how::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.how li { list-style: none; padding: 0 28px; text-align: center; position: relative; }
.how .n {
  width: 56px; height: 56px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center;
  font: 400 26px/1 var(--serif); font-style: italic; color: var(--text);
  background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 0 0 8px var(--ink);
}
.how h3 { font: 600 19px/1.3 var(--sans); margin-bottom: 10px; }
.how p { margin: 0 auto; color: var(--muted); font-size: 15.5px; max-width: 22em; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 44px; } .how::before { display: none; } }

/* Privacy statement */
.privacy { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.statement { font: 400 clamp(36px, 4.2vw, 58px)/1.08 var(--serif); letter-spacing: -.01em; margin: 18px 0 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--line);
}
.checks svg { flex: none; width: 22px; height: 22px; color: var(--cyan); margin-top: 3px; }
.checks b { display: block; font-weight: 600; font-size: 16.5px; }
.checks span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; } }

/* Spec marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 500 14px/1 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.marquee span::before { content: "◆"; color: var(--azure); margin-right: 56px; font-size: 9px; vertical-align: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Final CTA */
.cta { text-align: center; padding: clamp(110px, 14vw, 190px) 0; position: relative; }
.cta .mark { width: 104px; height: 104px; margin: 0 auto 36px; border-radius: 28px; box-shadow: 0 30px 80px -20px rgba(47, 107, 255, .8); animation: float 6s ease-in-out infinite; }
.cta .h2 { margin-bottom: 18px; }
.cta .lede { margin: 0 auto 36px; }
.cta .btn-row { justify-content: center; }
.cta .fineprint { margin-top: 22px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--dim); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer .brand img { width: 28px; height: 28px; }
.footer .brand span { font-size: 22px; color: var(--text); }
.footer nav { display: flex; gap: 26px; }
.footer nav a:hover { color: var(--text); }
.footer .latin { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }

/* ── About page ──────────────────────────────────────────────────────── */
.page-hero { padding: calc(76px + clamp(80px, 12vw, 150px)) 0 clamp(60px, 8vw, 110px); position: relative; }
.page-hero .display { margin: 22px 0 26px; max-width: 12ch; }
.etym {
  display: inline-grid; gap: 6px; padding: 26px 30px; border-radius: 20px; margin-top: 12px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
}
.etym .word { font: 400 44px/1 var(--serif); }
.etym .word i { color: var(--muted); font-size: 22px; margin-left: 12px; }
.etym .def { font: 400 14px/1.5 var(--mono); color: var(--muted); }
.story-text { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.story-text p { margin: 0 0 1.2em; color: var(--muted); font-size: 18px; }
.story-text p:first-child::first-letter {
  font: 400 76px/.8 var(--serif); float: left; margin: 8px 12px 0 0; color: var(--text);
}
@media (max-width: 900px) { .story-text { grid-template-columns: 1fr; } }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.principle { padding: 34px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.principle .num { font: 400 italic 44px/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; margin-bottom: 18px; }
.principle h3 { font: 600 20px/1.3 var(--sans); margin-bottom: 10px; }
.principle p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.spec { display: flex; justify-content: space-between; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.spec:nth-child(odd) { padding-right: 36px; }
.spec:nth-child(even) { padding-left: 36px; border-left: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font: 500 14.5px/1.6 var(--mono); text-align: right; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } .spec:nth-child(even) { padding-left: 4px; border-left: 0; } .spec:nth-child(odd) { padding-right: 4px; } }

/* ── Download page ───────────────────────────────────────────────────── */
.dl-hero { padding: calc(76px + clamp(70px, 10vw, 120px)) 0 clamp(60px, 7vw, 90px); }
.dl-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: 30px; overflow: hidden;
  background: linear-gradient(135deg, rgba(47, 107, 255, .16), rgba(70, 230, 255, .04) 60%, rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2);
}
.dl-card::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; z-index: -1;
  background: radial-gradient(circle, rgba(70, 230, 255, .22), transparent 65%);
}
.dl-card > img { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 24px 60px -16px rgba(47, 107, 255, .85); }
.dl-card h1 { font: 400 clamp(38px, 4.4vw, 58px)/1 var(--serif); margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font: 500 13px/1 var(--mono); padding: 9px 13px; border-radius: 999px; color: var(--muted); background: rgba(5, 8, 15, .45); border: 1px solid var(--line-2); }
.pill.accent { color: var(--cyan); border-color: rgba(70, 230, 255, .35); }
.dl-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.dl-card .btn-primary { --h: 62px; padding: 0 32px; font-size: 17px; }
.dl-card .btn-ghost { --h: 48px; padding: 0 24px; font-size: 15px; }
.dl-actions .btn { justify-content: center; white-space: nowrap; }
.dl-actions .btn svg { width: 18px; height: 18px; flex: none; }
/* One download card: header, then a tile per operating system (visitor's OS first). */
.dl-card.dl-one { display: flex; flex-direction: column; gap: 28px; align-items: stretch; }
.dl-head { display: flex; align-items: center; gap: 26px; }
.dl-head > img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 24px 60px -16px rgba(47, 107, 255, .85); flex: none; }
.os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.os-tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px; border-radius: 22px;
  background: rgba(5, 8, 15, .35); border: 1px solid var(--line-2); }
.os-tile.is-you { border-color: rgba(70, 230, 255, .5); background: linear-gradient(160deg, rgba(47, 107, 255, .18), rgba(5, 8, 15, .35) 70%); }
.os-badge { display: none; position: absolute; top: 16px; right: 16px; font: 600 10.5px/1 var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(70, 230, 255, .4); border-radius: 999px; padding: 6px 9px; }
.os-tile.is-you .os-badge { display: inline-block; }
.os-grid.detected .os-tile:not(.is-you) .btn-primary { background: rgba(255, 255, 255, .07); color: var(--text); box-shadow: none; border: 1px solid var(--line-2); }
.os-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.os-logo { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); }
.os-logo svg { width: 30px; height: 30px; }
.os-name { font: 400 28px/1 var(--serif); color: var(--text); }
.os-sub { margin-top: 6px; font: 400 12.5px/1.4 var(--mono); color: var(--dim); }
.os-tile .btn { width: 100%; justify-content: center; white-space: nowrap; }
.os-tile .btn svg { width: 18px; height: 18px; flex: none; }
.dl-card .os-tile .btn-primary { --h: 54px; font-size: 16px; }
.dl-card .os-tile .btn-ghost { --h: 44px; font-size: 14px; }
.mobile-note { margin: 0; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.55; color: var(--muted);
  background: rgba(70, 230, 255, .07); border: 1px solid rgba(70, 230, 255, .3); }
.mobile-note[hidden] { display: none; }
.os-note { margin: 2px 0 0; font: 400 12.5px/1.6 var(--mono); color: var(--dim); }
.os-note code { color: var(--muted); }
@media (max-width: 560px) { .dl-head { flex-direction: column; align-items: flex-start; gap: 18px; } .os-badge { position: static; align-self: flex-start; } }
@media (max-width: 860px) { .dl-card { grid-template-columns: 1fr; text-align: left; } .dl-actions { align-items: stretch; } .dl-card .btn { width: 100%; } }

.dl-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }
.panel { padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.panel h2 { font: 400 32px/1.1 var(--serif); margin-bottom: 22px; }
.install { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: i; }
.install li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; counter-increment: i; }
.install li::before {
  content: counter(i); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 500 13px/1 var(--mono); color: var(--cyan); border: 1px solid rgba(70, 230, 255, .35); background: rgba(70, 230, 255, .06);
}
.install b { display: block; font-weight: 600; margin-bottom: 2px; }
.install span { color: var(--muted); font-size: 15.5px; }
.smartscreen {
  margin-top: 26px; padding: 18px 20px; border-radius: 16px; border: 1px dashed rgba(70, 230, 255, .3);
  background: rgba(70, 230, 255, .04); color: var(--muted); font-size: 15px;
}
.smartscreen b { color: var(--text); }
.kbd { font: 500 13px/1 var(--mono); padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); white-space: nowrap; }
.req { list-style: none; margin: 0; padding: 0; }
.req li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.req li:last-child { border-bottom: 0; }
.req span { color: var(--muted); }
.notes h3 { font: 600 17px/1.3 var(--sans); margin: 22px 0 8px; }
.notes h3:first-child { margin-top: 0; }
.notes ul { margin: 0; padding-left: 20px; color: var(--muted); }
.notes li { margin: 6px 0; }
.notes li::marker { color: var(--azure); }
.notes strong { color: var(--text); font-weight: 600; }
.notes code { font: 500 13.5px var(--mono); color: var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--azure); border-bottom: 1.5px solid var(--azure); transform: rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 46em; }

/* ── Reveal on scroll ────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.intro > * { animation: rise 1.1s var(--ease) both; }
.intro > *:nth-child(2) { animation-delay: .08s; } .intro > *:nth-child(3) { animation-delay: .16s; }
.intro > *:nth-child(4) { animation-delay: .24s; } .intro > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .story { height: auto; }
  .stage { position: relative; height: auto; min-height: 100vh; }
}

/* Scene details */
.bits text { font: 500 13px var(--mono); fill: #2FA6FF; opacity: .55; animation: drift 9s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); opacity: .15; } 50% { transform: translateY(-14px); opacity: .6; } }
.now { display: none; }
@media (max-width: 960px) {
  .now { display: block; margin: 0 0 18px; font: 500 13px/1.4 var(--mono); color: var(--cyan); letter-spacing: .04em; min-height: 1.4em; }
}

/* About: floating mark balancing the hero */
.hero-mark {
  position: absolute; top: 50%; right: max(24px, calc((100vw - var(--wrap)) / 2));
  width: min(30vw, 400px); aspect-ratio: 1; border-radius: 24%;
  transform: translateY(-38%) rotate(-7deg);
  box-shadow: 0 60px 140px -30px rgba(47, 107, 255, .75), 0 0 0 1px rgba(140, 170, 255, .12);
  animation: markFloat 9s ease-in-out infinite;
}
.hero-mark-glow {
  position: absolute; top: 50%; right: calc(max(24px, calc((100vw - var(--wrap)) / 2)) - 80px); z-index: -1;
  width: min(44vw, 580px); aspect-ratio: 1; transform: translateY(-45%);
  background: radial-gradient(circle, rgba(47, 140, 255, .28), transparent 62%); filter: blur(10px);
}
@keyframes markFloat { 50% { transform: translateY(-42%) rotate(-4deg); } }
@media (max-width: 900px) { .hero-mark, .hero-mark-glow { display: none; } }

/* ── Screenshot figure ────────────────────────────────────────────────── */
.shot { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.shot img { display: block; width: 100%; height: auto; }

/* ── Blog ─────────────────────────────────────────────────────────────── */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); transition: transform .3s var(--ease), border-color .3s var(--ease);
  text-decoration: none; color: inherit; cursor: pointer; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(70, 230, 255, .35); }
.post-card:hover .more { text-decoration: underline; }
.post-card .tag { font: 500 12px/1 var(--mono); color: var(--cyan); letter-spacing: .06em; text-transform: uppercase; }
.post-card h3 { font: 400 24px/1.15 var(--serif); }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .when { margin-top: auto; font: 400 13px/1 var(--mono); color: var(--dim); }
.post-card a.more { color: var(--cyan); font-weight: 600; }

.post { max-width: 760px; margin: 0 auto; }
.post .post-meta { font: 500 13px/1 var(--mono); color: var(--dim); letter-spacing: .04em; margin-bottom: 18px; }
.post h1 { font: 400 clamp(34px, 4.4vw, 52px)/1.05 var(--serif); margin-bottom: 20px; }
.post h2 { font: 400 clamp(24px, 2.6vw, 32px)/1.15 var(--serif); margin: 40px 0 14px; }
.post h3 { font: 600 19px/1.3 var(--sans, inherit); margin: 28px 0 10px; color: var(--text); }
.post p, .post li { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.post p { margin: 0 0 16px; }
.post ul, .post ol { margin: 0 0 16px; padding-left: 22px; }
.post li { margin: 0 0 8px; }
.post a { color: var(--cyan); }
.post strong { color: var(--text); }
.post .callout { margin: 24px 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(47, 107, 255, .12), rgba(70, 230, 255, .03)); color: var(--text); font-size: 15.5px; }
.post .callout b { color: var(--cyan); }
.post-cta { margin-top: 40px; text-align: center; }

/* ── Prose tables (blog comparisons) ──────────────────────────────────── */
.post .table-wrap { overflow-x: auto; margin: 24px 0; }
.post table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.post th, .post td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.post thead th { font: 600 13px/1.2 var(--mono); color: var(--text); letter-spacing: .03em; text-transform: uppercase; }
.post tbody td { color: var(--muted); }
.post tbody td:first-child { color: var(--text); font-weight: 500; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 820px; margin: 0 auto; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 24px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); }
.plan.featured { border-color: rgba(70, 230, 255, .45);
  background: linear-gradient(160deg, rgba(47, 107, 255, .16), rgba(70, 230, 255, .04) 60%, rgba(255, 255, 255, .02));
  box-shadow: 0 30px 80px -34px rgba(47, 107, 255, .7); }
.plan .badge { position: absolute; top: 16px; right: 18px; font: 600 11px/1 var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(70, 230, 255, .4); border-radius: 999px; padding: 6px 10px; }
.plan-head h2 { font: 400 30px/1 var(--serif); margin-bottom: 12px; }
.plan .amount { font: 400 clamp(40px, 5vw, 54px)/1 var(--serif); color: var(--text); }
.plan .amount .once { font: 500 15px/1 var(--mono); color: var(--muted); }
.plan .per { margin-top: 8px; font: 400 13px/1.4 var(--mono); color: var(--dim); }
.plan .feat { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan .feat li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.plan .feat li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.plan .feat li b { color: var(--text); }
.plan .plan-cta { width: 100%; justify-content: center; }
.plan .plan-cta.is-soon { cursor: default; opacity: .75; pointer-events: none; }
.plan .plan-ask { display: block; margin-top: 12px; text-align: center; font: 500 13px/1.4 var(--mono); color: var(--cyan); }
.plan .plan-ask:hover { text-decoration: underline; }
.price-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; }
.plan .feat li code { font: 500 13px var(--mono); color: var(--text); }
.plan .soon { margin-left: 6px; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 7px; vertical-align: 2px; }
@media (max-width: 960px) { .price-grid.three { grid-template-columns: 1fr; max-width: 520px; } }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }

/* ── Pricing creed (trust statement) ──────────────────────────────────── */
.creed { margin: 0 auto; max-width: 760px; text-align: center; border: 0; }
.creed-line { font: 400 clamp(26px, 3.4vw, 40px)/1.15 var(--serif); color: var(--text); }
.creed-line::before, .creed-line::after { content: ""; }
.creed-sub { margin-top: 18px; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.7; color: var(--muted); }
.creed-sub b { color: var(--cyan); }

/* ── Footer legal links ───────────────────────────────────────────────── */
.foot-legal { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.foot-legal a { font-size: 12px; color: var(--dim); }
.foot-legal a:hover { color: var(--muted); }

/* ── Download checksums ───────────────────────────────────────────────── */
.checksums { margin-top: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02); font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.checksums b { color: var(--text); }
.checksums code { font: 400 12.5px/1.5 var(--mono); color: var(--text); }
.checksums dl { margin: 10px 0 0; display: grid; gap: 8px; }
.checksums dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.checksums dt { font: 500 12.5px/1.5 var(--mono); color: var(--dim); }
.checksums dd { margin: 0; }
.checksums .hash { word-break: break-all; color: var(--cyan); }
@media (max-width: 600px) { .checksums dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ── Help centre ──────────────────────────────────────────────────────── */
:root { --mark: #FF5C39; }   /* the coral of the numbered badges in help screenshots */
.post.help-article { max-width: 860px; }
.help-shot { margin: 6px -24px 22px; }   /* the images carry their own transparent margin */
@media (min-width: 1100px) { .help-shot { margin-left: -80px; margin-right: -80px; } .help-shot .help-steps { margin-left: 80px; margin-right: 80px; } }
.help-shot img { display: block; width: 100%; height: auto; }
.help-shot .help-steps { list-style: none; counter-reset: step; margin: -26px 24px 0; padding: 0; display: grid; gap: 10px; }
.help-shot .help-steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.55; }
.help-shot .help-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mark); color: #fff; font: 600 13px/26px var(--sans); text-align: center; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 700px) { .help-shot { margin-left: -12px; margin-right: -12px; } .help-shot .help-steps { margin: -10px 12px 0; } }
.plan-chip { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
  color: var(--cyan); border: 1px solid rgba(70, 230, 255, .4); border-radius: 999px; padding: 4px 8px; }
.plan-chip.plan-free { color: #7CE3A1; border-color: rgba(124, 227, 161, .4); }
.plan-chip.plan-premium { color: #FFC86B; border-color: rgba(255, 200, 107, .45); }
.post kbd { font: 500 13px var(--mono); color: var(--text); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.post code { font: 400 .9em var(--mono); color: var(--text); }
.help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0 18px; }
.help-pager a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-2);
  color: var(--text); font-weight: 500; transition: border-color .25s var(--ease); }
.help-pager a:hover { border-color: rgba(70, 230, 255, .4); }
.help-pager a span { font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: .05em; text-transform: uppercase; }
.help-pager a.next { text-align: right; grid-column: 2; }
.help-more { font-size: 14.5px; color: var(--dim); }
@media (max-width: 600px) { .help-pager { grid-template-columns: 1fr; } .help-pager a.next { grid-column: auto; } }

.help-search { margin-top: 30px; max-width: 560px; }
.help-search input { width: 100%; padding: 15px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--text); font: 400 16px var(--sans); outline: none; transition: border-color .2s var(--ease); }
.help-search input:focus { border-color: rgba(70, 230, 255, .55); }
.help-search input::placeholder { color: var(--dim); }
.help-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.help-chips a { font: 500 13px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; }
.help-chips a:hover { color: var(--text); border-color: rgba(70, 230, 255, .4); }
.help-cat { margin-bottom: 64px; scroll-margin-top: 100px; }
.help-cat h2 { font: 400 clamp(28px, 3vw, 38px)/1.1 var(--serif); margin-bottom: 8px; }
.help-cat-blurb { color: var(--muted); margin: 0 0 26px; }
.help-card h3 { font-size: 22px; }
.help-empty { color: var(--muted); }

/* File Explorer menu illustration */
.ctx-demo { position: relative; margin: 28px 0 34px; padding: 34px 28px 22px; border-radius: 18px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 90% at 20% 0%, rgba(47, 107, 255, .16), transparent 60%), rgba(255, 255, 255, .02);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; }
.ctx-menu { width: 232px; padding: 6px; border-radius: 10px; background: #F9F9FB; color: #1B1B1F; font: 400 14px/1 "Segoe UI", var(--sans);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .08); }
.ctx-sub { margin: 76px 0 0 -6px; width: 250px; }
.ctx-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 38px; border-radius: 6px; position: relative; }
.ctx-item img { position: absolute; left: 11px; width: 18px; height: 18px; }
.ctx-more { margin-left: auto; color: #555; }
.ctx-sep { height: 1px; margin: 5px 8px; background: #E1E1E6; }
.ctx-hot { background: #E6ECFA; }
.ctx-pick { background: #E6ECFA; outline: 2.5px solid var(--mark); outline-offset: -1px; }
.ctx-arrow { position: relative; flex: none; margin: 85px 0 0 46px; width: 30px; height: 30px; border-radius: 50%; background: var(--mark); color: #fff;
  font: 600 14px/30px var(--sans); text-align: center; box-shadow: 0 0 0 3px #fff; }
.ctx-arrow::before { content: ""; position: absolute; right: 36px; top: 13.5px; width: 30px; height: 3px; background: var(--mark); }
.ctx-arrow::after { content: ""; position: absolute; right: 62px; top: 9px; border: 6px solid transparent; border-right: 10px solid var(--mark); border-left: 0; }
.ctx-demo figcaption { flex-basis: 100%; margin-top: 22px; font-size: 14px; color: var(--dim); }
@media (max-width: 620px) { .ctx-sub { margin: 10px 0 0 40px; } .ctx-arrow { display: none; } }

/* Terminal */
.term { margin: 26px 0 30px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0B0F1A;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #121829; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2A3350; }
.term-bar span { margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--dim); }
.term pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 400 13.5px/1.7 var(--mono); color: #C9D3EA; tab-size: 4; }
.term .t-prompt { color: #6E7FA8; }
.term .t-cmd { color: #FFFFFF; font-weight: 500; }
.term .t-dim { color: #6E7FA8; }
.help-card[hidden], .help-cat[hidden], .help-empty[hidden] { display: none; }
.card .card-link { position: relative; z-index: 1; color: var(--cyan); white-space: nowrap; }
.card .card-link:hover { text-decoration: underline; }
.features-more { margin-top: 30px; text-align: center; }
.features-more a { color: var(--cyan); font-weight: 600; }
.card::before { pointer-events: none; }
