:root {
  color-scheme: dark;
  --void: #07060b;
  --panel: #0e0c16;
  --panel-2: #151222;
  --line: #2a2440;
  --ink: #ece9f7;
  --ink-2: #a29dbb;
  --ink-3: #79738f;
  --purple: #a64dff;
  --ok: #3dff8f;
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--void);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--void); }
.skip-link:focus { top: 10px; }

.app-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 46px; height: 100vh; padding: 28px 20px 22px; border-right: 1px solid var(--line); background: #0a0811; }
.rail-kicker { margin: 0 0 9px; color: var(--ink-3); font: 600 10px/1.4 Consolas, "Courier New", monospace; letter-spacing: .12em; }
.rail-brand { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.055em; white-space: nowrap; }
.rail-brand span { margin-left: 2px; color: var(--purple); }
.rail-section { display: flex; align-items: center; min-height: 44px; margin-left: -20px; padding: 0 14px 0 18px; border-left: 2px solid var(--purple); background: linear-gradient(90deg, rgba(166, 77, 255, .16), transparent); font: 600 12px Consolas, "Courier New", monospace; }
.content-shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(7, 6, 11, .96); }
.topbar-inner { display: flex; align-items: center; gap: 22px; min-height: 70px; padding: 12px 36px; }
.topbar-title { display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; font: 600 11px Consolas, "Courier New", monospace; letter-spacing: .04em; }
.status-square { width: 8px; height: 8px; background: var(--purple); box-shadow: 0 0 12px rgba(166, 77, 255, .5); }
.visible-count { min-width: 79px; margin: 0 0 0 auto; color: var(--ink-2); text-align: right; white-space: nowrap; font: 12px Consolas, "Courier New", monospace; }

.page-shell { width: 100%; max-width: 1500px; flex: 1; margin: 0 auto; padding: 44px 36px 72px; }
.section-heading { margin-bottom: 34px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 13px; color: var(--purple); font: 600 11px Consolas, "Courier New", monospace; letter-spacing: .1em; }
.section-heading h1 { margin: 0 0 13px; font-size: clamp(38px, 4.6vw, 58px); font-weight: 750; letter-spacing: -.055em; line-height: 1; }
.section-heading h1 span { color: var(--purple); }
.section-heading > p:last-child { margin: 0; max-width: 650px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.catalog-disclosure { max-width: 900px; margin: 0 0 20px; color: var(--ink-3); font-size: 11px; line-height: 1.55; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.client-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.client-card::before, .client-card::after { content: ""; position: absolute; width: 13px; height: 13px; border: 2px solid var(--purple); pointer-events: none; }
.client-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.client-card::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.download-count { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); white-space: nowrap; font: 11px Consolas, "Courier New", monospace; font-variant-numeric: tabular-nums; }
.download-count svg { width: 15px; height: 15px; flex: none; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.client-card h2 { margin: 12px 0 0; overflow-wrap: anywhere; font-size: 20px; font-weight: 700; letter-spacing: -.03em; line-height: 1.18; }
.price { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 11px; font: 12px Consolas, "Courier New", monospace; white-space: nowrap; }
.former-price { color: var(--ink-3); }
.free-price { color: var(--ok); font-size: 13px; }
.status-label { align-self: flex-start; padding: 4px 8px; border: 1px solid rgba(61, 255, 143, .35); color: var(--ok); font: 10px Consolas, "Courier New", monospace; letter-spacing: .04em; }
.tagline { min-height: 44px; margin: 13px 0 18px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.features { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; padding: 0; list-style: none; }
.features li { padding: 5px 8px; background: rgba(166, 77, 255, .08); color: var(--ink-2); font: 10px/1.4 Consolas, "Courier New", monospace; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.card-meta { min-width: 0; color: var(--ink-3); font: 10px/1.5 Consolas, "Courier New", monospace; }
.card-meta span { display: block; }
.get-button { min-width: 90px; min-height: 42px; padding: 0 16px; border: 0; background: var(--card-accent); color: #07060b; clip-path: var(--cut); font: 700 13px Consolas, "Courier New", monospace; }
.get-button:hover { filter: brightness(1.12); }

.load-error { margin: 68px auto; text-align: center; color: var(--ink-2); }

@media (max-width: 1180px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) {
  .app-shell { display: block; }
  .rail { position: relative; height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-kicker, .rail-section { display: none; }
  .rail-brand { font-size: 19px; }
  .topbar-inner { padding: 10px 20px; }
  .page-shell { padding: 34px 20px 56px; }
}
@media (max-width: 639px) {
  .topbar-inner { min-height: 56px; }
  .visible-count { margin-left: auto; }
  .section-heading h1 { font-size: 39px; }
  .card-grid { grid-template-columns: 1fr; }
  .client-card { min-height: 0; }
}
