
:root {
  --bg: #07090f;
  --panel: #10141f;
  --text: #f3f6fb;
  --muted: #9aa6b8;
  --line: rgba(255,255,255,.08);
  --accent: #7eb6ff;
  --accent2: #c4a5ff;
  --ok: #5ee0a8;
  --warn: #ffc48a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background:
  radial-gradient(1200px 600px at 10% -10%, rgba(126,182,255,.18), transparent 55%),
  radial-gradient(900px 500px at 90% 0%, rgba(196,165,255,.12), transparent 50%),
  var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #000; padding: .5rem 1rem; z-index: 9; }

.apps-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
  background: rgba(7,9,15,.85); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 700; text-decoration: none; }
.brand em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { border-radius: 10px; }
.header-nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.header-nav a { color: var(--muted); font-size: .92rem; }
.header-nav a:hover { color: var(--text); }
.btn-sm { border: 1px solid var(--line); padding: .35rem .7rem; border-radius: 999px; color: var(--text) !important; }

.hero { padding: 2.5rem 0 1.5rem; }
.hero-sm { padding-top: 1.75rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--accent); margin: 0 0 .6rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 .75rem; }
h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent2), #ffc48a);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--muted); max-width: 42rem; margin: 0 0 1.25rem; }

.plat-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.plat-switch { border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  padding: .45rem .9rem; border-radius: 999px; font-size: .9rem; text-decoration: none; }
.plat-switch.is-active, .plat-switch:hover { color: var(--text); border-color: rgba(126,182,255,.45);
  text-decoration: none; }

.apps-search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.apps-search input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; padding: .85rem 1rem; font-size: 1rem; }
.apps-search button { background: linear-gradient(120deg, #4f8cff, #8b6cff); color: #fff; border: 0;
  border-radius: 12px; padding: 0 1.1rem; font-weight: 600; cursor: pointer; }
.search-results { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: .5rem; margin-bottom: 1.5rem; max-height: 320px; overflow: auto; }
.search-results a { display: block; padding: .65rem .8rem; color: var(--text); border-radius: 8px; }
.search-results a:hover { background: rgba(255,255,255,.04); text-decoration: none; }

.cat-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.cat-chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text); padding: .4rem .75rem; border-radius: 999px;
  font-size: .85rem; text-decoration: none; }
.cat-chip:hover { border-color: rgba(126,182,255,.4); text-decoration: none; }

.apps-section { margin: 0 0 2.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; font-size: 1.25rem; }
.section-more { color: var(--muted); font-size: .9rem; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.app-card { display: flex; gap: .85rem; padding: .9rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.app-card:hover { border-color: rgba(126,182,255,.4); transform: translateY(-1px); text-decoration: none; }
.app-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem; flex-shrink: 0; position: relative; overflow: hidden;
  background: linear-gradient(145deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 40) 65% 35%)); color: #fff; }
.app-icon-letter { line-height: 1; }
.app-icon--logo { background: #fff; }
.app-icon-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px;
  background: #fff; }
.app-card-body { min-width: 0; }
.app-card-top { display: flex; justify-content: space-between; gap: .5rem; align-items: start; }
.app-name { font-size: .98rem; }
.app-rating { color: var(--warn); font-size: .8rem; white-space: nowrap; }
.app-short { margin: .25rem 0 .45rem; color: var(--muted); font-size: .84rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.plat-pill, .badge { font-size: .68rem; padding: .15rem .4rem; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.badge-new { color: var(--ok); border-color: rgba(94,224,168,.35); }
.badge-trend { color: var(--accent); border-color: rgba(126,182,255,.35); }
.badge-edit { color: var(--accent2); border-color: rgba(196,165,255,.35); }
.badge-feat { color: var(--warn); border-color: rgba(255,196,138,.35); }

.plat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.plat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem;
  color: inherit; text-decoration: none; }
.plat-card strong { display: block; margin-bottom: .25rem; }
.plat-card span { color: var(--muted); font-size: .88rem; }

.disclaimer, .dl-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 1.5rem 0; }
.disclaimer p, .dl-note { color: var(--muted); margin: .4rem 0 0; }

.app-detail { padding: 2rem 0 3rem; }
.detail-hero { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.5rem; }
.detail-hero .app-icon { width: 72px; height: 72px; font-size: 1.6rem; border-radius: 18px; }
.detail-hero .app-icon-img { padding: 8px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.btn-dl { display: inline-flex; align-items: center; background: linear-gradient(120deg, #4f8cff, #8b6cff);
  color: #fff !important; font-weight: 600; padding: .7rem 1rem; border-radius: 12px; text-decoration: none !important; }
.btn-dl:hover { filter: brightness(1.06); }
.guide-link { margin: .5rem 0 0; }
.detail-body { margin-top: 1.5rem; color: var(--muted); }
.detail-body h2 { color: var(--text); font-size: 1.1rem; }

.apps-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 1.5rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.footer-grid strong { color: var(--text); display: block; margin-bottom: .4rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .25rem 0; }
.footer-copy { margin-top: 1.5rem; font-size: .85rem; opacity: .8; }

@media (max-width: 720px) {
  .header-nav { display: none; }
  .apps-search { flex-direction: column; }
  .detail-hero { flex-direction: column; }
}
