/* ═══════════════════════════════════════════════════════════
   Brusite Apps Marketplace — Design System
   Dark navy · purple/blue gradients · glassmorphism
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #05070f;
  --bg-card: rgba(255, 255, 255, 0.035);
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --accent3: #22d3ee;
  --gold: #d4af37;
  --gold-light: #f7e68f;
  --text: #f0f0f5;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --shadow-hover: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(99, 102, 241, 0.10);
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 12px); }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }
img { max-width: 100%; display: block; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

::selection { background: rgba(99, 102, 241, 0.4); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* ── Aurora Background ────────────────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora__blob {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.13;
  animation: auroraFloat 22s ease-in-out infinite;
}
.aurora__blob--1 { width: 620px; height: 620px; background: var(--accent); top: -12%; left: -6%; }
.aurora__blob--2 { width: 520px; height: 520px; background: var(--accent2); top: 38%; right: -12%; animation-delay: -8s; }
.aurora__blob--3 { width: 420px; height: 420px; background: var(--gold); bottom: -8%; left: 28%; animation-delay: -15s; opacity: 0.08; }
@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(45px, -35px) scale(1.12); }
  50% { transform: translate(-25px, 45px) scale(0.96); }
  75% { transform: translate(30px, 20px) scale(1.06); }
}

.wrap { position: relative; z-index: 1; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 7, 15, 0.62);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1280px; height: var(--nav-height); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav__brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #b1782c, #e4bc32); color: #16110a; font-weight: 900;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}
.nav__brand small { color: var(--text-faint); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 10px 18px; border-radius: 999px; color: var(--text-muted);
  font-size: 0.9rem; font-weight: 500; transition: all var(--ease-out) 0.2s;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__link--cta {
  background: linear-gradient(135deg, var(--gold), #c9a02d); color: #14100a; font-weight: 700;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}
.nav__link--cta:hover { color: #14100a; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s var(--ease-out); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 84px 32px 40px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-light); border-radius: 999px; padding: 8px 18px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  margin: 22px auto 18px; max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.08;
}
.hero__title-accent {
  background: linear-gradient(120deg, var(--gold), var(--accent), var(--accent2), var(--accent3));
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero__subtitle { max-width: 620px; margin: 0 auto; color: var(--text-muted); font-size: clamp(1rem, 1.8vw, 1.18rem); font-weight: 400; }

/* Hero search */
.hero__search { max-width: 640px; margin: 34px auto 0; position: relative; }
.hero__search input {
  width: 100%; padding: 18px 58px 18px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; font-family: inherit; outline: none;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s;
}
.hero__search input::placeholder { color: var(--text-faint); }
.hero__search input:focus { border-color: rgba(99, 102, 241, 0.6); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18); }
.hero__search button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4); transition: transform 0.2s var(--ease-out);
}
.hero__search button:hover { transform: translateY(-50%) scale(1.06); }

/* Hero carousel */
.hero__carousel { max-width: 1120px; margin: 44px auto 0; position: relative; }
.hero__slide { display: none; }
.hero__slide.active { display: block; animation: fadeUp 0.55s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__banner {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-card); min-height: 260px;
  display: flex; align-items: center; padding: 44px 48px;
}
.hero__banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(5,7,15,0.92) 30%, rgba(5,7,15,0.35) 75%); }
.hero__banner .art { position: absolute; right: -40px; bottom: -60px; width: 46%; opacity: 0.28; transform: rotate(-6deg); }
.hero__banner-content { position: relative; z-index: 2; max-width: 58%; text-align: left; }
.hero__banner-icon { width: 72px; height: 72px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); padding: 10px; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.hero__banner-icon img { width: 100%; height: 100%; object-fit: contain; }
.hero__banner h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.hero__banner p { color: rgba(255,255,255,0.75); font-size: 0.98rem; max-width: 480px; margin-bottom: 18px; }
.hero__banner-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__banner-meta { display: flex; gap: 18px; color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 14px; }
.hero__carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.hero__carousel-dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,0.22); transition: all 0.3s var(--ease-out); }
.hero__carousel-dots button.active { width: 26px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 13px 26px; font-weight: 600; font-size: 0.92rem;
  transition: all 0.25s var(--ease-out); border: 1px solid transparent; white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(139, 92, 246, 0.45); }
.btn--gold { background: linear-gradient(135deg, var(--gold), #c9a02d); color: #14100a; font-weight: 700; box-shadow: 0 6px 24px rgba(212,175,55,0.28); }
.btn--gold:hover { transform: translateY(-2px); color: #14100a; box-shadow: 0 10px 32px rgba(212,175,55,0.4); }
.btn--ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover); }
.btn--sm { padding: 8px 16px; font-size: 0.82rem; }

/* ── Sections ─────────────────────────────────────────────── */
.section { max-width: 1280px; margin: 0 auto; padding: 54px 32px 8px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.22);
  color: #a5b4fc; border-radius: 999px; padding: 5px 14px; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.section__desc { color: var(--text-muted); max-width: 560px; margin-top: 8px; font-size: 0.96rem; }
.section__more { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.section__more:hover { color: var(--accent3); }

/* ── App Cards ────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid--apps { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.app-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: all 0.35s var(--ease-out);
}
.app-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-hover); background: rgba(255,255,255,0.05); }
.app-card__top { display: flex; align-items: flex-start; gap: 14px; }
.app-card__icon {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0; padding: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.app-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.app-card__name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.app-card__dev { color: var(--text-faint); font-size: 0.78rem; margin-top: 2px; }
.app-card__badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: rgba(212,175,55,0.14); color: var(--gold-light); border: 1px solid rgba(212,175,55,0.3);
}
.app-card__desc { color: var(--text-muted); font-size: 0.87rem; line-height: 1.55; flex-grow: 1; }
.app-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.app-card__version { font-size: 0.78rem; color: var(--text-faint); }
.app-card__version strong { color: var(--text); }
.app-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--accent3); }
.app-card__cta:hover { color: #fff; }

/* Category pill cards */
.cat-card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: all 0.3s var(--ease-out);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.cat-card__icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2)); color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.25);
}
.cat-card__name { font-weight: 700; font-size: 1rem; }
.cat-card__count { color: var(--text-faint); font-size: 0.8rem; }
.cat-card__blurb { color: var(--text-muted); font-size: 0.84rem; line-height: 1.5; }

/* ── App Detail ───────────────────────────────────────────── */
.app-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.app-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.22; filter: blur(2px); }
.app-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,15,0.55), var(--bg) 92%); }
.app-hero__inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 56px 32px 40px; display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.app-hero__icon { width: 128px; height: 128px; border-radius: 28px; padding: 14px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); box-shadow: var(--shadow-card); flex-shrink: 0; }
.app-hero__icon img { width: 100%; height: 100%; object-fit: contain; }
.app-hero__info { flex: 1; min-width: 260px; }
.app-hero__name { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; letter-spacing: -0.03em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-hero__tagline { color: var(--text-muted); font-size: 1.05rem; margin-top: 6px; }
.app-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted);
}
.tag--gold { background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.3); color: var(--gold-light); }
.tag--blue { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.3); color: #a5b4fc; }
.tag--green { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); color: #86efac; }
.app-hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.app-hero__stat { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.app-hero__stat div { display: flex; flex-direction: column; }
.app-hero__stat b { font-size: 1.05rem; font-weight: 700; }
.app-hero__stat span { color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }

.app-layout { max-width: 1280px; margin: 0 auto; padding: 44px 32px 70px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.app-main { min-width: 0; }
.app-side { position: sticky; top: calc(var(--nav-height) + 20px); display: flex; flex-direction: column; gap: 18px; }

.panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 10px 34px rgba(0,0,0,0.22);
}
.panel h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.app-desc { color: rgba(255,255,255,0.8); font-size: 0.97rem; line-height: 1.75; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.highlight {
  display: flex; gap: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px; transition: all 0.3s var(--ease-out);
}
.highlight:hover { background: rgba(255,255,255,0.05); border-color: var(--border-hover); transform: translateY(-2px); }
.highlight__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: #a5b4fc; background: rgba(99,102,241,0.14); border: 1px solid rgba(99,102,241,0.25); }
.highlight b { font-size: 0.92rem; font-weight: 700; display: block; margin-bottom: 4px; }
.highlight p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }

/* Screenshots */
.screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.screenshot { border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; background: rgba(0,0,0,0.3); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.screenshot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.screenshot:hover img { transform: scale(1.04); }

/* Changelog */
.changelog { background: rgba(0,0,0,0.25); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; font-size: 0.9rem; color: rgba(255,255,255,0.78); line-height: 1.7; }
.changelog h1 { font-size: 1.05rem; margin: 0 0 10px; color: var(--text); }
.changelog ul, .changelog p { margin: 6px 0 0 0; }
.changelog li { margin-left: 18px; }

/* Permissions */
.perms { display: flex; flex-wrap: wrap; gap: 8px; }
.perm {
  font-size: 0.74rem; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-muted);
}

/* SHA box */
.sha-box { display: flex; align-items: center; gap: 10px; font-size: 0.74rem; color: var(--text-faint); }
.sha-box code { font-size: 0.7rem; word-break: break-all; color: var(--text-muted); background: rgba(0,0,0,0.3); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); flex: 1; }
.sha-box button { color: var(--accent3); font-size: 0.78rem; font-weight: 600; }

/* Side download card */
.dl-card { text-align: center; }
.dl-card .dl-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 16px; }
.dl-card .dl-price b { font-size: 1.7rem; font-weight: 800; background: linear-gradient(120deg, var(--text), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dl-card .dl-price span { color: var(--text-faint); font-size: 0.8rem; }
.dl-card .btn { width: 100%; justify-content: center; }
.dl-card .dl-note { margin-top: 12px; color: var(--text-faint); font-size: 0.74rem; }
.dl-card__facts { display: grid; gap: 10px; text-align: left; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.dl-card__fact { display: flex; justify-content: space-between; font-size: 0.82rem; }
.dl-card__fact span { color: var(--text-faint); }
.dl-card__fact b { color: var(--text); font-weight: 600; }

/* ── Page header (categories/developer/search) ───────────── */
.page-head { max-width: 1280px; margin: 0 auto; padding: 56px 32px 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; }
.page-head p { color: var(--text-muted); max-width: 620px; margin-top: 8px; }

/* Category nav chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 26px 32px 0; }
.chip {
  padding: 9px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); transition: all 0.25s var(--ease-out);
}
.chip:hover { color: var(--text); border-color: var(--border-hover); }
.chip.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(99,102,241,0.35); }

/* ── Stats strip ──────────────────────────────────────────── */
.stats { max-width: 1280px; margin: 0 auto; padding: 40px 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: all 0.3s var(--ease-out);
}
.stat:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.stat b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(120deg, var(--text), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--text-faint); font-size: 0.8rem; margin-top: 4px; display: block; }

/* ── Dev spotlight ────────────────────────────────────────── */
.dev-card {
  display: flex; gap: 22px; align-items: center; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-card);
}
.dev-card__logo { width: 84px; height: 84px; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.dev-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.dev-card h2 { font-size: 1.4rem; font-weight: 800; }
.dev-card p { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 44px 32px 34px; position: relative; z-index: 1; }
.footer__inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--text-muted); font-size: 0.88rem; }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; text-align: center; color: var(--text-faint); font-size: 0.78rem; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(20,22,35,0.95); border: 1px solid var(--border-hover); color: var(--text);
  padding: 13px 22px; border-radius: 14px; font-size: 0.88rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all 0.35s var(--ease-out); z-index: 2000;
  box-shadow: 0 16px 44px rgba(0,0,0,0.5); backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Search results page / empty ──────────────────────────── */
.empty {
  text-align: center; padding: 70px 20px; color: var(--text-faint);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty i { font-size: 2.4rem; margin-bottom: 14px; color: var(--text-faint); display: block; }
.empty h3 { color: var(--text-muted); font-weight: 700; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .app-layout { grid-template-columns: 1fr; }
  .app-side { position: static; }
  .hero__banner-content { max-width: 72%; }
}
@media (max-width: 768px) {
  .nav__inner { padding: 0 20px; }
  .nav__links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(5,7,15,0.97); border-bottom: 1px solid var(--border); padding: 14px 20px 20px; gap: 8px; }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }
  .hero { padding: 60px 20px 32px; }
  .hero__banner { padding: 30px 26px; min-height: 0; }
  .hero__banner .art { display: none; }
  .hero__banner-content { max-width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 20px 4px; }
  .app-hero__inner { padding: 40px 20px 28px; }
  .app-layout { padding: 32px 20px 50px; }
  .highlights { grid-template-columns: 1fr; }
  .page-head { padding: 44px 20px 4px; }
  .chips { padding: 20px 20px 0; }
  .footer { padding: 34px 20px 26px; }
}
@media (max-width: 480px) {
  :root { --nav-height: 60px; }
  .grid--apps, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.1rem; }
  .app-hero__icon { width: 92px; height: 92px; border-radius: 22px; }
  .hero__carousel-dots button.active { width: 20px; }
  .hero__search input { font-size: 16px; padding: 15px 52px 15px 18px; }
  .hero__search button { width: 40px; height: 40px; right: 6px; }
  .hero__banner { padding: 28px 22px; }
  .hero__banner-icon { width: 56px; height: 56px; margin-bottom: 12px; }
  .hero__banner-actions .btn { flex: 1 1 auto; justify-content: center; }
  .app-hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .app-hero__inner { padding: 36px 20px 24px; gap: 22px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dl-card__facts { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .nav__brand { font-size: 0.98rem; }
  .hero { padding: 48px 16px 26px; }
  .hero__banner-content { max-width: 100%; }
  .hero__banner-actions, .app-hero__actions { flex-direction: column; align-items: stretch; }
  .hero__banner-actions .btn, .app-hero__actions .btn { width: 100%; }
  .app-hero__name { font-size: 1.5rem; }
  .app-hero__stat { gap: 14px 22px; }
  .panel { padding: 20px; }
  .submit-card { padding: 20px 16px; }
  .auth-wrap { padding: 24px 16px 8px; }
}

/* ═══════════════════════════════════════════════════════════
   Auth / Submit (login, submit an app)
   ═══════════════════════════════════════════════════════════ */
.auth-wrap { max-width: 680px; margin: 0 auto; padding: 34px 32px 8px; min-width: 0; }
.auth-hint { color: var(--text-faint); font-size: 0.78rem; margin-top: 12px; text-align: center; }
.auth-hint i { margin-right: 4px; }

.submit-card { padding: 30px; width: 100%; min-width: 0; overflow: hidden; }
.submit-card__title {
  font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 9px; margin: 26px 0 14px; padding-top: 22px;
  border-top: 1px solid var(--border); color: var(--text);
}
.submit-card__title:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field > span { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="password"],
.field input[type="file"],
.field textarea {
  width: 100%; max-width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); padding: 12px 14px;
  font-size: 0.92rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field textarea { resize: vertical; line-height: 1.55; }
.field input[type="file"] { padding: 10px; color: var(--text-muted); }
.field input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  border: 0; border-radius: 8px; padding: 8px 14px; margin-right: 12px; font-weight: 600; cursor: pointer;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }

/* Alerts */
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 18px; line-height: 1.5;
}
.alert i { margin-top: 2px; }
.alert b { display: block; }
.alert__list { margin: 6px 0 0 18px; }
.alert--error { background: rgba(239, 68, 68, 0.10); border: 1px solid rgba(239, 68, 68, 0.35); color: #fecaca; }
.alert--success { background: rgba(52, 211, 153, 0.10); border: 1px solid rgba(52, 211, 153, 0.35); color: #a7f3d0; }

/* Category picker chips (submit form) */
.opt-chip-group {
  display: flex; flex-wrap: wrap; gap: 10px;
  min-width: 0; max-width: 100%;
}
.opt-chip { position: relative; cursor: pointer; max-width: 100%; }
.opt-chip input {
  position: absolute; opacity: 0; pointer-events: none;
  /* keep it focusable for keyboard nav without showing it */
  width: 1px; height: 1px;
}
.opt-chip span {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 9px 16px; border-radius: 999px;
  font-size: 0.83rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  transition: all 0.22s var(--ease-out); user-select: none;
}
.opt-chip span i { font-size: 0.8rem; flex-shrink: 0; }
.opt-chip:hover span { color: var(--text); border-color: var(--border-hover); }
.opt-chip:focus-within span { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18); }
.opt-chip input:checked + span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.opt-chip input:checked + span i { color: inherit; }

/* Small checkboxes (flags) */
.check-row { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-bottom: 20px; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; color: var(--text-muted); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.check:hover { color: var(--text); }

/* Submission status pills + history rows */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); color: #fcd34d;
}
.status-pill--ok { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.status-pill--bad { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }

.sub-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.sub-row:last-child { border-bottom: 0; }
.sub-row__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-row__main b { font-size: 0.94rem; }
.sub-row__meta { color: var(--text-faint); font-size: 0.78rem; }

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .auth-wrap { padding: 26px 20px 8px; }
  .submit-card { padding: 22px; }
  .sub-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
