/* Windowmac landing page.
   Bricolage Grotesque headlines with Instrument Serif accents, Ubuntu for reading,
   the original indigo and Mac blue. The live demos are the loud part; the chrome stays calm. */
:root {
  --paper: #FFFFFF;
  --canvas: #EEF0F7;
  --mist: #E3E6F2;
  --ink: #14153A;
  --ink-soft: #4E5180;
  --muted: #6A6D98;
  --dusk: #2B2D6E;
  --plum: #0060D6;          /* links */
  --orange: #0A84FF;        /* accent (Mac blue; the name is historical) */
  --orange-deep: #0060D6;
  --violet: #7D7BF4;
  --glow: #9FD3FF;
  --line: rgba(20, 21, 58, .09);
  --line-strong: rgba(20, 21, 58, .16);

  --display: "Bricolage Grotesque", "Ubuntu", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font: "Ubuntu", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Ubuntu Mono", ui-monospace, Menlo, monospace;

  --measure: 62ch;
  --radius: 14px;
  --card: 24px;
  --spring: cubic-bezier(.2, .9, .25, 1.12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow-card: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(20,21,58,.05), 0 24px 48px -32px rgba(20,21,58,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; interpolate-size: allow-keywords; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Fine film grain over everything, so flat fills feel printed rather than plastic. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .045;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
::selection { background: rgba(10, 132, 255, .2); }
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; }

/* Headings: a grotesk with character, and a serif italic for the turn of phrase. */
h1, h2 { font-family: var(--display); font-optical-sizing: auto; }
h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--orange) 0%, #4F6BFF 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 18ch;
  text-wrap: balance;
}
h2 em { font-size: 1.08em; line-height: .9; }
h3 { margin: 0 0 6px; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.button {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  color: #fff;
  font: 500 16px/1 var(--font);
  text-decoration: none; border-radius: 999px;
  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, .38), transparent);
  transform: skewX(-18deg); transition: left .8s var(--ease);
}
.button:hover {
  color: #fff;
  transform: translateY(-2px);
  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 20px 40px -12px rgba(10, 132, 255, .75);
}
.button:hover::after { left: 120%; }
.button:active { transform: translateY(0); filter: brightness(.97); }
.button svg { flex: none; transition: transform .35s var(--ease); }
.button:hover svg { transform: translateY(2px); }
.button.small { padding: 9px 16px; font-size: 15px; }
.button.big { padding: 16px 26px; font-size: 17px; }

.ghost-button {
  background: rgba(255, 255, 255, .62); color: var(--ink);
  border: 1px solid rgba(20, 21, 58, .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(20, 21, 58, .06), 0 8px 20px -12px rgba(20, 21, 58, .25);
}
.ghost-button::after { display: none; }
.ghost-button:hover {
  background: rgba(255, 255, 255, .95); color: var(--ink); filter: none;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(20, 21, 58, .06), 0 16px 30px -14px rgba(20, 21, 58, .32);
}
.ghost-button:hover svg { transform: translateX(2px); }

/* ---------- Header: a floating glass pill ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}
/* Soft fade behind the floating header so content doesn't peek above it. */
.top::before {
  content: ""; position: absolute; inset: 0 0 -18px; z-index: -1;
  background: linear-gradient(180deg, var(--canvas) 30%, rgba(238,240,247,0));
  opacity: 0; transition: opacity .4s var(--ease);
}
.top.scrolled::before { opacity: 1; }
.top-inner {
  pointer-events: auto;
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 2px rgba(20,21,58,.04), 0 10px 30px -18px rgba(20,21,58,.25);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), max-width .6s var(--ease);
}
.top.scrolled .top-inner {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 2px rgba(20,21,58,.06), 0 18px 40px -20px rgba(20,21,58,.35);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.brand:hover { color: var(--ink); }
.top nav { position: relative; display: flex; gap: 2px; margin: 0 auto; }
.top nav a {
  position: relative; z-index: 1;
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: 15px;
  transition: color .3s var(--ease);
}
.top nav a:hover, .top nav a.on { color: var(--ink); }
.nav-pill {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 0;
  border-radius: 999px; background: rgba(255,255,255,.95);
  box-shadow: 0 1px 2px rgba(20,21,58,.08), 0 6px 14px -8px rgba(20,21,58,.3);
  opacity: 0;
  transition: left .45s var(--ease), width .45s var(--ease), opacity .3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(56px, 9vw, 112px) var(--gutter) 24px;
  margin-top: -72px; padding-top: calc(72px + clamp(56px, 9vw, 112px));
  text-align: center;
}
.hero-bg { position: absolute; inset: 0 0 18%; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora.a1 { width: 46vw; height: 36vw; left: -8vw; top: -6vw; background: radial-gradient(closest-side, #9FD3FF, transparent); animation: drift 22s ease-in-out infinite alternate; }
.aurora.a2 { width: 42vw; height: 34vw; right: -10vw; top: 0; background: radial-gradient(closest-side, #C9B8FF, transparent); animation: drift 26s ease-in-out -8s infinite alternate-reverse; }
.aurora.a3 { width: 36vw; height: 26vw; left: 32vw; top: 20vw; background: radial-gradient(closest-side, rgba(10,132,255,.55), transparent); opacity: .35; animation: drift 30s ease-in-out -4s infinite alternate; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vw, 3vw) scale(1.1); }
  100% { transform: translate(-4vw, 5vw) scale(.95); }
}
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20,21,58,.16) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.hero-copy { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; margin-bottom: 28px;
  border-radius: 999px; text-decoration: none;
  color: var(--ink-soft); font-size: 14.5px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 1px 2px rgba(20,21,58,.05), 0 8px 20px -14px rgba(20,21,58,.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.eyebrow:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(20,21,58,.05), 0 14px 26px -14px rgba(20,21,58,.35); }
.eyebrow svg { transition: transform .3s var(--ease); }
.eyebrow:hover svg { transform: translateX(3px); }
.eyebrow-tag {
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #fff;
  background: linear-gradient(100deg, var(--orange), var(--violet));
}
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 10vw, 132px);
  line-height: .9;
  font-weight: 750;
  letter-spacing: -0.055em;
}
.hero h1 .line { display: block; overflow: clip; padding: 0 .1em .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-size: 1.1em; letter-spacing: -0.03em; }
.lede {
  max-width: 50ch; margin: 28px auto 34px;
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; color: var(--ink-soft);
  text-wrap: pretty;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.fine { margin: 0; font-size: 15px; color: var(--muted); }

/* One orchestrated entrance on load. */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow { animation: rise .9s var(--ease) .05s both; }
  .hero h1 .line > span { animation: line-up 1.1s var(--ease) both; }
  .hero h1 .line:nth-child(1) > span { animation-delay: .12s; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .24s; }
  .lede { animation: rise 1s var(--ease) .4s both; }
  .cta { animation: rise 1s var(--ease) .5s both; }
  .hero-copy > .fine { animation: rise 1s var(--ease) .6s both; }
  .stage { animation: settle 1.4s var(--ease) .55s both; }
  .marquee { animation: rise 1.2s var(--ease) .9s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
@keyframes line-up { from { transform: translateY(108%) rotate(2deg); } }
@keyframes settle { from { opacity: 0; transform: translateY(60px); } }

/* ---------- The live demo, in a glass bezel that lies back and stands up as you scroll ---------- */
.stage {
  position: relative;
  max-width: min(1120px, calc(78vh * 1.6 + 16px));
  margin: clamp(56px, 7vw, 88px) auto 0;
  perspective: 1600px; perspective-origin: 50% 0%;
}
.bezel {
  position: relative;
  padding: 8px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.4));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 1px 0 rgba(20,21,58,.04),
    0 50px 100px -40px rgba(20,21,58,.55),
    0 30px 60px -40px rgba(43,45,110,.5);
  transform-style: preserve-3d;
  transform-origin: 50% 20%;
  transform: rotateX(calc(var(--tilt, 0) * 24deg)) scale(calc(1 - var(--tilt, 0) * .08)) translateY(calc(var(--tilt, 0) * -20px));
  transition: transform .8s var(--ease);
}
.stage.engaged .bezel { transform: none; }
.live-chip {
  position: absolute; z-index: 9; top: -15px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 20px -10px rgba(20,21,58,.4);
  white-space: nowrap;
}
.live-chip b { font-weight: 500; }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: #1FB574; box-shadow: 0 0 0 0 rgba(31,181,116,.5); animation: pulse 2s ease-out infinite; }
.live-chip .lc-you { display: none; }
.stage.engaged .live-chip i { background: var(--orange); box-shadow: 0 0 0 0 rgba(10,132,255,.5); }
.stage.engaged .live-chip .lc-auto { display: none; }
.stage.engaged .live-chip .lc-you { display: inline; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31,181,116,0); } 100% { box-shadow: 0 0 0 0 rgba(31,181,116,0); } }

.display {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  border: 10px solid #15162E;
  background: #15162E;
  box-shadow: 0 2px 0 1px #3A3C66 inset;
  transform-style: preserve-3d;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  text-align: left;
}
.display:focus-visible { box-shadow: 0 0 0 4px var(--orange); }

.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: 12px 12px 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 12px 12px;
  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 {
  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;
}

.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: linear-gradient(180deg, #FFFFFF, #F3F4FA);
  border: 1px solid #D3D6EA; border-bottom-color: #C2C6E0; border-radius: 7px;
  box-shadow: 0 1px 0 #C2C6E0, inset 0 1px 0 #fff;
}

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

/* The dashed arrow that follows the cursor to the download button (drawn by hero.js). */
.arrow-canvas { position: fixed; inset: 0; z-index: 45; pointer-events: none; }

/* ---------- Marquee ---------- */
.marquee {
  margin: clamp(56px, 7vw, 88px) 0 0;
  overflow: hidden;
  -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; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 12px; padding: 4px 6px; margin: 0; list-style: none; }
.marquee li {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 10px 18px 10px 54px;
  border-radius: 999px; white-space: nowrap;
  font-size: 15px; color: var(--ink-soft);
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 2px rgba(20,21,58,.04);
}
.marquee li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 26px; height: 17px; margin-top: -8.5px;
  border-radius: 4px; background: var(--paper); border: 1px solid var(--line-strong);
}
.marquee li i {
  position: absolute;
  left: calc(19px + var(--l) * 20px); top: calc(50% - 5.5px + var(--t) * 11px);
  width: calc(var(--w) * 20px); height: calc(var(--h) * 11px);
  border-radius: 1.5px; background: linear-gradient(180deg, #3D9DFF, #0A84FF);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
main > section:not(.hero) {
  max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter) 0;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px !important;
  font: 500 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-deep) !important;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }
.kicker-new {
  padding: 4px 9px; border-radius: 999px; letter-spacing: .04em; text-transform: none;
  color: #fff; background: linear-gradient(100deg, var(--orange), var(--violet));
}
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { max-width: var(--measure); color: var(--ink-soft); margin: 0; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.section-head.split h2 { margin: 0; }
.section-head.split > p { padding-bottom: 6px; }

/* Scroll reveal, only when scripts run. */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 12px 12px 28px;
  border-radius: var(--card);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 4px rgba(20,21,58,.05), 0 34px 60px -34px rgba(20,21,58,.45); }
.step h3, .step p, .step-n { padding: 0 16px; }
.step-n { display: block; margin: 22px 0 4px; font: 500 13px/1 var(--mono); color: var(--orange-deep); letter-spacing: .08em; }
.step h3 { font: 700 28px/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }

.anim {
  position: relative; height: 200px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 80% at 20% 15%, rgba(159, 211, 255, .45), transparent 60%),
    radial-gradient(50% 70% at 90% 90%, rgba(191, 90, 242, .35), transparent 65%),
    linear-gradient(160deg, #3B3F9A 0%, var(--dusk) 55%, #1B1C48 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
/* 1 · Hold: the key goes down, the ring appears. */
.anim-hold kbd {
  position: absolute; left: 50%; bottom: 26px; margin-left: -34px;
  width: 68px; font-size: 30px; padding: .2em 0;
  box-shadow: 0 5px 0 #9EA3C7, 0 14px 24px -8px rgba(0,0,0,.5);
  animation: key-press 3.2s var(--ease) infinite;
}
.hold-ring {
  position: absolute; left: 50%; top: 22px; width: 92px; height: 92px; margin-left: -46px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.35) 0 34%, transparent 35%),
    conic-gradient(from -22.5deg, rgba(255,255,255,.28) 0 43deg, transparent 0 45deg, rgba(255,255,255,.28) 0 88deg, transparent 0 90deg, rgba(255,255,255,.28) 0 133deg, transparent 0 135deg, rgba(255,255,255,.28) 0 178deg, transparent 0 180deg, rgba(255,255,255,.28) 0 223deg, transparent 0 225deg, rgba(255,255,255,.28) 0 268deg, transparent 0 270deg, rgba(255,255,255,.28) 0 313deg, transparent 0 315deg, rgba(255,255,255,.28) 0 358deg, transparent 0);
  -webkit-mask: radial-gradient(circle, #000 0 26%, transparent 27% 42%, #000 43% 70%, transparent 71%);
  mask: radial-gradient(circle, #000 0 26%, transparent 27% 42%, #000 43% 70%, transparent 71%);
  animation: ring-pop 3.2s var(--ease) infinite;
}
@keyframes key-press {
  0%, 12%   { transform: translateY(0); box-shadow: 0 5px 0 #9EA3C7, 0 14px 24px -8px rgba(0,0,0,.5); background: linear-gradient(180deg, #fff, #F3F4FA); }
  18%, 72%  { transform: translateY(4px); box-shadow: 0 1px 0 #9EA3C7, 0 6px 12px -6px rgba(0,0,0,.5); background: var(--glow); }
  80%, 100% { transform: translateY(0); box-shadow: 0 5px 0 #9EA3C7, 0 14px 24px -8px rgba(0,0,0,.5); background: linear-gradient(180deg, #fff, #F3F4FA); }
}
@keyframes ring-pop {
  0%, 16%   { opacity: 0; transform: scale(.7); }
  26%, 70%  { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(.9); }
}
/* 2 · Flick: a segment lights up toward the cursor (hero.js drives it). */
.mini-ring { width: 128px; height: 128px; overflow: visible; filter: drop-shadow(0 10px 22px rgba(8,10,40,.5)); }
.mini-ring .seg { fill: rgba(255,255,255,.2); stroke: rgba(255,255,255,.45); stroke-width: .6; transition: fill .25s var(--ease); }
.mini-ring .seg.on { fill: var(--orange); stroke: #fff; }
.mini-ring .hub { fill: rgba(255,255,255,.28); stroke: rgba(255,255,255,.6); stroke-width: .6; }
.flick-dot {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 22px; margin: -4px 0 0 -3px;
  transform: translate(var(--fx, 0px), var(--fy, 0px));
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.5v17.2l4.4-4.2 2.9 6.6 3-1.3-2.9-6.5h6.1z' fill='%23fff' stroke='%23111' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.4));
}
/* 3 · Release: the outline appears, the window snaps into it. */
.mini-screen {
  position: relative; width: 74%; aspect-ratio: 16 / 10;
  border-radius: 10px; background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.snap-preview {
  position: absolute; left: 4%; top: 6%; width: 44%; height: 88%;
  border: 2px solid var(--orange); background: rgba(10,132,255,.22); border-radius: 6px;
  animation: snap-preview 4.2s ease infinite;
}
.snap-win {
  position: absolute; border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: 0 12px 24px -10px rgba(0,0,0,.55);
  animation: snap-win 4.2s infinite;
}
.snap-win b { display: block; height: 14%; min-height: 9px; background: #F3F4FA; border-bottom: 1px solid #E3E5F0; }
.snap-win::after { content: ""; position: absolute; left: 10%; right: 30%; top: 30%; height: 8%; border-radius: 4px; background: #E3E5F0; box-shadow: 0 14px 0 #EEF0F8, 0 28px 0 #EEF0F8; }
@keyframes snap-preview {
  0%, 20%  { opacity: 0; transform: scale(.94); }
  30%, 46% { opacity: 1; transform: scale(1); }
  52%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes snap-win {
  0%, 46% { left: 36%; top: 20%; width: 48%; height: 58%; animation-timing-function: cubic-bezier(.2, .9, .25, 1.15); }
  58%, 86% { left: 4%; top: 6%; width: 44%; height: 88%; animation-timing-function: var(--ease); }
  100% { left: 36%; top: 20%; width: 48%; height: 58%; }
}
.js .step:not(.in) .anim *, .js .step:not(.in) .anim *::after { animation-play-state: paused; }

/* ---------- Strip ---------- */
.strip-demo { outline: none; }
.strip-demo > .bezel { max-width: min(100%, calc(72vh * 16 / 9 + 16px)); margin: 0 auto; }
.strip-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 10px solid #15162E;
  background: #15162E;
  box-shadow: 0 2px 0 1px #3A3C66 inset;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
  container-type: inline-size;
}
.strip-demo:focus-visible .strip-screen { box-shadow: 0 0 0 4px var(--orange); }
.strip-desk {
  position: absolute; inset: 4.2% 0 0 0; overflow: hidden;
  border-radius: 0 0 12px 12px;
  background:
    radial-gradient(55% 70% at 15% 25%, rgba(159, 211, 255, .5), transparent 60%),
    radial-gradient(45% 60% at 88% 75%, rgba(191, 90, 242, .4), transparent 65%),
    linear-gradient(160deg, #3B3F9A 0%, var(--dusk) 55%, #1B1C48 100%);
}
.strip-track { position: absolute; inset: 0; }
.strip-track .win {
  transform: none; cursor: default;
  transition: left .42s var(--spring), top .42s var(--spring), width .42s var(--spring), height .42s var(--spring),
    opacity .25s ease, transform .25s ease;
}
.strip-track .win.parked { opacity: .85; }
.strip-track .win .body { padding: .9em; font-size: clamp(7px, 1.05cqi, 13px); }
.strip-track .win .bar { cursor: pointer; }
.strip-demo.dragging .strip-track .win { transition: none; }

.app-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35em; align-content: start; }
.app-calendar span { aspect-ratio: 1; border-radius: .3em; background: #EEF0F8; }
.app-calendar span.ev { background: #BFD9FF; }
.app-calendar span.ev2 { background: #FFD9A8; }
.app-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35em; align-content: start; }
.app-photos span { aspect-ratio: 1; border-radius: .25em; background: linear-gradient(140deg, var(--a), var(--b)); }
.app-editor { font: 1em/1.6 var(--mono); color: #3A3C66; white-space: pre; overflow: hidden; }
.app-editor .k { color: #C2185B; } .app-editor .s { color: #1B8A5A; } .app-editor .c { color: #9A9CC0; }
.app-mail p { margin: 0 0 .55em; padding-bottom: .55em; border-bottom: 1px solid #EEF0F8; color: var(--ink-soft); }
.app-mail b { color: var(--ink); font-weight: 500; display: block; }

.strip-bar {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .45em;
  padding: .7em .9em .5em;
  font-size: clamp(7px, 1cqi, 12px);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 1.4em;
  box-shadow: 0 18px 40px -18px rgba(8,10,40,.6);
  z-index: 8;
}
.strip-tiles { display: flex; gap: .55em; }
.strip-tiles button {
  all: unset; box-sizing: border-box;
  width: 3.3em; aspect-ratio: 1; border-radius: .8em;
  display: grid; place-items: center;
  font: 700 1.25em/1 var(--font); color: #fff;
  background: var(--icon);
  box-shadow: 0 0 0 0 var(--orange);
  opacity: .5;
  cursor: pointer;
  transition: box-shadow .2s var(--ease), opacity .2s, transform .2s var(--spring);
}
.strip-tiles button.seen { opacity: .9; }
.strip-tiles button.on { opacity: 1; box-shadow: 0 0 0 .2em #fff, 0 0 0 .4em var(--orange); transform: translateY(-.15em); }
.strip-tiles button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.strip-hint { color: var(--ink-soft); white-space: nowrap; }
.strip-hint kbd { font-size: .85em; min-width: 1.6em; padding: 0 .35em; }

.strip-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 28px auto 0; max-width: 980px;
}
.strip-legend button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px;
  font: 400 15px/1 var(--font); color: var(--ink);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.95); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(20,21,58,.06), 0 6px 14px -10px rgba(20,21,58,.3);
  cursor: pointer;
  transition: background .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.strip-legend button:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20,21,58,.06), 0 12px 22px -12px rgba(20,21,58,.4); }
.strip-legend button.pressed { background: var(--glow); transform: translateY(1px); }
.strip-legend button:disabled { opacity: .5; cursor: default; transform: none; }
.strip-legend kbd { min-width: 2em; }

/* ---------- Layouts ---------- */
.catalogue { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.group {
  grid-column: span 4;
  padding: 22px 22px 18px;
  border-radius: var(--card);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-card);
}
.group:nth-child(n+4) { grid-column: span 6; }
.group h3 { font: 600 17px/1.2 var(--display); letter-spacing: -0.01em; margin-bottom: 16px; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px 12px; }
.group li { font-size: 13px; color: var(--ink-soft); line-height: 1.35; cursor: default; transition: color .3s var(--ease); }
.group li:hover { color: var(--ink); }
.screen-mini {
  position: relative; aspect-ratio: 16 / 10; margin-bottom: 8px;
  border-radius: 7px; background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(20,21,58,.05);
  transition: transform .45s var(--spring), box-shadow .45s var(--ease);
}
.screen-mini::before { content: ""; position: absolute; inset: 0 0 auto; height: 9%; background: var(--mist); border-radius: 6px 6px 0 0; }
.screen-mini span { position: absolute; border-radius: 3px; background: linear-gradient(180deg, #3D9DFF, #0A84FF); transition: filter .3s var(--ease); }
.group li:hover .screen-mini { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 22px -12px rgba(10,60,160,.45); }
.group li:hover .screen-mini span { filter: saturate(1.2) brightness(1.08); }

.extras { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.extras li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px;
  border-radius: var(--card);
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.8);
  color: var(--ink-soft); font-size: 16.5px;
  transition: background .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
}
.extras li:hover { background: rgba(255,255,255,.85); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.extras b { color: var(--ink); font: 600 19px/1.25 var(--display); letter-spacing: -0.015em; }
.x-icon {
  width: 42px; height: 42px; margin-bottom: 14px;
  display: grid; place-items: center; border-radius: 12px;
  color: #fff; background: linear-gradient(145deg, #3D9DFF, #0A84FF 50%, #5B5BF0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 18px -8px rgba(10,132,255,.7);
  transition: transform .5s var(--spring);
}
.extras li:hover .x-icon { transform: rotate(-6deg) scale(1.06); }
.x-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Keys ---------- */
.key-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel {
  padding: 26px 28px 14px;
  border-radius: var(--card);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-card);
}
.panel h3 { font: 600 15px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.keylist { margin: 0; }
.keylist div { display: flex; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.keylist div:last-child { border-bottom: 0; }
.keylist dt { flex: none; width: 170px; display: flex; gap: 6px; }
.keylist dd { margin: 0; color: var(--ink-soft); font-size: 16.5px; }
.scroll-key { font: 500 14px/1 var(--mono); color: var(--ink-soft); padding: .35em .6em; border-radius: 7px; border: 1px dashed var(--line-strong); }
.keylist div { transition: background .25s; }
.keylist div:hover kbd { border-color: #9FC6FF; box-shadow: 0 1px 0 #9FC6FF, inset 0 1px 0 #fff; }

/* ---------- Install ---------- */
.install-ways { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; margin-bottom: 56px; align-items: stretch; }
.way h3 { margin-bottom: 8px; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.way p { margin: 0 0 16px; color: var(--ink-soft); max-width: 56ch; }
.way p:last-child { margin-bottom: 0; }
.way-fast {
  border-radius: var(--card); overflow: hidden;
  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 40px 70px -36px rgba(20, 21, 58, .7);
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; }
.term-bar i:nth-child(3) { background: #28C840; }
.term-bar span { margin: 0 auto; padding-right: 40px; font-size: 13px; color: #8E91C2; }
.way-body { padding: 26px 28px 28px; }
.way-fast h3 { color: #fff; }
.way-fast p { color: #B9BCE6; }
.way-fast .fine { color: #8E91C2; }
.way-fast a { color: var(--glow); }
.copy-line {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; margin-bottom: 16px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.copy-line:hover { border-color: rgba(159, 211, 255, .45); box-shadow: 0 0 0 4px rgba(159,211,255,.08); }
.prompt { font: 700 17px/1 var(--mono); color: #69E3A8; }
.copy-line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: #fff; background: none; padding: 0; font-size: 17px; scrollbar-width: none; }
.copy {
  flex: none; padding: 9px 16px; border: 0; border-radius: 8px; cursor: pointer;
  color: #fff; font: 500 15px/1 var(--font);
  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), background .3s;
}
.copy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.copy.done { background: #1FB574; }
.copy-line.flash { animation: cmd-flash 1.6s var(--ease); }
@keyframes cmd-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(105, 227, 168, 0); }
  20% { border-color: #69E3A8; box-shadow: 0 0 0 6px rgba(105, 227, 168, .28); }
}

/* The one-liner under the hero button: same terminal look, smaller. */
.hero-cmd {
  max-width: 560px; margin: 0 auto 18px; padding: 6px 6px 6px 14px; text-align: left;
  background: var(--ink); border-color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(20, 21, 58, .55);
}
.hero-cmd .prompt, .hero-cmd code { font-size: 15px; }
.hero-cmd .copy { padding: 8px 14px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-cmd { animation: rise 1s var(--ease) .55s both; }
}
.way-zip {
  padding: 28px;
  border-radius: var(--card);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-card);
}
.way-zip img { margin-bottom: 18px; filter: drop-shadow(0 12px 18px rgba(20,21,58,.25)); }

.walkthrough { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 18px; counter-reset: walk; }
.walkthrough li { counter-increment: walk; }
.walkthrough h3 { font: 600 18px/1.25 var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.walkthrough h3::before {
  content: counter(walk); flex: none;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font: 700 13px/1 var(--font); color: #fff; background: var(--orange);
}
.walkthrough p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.shot {
  height: 176px; margin-bottom: 18px; border-radius: 18px;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 80% at 20% 10%, rgba(159, 211, 255, .3), transparent 60%),
    linear-gradient(160deg, #3B3F9A 0%, var(--dusk) 60%, #1B1C48 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 36px -22px rgba(20, 21, 58, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.walkthrough li:hover .shot { transform: translateY(-4px) rotate(-.6deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 28px 46px -22px rgba(20, 21, 58, .6); }
.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); animation: spin-step 4s var(--ease) infinite; }
@keyframes spin-step { 0%, 20% { transform: rotate(0); } 25%, 45% { transform: rotate(-90deg); } 50%, 70% { transform: rotate(-180deg); } 75%, 95% { transform: rotate(-270deg); } 100% { transform: rotate(-360deg); } }

.trust {
  margin-top: 64px; padding: 28px;
  border-radius: var(--card);
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.8);
}
.facts { list-style: none; margin: 0 0 24px; padding: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-bottom: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts b {
  font: 700 clamp(36px, 4vw, 52px)/1 var(--display); letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--ink) 30%, #4E5180); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.facts span { font-size: 15px; color: var(--muted); }
.why-warning { margin: 0; max-width: 84ch; color: var(--ink-soft); font-size: 16px; }
.why-warning b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 72px; align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-side h2 { margin-bottom: 18px; }
.faq-side p:not(.kicker) { color: var(--ink-soft); margin: 0; }
.faq-list {
  padding: 8px 28px;
  border-radius: var(--card);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-card);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 18px; font-weight: 500;
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.8px 12px no-repeat,
    var(--mist);
  color: var(--ink-soft);
  transition: transform .45s var(--spring), background-color .3s;
}
.faq summary:hover { color: var(--orange-deep); }
.faq details[open] summary::after { transform: rotate(135deg); color: #fff; background-color: var(--orange); }
.faq details p { margin: 0; padding: 0 44px 22px 0; color: var(--ink-soft); max-width: var(--measure); font-size: 17px; }
/* Smooth open and close where the browser supports animating details. */
@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .5s var(--ease), content-visibility .5s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Final call to action ---------- */
.final { padding-bottom: 0 !important; }
.final-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  border-radius: 36px; text-align: center;
  color: #fff;
  background: linear-gradient(170deg, #22246A 0%, #17183B 55%, #0F102B 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 60px 100px -50px rgba(20,21,58,.7);
}
.final-glow {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: conic-gradient(from 0deg, rgba(10,132,255,.0), rgba(10,132,255,.45), rgba(125,123,244,.4), rgba(159,211,255,.25), rgba(10,132,255,0));
  filter: blur(90px); opacity: .7;
  animation: turn 18s linear infinite;
}
.final-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%);
}
@keyframes turn { to { transform: rotate(360deg); } }
.final-card img { margin: 0 auto 28px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.final-card h2 { margin: 0 auto 14px; color: #fff; font-size: clamp(40px, 6.4vw, 84px); max-width: 14ch; letter-spacing: -0.05em; }
.final-card h2 em { background: linear-gradient(100deg, #9FD3FF, #C9B8FF); -webkit-background-clip: text; background-clip: text; }
.final-card > p { color: #B9BCE6; margin: 0 auto 32px; max-width: 46ch; }
.final-card .fine { margin: 22px auto 0; color: #8E91C2; }
.final-card .fine a { color: var(--glow); }

.foot {
  max-width: var(--container); margin: 72px auto 0; padding: 28px 0 48px; width: calc(100% - 2 * var(--gutter));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 15px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
}
.foot p { margin: 0; }
.foot-brand { font-size: 16px; margin-right: auto; }
.foot-brand img { border-radius: 5px; }

/* ---------- Star on GitHub: liquid glass button ---------- */
.gh-star {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; color: #fff;
  font: 500 15px/1 var(--font); letter-spacing: .01em; white-space: nowrap;
}
.gh-glow {
  position: absolute; z-index: -2; left: 50%; top: 18%;
  width: 112%; height: 125%; transform: translateX(-50%);
  border-radius: 999px; overflow: hidden; filter: blur(16px); opacity: .55;
}
.gh-body {
  position: absolute; z-index: -1; inset: 0;
  border-radius: 999px; 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: 999px;
  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: 999px;
  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: .9; }
.gh-star:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .walkthrough { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group, .group:nth-child(n+4) { grid-column: span 6; }
  .group:first-child { grid-column: span 12; }
}
@media (max-width: 960px) {
  .top nav { display: none; }
  .gh-star { margin-left: auto; }
  .steps, .extras, .key-panels, .install-ways { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .display, .strip-screen { border-width: 6px; border-radius: 14px; }
  .menubar { border-radius: 8px 8px 0 0; }
  .desktop, .strip-desk { border-radius: 0 0 8px 8px; }
  .bezel { padding: 5px; border-radius: 20px; }
  .copy-line code { font-size: 14px; }
}
@media (max-width: 680px) {
  .walkthrough { grid-template-columns: 1fr 1fr; }
  .group, .group:nth-child(n+4), .group:first-child { grid-column: span 12; }
}
@media (max-width: 440px) {
  .group ul { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top { padding-top: 10px; }
  .top-inner { padding: 6px 6px 6px 12px; gap: 8px; }
  .brand span { display: none; }
  .gh-text { display: none; }
  .eyebrow-more { display: none; }
  .hero h1 { letter-spacing: -0.05em; }
  .cta .button { width: 100%; justify-content: center; }
  .ring { width: 92px; }
  .walkthrough { grid-template-columns: 1fr; }
  .keylist dt { width: 120px; flex-wrap: wrap; }
  .faq-list { padding: 4px 18px; }
  .faq details p { padding-right: 0; }
  .trust, .way-zip, .way-body { padding: 22px; }
  .live-chip { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bezel, .stage.engaged .bezel { transform: none !important; transition: none; }
  .win { transform: none; transition: none; }
  .preview, .ghost { transition: none; }
  .caret, .aurora, .liquid i, .final-glow, .final-card img, .live-chip i, .flick-ring { animation: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .anim *, .anim *::after { animation: none !important; }
  .snap-preview { opacity: 1; }
  .snap-win { left: 4%; top: 6%; width: 44%; height: 88%; }
  .hold-ring { opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}
