:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f3f3f6;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.18);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #1d1d1f;
  --on-solid: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --card: #F5F6F8;
  --win-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0d;
  --surface: #141516;
  --surface-2: #1b1c1e;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f5f7;
  --muted: #9a9aa1;
  --accent: #f5f5f7;
  --on-solid: #0b0c0d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  --card: #12161B;
  --win-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

html:not([lang="en"]) .en,
html[lang="en"] .ru {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, kbd { font-family: var(--mono); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 0.5s var(--ease);
}
.topbar.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); }

.bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.015em;
  text-decoration: none;
  flex: none;
}
.logo svg { display: block; color: var(--accent); }

.menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.menu a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.menu a:hover { color: var(--text); background: var(--surface-2); }
.menu a.active { color: var(--text); }

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.btn,
.btn-ghost,
.chip,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), opacity 0.2s var(--ease),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--bg) 38%, transparent) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--text) 45%, transparent); }
.btn:hover::after { transform: translateX(130%); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.btn:active, .btn-ghost:active { transform: scale(0.97); transition-duration: 0.12s; }

.btn-ghost {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border-color: var(--border-strong);
  font-size: 15px;
  font-weight: 500;
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-1px); }

.btn.sm, .btn-ghost.sm { height: 32px; padding: 0 14px; font-size: 13px; }

.chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn.text { width: auto; padding: 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }

:root[data-theme="dark"] .i-moon,
:root:not([data-theme="dark"]) .i-sun { display: none; }

.burger { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  padding: 120px 0 72px;
  text-align: center;
}
.js .hero h1:not(.split) { visibility: hidden; animation: sq-show 0s 1.5s forwards; }
@keyframes sq-show { to { visibility: visible; } }
.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.05em 0.16em;
  margin: -0.06em -0.05em -0.16em;
}
.hero h1 .wi {
  display: inline-block;
  animation: sq-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
@keyframes sq-rise {
  from { transform: translateY(108%) rotate(2.5deg); opacity: 0; filter: blur(6px); }
  to { transform: none; opacity: 1; filter: none; }
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 88px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}
.hero .lead {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}
.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero .note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.stats { padding-top: 72px; padding-bottom: 72px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.stat-num {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.stat-label svg { flex: none; }

.shot {
  margin: 64px auto 0;
  max-width: 920px;
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  will-change: transform;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 72px auto 0;
}
.facts > div { padding: 24px 12px 0; }
.facts dt {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.facts dt small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.facts dd { margin-top: 6px; font-size: 13px; color: var(--muted); }

.section {
  padding-top: 96px;
  padding-bottom: 96px;
  scroll-margin-top: 56px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-head p { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 56ch; }

.showcase { padding-top: 8px; padding-bottom: 0; }
.fade-out {
  opacity: calc(1 - var(--e) * 0.95);
  filter: blur(calc(var(--e) * 7px));
  translate: 0 calc(var(--e) * -14px);
}
.reel {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 360px;
}
.clip {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 84%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-2);
  cursor: pointer;
  outline: none;
  transition: flex-grow 0.8s cubic-bezier(0.16, 1, 0.3, 1), height 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s var(--ease);
}
.clip.on {
  flex-grow: 2.4;
  height: 100%;
  box-shadow: var(--win-shadow);
}
.clip video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: brightness(0.62) saturate(0.85);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s var(--ease);
}
.clip.on video {
  transform: scale(1);
  filter: none;
}
.clip::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 38%);
  pointer-events: none;
}
.clip figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Full-width typographic rows with scroll focus */
.f-list { max-width: 1120px; }
.f-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 48px;
  padding: 44px 0;
}
.f-row h3 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.f-body p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.f-body strong { color: var(--text); font-weight: 650; }
.f-body code { font-size: 0.82em; padding: 2px 7px; border-radius: 7px; background: var(--surface-2); color: var(--text); }
.js .f-row {
  opacity: 0.22;
  filter: blur(3px);
  transform: translateY(14px) scale(0.99);
  transform-origin: 0 50%;
  transition: opacity 0.35s ease-out, filter 0.35s ease-out, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}
.js .f-row.is-focus { opacity: 1; filter: blur(0px); transform: translateY(0) scale(1); }

.steps { display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 40px;
  padding: 36px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 24px;
  transition: border-color 0.5s var(--out), background-color 0.5s var(--out);
}
.step h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; }
.step h3 time { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
.step p, .step li { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.step strong { color: var(--text); font-weight: 600; }
.step .cta-row { justify-content: flex-start; margin-top: 16px; }
.plain { list-style: none; display: grid; gap: 8px; }
.plain li { position: relative; padding-left: 16px; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
ol.plain { counter-reset: n; }
ol.plain li { counter-increment: n; padding-left: 30px; }
ol.plain li::before {
  content: counter(n) ".";
  top: 0;
  width: 22px;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.prose h2 time { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.faq-list { max-width: 820px; display: grid; gap: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.rows { border-top: 1px solid var(--border); }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.row > span:last-child { color: var(--muted); text-align: right; font-size: 14px; }
.keys { display: inline-flex; gap: 4px; flex: none; }
kbd {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

.prose { max-width: 720px; padding-top: 72px; padding-bottom: 96px; }
.back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--text); }
.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.prose .sub-lead { font-size: 18px; color: var(--muted); margin-bottom: 40px; }
.prose h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.prose p + p, .prose p + .cmd, .prose .cmd + p { margin-top: 12px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose details { margin-bottom: 12px; }
.prose a:not(.btn):not(.btn-ghost) { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.prose a:not(.btn):not(.btn-ghost):hover { text-decoration-color: var(--text); }
.prose .cta-row { justify-content: flex-start; margin: 28px 0 8px; }

.cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 10px 10px 18px;
  border-radius: 16px;
  background: var(--bg);
}
.cmd code { font-size: 13px; color: var(--text); overflow-x: auto; white-space: nowrap; }

details {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 0 32px;
  transition: border-color 0.5s var(--out), background-color 0.5s var(--out);
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
details[open] summary::after { transform: rotate(225deg); }
details p { padding: 0 0 28px; max-width: 62ch; }

.release { padding: 8px 0 8px; }
.release time { font-size: 13px; color: var(--muted); margin-left: 8px; font-weight: 400; }

.site-footer {
  margin-top: 0;
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.foot-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.foot-brand .logo { color: var(--text); }
.foot-note { white-space: nowrap; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 28px; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
.foot-links a:hover { color: var(--text); }

.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition: opacity 1.1s var(--out), transform 1.1s var(--out), filter 1.1s var(--out);
  will-change: opacity, transform, filter;
}
.js .reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

.leaving main, .leaving .site-footer { opacity: 0; transform: translateY(-8px); transition: opacity 0.26s ease, transform 0.26s ease; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease) !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .f-row { opacity: 1; filter: none; transform: none; transition: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero h1 .wi { animation: none; }
  .btn::after { display: none; }
  .clip, .clip video { transition: none; }
  .leaving main, .leaving .site-footer { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step > div { min-width: 0; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .f-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 32px 0; }
  .burger { display: inline-flex; }
  .menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.25);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 8px; font-size: 16px; }
  .bar .btn.sm { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 72px 0 48px; }
  .hero .lead { font-size: 16.5px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 28px; }
  .step { padding: 28px; border-radius: 20px; }
  details { padding: 0 22px; border-radius: 20px; }
  .facts { grid-template-columns: 1fr; margin-top: 40px; }
  .facts > div { padding: 16px 0; }
  .row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .row > span:last-child { text-align: left; }
  .cta-row .btn, .cta-row .btn-ghost { width: 100%; }
}

@media (max-width: 560px) {
  .stats { padding-top: 48px; padding-bottom: 48px; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .foot-links { justify-content: flex-start; gap: 12px 24px; }
}


@media (max-width: 760px) {
  .reel { flex-direction: column; height: auto; }
  .clip, .clip.on { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; box-shadow: none; }
  .clip video, .clip.on video { transform: none; filter: none; }
}

@media (hover: hover) {
  .step:hover, details:hover { border-color: var(--border-strong); }
}
@media (max-width: 640px) {
  summary { font-size: 16.5px; padding: 20px 0; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .stat-num { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .step, details { transition: none; }
}

/* ===== Silva additions (same tokens as the base style) ===== */
.hero h1.long { font-size: clamp(38px, 6.2vw, 76px); max-width: 980px; margin-left: auto; margin-right: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 18px 8px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; color: var(--muted);
}
.badge b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.btn svg, .btn-ghost svg { flex: none; }

.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  display: flex; flex-direction: column; padding: 32px; background: var(--card);
  border: 1px solid transparent; border-radius: 24px;
  transition: border-color .5s var(--out), background-color .5s var(--out), transform .6s var(--out);
}
.app-top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.app-icon {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 15px; display: grid; place-items: center;
  background: #0b0c0d; color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 24px -12px rgba(0,0,0,.55);
}
.app-icon .glyph { position: absolute; right: 8px; bottom: 8px; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.app-top h3 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.app-ver { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-desc { flex: 1; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.app-desc strong { color: var(--text); font-weight: 600; }
.app-meta { display: flex; align-items: center; gap: 8px; margin: 26px 0 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.app-meta b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.app-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.app-link { font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.app-link:hover { color: var(--text); }
.apps-note { margin-top: 32px; text-align: center; font-size: 13.5px; color: var(--muted); font-family: var(--mono); }
.step .app-link { display: inline-block; margin-top: 14px; color: var(--text); }
.step h3 time:empty { display: none; }

.gk-body { padding: 0 0 28px; max-width: 70ch; }
.gk-body p { padding: 0 0 12px; max-width: none; }
.gk-body h4 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gk-body .cmd { background: var(--bg); }
.gk-body strong { color: var(--text); font-weight: 600; }
.gk-body ol.plain { margin-bottom: 4px; }
.gk-body li { font-size: 15.5px; line-height: 1.7; color: var(--muted); }

/* Terra demo: always a dark desktop */
.desk { position: relative; aspect-ratio: 16/10; max-width: 1000px; margin: 0 auto; border-radius: 24px; overflow: hidden; color: #f5f5f7;
  background: radial-gradient(90% 90% at 30% 20%, #2a2b2e, #0b0c0d 70%); box-shadow: var(--win-shadow), inset 0 0 0 1px rgba(255,255,255,.1);
  cursor: crosshair; touch-action: pan-y; user-select: none; }
.desk-bar { position: absolute; inset: 0 0 auto 0; height: 26px; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 11px; background: rgba(255,255,255,.06); z-index: 3; }
.desk-bar span:last-child { margin-left: auto; opacity: .7; }
.di { position: absolute; width: 12%; transform: translate(-50%,-50%); text-align: center; z-index: 2; }
.di .app { position: relative; z-index: 2; width: 62%; aspect-ratio: 1; margin: 0 auto; border-radius: 22%; background: linear-gradient(160deg,#f5f5f7,#b9b9c0); box-shadow: 0 6px 16px rgba(0,0,0,.5); display: grid; place-items: center; color: #0b0c0d; }
.di .app svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.di .lbl { position: relative; z-index: 2; display: block; margin-top: 6px; font-size: clamp(8px,1.3vw,12px); opacity: .85; text-shadow: 0 1px 3px #000; }
.island { position: absolute; left: 50%; top: 48%; width: 190%; height: 130%; margin-left: -95%; margin-top: -30%; z-index: 1;
  transition: transform .3s var(--out); transform: translate(calc(var(--dx,0)*10px), calc(var(--k,0)*-10px)) scale(calc(1 + var(--k,0)*.22)); }
.island::before { content: ""; position: absolute; inset: 34% 0 0 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,calc(.1 + var(--k,0)*.18)), transparent); border-bottom: 1px solid rgba(255,255,255,calc(.08 + var(--k,0)*.2)); }
.island svg { position: absolute; bottom: 34%; fill: #f5f5f7; opacity: calc(.35 + var(--k,0)*.6); transform-origin: 50% 100%; transform: rotate(calc(var(--dx,0)*5deg)) scale(calc(1 + var(--k,0)*.25)); transition: transform .3s var(--out), opacity .3s; animation: sway 5s ease-in-out infinite; }
.island svg:nth-child(1) { left: 10%; width: 13%; animation-delay: -1s; }
.island svg:nth-child(2) { left: 30%; width: 19%; animation-delay: -2.2s; }
.island svg:nth-child(3) { left: 58%; width: 15%; animation-delay: -3.4s; }
.island svg:nth-child(4) { left: 76%; width: 10%; animation-delay: -.4s; }
@keyframes sway { 0%,100% { rotate: -1.6deg; } 50% { rotate: 1.6deg; } }
.demo-hint { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Memo demo */
.memo-demo { display: grid; gap: 28px; max-width: 900px; margin: 0 auto; }
.mwin { position: relative; width: min(600px, 100%); margin: 0 auto; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--border-strong); box-shadow: var(--win-shadow); transition: opacity .4s var(--out), transform .4s var(--out); }
.mwin.off { opacity: 0; transform: translateY(12px) scale(.97); }
.mtabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--border); overflow: auto; scrollbar-width: none; }
.mtabs span { flex: none; padding: 5px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); transition: background-color .2s, color .2s; }
.mtabs span.on { background: var(--text); color: var(--bg); font-weight: 600; }
.mlist { list-style: none; padding: 8px; min-height: 250px; }
.mlist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; transition: background-color .2s; }
.mlist li.sel { background: var(--surface-2); }
.mlist .t { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--muted); }
.mlist .t svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mlist .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlist code { font-size: 13px; }
.mlist .pin { flex: none; width: 13px; height: 13px; fill: currentColor; opacity: .55; }
.mlist .shot { display: inline-block; width: 34px; height: 22px; border-radius: 4px; vertical-align: middle; margin-right: 8px; border: 1px solid var(--border-strong); background: linear-gradient(135deg, var(--surface-2), var(--border-strong)); }
.mtoast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 10px); padding: 6px 14px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .3s, transform .3s var(--out); pointer-events: none; white-space: nowrap; }
.mtoast.on { opacity: 1; transform: translate(-50%, 0); }
.mkeys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mkey { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding: 22px 12px; text-align: center; cursor: pointer; background: var(--card); border: 1px solid transparent; border-radius: 20px; transition: border-color .4s var(--out), transform .4s var(--out); }
.mkey:hover { border-color: var(--border-strong); }
.mkey.on { border-color: var(--text); transform: translateY(-2px); }
.mkey small { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.mkey .keys { gap: 6px; }
.mkey kbd { min-width: 46px; height: 46px; padding: 0 12px; border-radius: 12px; font-size: 17px; box-shadow: 0 2px 0 var(--border-strong); transition: transform .12s, box-shadow .12s, background-color .2s, color .2s; }
.mkey.on kbd { transform: translateY(2px); box-shadow: none; background: var(--text); color: var(--bg); }

@media (hover: hover) { .app-card:hover { border-color: var(--border-strong); transform: translateY(-3px); } }
@media (max-width: 960px) { .apps-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } .mkeys { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .app-card { padding: 26px; border-radius: 20px; } .di { width: 15%; } }
@media (prefers-reduced-motion: reduce) { .island svg { animation: none; } .app-card { transition: none; } }

.mstage { position: relative; }
.mhint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: var(--muted); opacity: 0; pointer-events: none; transition: opacity .4s var(--out); }
.mstage.closed .mhint { opacity: 1; }
