/* Kord — website. One stylesheet, no framework. */

:root {
  --brand: #0b38a9;
  --brand-2: #2f63ff;
  --cream: #fcf9f2;

  --bg: #fcf9f2;
  --bg-alt: #f3efe5;
  --surface: #ffffff;
  --text: #10131c;
  --text-2: #4a5165;
  --text-3: #7a8194;
  --line: rgba(16, 19, 28, 0.1);
  --shadow: 0 30px 60px -20px rgba(11, 30, 90, 0.28), 0 10px 20px -10px rgba(11, 30, 90, 0.18);
  --ink: var(--brand);
  --chip: rgba(11, 56, 169, 0.08);

  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a14;
    --bg-alt: #0c1122;
    --surface: #111729;
    --text: #eef1f8;
    --text-2: #a9b1c7;
    --text-3: #717a93;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 10px 24px -10px rgba(0, 0, 0, 0.5);
    --ink: #7da2ff;
    --chip: rgba(125, 162, 255, 0.12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070a14;
  --bg-alt: #0c1122;
  --surface: #111729;
  --text: #eef1f8;
  --text-2: #a9b1c7;
  --text-3: #717a93;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 10px 24px -10px rgba(0, 0, 0, 0.5);
  --ink: #7da2ff;
  --chip: rgba(125, 162, 255, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
p { color: var(--text-2); margin: 0 0 14px; }
kbd {
  font: 500 0.78em/1 var(--mono);
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  color: var(--text);
  white-space: nowrap;
}

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.center { text-align: center; }
.center-text { text-align: center; margin-bottom: 28px; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.narrow-col { max-width: 760px; }

/* ----------------------------------------------------------- progress -- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------------------------------------------------------------- nav -- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: var(--bg); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem var(--display); letter-spacing: -0.04em; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 26px; margin-left: 18px; }
.links a { text-decoration: none; color: var(--text-2); font-size: 0.93rem; font-weight: 500; position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.links a:hover { color: var(--text); }
.links a:hover::after, .links a.on::after { transform: scaleX(1); }
.links a.on { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; grid-area: 1 / 1; transition: transform 0.5s var(--ease), opacity 0.3s; }
.i-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.dark-ui .i-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
.dark-ui .i-moon { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 56, 169, 0.7); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(11, 56, 169, 0.8); }
.btn.ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn.ghost:hover { transform: translateY(-2px); }
.btn.big { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }

/* --------------------------------------------------------------- hero -- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
  border-radius: 99px; background: var(--chip); color: var(--ink); text-decoration: none;
  font-size: 0.86rem; font-weight: 600; margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--ink); box-shadow: 0 0 0 0 var(--ink); animation: ping 2s infinite; }
.pill .arrow { transition: transform 0.3s var(--ease); }
.pill:hover .arrow { transform: translateX(3px); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ink) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.ink { color: var(--ink); }
.lede { font-size: 1.15rem; margin: 22px 0 28px; max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { margin-top: 16px; font-size: 0.85rem; color: var(--text-3); }

.hero-stage { position: relative; height: 560px; perspective: 1400px; }
.hero-stage .shot { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #111; transition: transform 0.6s var(--ease); }
.s-main { width: 88%; top: 40px; right: 0; }
.s-search { width: 62%; left: -4%; bottom: 10px; z-index: 2; }
.s-w1 { width: 32%; right: -2%; bottom: 0; z-index: 3; }
.s-w2 { width: 30%; left: 4%; top: 0; z-index: 3; }
.glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(47, 99, 255, 0.35), transparent); filter: blur(30px); z-index: -1; }
.float-a { animation: float 9s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out -2s infinite; }
.float-c { animation: float 8s ease-in-out -4s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* -------------------------------------------------------------- stats -- */
.stats { padding: 30px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.stat b { display: block; font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-size: 0.93rem; }

/* ------------------------------------------------------------ sections -- */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split.flip .copy { order: 2; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  padding: 7px 13px; border-radius: 99px; font: 500 0.88rem var(--body); cursor: pointer;
  position: relative; overflow: hidden; transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { transform: translateY(-1px); color: var(--text); }
.chip[aria-selected="true"] { color: #fff; border-color: var(--brand); background: var(--brand); }
.chip[aria-selected="true"]::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(255, 255, 255, 0.7); transform-origin: 0 50%;
  animation: timer var(--dwell, 4.5s) linear forwards;
}
.paused .chip[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.keys { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; color: var(--text-2); font-size: 0.95rem; }
.keys kbd { margin-right: 3px; }

.frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #0b0b0c; position: relative;
}
.frame img { width: 100%; cursor: zoom-in; }
.frame-stack { display: grid; }
.frame-stack > img { grid-area: 1 / 1; opacity: 0; transform: scale(1.02); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.frame-stack > img.on { opacity: 1; transform: none; }
.caption { margin-top: 14px; font-size: 0.92rem; color: var(--text-3); text-align: center; min-height: 1.6em; }
.frame.wide { margin-top: 26px; max-width: 1000px; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ marquee -- */
.marquee { overflow: hidden; margin-top: 44px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 18px; }
.track { display: flex; gap: 18px; width: max-content; animation: slide 70s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .track { animation-play-state: paused; }
.track figure { margin: 0; flex: none; height: 230px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.5); background: #0b0b0c; transition: transform 0.4s var(--ease); position: relative; }
.track figure:hover { transform: translateY(-6px) scale(1.02); }
.track img { height: 100%; width: auto; cursor: zoom-in; }
.track figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.75rem; opacity: 0; transform: translateY(6px); transition: 0.3s var(--ease); }
.track figure:hover figcaption { opacity: 1; transform: none; }
@keyframes slide { to { transform: translateX(-50%); } }

.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.look img { border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); width: 100%; height: 380px; object-fit: cover; object-position: top; cursor: zoom-in; transition: transform 0.5s var(--ease); }
.look:hover img { transform: translateY(-6px); }
.look p { margin-top: 14px; font-size: 0.95rem; }

/* --------------------------------------------------------------- tabs -- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); width: fit-content; margin-left: auto; margin-right: auto; position: relative; }
.tab { position: relative; z-index: 1; border: 0; background: none; color: var(--text-2); padding: 9px 15px; border-radius: 11px; font: 500 0.9rem var(--body); cursor: pointer; transition: color 0.25s; }
.tab[aria-selected="true"] { color: #fff; }
.tab-ind { position: absolute; z-index: 0; top: 0; left: 0; height: 0; border-radius: 11px; background: var(--brand); transition: transform 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease); }

/* -------------------------------------------------------- smart demo -- */
.smart-demo { --loop: 9s; }
.smart-demo img { cursor: default; }
.smart-demo::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); animation: veil var(--loop) var(--ease) infinite; pointer-events: none; }
.ss-box {
  position: absolute; left: 2%; top: 12%; width: 0; height: 0; z-index: 2;
  border: 2px solid #7da2ff; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  animation: draw var(--loop) var(--ease) infinite;
}
.ss-size { position: absolute; right: 6px; bottom: 6px; font: 500 11px var(--mono); color: #fff; background: rgba(0, 0, 0, 0.6); padding: 2px 6px; border-radius: 6px; }
.ss-cursor {
  position: absolute; z-index: 4; width: 18px; height: 18px; left: 2%; top: 12%;
  background: #fff; clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 64% 94%, 44% 66%, 80% 66%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  animation: pointer var(--loop) var(--ease) infinite;
}
.ss-card {
  position: absolute; z-index: 3; left: 6%; top: 50%; width: min(420px, 70%);
  background: rgba(22, 24, 32, 0.96); color: #eef1f8; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px; animation: card var(--loop) var(--ease) infinite;
}
.ss-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ss-head em { margin-left: auto; font-style: normal; opacity: 0.55; font-size: 11px; }
.ss-mark { width: 16px; height: 16px; border-radius: 5px; background: conic-gradient(#4285f4, #9b72cb, #d96570, #4285f4); }
.ss-read { background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 7px 9px; opacity: 0.8; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-chips { display: flex; gap: 6px; margin-bottom: 8px; }
.ss-chips span { padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 11px; }
.ss-chips .hot { animation: hot var(--loop) steps(1) infinite; }
.ss-input { background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 7px 9px; white-space: nowrap; overflow: hidden; }
.ss-input { animation: type var(--loop) steps(38) infinite; }
@keyframes draw {
  0%, 8% { width: 0; height: 0; opacity: 0; }
  10% { opacity: 1; width: 0; height: 0; }
  32%, 92% { width: 96%; height: 34%; opacity: 1; }
  100% { width: 96%; height: 34%; opacity: 0; }
}
@keyframes pointer {
  0%, 8% { left: 2%; top: 12%; opacity: 0; }
  10% { opacity: 1; left: 2%; top: 12%; }
  32% { left: 97%; top: 46%; opacity: 1; }
  40%, 100% { left: 97%; top: 46%; opacity: 0; }
}
@keyframes veil { 0%, 8% { opacity: 0; } 12%, 92% { opacity: 0.35; } 100% { opacity: 0; } }
@keyframes card { 0%, 36% { opacity: 0; transform: translateY(10px) scale(0.97); } 42%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hot { 0%, 55% { background: rgba(255, 255, 255, 0.1); } 56%, 100% { background: #2f63ff; } }
@keyframes type { 0%, 58% { max-width: 0; } 75%, 100% { max-width: 100%; } }

/* -------------------------------------------------------------- steps -- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--ink); font: 800 1rem var(--display); }
.steps b { color: var(--text); }

/* -------------------------------------------------------------- cards -- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 22px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { border-radius: 12px; height: 260px; width: 100%; object-fit: cover; object-position: top; margin-bottom: 18px; cursor: zoom-in; }
.card h3, .card p { padding: 0 6px; }

/* ------------------------------------------------------------ updater -- */
.updater { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-width: 420px; box-shadow: var(--shadow); }
.upd-top { display: flex; gap: 12px; align-items: center; }
.upd-top img { width: 40px; height: 40px; border-radius: 10px; }
.upd-top b { display: block; }
.upd-top span { font-size: 0.86rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.upd-bar { height: 7px; border-radius: 99px; background: var(--chip); overflow: hidden; margin-top: 14px; }
.upd-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: inherit; }

/* --------------------------------------------------------------- news -- */
.news { columns: 3 300px; column-gap: 22px; margin-top: 40px; }
.news-group { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.news-group h3 { display: flex; align-items: center; gap: 10px; }
.news-group h3 span { font: 600 0.72rem var(--mono); color: var(--ink); background: var(--chip); padding: 3px 8px; border-radius: 99px; }
.news-group ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.news-group li { position: relative; padding-left: 18px; font-size: 0.92rem; color: var(--text-2); line-height: 1.45; }
.news-group li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 6px; height: 6px; border-radius: 99px; background: var(--ink); opacity: 0.7; }

/* --------------------------------------------------------------- misc -- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 1.4rem/1 var(--body); color: var(--text-3); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; animation: open 0.4s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

.final { padding: 120px 0; background: radial-gradient(60% 80% at 50% 100%, rgba(47, 99, 255, 0.25), transparent), var(--bg); }
.final-logo { margin: 0 auto 26px; border-radius: 24px; box-shadow: var(--shadow); }
.final h2 { margin-bottom: 30px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.9rem; color: var(--text-3); }
.foot-inner { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(4, 6, 12, 0.8); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 90vh; border-radius: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); animation: zoom 0.45s var(--ease); }
@keyframes zoom { from { opacity: 0; transform: scale(0.92); } }

/* ------------------------------------------------------ live palette -- */
/* Drawn after the real palette: the same rows, groups, badge and footer,
   light on a light page and dark on a dark one. */
.qs {
  --qs-bg: #ffffff; --qs-line: rgba(16, 19, 28, 0.09); --qs-sel: #d6e2f7; --qs-sel-rim: #8fb0ea;
  --qs-muted: #7a8194; --qs-key: #eef0f4;
  position: relative; border-radius: 16px; background: var(--qs-bg); border: 1px solid var(--qs-line);
  box-shadow: var(--shadow); overflow: hidden; font-size: 14px; color: var(--text);
  height: 500px; display: flex; flex-direction: column;
}
.dark-ui .qs { --qs-bg: #141619; --qs-line: rgba(255, 255, 255, 0.08); --qs-sel: #1c2b47; --qs-sel-rim: #33589a; --qs-muted: #8b93a7; --qs-key: #23262c; }
.qs-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--qs-line); }
.qs-glass { width: 20px; height: 20px; fill: none; stroke: var(--qs-muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.qs-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; font-size: 19px; font-weight: 500; height: 30px; white-space: nowrap; overflow: hidden; }
.qs-text { white-space: pre; }
.qs-caret { width: 2px; height: 22px; background: var(--text); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.qs-ph { color: var(--qs-muted); font-weight: 400; font-size: 16px; position: absolute; left: 0; pointer-events: none; }
.qs-crumbs:empty { display: none; }
.qs-crumb { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--brand); color: #fff; margin-right: 8px; animation: pop 0.35s var(--ease); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.qs-input { position: absolute; inset: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; color: transparent; caret-color: transparent; cursor: text; padding: 0; }
.qs.user .qs-text, .qs.user .qs-caret { display: none; }
.qs.user .qs-input { position: static; flex: 1; color: var(--text); caret-color: var(--text); }
.qs.user { box-shadow: var(--shadow), 0 0 0 3px color-mix(in oklab, var(--brand-2) 45%, transparent); }
.qs-kbd { font: 500 11px var(--body); color: var(--qs-muted); background: var(--qs-key); padding: 3px 7px; border-radius: 6px; }
.qs-body { flex: 1; overflow: hidden; padding: 4px 8px; }
.qs-group { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--qs-muted); padding: 10px 10px 4px; }
.qs-row { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; }
.qs-row.new { animation: rowin 0.35s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } }
.qs-row.sel { background: var(--qs-sel); border-color: var(--qs-sel-rim); }
.qs-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.qs-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-violet { background: #f1e3fb; color: #9b3fd1; } .t-blue { background: #dde8f9; color: #2b6bd6; }
.t-amber { background: #f7e7d3; color: #d27a12; } .t-green { background: #dcf1e2; color: #1f8a4c; }
.t-sky { background: #dcecf7; color: #1c7fb8; } .t-slate { background: #e6e8ee; color: #525a6e; } .t-rose { background: #fbe0e4; color: #d23a55; }
.dark-ui .qs-ic { background: rgba(255, 255, 255, 0.07); }
.qs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.qs-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-main .qs-big { font: 800 26px/1.1 var(--display); letter-spacing: -0.02em; }
.qs-main small { color: var(--qs-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-meta { color: var(--qs-muted); font-size: 12px; white-space: nowrap; }
.qs-badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--qs-line); background: var(--qs-bg); white-space: nowrap; }
.qs-empty { color: var(--qs-muted); padding: 8px 10px; font-size: 13px; }
.qs-foot { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--qs-line); color: var(--qs-muted); font-size: 12px; }
.qs-hint { display: inline-flex; align-items: center; gap: 6px; }
.qs-key { font: 600 11px var(--body); min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 5px; background: var(--qs-key); color: var(--text); }
.qs-key.down { animation: keydown 0.4s var(--ease); }
@keyframes keydown { 30% { transform: translateY(2px) scale(0.92); background: var(--brand); color: #fff; } }
.qs-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.qs-toast, .sc-toast {
  position: absolute; left: 50%; bottom: 54px; z-index: 5; translate: -50% 0; padding: 8px 14px; border-radius: 10px;
  background: #10131c; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.dark-ui .qs-toast, .dark-ui .sc-toast { background: #eef1f8; color: #10131c; }
.qs-toast.on, .sc-toast.on { animation: toast 2.2s var(--ease) forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(8px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#qs-chips .chip[aria-selected="true"]::after { display: none; }

/* ------------------------------------------------------ home screens -- */
.builder { display: grid; grid-template-columns: 1fr 330px; gap: 28px; margin-top: 44px; align-items: start; }
.desk-wrap { border-radius: 18px; padding: 10px; background: #1b1d22; box-shadow: var(--shadow); }
.desk { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; transition: background 0.6s var(--ease); container-type: inline-size; }
.desk-tiles, .mini-tiles { position: absolute; inset: 0; }
.tile {
  position: absolute; border-radius: 4.5%/9%; overflow: hidden; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45);
  transition: left 0.6s var(--ease), top 0.6s var(--ease), width 0.6s var(--ease), height 0.6s var(--ease), opacity 0.35s, transform 0.45s var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.in { opacity: 0; transform: scale(0.85); }
.tile.out { opacity: 0; transform: scale(0.85); transition-delay: 0s !important; }
.desk-name { position: absolute; left: 50%; bottom: calc(7% + 12px); translate: -50% 0; z-index: 2; padding: 5px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: clamp(10px, 1.5cqw, 13px); white-space: nowrap; display: flex; gap: 8px; }
.desk-name b { font-weight: 600; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 7.04%; display: flex; align-items: center; justify-content: center; gap: 1.4%; background: rgba(20, 22, 28, 0.72); }
.taskbar i { width: 2.6%; aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, 0.22); }
.taskbar i:first-child { background: #3b82f6; }
.tb-clock { position: absolute; right: 2%; color: #fff; font-size: clamp(8px, 1.3cqw, 12px); font-variant-numeric: tabular-nums; }
.wp-0 { background: radial-gradient(60% 80% at 70% 60%, #5aa0ff 0%, transparent 60%), radial-gradient(50% 70% at 30% 40%, #1d4fd8 0%, transparent 70%), linear-gradient(160deg, #0b1f5c, #0a3a8c 60%, #0b1f5c); }
.wp-1 { background: radial-gradient(70% 90% at 80% 100%, #ff7aa8 0%, transparent 60%), linear-gradient(170deg, #2a1650, #6b2f86 55%, #c0487e); }
.wp-2 { background: radial-gradient(60% 60% at 25% 80%, #5fae6a 0%, transparent 70%), linear-gradient(165deg, #0f2a1d, #1f5134 55%, #3b7a4a); }
.wp-3 { background: radial-gradient(60% 70% at 70% 30%, #fff5e0 0%, transparent 70%), linear-gradient(160deg, #e9d8b8, #d7bd92 60%, #c4a476); }
.wp-4 { background: radial-gradient(50% 60% at 50% 40%, #3a3d45 0%, transparent 70%), linear-gradient(180deg, #17181c, #232429); }
.wp-5 { background: radial-gradient(60% 80% at 20% 30%, #36d1c4 0%, transparent 60%), linear-gradient(160deg, #063a4a, #0b6b77 60%, #0a4d5c); }
.wp-6 { background: radial-gradient(70% 70% at 50% 100%, #ffcc70 0%, transparent 60%), linear-gradient(180deg, #3b3f8f, #c0587a 60%, #f39a5b); }
.wp-7 { background: radial-gradient(60% 70% at 30% 20%, #ffffff 0%, transparent 70%), linear-gradient(160deg, #cfd9e6, #aebed3 60%, #9fb1c9); }

.controls { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ctl h3 { font: 600 0.8rem var(--body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 10px; display: flex; justify-content: space-between; }
.ctl-n { text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg-btn { display: grid; justify-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); font: 500 0.7rem var(--body); cursor: pointer; transition: 0.2s; }
.seg-btn svg { width: 34px; height: 30px; fill: currentColor; stroke: currentColor; stroke-width: 0.6; opacity: 0.8; }
.seg-btn:hover { color: var(--text); border-color: color-mix(in oklab, var(--ink) 40%, var(--line)); }
.seg-btn[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.kinds { display: flex; flex-wrap: wrap; gap: 5px; max-height: 190px; overflow: auto; }
.kind { font: 500 0.78rem var(--body); padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); cursor: pointer; transition: 0.15s; }
.kind:hover { color: var(--text); }
.kind[aria-pressed="true"] { background: var(--chip); border-color: color-mix(in oklab, var(--ink) 50%, transparent); color: var(--ink); font-weight: 600; }
.kind.nope { animation: nope 0.4s; }
@keyframes nope { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
.walls { display: flex; gap: 8px; flex-wrap: wrap; }
.wall { width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.2s var(--ease); }
.wall:hover { transform: scale(1.1); }
.wall[aria-checked="true"] { border-color: var(--text); }

.ideas-head { margin-top: 80px; text-align: center; }
.ideas-head h3 { font: 800 clamp(1.6rem, 3vw, 2.2rem) var(--display); letter-spacing: -0.03em; }
.ideas-head b { color: var(--ink); }
.ideas-head .chips { justify-content: center; }
.ideas-head .chip i { font-style: normal; opacity: 0.6; font-size: 0.8em; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; margin-bottom: 30px; }
.idea {
  text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); animation: ideain 0.5s var(--ease) both; animation-delay: var(--d, 0s);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}
.idea:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--ink) 40%, var(--line)); }
@keyframes ideain { from { opacity: 0; transform: translateY(14px); } }
.mini { position: relative; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; }
.mini .tile { box-shadow: 0 2px 5px -2px rgba(0, 0, 0, 0.5); transition: none; }
.mini-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 7.04%; background: rgba(20, 22, 28, 0.72); }
.idea-txt { padding: 12px 4px 4px; position: relative; }
.idea-n { position: absolute; right: 4px; top: 13px; font: 500 0.72rem var(--mono); color: var(--text-3); }
.idea b { font: 600 1.02rem var(--display); letter-spacing: -0.01em; }
.idea p { font-size: 0.87rem; margin: 3px 0 8px; line-height: 1.4; }
.idea-tags { font-size: 0.74rem; color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------- smart copy -- */
.ways { display: grid; gap: 14px; margin-top: 22px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.way-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.way-top b { margin-left: 8px; font-weight: 600; }
.way p { font-size: 0.93rem; margin: 0; }
.way kbd { font-size: 0.72em; }
code { font: 500 0.85em var(--mono); background: var(--chip); color: var(--ink); padding: 2px 6px; border-radius: 6px; }

.sc {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  aspect-ratio: 16 / 11; user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: default;
  container-type: inline-size;
}
.sc-desk { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; background: radial-gradient(60% 80% at 70% 60%, #5aa0ff 0%, transparent 60%), linear-gradient(160deg, #0b1f5c, #0a3a8c 60%, #0b1f5c); }
.sc-win { width: 100%; background: #fff; color: #1b1e27; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); overflow: hidden; }
.sc-title { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f3f4f7; border-bottom: 1px solid #e3e5ea; font-size: clamp(10px, 2.2cqw, 13px); }
.sc-title span { width: 10px; height: 10px; border-radius: 99px; background: #d4d7de; }
.sc-title b { margin-left: 8px; font-weight: 600; }
.sc-content { padding: 4.5% 5%; font-size: clamp(11px, 2.6cqw, 15px); line-height: 1.5; }
.sc-line { color: #3c4252; margin: 0 0 0.8em; }
.sc-key { font: 600 clamp(14px, 4.4cqw, 24px) var(--mono); color: #10131c; letter-spacing: 0.04em; background: #f3f4f7; border: 1px dashed #c9cdd6; border-radius: 8px; padding: 0.35em 0.6em; }
.sc-small { font-size: 0.82em; color: #7a8194; }
.sc-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1em; }
.sc-btns span { font-size: 0.82em; padding: 0.4em 0.9em; border-radius: 7px; background: #eceef2; color: #9aa0ad; }
.sc-btns span.on { background: #2f63ff; color: #fff; }
.sc .w { border-radius: 3px; transition: background-color 0.25s, box-shadow 0.25s, color 0.25s; }
.sc.lit .w { background: rgba(47, 99, 255, 0.1); box-shadow: 0 0 0 1px rgba(47, 99, 255, 0.35); cursor: text; }
.sc .w.sel { background: #2f63ff !important; color: #fff !important; box-shadow: 0 0 0 2px #2f63ff !important; }
.sc-freeze { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 #2f63ff; transition: box-shadow 0.3s var(--ease), background-color 0.3s; }
.sc.frozen .sc-freeze { box-shadow: inset 0 0 0 3px #2f63ff; background: rgba(8, 14, 40, 0.12); }
.sc-pill {
  position: absolute; top: 12px; left: 50%; translate: -50% 0; z-index: 3; padding: 6px 14px; border-radius: 99px;
  background: rgba(16, 19, 28, 0.85); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.sc-pill.on { opacity: 1; transform: none; }
.sc-cursor {
  position: absolute; left: 0; top: 0; z-index: 4; width: 3px; height: 20px; margin: -10px 0 0 -1px; pointer-events: none;
  opacity: 0; transition-property: transform, opacity; transition-timing-function: var(--ease);
}
.sc-cursor::before { content: ''; position: absolute; inset: 0; border: solid #10131c; border-width: 2px 0; }
.sc-cursor::after { content: ''; position: absolute; left: 1px; top: 0; bottom: 0; width: 1.5px; background: #10131c; box-shadow: 0 0 0 1px #fff; }
.sc-cursor.on { opacity: 1; }
.sc.mine .sc-cursor { display: none; }
.sc-toast { bottom: 16px; }

/* ------------------------------------------------------------- reveal -- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ narrow -- */
@media (max-width: 960px) {
  .links { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.flip .copy { order: 0; }
  .hero-stage { height: 420px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .looks, .cards, .trio { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .track figure { height: 170px; }
  .builder { grid-template-columns: 1fr; }
  .qs { height: 470px; }
}
@media (max-width: 1100px) {
  .links { gap: 18px; }
}
@media (max-width: 520px) {
  .hero-stage { height: 300px; }
  .nav-actions .btn { padding: 9px 13px; }
}
