/* Swoop: Ubuntu type with the original indigo and blue palette.
   The hero demo is the one loud thing; everything else stays quiet. */
:root {
  --paper: #FFFFFF;
  --canvas: #ECEEF6;
  --mist: #E1E4F1;
  --ink: #17183B;
  --ink-soft: #4A4C78;
  --dusk: #2B2D6E;
  --plum: #0060D6;        /* links */
  --orange: #0A84FF;      /* accent (blue) */
  --orange-deep: #0060D6;
  --glow: #9FD3FF;
  --line: rgba(23, 24, 59, 0.12);

  --font: "Ubuntu", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Ubuntu Mono", ui-monospace, Menlo, monospace;
  --measure: 62ch;
  --radius: 14px;
  --spring: cubic-bezier(.2, .9, .25, 1.12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1280px; /* max-w-7xl */
  --gutter: clamp(16px, 4vw, 32px);
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .95em; background: var(--mist); padding: .05em .35em; border-radius: 5px; }
b { font-weight: 500; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--edge);
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--orange); color: #fff;
  font: 500 17px/1 var(--font);
  text-decoration: none; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -10px rgba(10,132,255,.8);
  transition: background .15s ease, transform .15s ease;
}
.button:hover { background: var(--orange-deep); color: #fff; }
.button:active { transform: translateY(1px); }
.button.small { padding: 9px 16px; font-size: 15px; }
.ghost-button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(23,24,59,.2); }
.ghost-button:hover { background: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 80px) var(--gutter) 32px;
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto;
}
.hero-copy { max-width: 640px; }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lede { max-width: 44ch; font-size: clamp(18px, 1.7vw, 21px); font-weight: 300; color: var(--ink-soft); margin: 24px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.fine { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- The 3D demo ---------- */
.stage { margin-top: clamp(36px, 6vw, 64px); perspective: 1800px; perspective-origin: 50% 20%; }
.display {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 18px;
  border: 10px solid #15162E;
  background: #15162E;
  box-shadow:
    0 2px 0 1px #3A3C66 inset,
    0 60px 80px -40px rgba(23,24,59,.55),
    0 30px 40px -30px rgba(23,24,59,.4);
  transform-style: preserve-3d;
  transform: rotateX(24deg) rotateY(-10deg) rotateZ(2.5deg) scale(.92);
  transition: transform .9s var(--spring);
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.stage.engaged .display,
.display:focus-visible { transform: rotateX(0) rotateY(0) rotateZ(0) scale(1); }
.display:focus-visible { box-shadow: 0 0 0 4px var(--orange), 0 60px 80px -40px rgba(23,24,59,.55); }

.menubar {
  position: absolute; inset: 0 0 auto 0; height: 4.2%;
  display: flex; align-items: center; gap: 1.6%;
  padding: 0 1.4%;
  font-size: clamp(8px, 1vw, 13px);
  color: #fff;
  background: rgba(20, 22, 54, .55);
  backdrop-filter: blur(10px);
  border-radius: 8px 8px 0 0;
  z-index: 5;
}
.menubar .apple { width: .9em; height: 1em; background: #fff; border-radius: 45% 45% 50% 50%; opacity: .95; }
.menubar .spacer { flex: 1; }
.menubar .status-ring { width: 1em; height: 1em; border-radius: 50%; border: .2em solid rgba(255,255,255,.5); border-top-color: #fff; }
.desktop {
  position: absolute; inset: 4.2% 0 0 0;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background:
    radial-gradient(60% 70% at 18% 20%, rgba(159, 211, 255, .55), transparent 60%),
    radial-gradient(50% 60% at 85% 80%, rgba(191, 90, 242, .45), transparent 65%),
    radial-gradient(40% 50% at 70% 15%, rgba(10, 132, 255, .5), transparent 60%),
    linear-gradient(160deg, #3B3F9A 0%, var(--dusk) 55%, #1B1C48 100%);
  transform-style: preserve-3d;
}
.dock {
  position: absolute; left: 50%; bottom: 1.6%; transform: translateX(-50%) translateZ(40px);
  display: flex; gap: .7vw; padding: .5vw .7vw;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(14px); border-radius: 1.2vw; z-index: 6;
}
.dock span { width: clamp(16px, 2.6vw, 38px); aspect-ratio: 1; border-radius: 26%; background: linear-gradient(145deg, #fff, #C9D7FF); }
.dock span:nth-child(2) { background: linear-gradient(145deg, #2B2D6E, #11122C); }
.dock span:nth-child(3) { background: linear-gradient(145deg, #FFD66B, #FF9F0A); }
.dock span:nth-child(4) { background: linear-gradient(145deg, #69E3A8, #1FB574); }
.dock span:nth-child(5) { background: url("favicon.png") center / cover; }

.win {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.97);
  border-radius: clamp(6px, .9vw, 12px);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.25), 0 18px 40px -12px rgba(8, 10, 40, .55);
  overflow: hidden;
  transform: translateZ(var(--z, 20px));
  transition:
    left .42s var(--spring), top .42s var(--spring),
    width .42s var(--spring), height .42s var(--spring),
    transform .9s var(--spring);
  font-size: clamp(7px, 1vw, 13px);
}
.stage.engaged .win { transform: translateZ(0); }
.win.active { box-shadow: 0 0 0 .5px rgba(0,0,0,.3), 0 26px 50px -14px rgba(8, 10, 40, .7); }
.win .bar {
  flex: none; display: flex; align-items: center; gap: .45em;
  height: 2.2em; padding: 0 .8em;
  background: #F3F4FA; border-bottom: 1px solid #E3E5F0; color: #6B6E97;
}
.win .bar i { width: .85em; height: .85em; border-radius: 50%; background: #D7D9E6; }
.win.active .bar i:nth-child(1) { background: #FF5F57; }
.win.active .bar i:nth-child(2) { background: #FEBC2E; }
.win.active .bar i:nth-child(3) { background: #28C840; }
.win .bar span { margin: 0 auto; padding-right: 3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win .body { flex: 1; min-height: 0; overflow: hidden; }

.browser { padding: 1.2em; display: flex; flex-direction: column; gap: .7em; }
.b-hero { height: 38%; border-radius: .6em; background: linear-gradient(120deg, #C9D7FF, #E9D8FF); }
.b-line { height: .8em; width: 70%; border-radius: 1em; background: #E3E5F0; }
.b-line.short { width: 45%; }
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; flex: 1; }
.b-grid span { border-radius: .5em; background: #F0F1F8; }

.terminal {
  margin: 0; padding: 1em; background: #14152E; color: #C8F7DC;
  font: 1em/1.5 var(--mono); white-space: pre-wrap;
}
.caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: #C8F7DC; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.notes { padding: 1.2em 1.4em; background: #FFFBEA; color: #3A3422; }
.notes p { margin: 0 0 .45em; }
.notes .n-title { font-weight: 700; font-size: 1.25em; margin-bottom: .6em; }

/* Preview outline */
.preview {
  position: absolute; z-index: 30;
  border: 2.5px solid var(--orange);
  background: rgba(10, 132, 255, .16);
  border-radius: clamp(6px, .9vw, 12px);
  backdrop-filter: blur(2px);
  transition: left .18s ease-out, top .18s ease-out, width .18s ease-out, height .18s ease-out;
  pointer-events: none;
}

/* Radial ring */
.ring {
  position: absolute; z-index: 40; width: clamp(104px, 11vw, 150px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ring-in .14s ease-out;
}
@keyframes ring-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.85); } }
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(23, 24, 59, .38);
  backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3);
}
.ring svg { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 22px rgba(8,10,40,.5)); }
.ring .seg { fill: rgba(255,255,255,.22); stroke: rgba(255,255,255,.5); stroke-width: .6; transition: fill .12s; }
.ring .seg.on { fill: var(--orange); stroke: #fff; }
.ring .hub { fill: rgba(255,255,255,.3); stroke: rgba(255,255,255,.7); stroke-width: .6; transition: fill .12s; }
.ring .hub.on { fill: var(--orange); }
.ring-label {
  position: absolute; left: 50%; top: 104%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  padding: .35em .9em; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: clamp(9px, 1.05vw, 13px); line-height: 1.3;
  box-shadow: 0 6px 16px -6px rgba(8,10,40,.5);
}
.ring-label b { font-weight: 500; }
.ring-label small { color: var(--ink-soft); font-size: .82em; }
.ring-label small:empty { display: none; }

.ghost { position: absolute; z-index: 45; width: clamp(14px, 1.7vw, 22px); transform: translate(-3px, -2px); pointer-events: none; transition: left .55s cubic-bezier(.45,.05,.25,1), top .55s cubic-bezier(.45,.05,.25,1); }
.ghost.instant { transition: none; }
.keycap-hint { position: absolute; z-index: 45; right: 2.5%; bottom: 14%; pointer-events: none; }
.keycap-hint kbd { font-size: clamp(14px, 2.2vw, 28px); padding: .3em .6em; box-shadow: 0 4px 0 #9EA3C7, 0 8px 18px -6px rgba(0,0,0,.5); }
.keycap-hint.down kbd { transform: translateY(3px); box-shadow: 0 1px 0 #9EA3C7; background: var(--glow); }

kbd {
  display: inline-block; min-width: 1.9em; padding: .15em .5em;
  font: 700 .9em/1.3 var(--mono); text-align: center;
  color: var(--ink); background: var(--paper);
  border: 1px solid #C9CCE2; border-radius: 7px;
  box-shadow: 0 2px 0 #C9CCE2;
}

.demo-help { text-align: center; color: var(--ink-soft); font-size: 15px; margin: 22px auto 0; max-width: 60ch; }
.touch-only { display: none; }
@media (hover: none) { .desk-only { display: none; } .touch-only { display: inline; } }

@media (min-width: 1100px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 24px;
    padding-top: 56px;
  }
  .hero h1 { font-size: clamp(56px, 5vw, 76px); }
  .stage { margin-top: 0; perspective: 2000px; perspective-origin: 0% 40%; }
  .display { transform: rotateY(-24deg) rotateX(7deg) rotateZ(-1deg) translateX(2%) scale(.94); }
}

/* ---------- Sections ---------- */
main > section:not(.hero) {
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) var(--gutter) 0;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
h3 { margin: 0 0 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.section-head p { max-width: var(--measure); color: var(--ink-soft); margin: 0 0 36px; }

/* Hold → flick → release: a true sequence, so it's numbered. */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-size: 56px; line-height: 1; font-weight: 300; color: var(--orange); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 36ch; }

/* ---------- Install ---------- */
.install-ways { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-bottom: 52px; align-items: start; }
.install-ways > * { min-width: 0; }
.way h3 { margin-bottom: 8px; }
.way p { margin: 0 0 16px; color: var(--ink-soft); max-width: 56ch; }
.way p:last-child { margin-bottom: 0; }
.way-fast { padding: 28px; border-radius: var(--radius); background: var(--ink); }
.way-fast h3 { color: #fff; }
.way-fast p { color: #B9BCE6; }
.way-fast a { color: var(--glow); }
.way:not(.way-fast) { padding-top: 28px; }
.copy-line {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 18px; margin-bottom: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
}
.copy-line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: #fff; background: none; padding: 0; font-size: 17px; }
.copy {
  flex: none; padding: 9px 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--orange); color: #fff; font: 500 15px/1 var(--font);
}
.copy:hover { background: var(--orange-deep); }
.copy.done { background: #1FB574; }

.walkthrough { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 22px; counter-reset: walk; }
.walkthrough li { counter-increment: walk; }
.walkthrough h3 { font-size: 19px; display: flex; align-items: baseline; gap: 10px; }
.walkthrough h3::before { content: counter(walk); color: var(--orange); font-weight: 700; font-size: 20px; }
.walkthrough p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.shot {
  height: 188px; margin-bottom: 16px; border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #3B3F9A 0%, var(--dusk) 60%, #1B1C48 100%);
}
.mac-dialog {
  width: 168px; padding: 10px 12px; border-radius: 14px; text-align: center;
  background: rgba(40, 41, 56, .94); color: #fff; font-size: 10.5px; line-height: 1.3;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6);
}
.mac-dialog.small { width: 150px; }
.mac-dialog b { font-size: 11.5px; font-weight: 700; }
.mac-dialog span { color: #C9CADB; }
.md-icon { width: 26px; height: 26px; margin: 0 auto 2px; border-radius: 6px; background: linear-gradient(145deg, #C7CAD6, #8C90A3); position: relative; }
.md-icon::after { content: "!"; position: absolute; right: -5px; bottom: -4px; width: 13px; height: 13px; border-radius: 3px; background: #FFC93C; color: #222; font: 700 10px/13px var(--font); }
.md-touch { width: 26px; height: 26px; margin: 0 auto 2px; border-radius: 50%; border: 2px solid #FF6B81; }
.md-btn { display: block; padding: 5px; border-radius: 7px; font-style: normal; font-weight: 500; background: rgba(255,255,255,.12); }
.md-btn.md-pick { background: #0A84FF; outline: 2px solid #fff; outline-offset: 2px; }
.mac-pane { width: 88%; padding: 12px; border-radius: 12px; background: rgba(36, 37, 52, .95); color: #fff; font-size: 11px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.mac-pane small { display: block; font-weight: 700; font-size: 12px; margin-bottom: 8px; }
.mp-row { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,.07); }
.mp-row span { flex: 1; line-height: 1.3; }
.mp-row .md-btn { flex: none; padding: 5px 8px; font-size: 10.5px; }
.mp-app { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mp-app img { border-radius: 4px; }
.toggle { flex: none; width: 34px; height: 20px; border-radius: 10px; background: #555; position: relative; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.toggle.on { background: #0A84FF; outline: 2px solid #fff; outline-offset: 2px; }
.toggle.on::after { left: 16px; }
.flick-hint { display: flex; align-items: center; gap: 22px; }
.flick-hint kbd { font-size: 28px; padding: .25em .6em; box-shadow: 0 4px 0 #9EA3C7; }
.flick-ring { width: 76px; height: 76px; border-radius: 50%; border: 16px solid rgba(255,255,255,.25); border-right-color: var(--orange); }

.why-warning { margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 78ch; color: var(--ink-soft); font-size: 16px; }
.why-warning b { color: var(--ink); }

/* ---------- Layouts ---------- */
.catalogue { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.group h3 { font-size: 17px; margin-bottom: 12px; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 80px; gap: 12px; }
.group li { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.screen-mini {
  position: relative; aspect-ratio: 16 / 10; margin-bottom: 6px;
  border-radius: 6px; background: var(--paper); border: 1px solid var(--line);
}
.screen-mini::before { content: ""; position: absolute; inset: 0 0 auto; height: 9%; background: var(--mist); border-radius: 5px 5px 0 0; }
.screen-mini span { position: absolute; border-radius: 3px; background: var(--orange); }
.extras { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 48px; }
.extras li { color: var(--ink-soft); max-width: 50ch; }
.extras b { color: var(--ink); }

/* ---------- Keys ---------- */
.keylist { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.keylist div { display: flex; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.keylist dt { flex: none; width: 180px; display: flex; gap: 6px; }
.keylist dd { margin: 0; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details { max-width: 860px; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 30px; font-weight: 300; color: var(--orange); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: var(--measure); }

/* ---------- Final ---------- */
.final { text-align: center; padding-bottom: 32px !important; }
.final img { margin: 0 auto 22px; filter: drop-shadow(0 18px 28px rgba(23,24,59,.3)); }
.final h2 { margin: 0 auto 26px; }
.final .fine { margin-top: 16px; }

.foot { max-width: var(--container); margin: 80px auto 0; padding: 28px 0 48px; width: calc(100% - 2 * var(--gutter)); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }


/* ---------- Star on GitHub: liquid glass button ---------- */
.gh-star {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 14px; margin-left: 4px;
  border-radius: 10px; text-decoration: none; color: #fff;
  font: 500 15px/1 var(--font); letter-spacing: .01em; white-space: nowrap;
}
.top nav + .gh-star { margin-left: 8px; }
.gh-glow {
  position: absolute; z-index: -2; left: 50%; top: 18%;
  width: 112%; height: 125%; transform: translateX(-50%);
  border-radius: 10px; overflow: hidden; filter: blur(16px); opacity: .7;
}
.gh-body {
  position: absolute; z-index: -1; inset: 0;
  border-radius: 10px; overflow: hidden; background: #010128;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.liquid { position: absolute; inset: -40%; display: block; }
.liquid i {
  position: absolute; width: 70%; height: 70%; border-radius: 50%;
  filter: blur(12px); mix-blend-mode: screen; opacity: .95;
  animation: liquid 7s ease-in-out infinite alternate;
}
.liquid i:nth-child(1) { left: 0;   top: 10%; background: radial-gradient(circle, #0B06FC 0%, transparent 65%); }
.liquid i:nth-child(2) { left: 35%; top: 30%; background: radial-gradient(circle, #4743EF 0%, transparent 65%); animation-duration: 9s; animation-delay: -3s; }
.liquid i:nth-child(3) { left: 15%; top: 45%; background: radial-gradient(circle, #1E10C5 0%, transparent 65%); animation-duration: 6s; animation-delay: -1s; }
.liquid i:nth-child(4) { left: 50%; top: 0;   background: radial-gradient(circle, #7D7BF4 0%, transparent 60%); animation-duration: 8s; animation-delay: -5s; opacity: .6; }
.liquid i:nth-child(5) { left: 25%; top: 20%; background: radial-gradient(circle, #B6BAF6 0%, transparent 55%); animation-duration: 11s; animation-delay: -2s; opacity: .35; }
@keyframes liquid {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(22%, -12%) scale(1.2); }
  100% { transform: translate(-18%, 14%) scale(.9); }
}
.gh-shine {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 45%);
  mix-blend-mode: overlay;
}
.gh-shine::after {
  content: ""; position: absolute; left: 15%; right: 15%; top: 30%; height: 45%;
  border-radius: 10px; background: #000066; filter: blur(12px); opacity: .55;
}
.gh-label { position: relative; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.gh-label > svg { fill: currentColor; transition: fill .2s; }
.gh-count {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; margin-left: 2px; border-radius: 6px;
  background: rgba(255,255,255,.14); font-size: 13px;
}
.gh-count svg { fill: currentColor; }
.gh-count[hidden] { display: none; }
.gh-star:hover { color: #FACC15; }
.gh-star:hover .liquid i { animation-duration: 2.2s; }
.gh-star:hover .gh-glow { opacity: .95; }
.gh-star:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 900px) {
  .top nav + .gh-star { margin-left: auto; padding: 0 12px; }
  .top .gh-star + .button.small { margin-left: 0; }
  .top { gap: 10px; }
}
@media (max-width: 520px) {
  .gh-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .liquid i { animation: none; }
}


/* =====================================================================
   Premium finish: one container, refined surfaces, smooth motion.
   ===================================================================== */
::selection { background: rgba(10, 132, 255, .2); }
body {
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(10, 132, 255, .14), transparent 70%),
    radial-gradient(900px 520px at 8% 4%, rgba(191, 90, 242, .09), transparent 70%),
    var(--canvas);
  background-repeat: no-repeat;
}

/* Header */
.top { border-bottom-color: rgba(23, 24, 59, .07); }
.brand { letter-spacing: -0.01em; }
.top nav a { position: relative; padding: 4px 0; transition: color .25s var(--ease); }
.top nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.top nav a:hover::after { transform: scaleX(1); }

/* Primary button: glossy blue with a light sweep on hover */
.button {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #3D9DFF 0%, #0A84FF 48%, #0070F0 100%);
  border: 1px solid #0062D6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 6px rgba(0, 40, 140, .25),
    0 1px 2px rgba(10, 40, 120, .25),
    0 10px 24px -8px rgba(10, 132, 255, .6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
}
.button::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease);
}
.button:hover {
  background: linear-gradient(180deg, #3D9DFF 0%, #0A84FF 48%, #0070F0 100%);
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -2px 6px rgba(0, 40, 140, .25),
    0 2px 4px rgba(10, 40, 120, .2),
    0 18px 36px -10px rgba(10, 132, 255, .7);
}
.button:hover::after { left: 120%; }
.button:active { transform: translateY(0); filter: brightness(.97); }
.button svg { transition: transform .35s var(--ease); }
.button:hover svg { transform: translateY(2px); }

/* Secondary button: frosted glass */
.ghost-button {
  background: rgba(255, 255, 255, .62); color: var(--ink);
  border: 1px solid rgba(23, 24, 59, .1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(23, 24, 59, .06), 0 8px 20px -12px rgba(23, 24, 59, .25);
}
.ghost-button::after { display: none; }
.ghost-button:hover {
  background: rgba(255, 255, 255, .92); color: var(--ink); filter: none;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(23, 24, 59, .06), 0 14px 28px -12px rgba(23, 24, 59, .3);
}

/* Hero */
.hero h1 { letter-spacing: -0.035em; }
.lede { color: #4E5180; }
.fine { color: #6A6D98; }
.display {
  box-shadow:
    0 2px 0 1px #3A3C66 inset,
    0 1px 0 rgba(255,255,255,.08),
    0 70px 100px -45px rgba(23,24,59,.55),
    0 30px 50px -30px rgba(23,24,59,.35);
}
.demo-help { color: #6A6D98; }

/* One orchestrated entrance on load */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .stage { animation: settle 1.2s var(--ease) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* Section rhythm */
h2 { letter-spacing: -0.03em; }
.section-head p { color: #5A5D8A; }
.steps li { border-top: 1px solid rgba(23, 24, 59, .14); position: relative; }
.steps li::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 2px;
  background: linear-gradient(90deg, #0A84FF, #7D7BF4); border-radius: 2px;
}

/* Install */
.way-fast {
  background: linear-gradient(160deg, #1D1F4A 0%, #17183B 55%, #121331 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(23, 24, 59, .6);
  border-radius: 18px;
}
.copy-line { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); transition: border-color .3s var(--ease); }
.copy-line:hover { border-color: rgba(159, 211, 255, .45); }
.copy { background: linear-gradient(180deg, #3D9DFF, #0A84FF); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); transition: transform .3s var(--ease), filter .3s var(--ease); }
.copy:hover { background: linear-gradient(180deg, #3D9DFF, #0A84FF); filter: brightness(1.08); transform: translateY(-1px); }
.shot {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 36px -22px rgba(23, 24, 59, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.walkthrough li:hover .shot { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 26px 44px -22px rgba(23, 24, 59, .6); }

/* Layout gallery */
.screen-mini { box-shadow: 0 1px 2px rgba(23,24,59,.05); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.group li:hover .screen-mini { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(23,24,59,.35); }
.screen-mini span { background: linear-gradient(180deg, #3D9DFF, #0A84FF); }

/* Keys */
kbd {
  background: linear-gradient(180deg, #FFFFFF, #F3F4FA);
  border: 1px solid #D3D6EA; border-bottom-color: #C2C6E0;
  box-shadow: 0 1px 0 #C2C6E0, inset 0 1px 0 #fff;
}
.keylist div { border-bottom-color: rgba(23, 24, 59, .08); }

/* FAQ */
.faq summary { transition: color .25s var(--ease); }
.faq summary:hover { color: #0A84FF; }
.faq details[open] p { animation: rise .45s var(--ease) both; }

/* Final call to action */
.final { position: relative; }
.final::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: 520px; height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10, 132, 255, .16), transparent);
  pointer-events: none;
}
.foot { border-top-color: rgba(23, 24, 59, .08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .button.small { margin-left: 10px; }
  .steps, .extras, .keylist, .install-ways { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .keylist dt { width: 140px; }
  .display { border-width: 6px; border-radius: 12px; }
  .way:not(.way-fast) { padding-top: 0; }
  .way-fast { padding: 22px; }
  .copy-line code { font-size: 14px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .display { transform: rotateX(16deg) rotateY(0) rotateZ(0) scale(.96); }
  .ring { width: 92px; }
  .group ul { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .display, .stage.engaged .display { transform: none; transition: none; }
  .win { transform: none; transition: none; }
  .preview, .ghost { transition: none; }
  .caret { animation: none; }
}
