:root {
  color-scheme: dark;
  --bg: #050b1c;
  --panel: #0c1730;
  --muted: #9aa9c4;
  --text: #f7f9ff;
  --cyan: #4dd8ff;
  --violet: #956bff;
  --line: rgba(255,255,255,.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.install-gate { min-height: 100svh; display: grid; place-items: center; padding: 28px; text-align: center; background: radial-gradient(circle at 50% 25%,#142f70 0,rgba(14,34,82,.7) 23%,transparent 55%),var(--bg); }
.install-card { width: min(620px,100%); }
.install-logo { width: 82px; height: 82px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 25px; background: linear-gradient(135deg,var(--cyan),var(--violet)); font-size: 40px; font-weight: 900; box-shadow: 0 18px 60px rgba(77,216,255,.25),inset 0 1px rgba(255,255,255,.4); }
.install-card h1 { max-width: none; margin: 17px 0 20px; font-size: clamp(44px,7vw,72px); }
.install-card > p:not(.install-help) { max-width: 540px; margin: 0 auto; color: #bac6db; font-size: 18px; line-height: 1.65; }
.install-button { border: 0; cursor: pointer; color: #08122a; }
.install-button:disabled { cursor: wait; opacity: .55; }
.install-help { min-height: 42px; max-width: 480px; margin: 18px auto 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.site-header { height: 72px; max-width: 1240px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg,var(--cyan),var(--violet)); box-shadow: 0 0 28px rgba(77,216,255,.25); }
.header-link { color: var(--muted); font-size: 14px; }
.header-link:hover { color: white; }

.hero { position: relative; min-height: 620px; overflow: hidden; border-block: 1px solid var(--line); background: #06112b; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent,var(--bg)); pointer-events: none; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .9; }
.hero-content { position: relative; z-index: 1; width: min(1184px,calc(100% - 56px)); margin: auto; padding-top: 120px; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
h1 { max-width: 620px; margin: 18px 0; font-size: clamp(52px,7vw,88px); line-height: .98; letter-spacing: -.065em; }
h1 span { color: transparent; background: linear-gradient(90deg,var(--cyan),#c18aff); background-clip: text; -webkit-background-clip: text; }
.hero p { max-width: 500px; color: #bac6db; font-size: 19px; line-height: 1.6; }
.primary-button { display: inline-flex; align-items: center; gap: 16px; margin-top: 18px; padding: 15px 20px; border-radius: 12px; background: white; color: #08122a; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(77,216,255,.2); }

.catalog { max-width: 1240px; margin: auto; padding: 90px 28px 110px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
h2 { margin: 10px 0 0; font-size: clamp(32px,4vw,48px); letter-spacing: -.045em; }
.search-box { width: min(390px,100%); height: 52px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.055); color: var(--muted); transition: border .2s, box-shadow .2s; }
.search-box:focus-within { border-color: rgba(77,216,255,.6); box-shadow: 0 0 0 4px rgba(77,216,255,.08); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: white; }
.search-box input::placeholder { color: #7786a2; }
kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; color: #7786a2; font-size: 11px; }
.results-meta { min-height: 54px; padding: 24px 2px 12px; color: var(--muted); font-size: 13px; }
.app-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.app-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025)); transition: transform .2s, border-color .2s; }
.app-card:hover { transform: translateY(-4px); border-color: rgba(77,216,255,.3); }
.app-top { display: flex; gap: 16px; align-items: center; }
.app-icon { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border-radius: 16px; background: var(--icon-bg,linear-gradient(135deg,#28bfee,#7754eb)); font-size: 29px; box-shadow: inset 0 1px rgba(255,255,255,.28); }
.app-card h3 { margin: 0 0 5px; font-size: 18px; }
.category { color: var(--cyan); font-size: 12px; font-weight: 700; }
.app-card p { min-height: 44px; margin: 17px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.app-actions { display: flex; align-items: center; justify-content: space-between; }
.app-actions small { color: #6f7f9c; }
.open-button { padding: 9px 14px; border-radius: 9px; background: rgba(255,255,255,.09); font-size: 13px; font-weight: 700; }
.open-button:hover { background: white; color: #08122a; }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); }
.empty-state > div { font-size: 46px; color: var(--cyan); }
.empty-state h3 { margin-bottom: 0; color: white; font-size: 22px; }
.empty-state button { border: 0; padding: 10px 16px; border-radius: 9px; background: white; color: #08122a; cursor: pointer; font-weight: 700; }
footer { max-width: 1184px; margin: auto; padding: 28px 0 46px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #697996; font-size: 13px; }

@media (max-width: 850px) { .app-grid { grid-template-columns: repeat(2,1fr); } .hero-art { opacity: .45; object-position: 62% center; } .catalog-heading { align-items: stretch; flex-direction: column; } .search-box { width: 100%; } }
@media (max-width: 560px) { .site-header { padding-inline: 20px; } .hero { min-height: 570px; } .hero-content { width: calc(100% - 40px); padding-top: 95px; } .hero p { font-size: 16px; } .catalog { padding: 70px 20px; } .app-grid { grid-template-columns: 1fr; } .app-card p { min-height: auto; } footer { margin-inline: 20px; } kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
