:root {
  color-scheme: light dark;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --separator: rgba(0, 0, 0, .08);
  --glass: rgba(255, 255, 255, .76);
  --shadow: 0 12px 36px rgba(0, 0, 0, .08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.018em;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(100% - 32px, 980px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--glass);
  border-bottom: 1px solid var(--separator);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.topbar__inner { width: min(100% - 32px, 980px); height: 52px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 15px; font-weight: 650; }
.brand__mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #1d1d1f; color: white; font-size: 16px; }
.icon-button, .share-command { border: 0; background: transparent; color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.icon-button { width: 44px; height: 44px; margin-right: -10px; }
.icon-button svg, .share-command svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero { position: relative; overflow: hidden; min-height: 620px; padding: calc(120px + env(safe-area-inset-top, 0px)) 0 82px; background: #000; color: #fff; display: flex; align-items: center; }
.hero__content { position: relative; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 13px; color: #2997ff; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.eyebrow--dark { color: var(--blue); }
.hero h1 { max-width: 760px; margin: 0 auto 20px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; font-size: clamp(48px, 10vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.hero p { max-width: 610px; margin: 0 auto 31px; color: #a1a1a6; font-size: clamp(18px, 3vw, 22px); line-height: 1.35; letter-spacing: -.025em; }
.primary-button, .download-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.primary-button:active, .download-button:active { transform: scale(.97); }

.catalog { padding: 76px 0 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading .eyebrow { margin: 0 0 6px; }
h2 { margin: 0; font-size: clamp(34px, 6vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
.count { display: grid; place-items: center; min-width: 36px; height: 36px; padding-inline: 10px; border-radius: 980px; background: rgba(0,113,227,.1); color: var(--blue); font-size: 15px; font-weight: 650; }
.search-wrap { position: relative; margin-bottom: 16px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-wrap input { width: 100%; height: 52px; padding: 0 16px 0 44px; border: 0; border-radius: 14px; outline: 0; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--separator); font-size: 17px; }
.search-wrap input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 25px; padding: 0 16px 5px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; min-height: 40px; padding: 0 15px; border: 0; border-radius: 980px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--separator); cursor: pointer; }
.filter[aria-pressed="true"] { background: #1d1d1f; color: #fff; box-shadow: none; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.command-card { min-width: 0; min-height: 330px; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.command-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.command-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #1d1d1f; color: #fff; font-size: 27px; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.command-card__category { padding: 6px 10px; border-radius: 980px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600; }
.command-card__body { flex: 1; }
.command-card h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.08; letter-spacing: -.035em; }
.command-card__description { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.command-card__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.command-card__actions { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.download-button { flex: 1; min-height: 44px; }
.share-command { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); }
.empty { padding: 54px 24px; border-radius: 22px; background: var(--surface); text-align: center; }
.empty__icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 19px; background: #1d1d1f; color: #fff; font-size: 36px; }
.empty h3 { margin: 0 0 7px; font-size: 24px; }
.empty p { margin: 0; color: var(--muted); font-size: 16px; }

.how-to { padding: 82px 0 90px; background: var(--surface); }
.how-to h2 { margin-bottom: 34px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { padding: 24px; border-radius: 18px; background: var(--bg); }
.steps li > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 34px; border-radius: 50%; background: var(--blue); color: white; font-weight: 650; }
.steps strong { display: block; margin-bottom: 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
footer { padding: 26px 0 calc(26px + var(--safe-bottom)); color: var(--muted); font-size: 12px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; }

:focus-visible { outline: 3px solid rgba(0,113,227,.55); outline-offset: 3px; }

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 980px); }
  .topbar__inner { width: calc(100% - 28px); }
  .hero { min-height: 600px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(48px, 15vw, 64px); }
  .hero p { max-width: 350px; font-size: 19px; }
  .catalog { padding: 62px 0 72px; }
  .filters { margin-inline: -14px; padding-inline: 14px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .command-card { min-height: 310px; padding: 20px; border-radius: 20px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: flex; align-items: flex-start; gap: 16px; padding: 18px; }
  .steps li > span { flex: 0 0 34px; margin: 0; }
  .footer__inner { flex-direction: column; gap: 7px; }
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --surface: #1c1c1e; --text: #f5f5f7; --muted: #a1a1a6; --separator: rgba(255,255,255,.12); --glass: rgba(20,20,22,.78); --shadow: none; }
  .brand__mark, .filter[aria-pressed="true"], .command-card__icon, .empty__icon { background: #f5f5f7; color: #1d1d1f; }
  .count { background: rgba(41,151,255,.16); color: #2997ff; }
  .eyebrow--dark { color: #2997ff; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
