/* Bento: the landing page. System fonts only; no external requests. */

:root {
  --bg: #07080f;
  --bg-2: #0b0d18;
  --text: #eceef8;
  --muted: #a3aacb;
  --dim: #6f7799;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.035);
  --violet: #8b7bff;
  --blue: #4f7cff;
  --cyan: #22c3ee;
  /* The food in the icon's box, made a little brighter for a dark page */
  --ume: #ff6482;
  --tamago: #ffc53d;
  --greens: #55d983;
  --rice: #fff0d4;
  --grad: linear-gradient(90deg, #ff7f96 0%, #ffc94d 24%, #74e29f 48%, #5ee0f5 72%, #b4a8ff 100%);
  --grad-btn: linear-gradient(135deg, #9b8cff 0%, #5b8df5 55%, #2ab0e8 100%);
  --accent: #0a7cff;
  --radius: 24px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
strong { color: var(--text); font-weight: 600; }
code { font-family: var(--mono); font-size: 0.9em; }
::selection { background: rgba(139, 123, 255, 0.45); color: #fff; }
:focus-visible { outline: 2px solid #9b8cff; outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.7em; height: 1.7em; padding: 0 0.45em; margin: 0 0.1em;
  font-family: var(--font); font-size: 0.78em; font-weight: 600; line-height: 1; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16); border-bottom-width: 2px; border-radius: 0.42em;
  vertical-align: 0.08em;
}

/* Background: slow colored light, and a little grain so the gradients do not band. */

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  opacity: 0.5; will-change: transform;
  animation: drift 28s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { left: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(139, 123, 255, 0.55), transparent); }
.aurora span:nth-child(2) { right: -25vmax; top: -10vmax; background: radial-gradient(closest-side, rgba(255, 92, 122, 0.36), transparent); animation-duration: 34s; animation-delay: -8s; }
.aurora span:nth-child(3) { left: 20vmax; bottom: -45vmax; background: radial-gradient(closest-side, rgba(34, 195, 238, 0.32), transparent); animation-duration: 40s; animation-delay: -16s; }
.aurora span:nth-child(4) { right: -30vmax; bottom: -30vmax; width: 60vmax; height: 60vmax; background: radial-gradient(closest-side, rgba(255, 190, 60, 0.24), transparent); animation-duration: 37s; animation-delay: -4s; }
.aurora span:nth-child(5) { left: -30vmax; top: 30vh; width: 55vmax; height: 55vmax; background: radial-gradient(closest-side, rgba(70, 205, 115, 0.2), transparent); animation-duration: 31s; animation-delay: -20s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 8vmax, 0) scale(0.95); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Navigation */

.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 9, 18, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; width: min(var(--wrap), 100% - 32px); height: 64px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 720px) { .nav-links { display: none; } .nav-inner .btn { margin-left: auto; } }

/* Buttons and the copyable command */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 24px; border-radius: 16px; border: 0;
  font: inherit; font-weight: 650; font-size: 1rem; color: #fff; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.3s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--grad-btn);
  box-shadow: 0 10px 30px -8px rgba(91, 141, 245, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -8px rgba(91, 141, 245, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-small { height: 38px; padding: 0 16px; border-radius: 12px; font-size: 0.9rem; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); }
.btn-small:hover { background: rgba(255, 255, 255, 0.14); }
.btn-ghost { background: rgba(20, 22, 40, 0.75); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(30, 32, 56, 0.85); }
.ver { font-weight: 500; opacity: 0.75; font-size: 0.85em; }
.ver:not(:empty)::before { content: " · "; white-space: pre; }

.cmd {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  height: 52px; padding: 0 8px 0 18px; border-radius: 16px;
  background: rgba(10, 12, 24, 0.7); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cmd code { font-size: 0.86rem; white-space: nowrap; overflow-x: auto; scrollbar-width: none; color: #dfe3ff; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd-prompt { font-family: var(--mono); color: var(--dim); font-size: 0.86rem; }
.copy {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 0; cursor: pointer;
  color: var(--muted); background: rgba(255, 255, 255, 0.06); transition: background 0.2s, color 0.2s;
}
.copy:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.copy svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.2s, transform 0.3s var(--ease); }
.copy .i-done { opacity: 0; transform: scale(0.6); color: #6ee7a8; stroke-width: 2.4; }
.copy.copied .i-copy { opacity: 0; transform: scale(0.6); }
.copy.copied .i-done { opacity: 1; transform: scale(1); }

/* Hero */

.hero { padding: 72px 0 40px; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; margin-bottom: 28px;
  border-radius: 999px; font-size: 0.85rem; color: #d6d9f5; text-decoration: none;
  background: rgba(139, 123, 255, 0.1); border: 1px solid rgba(155, 140, 255, 0.3);
  transition: background 0.2s, border-color 0.2s;
}
.eyebrow:hover { background: rgba(139, 123, 255, 0.18); border-color: rgba(155, 140, 255, 0.5); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #9b8cff; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #9b8cff; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

h1 { font-size: clamp(2.8rem, 7.4vw, 6rem); font-weight: 760; letter-spacing: -0.045em; line-height: 1.02; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
h1 .grad { background-size: 160% 100%; animation: sheen 9s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lede { max-width: 680px; margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin-top: 22px; font-size: 0.85rem; color: var(--dim); }
.meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }

/* The pretend Mac screen in the hero */

.stage { position: relative; margin: 76px auto 0; max-width: 1080px; perspective: 1800px; --rx: 0deg; --ry: 0deg; --lift: 0deg; }
.stage-glow {
  position: absolute; inset: 10% 6% -6%; z-index: -1; border-radius: 50%;
  background:
    radial-gradient(40% 50% at 12% 70%, rgba(255, 92, 122, 0.45), transparent),
    radial-gradient(40% 50% at 88% 70%, rgba(255, 190, 60, 0.38), transparent),
    radial-gradient(closest-side, rgba(139, 123, 255, 0.55), rgba(79, 124, 255, 0.25) 55%, transparent);
  filter: blur(40px);
}
.stage-tilt {
  transform: rotateX(calc(var(--lift) + var(--rx))) rotateY(var(--ry));
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(90% 70% at 12% 105%, rgba(91, 141, 245, 0.95), transparent 60%),
    radial-gradient(70% 60% at 92% -5%, rgba(155, 140, 255, 0.95), transparent 62%),
    radial-gradient(70% 70% at 85% 110%, rgba(42, 176, 232, 0.85), transparent 60%),
    radial-gradient(50% 40% at 40% 30%, rgba(255, 140, 200, 0.35), transparent 70%),
    linear-gradient(160deg, #1b1550, #0e1c44 60%, #08304a);
}
.menubar {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 1.6%;
  height: 4.2%; min-height: 18px; padding: 0 1.6%;
  font-size: clamp(8px, 1.15vw, 13px); color: rgba(255, 255, 255, 0.92);
  background: rgba(20, 20, 40, 0.28); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.menubar .mb-app { font-weight: 700; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mb-icon { display: grid; place-items: center; padding: 1px 5px; border-radius: 5px; transition: background 0.2s; }
.mb-icon svg { width: 1.35em; height: 1.35em; fill: none; stroke: #fff; stroke-width: 1.8; }
.stage.open .mb-icon { background: rgba(255, 255, 255, 0.22); }
.mb-battery { width: 1.9em; height: 0.9em; border: 1.5px solid rgba(255, 255, 255, 0.85); border-radius: 3px; position: relative; }
.mb-battery::after { content: ""; position: absolute; inset: 1.5px 30% 1.5px 1.5px; background: #fff; border-radius: 1px; }
.screen-panel {
  position: absolute; left: 50%; top: 52%; width: 74%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: opacity 0.22s ease, transform 0.35s var(--ease);
}
.stage.closed .screen-panel { opacity: 0; transform: translate(-50%, -48%) scale(0.96); transition: opacity 0.18s ease-in, transform 0.25s ease-in; }

.keys {
  position: absolute; left: 50%; bottom: -30px; z-index: 4; display: flex; gap: 10px;
  transform: translateX(-50%);
  padding: 12px; border-radius: 22px;
  background: rgba(12, 14, 28, 0.6); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
}
.keys kbd {
  min-width: 56px; height: 52px; margin: 0; font-size: 1.25rem; border-radius: 12px; border-bottom-width: 4px;
  transition: transform 0.12s, border-bottom-width 0.12s, box-shadow 0.2s, background 0.2s;
}
.keys .k-wide { min-width: 132px; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.keys kbd.down {
  transform: translateY(3px); border-bottom-width: 1px;
  background: linear-gradient(180deg, rgba(155, 140, 255, 0.45), rgba(91, 141, 245, 0.3));
  box-shadow: 0 0 24px rgba(139, 123, 255, 0.6);
  color: #fff;
}
@media (max-width: 640px) {
  .keys { bottom: -24px; padding: 8px; gap: 6px; border-radius: 16px; }
  .keys kbd { min-width: 40px; height: 40px; font-size: 1rem; }
  .keys .k-wide { min-width: 90px; font-size: 0.8rem; }
}

/* Sections */

.section { padding: 120px 0 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.035em; }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
/* Each section takes one food from the box: a colored chip above its title. */
.section, .lost-main { --c: var(--violet); }
#workspaces, #keys { --c: var(--ume); }
#features, #install { --c: var(--tamago); }
#try, #faq { --c: var(--greens); }
#tour { --c: var(--cyan); }
#how { --c: #a99cff; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 6px 13px 6px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* Scroll reveal: only with scripts on, so the page is whole without them. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s; }
html.js .reveal.in { opacity: 1; transform: none; }

/* The workspace animation */

.desk { max-width: 1040px; margin: 0 auto; }
.desk-screen {
  position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  background:
    radial-gradient(80% 70% at 100% 100%, rgba(42, 176, 232, 0.75), transparent 60%),
    radial-gradient(70% 80% at 0% 0%, rgba(155, 140, 255, 0.8), transparent 60%),
    radial-gradient(60% 50% at 70% 20%, rgba(255, 150, 120, 0.35), transparent 70%),
    linear-gradient(135deg, #24185a, #102452 55%, #0b3a50);
}
.desk-area { position: absolute; inset: 4.2% 0 0; }
.win {
  position: absolute; display: flex; flex-direction: column; overflow: hidden;
  border-radius: clamp(6px, 1vw, 11px); background: #fff;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(0, 0, 0, 0.35);
  transition: left 1s var(--ease), top 1s var(--ease), width 1s var(--ease), height 1s var(--ease), transform 1s var(--ease), filter 0.6s;
}
.win .tb {
  flex: none; display: flex; align-items: center; gap: 5px; height: clamp(14px, 2.4vw, 26px); padding: 0 clamp(6px, 1vw, 10px);
  background: #ececee; border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: clamp(7px, 0.95vw, 11px); font-weight: 600; color: #555;
}
.win .tb.dark { background: #2a2b32; color: #bbb; border-bottom-color: rgba(0, 0, 0, 0.4); }
.win .tb i { width: clamp(5px, 0.8vw, 9px); height: clamp(5px, 0.8vw, 9px); border-radius: 50%; background: #ff5f57; }
.win .tb i:nth-child(2) { background: #febc2e; }
.win .tb i:nth-child(3) { background: #28c840; }
.win .tb span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { position: relative; flex: 1; }

/* Arranged: the workspace as saved. Messy: the same windows after an afternoon of work. */
.w-xcode { z-index: 5; left: 1%; top: 2%; width: 57.5%; height: 95%; }
.w-safari { z-index: 6; left: 59.5%; top: 2%; width: 39.5%; height: 52%; transition-delay: 0.08s; }
.w-term { z-index: 7; left: 59.5%; top: 56%; width: 39.5%; height: 41%; transition-delay: 0.16s; }
.w-messages { z-index: 1; left: 14%; top: 10%; width: 30%; height: 46%; filter: brightness(0.9); }
.desk[data-state="messy"] .w-xcode { z-index: 3; left: 30%; top: 16%; width: 44%; height: 54%; transform: rotate(-1.2deg); }
.desk[data-state="messy"] .w-safari { z-index: 2; left: 52%; top: 38%; width: 40%; height: 52%; transform: rotate(1.5deg); }
.desk[data-state="messy"] .w-term { z-index: 4; left: 5%; top: 52%; width: 34%; height: 38%; transform: rotate(0.8deg); }
.desk[data-state="messy"] .w-messages { z-index: 6; filter: none; }
.desk[data-state="messy"] .win { transition-duration: 0.9s; transition-delay: 0s; }

.desk-toast {
  position: absolute; left: 50%; bottom: 7%; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 16px;
  background: rgba(30, 30, 40, 0.72); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 12px) scale(0.96); opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.desk-toast img { width: clamp(24px, 3vw, 36px); height: auto; border-radius: 8px; }
.desk-toast b { display: block; font-size: clamp(0.75rem, 1.2vw, 0.95rem); }
.desk-toast span { display: block; font-size: clamp(0.65rem, 1vw, 0.8rem); color: rgba(255, 255, 255, 0.7); }
.desk.toast .desk-toast { opacity: 1; transform: translate(-50%, 0) scale(1); }

.desk-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.desk-steps li {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px;
  font-size: 0.9rem; color: var(--dim); border: 1px solid var(--line); background: var(--glass);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.desk-steps .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; background: rgba(255, 255, 255, 0.06); }
.desk-steps li.on { color: var(--text); border-color: rgba(155, 140, 255, 0.45); background: rgba(139, 123, 255, 0.12); }
.desk-steps li.on .n { background: var(--grad-btn); color: #fff; }
.desk-steps kbd.down { background: var(--grad-btn); border-color: transparent; color: #fff; transform: translateY(1px); }
html:not(.js) .desk-steps { display: none; }

/* Pictures of windows, drawn by main.js from blocks */
.art { position: absolute; inset: 0; overflow: hidden; }
.art b { position: absolute; display: block; border-radius: 2px; }

/* Bento */

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile, .card, .step {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tile:hover, .card:hover, .step:hover { border-color: var(--line-2); }
.tile h3, .card h3, .step h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }
.tile kbd { font-size: 0.74em; }

/* The light that follows the pointer over a card */
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c, var(--violet)) 18%, transparent), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

/* Like the compartments of a bento box, every tile holds a different color. */
.tile {
  background:
    radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.tile:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.t-workspaces { --c: var(--ume); }
.t-quick { --c: var(--tamago); }
.t-switcher { --c: var(--cyan); }
.t-letters { --c: #4d9bff; }
.t-desktops { --c: var(--greens); }
.t-private { --c: #b4a8ff; }
.t-right { --c: #ff9a5c; }
.t-displays { --c: #5fe0c8; }

.tile-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 13px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  box-shadow: 0 8px 22px -10px var(--c);
}
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: color-mix(in srgb, var(--c) 70%, #fff); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.t-workspaces { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.t-quick { grid-column: span 2; }
.t-desktops, .t-private, .t-right, .t-displays { grid-column: span 2; }

/* A small screen whose windows move to the active workspace's layout */
.ws-mini {
  position: relative; flex: 1; min-height: 150px; margin-top: 22px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, rgba(139, 123, 255, 0.28), transparent 60%), linear-gradient(160deg, #141a3a, #0b1024);
  border: 1px solid var(--line);
}
.wf {
  position: absolute; border-radius: 7px; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: left 0.7s var(--ease), top 0.7s var(--ease), width 0.7s var(--ease), height 0.7s var(--ease);
}
.wf::before { content: ""; position: absolute; inset: 0 0 auto; height: 12px; border-radius: 7px 7px 0 0; background: rgba(255, 255, 255, 0.08); }
.wf1::before { background: color-mix(in srgb, var(--ume) 60%, transparent); }
.wf2::before { background: color-mix(in srgb, var(--tamago) 60%, transparent); }
.wf3::before { background: color-mix(in srgb, var(--greens) 60%, transparent); }
.ws-mini[data-on="0"] .wf1 { left: 5%; top: 9%; width: 56%; height: 82%; }
.ws-mini[data-on="0"] .wf2 { left: 63%; top: 9%; width: 32%; height: 48%; }
.ws-mini[data-on="0"] .wf3 { left: 63%; top: 61%; width: 32%; height: 30%; }
.ws-mini[data-on="1"] .wf1 { left: 67%; top: 56%; width: 28%; height: 35%; }
.ws-mini[data-on="1"] .wf2 { left: 5%; top: 9%; width: 59%; height: 82%; }
.ws-mini[data-on="1"] .wf3 { left: 67%; top: 9%; width: 28%; height: 43%; }
.ws-mini[data-on="2"] .wf1 { left: 30%; top: 64%; width: 30%; height: 27%; }
.ws-mini[data-on="2"] .wf2 { left: 63%; top: 9%; width: 32%; height: 82%; }
.ws-mini[data-on="2"] .wf3 { left: 5%; top: 9%; width: 55%; height: 52%; }

.ws-list { margin: auto 0 0; padding: 22px 0 0; list-style: none; display: grid; gap: 10px; }
.ws-list li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-weight: 600;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.ws-list li kbd { margin-left: auto; }
.ws-list li.on { border-color: rgba(10, 124, 255, 0.9); background: rgba(10, 124, 255, 0.16); transform: scale(1.02); }
.ws-dot { width: 10px; height: 10px; border-radius: 3px; }
.ws-dot.d1 { background: var(--ume); } .ws-dot.d2 { background: var(--tamago); } .ws-dot.d3 { background: var(--greens); }

.mini-search { margin-top: 22px; display: grid; gap: 8px; max-width: 420px; }
.ms-field, .ms-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 0.95rem; }
.ms-field { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); color: var(--text); }
.ms-field svg { width: 16px; height: 16px; fill: none; stroke: var(--dim); stroke-width: 2; }
.caret { width: 1.5px; height: 1.1em; background: #9b8cff; animation: blink 1.1s steps(1) infinite; margin-left: -8px; }
@keyframes blink { 50% { opacity: 0; } }
.ms-row { background: rgba(10, 124, 255, 0.16); border: 1px solid rgba(10, 124, 255, 0.7); font-weight: 600; }
.ms-row small { color: var(--muted); font-weight: 400; }
.ms-row .ic { width: 22px; height: 22px; border-radius: 6px; }

.letters { display: flex; gap: 8px; margin-top: 18px; }
.letters span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 3px 8px rgba(0, 0, 0, 0.3);
  animation: hop 3.2s var(--ease) infinite;
}
.letters span.on { box-shadow: 0 0 0 2px #fff, 0 0 20px rgba(10, 124, 255, 0.85); }
.letters span:nth-child(2) { animation-delay: 0.15s; } .letters span:nth-child(3) { animation-delay: 0.3s; } .letters span:nth-child(4) { animation-delay: 0.45s; }
@keyframes hop { 0%, 30%, 100% { transform: none; } 12% { transform: translateY(-5px); } }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-workspaces { grid-row: auto; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .t-workspaces, .t-quick, .t-desktops, .t-private, .t-right, .t-displays { grid-column: auto; }
}

/* The working quick switcher */

.demo { position: relative; display: none; max-width: 1060px; margin: 0 auto; border-radius: 26px; outline: none; }
html.js .demo { display: block; }
html.js .demo-fallback { display: none; }
.demo-fallback { max-width: 1060px; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); }
.demo:focus-visible { box-shadow: 0 0 0 3px rgba(155, 140, 255, 0.7); }

.qs {
  --qs-text: #1d1d1f; --qs-muted: #6e6e73;
  position: relative; overflow: hidden; border-radius: 22px; color: var(--qs-text);
  background: rgba(236, 236, 238, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: opacity 0.2s ease, transform 0.35s var(--ease);
}
.demo.closed .qs { opacity: 0; transform: scale(0.97); pointer-events: none; transition: opacity 0.16s ease-in, transform 0.22s ease-in; }
.qs-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.qs-glass { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--qs-muted); stroke-width: 2; }
.qs-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 4px 0;
  font: inherit; font-size: clamp(1.05rem, 2vw, 1.45rem); color: var(--qs-text); caret-color: var(--accent);
}
.qs-input::placeholder { color: #a1a1a6; }
.qs-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--qs-muted); white-space: nowrap; }
.qs-mode kbd { color: #333; background: rgba(0, 0, 0, 0.07); border: 0; height: 1.7em; font-size: 0.75rem; vertical-align: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--qs-muted); background: rgba(0, 0, 0, 0.07);
  transition: background 0.2s, color 0.2s;
}
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip.on { background: var(--accent); color: #fff; }
.qs-gear { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--qs-muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.qs-gear:hover { background: rgba(0, 0, 0, 0.07); color: var(--qs-text); }
.qs-gear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 560px) { .qs-mode { display: none; } .qs-head { padding-left: 14px; } }

.qs-body { padding: 6px 16px 18px; }
.qs-section { margin: 14px 4px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qs-muted); }
.qs-section[hidden], .qs-grid[hidden], .qs-empty[hidden] { display: none; }
.qs-empty { padding: 50px 0; text-align: center; color: var(--qs-muted); }
.qs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .qs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .qs-grid { grid-template-columns: repeat(2, 1fr); } }

.qcard {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: transparent; border: 0; border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.2s, background 0.2s;
}
.qcard[hidden] { display: none; }
.qcard:hover { background: rgba(0, 0, 0, 0.03); }
.qcard.sel { background: rgba(10, 124, 255, 0.16); box-shadow: inset 0 0 0 2.5px var(--accent); transform: scale(1.025); z-index: 1; }
.qcard.picked { animation: picked 0.32s var(--ease); }
@keyframes picked { 40% { transform: scale(0.97); } 100% { transform: scale(1.025); } }
.qcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qthumb { position: relative; display: block; aspect-ratio: 16 / 10; }
.qthumb .shot-win { position: absolute; inset: 0 8%; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.qthumb .shot-ws { position: absolute; inset: 0 6%; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.25);
  background: radial-gradient(80% 90% at 0% 0%, #a99cff, transparent 70%), linear-gradient(135deg, #6d63e8, #3f7ff0 55%, #22b4e6);
}
.qthumb .shot-ws > span { position: absolute; overflow: hidden; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.qthumb .ic { position: absolute; left: 3%; bottom: -6%; width: 26%; max-width: 30px; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.qthumb .tag {
  position: absolute; top: 6%; right: 10%; padding: 2px 7px; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.6); white-space: nowrap;
}
.qlabel { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 0 2px; }
.qlabel span { display: grid; min-width: 0; }
.qlabel b { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qlabel small { font-size: 0.7rem; color: var(--qs-muted); }
.qlabel.ws b { font-size: 0.95rem; }
.qlabel kbd { margin-left: auto; color: #444; background: rgba(0, 0, 0, 0.07); border: 0; font-size: 0.68rem; vertical-align: 0; }
.qhint {
  position: absolute; left: 3px; top: 3px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.92rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 5px rgba(0, 0, 0, 0.3);
  transform: scale(0); transition: transform 0.25s var(--ease);
}
.qs.show-hints .qhint:not(:empty) { transform: scale(1); }

.demo-toast {
  position: absolute; left: 50%; top: 50%; z-index: 5; display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 14px; border-radius: 18px; color: #fff; pointer-events: none;
  background: rgba(28, 28, 38, 0.82); border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translate(-50%, -40%) scale(0.95);
  transition: opacity 0.25s, transform 0.4s var(--ease);
}
.demo-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.demo-toast .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.demo-toast b { display: block; font-size: 1rem; }
.demo-toast span { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

.demo-closed { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s 0.1s; }
.demo.closed:not(.picking) .demo-closed { opacity: 1; pointer-events: auto; }
.demo-closed .btn { height: auto; padding: 14px 22px; flex-wrap: wrap; }
.kbds { display: inline-flex; }

.demo-help { margin: 28px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.demo-help em { font-style: normal; color: var(--text); font-family: var(--mono); font-size: 0.9em; }
.live { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--dim); vertical-align: 0.05em; transition: background 0.3s, box-shadow 0.3s; }
.demo-help.active .live { background: #3ee08f; box-shadow: 0 0 0 4px rgba(62, 224, 143, 0.18); }

/* App icons, drawn */
.ic { display: grid; place-items: center; }
.ic svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-mail { background: linear-gradient(180deg, #5ac8fa, #1e7cf2); }
.ic-code { background: linear-gradient(180deg, #3d9bff, #1355d6); }
.ic-web { background: linear-gradient(180deg, #4fc3ff, #1a73e8); }
.ic-term { background: linear-gradient(180deg, #4a4a4f, #1c1c1e); }
.ic-chat { background: linear-gradient(180deg, #5ef27a, #20b94a); }
.ic-notes { background: linear-gradient(180deg, #ffe066, #f7b500); }
.ic-notes svg { stroke: #6b4e00; }
.ic-cal { background: linear-gradient(180deg, #ffffff, #e9e9ee); }
.ic-cal svg { stroke: #e5484d; }
.ic-text { background: linear-gradient(180deg, #ffffff, #dedee3); }
.ic-text svg { stroke: #555; }

/* Tour */

.tour { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.tabs { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs button {
  position: relative; z-index: 1; padding: 9px 16px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.2s;
}
.tabs button[aria-selected="true"] { color: #fff; }
.tab-ink {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 12px;
  background: var(--grad-btn); box-shadow: 0 6px 20px -6px rgba(91, 141, 245, 0.8);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease);
}
html:not(.js) .tab-ink { display: none; }
html:not(.js) .tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.1); }
.tour-stage { width: 100%; margin-top: 34px; }
.pane[hidden] { display: none; }
.pane { animation: fade-up 0.5s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.shot { position: relative; margin: 0; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }
.shot .lettered { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; }
.tour.show-hints .shot .lettered { opacity: 1; }
.caption { max-width: 700px; margin: 26px auto 0; text-align: center; color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 0.92rem; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.25s; }
.toggle-track span { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--ease); }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track span { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid #9b8cff; outline-offset: 3px; }
.toggle.off { visibility: hidden; }
html:not(.js) .toggle { display: none; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; }
.step:nth-child(1) { --c: var(--ume); }
.step:nth-child(2) { --c: var(--tamago); }
.step:nth-child(3) { --c: var(--greens); }
.step-n {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 15px;
  font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: #1a1206; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c));
  box-shadow: 0 10px 24px -8px var(--c), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Cheat sheet */

.cheats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; max-width: 980px; margin: 0 auto; padding: 14px 32px; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%), var(--glass);
}
.cheats > div { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cheats > div:nth-last-child(-n + 2) { border-bottom: 0; }
.cheats dt { flex: none; min-width: 150px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cheats dt kbd { margin: 0; font-size: 0.85rem; }
.cheats dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .cheats { grid-template-columns: 1fr; padding: 8px 22px; }
  .cheats > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .cheats dt { min-width: 120px; }
}

/* Install */

.install { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.card > p { color: var(--muted); font-size: 0.96rem; }
.card .small { font-size: 0.86rem; color: var(--dim); }
.card .small code { color: var(--muted); }
.card .cmd { width: 100%; }
.card .cmd code { flex: 1; min-width: 0; font-size: 0.8rem; }
.card-wide { grid-column: 1 / -1; }
.card {
  background:
    radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.card:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.card:nth-child(2) { --c: var(--ume); }
.card:nth-child(3) { --c: var(--greens); }
.badge { display: inline-block; margin-right: 10px; padding: 3px 9px; border-radius: 999px; font-family: var(--font); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: 0.2em; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.perms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; width: 100%; }
.perms p { color: var(--muted); font-size: 0.96rem; }
.perms .perm-name { margin-bottom: 6px; color: var(--text); font-weight: 650; font-size: 1.05rem; }
.req, .opt { display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 0.15em; }
.req { color: #ffd0d0; background: rgba(255, 95, 87, 0.18); }
.opt { color: #c8f5dc; background: rgba(62, 224, 143, 0.15); }
@media (max-width: 820px) { .install, .perms { grid-template-columns: 1fr; } }

/* FAQ */

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: var(--glass); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--c) 38%, transparent); background: color-mix(in srgb, var(--c) 5%, rgba(255, 255, 255, 0.04)); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 620; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }
.faq a { color: #b4a8ff; }

/* Final call */

.final { padding-bottom: 40px; }
.final-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 72px 28px; border-radius: 32px; border: 1px solid rgba(155, 140, 255, 0.3);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(139, 123, 255, 0.35), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(255, 92, 140, 0.3), transparent 70%),
    radial-gradient(45% 60% at 100% 100%, rgba(60, 215, 160, 0.26), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}
.final-card img { border-radius: 22px; margin-bottom: 26px; filter: drop-shadow(0 18px 30px rgba(91, 141, 245, 0.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.final-card h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.035em; }
.final-card > p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }

/* Footer */

.footer { margin-top: 80px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 34px 0 44px; font-size: 0.88rem; color: var(--dim); }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer p { margin-left: auto; }
.footer p a { color: var(--muted); }
@media (max-width: 720px) { .footer p { margin-left: 0; } }

@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero { padding-top: 44px; }
  .section { padding-top: 90px; }
  .cta { width: 100%; }
  .cta .cmd, .cta .btn { width: 100%; }
  .cta .cmd code { flex: 1; }
  .tile, .card, .step { padding: 22px; }
}

/* 404 */

.lost-main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 24px; text-align: center; }
.lost-main img { margin-bottom: 30px; border-radius: 20px; filter: drop-shadow(0 18px 30px rgba(91, 141, 245, 0.45)); }
.lost-main h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }

/* Less motion: everything is in place from the start. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .aurora span { animation: none; }
}
