:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #ededf0;
  --surface-hover: #fafafa;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #8e8e93;
  --border: rgba(0, 0, 0, .07);
  --border-strong: rgba(0, 0, 0, .11);
  --button: #1d1d1f;
  --button-text: #ffffff;
  --purple: #6c3ee8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 24px rgba(0, 0, 0, .045);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, .09);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell: min(1240px, calc(100% - 48px));
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0f;
  --surface: #19191c;
  --surface-soft: #242428;
  --surface-hover: #202024;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #86868b;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .13);
  --button: #f5f5f7;
  --button-text: #151517;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 28px rgba(0, 0, 0, .2);
  --shadow-md: 0 20px 55px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--bg);
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 560px at 14% -8%, rgba(108, 62, 232, .13) 0%, rgba(108, 62, 232, .07) 30%, transparent 62%),
    radial-gradient(980px 460px at 88% 9%, rgba(92, 135, 255, .10) 0%, rgba(92, 135, 255, .05) 32%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.34) 0, rgba(255,255,255,.08) 260px, transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 245, 247, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
[data-theme="dark"] .site-header { background: rgba(13, 13, 15, .82); }
.header-inner {
  width: var(--shell);
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.025em;
}
.brand img,
.footer-brand img {
  flex: 0 0 auto;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(43, 24, 83, .18);
}
.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.search-trigger,
.theme-toggle,
.install-button {
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
}
.search-trigger {
  width: 180px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-soft) 78%, white 22%);
  border: 1px solid transparent;
}
.search-trigger:hover { border-color: var(--border-strong); }
.search-trigger svg,
.search-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.search-trigger span {
  min-width: 0;
  flex: 1;
  text-align: left;
  font-size: 14px;
}
kbd {
  min-width: 24px;
  padding: 2px 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--subtle);
  font-size: 12px;
  text-align: center;
}
.theme-toggle {
  width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.theme-toggle:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.theme-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle span { width: 36px; text-align: left; }
.header-link {
  flex: 0 0 auto;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.header-link:hover { color: var(--text); }
.install-button {
  padding: 0 17px;
  border: 0;
  background: var(--button);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .10);
}
.install-button:hover { opacity: .9; }

.store-intro { padding-top: 56px; }
.store-intro h1 {
  margin: 0 0 30px;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.04;
  letter-spacing: -.05em;
  font-weight: 700;
}
.category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.category-row::-webkit-scrollbar { display: none; }
.category-pill {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
}
.category-pill:hover { border-color: var(--border-strong); color: var(--text); }
.category-pill.active {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-text);
  font-weight: 620;
}

.section { padding-top: 72px; }
.section-heading,
.all-apps-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2,
.all-apps-heading h2 {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 700;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  position: relative;
  min-width: 0;
  min-height: 326px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 46%);
}
.feature-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  top: -120px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}
.feature-card.oniondrop {
  background: linear-gradient(135deg, #24152f 0%, #4a2264 58%, #28163b 100%);
}
.feature-card.pages {
  background: linear-gradient(135deg, #213c9b 0%, #5268d8 58%, #2d459d 100%);
}
.feature-content {
  position: relative;
  height: 100%;
  min-height: 326px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.feature-logo {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  object-fit: cover;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.feature-copy {
  max-width: 430px;
  margin-top: auto;
  padding-right: 60px;
}
.feature-copy h3 {
  margin: 26px 0 8px;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 700;
}
.feature-copy p {
  margin: 0;
  max-width: 370px;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}
.feature-action {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #21172a;
  font-size: 22px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.feature-action:hover { background: #f2f2f4; }

.all-apps-section { padding-bottom: 96px; }
.all-apps-heading p {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.search-box {
  width: min(360px, 100%);
  height: 48px;
  flex: 0 0 min(360px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.search-box:focus-within { border-color: rgba(108, 62, 232, .42); }
.search-box svg { color: var(--subtle); }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search-box input::placeholder { color: var(--subtle); }
.clear-search {
  width: 20px;
  flex: 0 0 20px;
  color: var(--subtle);
  font-size: 21px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
.filter-bar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.active-filter { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--button); border-radius: 999px; background: var(--button); color: var(--button-text); font-size: 14px; font-weight: 620; letter-spacing: 0; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.filter-bar select {
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  outline: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  align-items: stretch;
}
.catalog-card,
.app-card {
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.catalog-card:hover,
.app-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,.07);
}
.catalog-card img,
.app-card img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border-radius: 15px;
  background: var(--surface-soft);
}
.catalog-copy,
.app-card-copy { min-width: 0; }
.catalog-card h3,
.app-card h3 {
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: -.02em;
}
.catalog-card p,
.app-card p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.catalog-meta {
  min-height: 21px;
  display: flex;
  gap: 7px;
  margin-top: 8px;
  overflow: hidden;
}
.catalog-meta span {
  max-width: 145px;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--subtle);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.load-more {
  display: block;
  min-width: 154px;
  height: 46px;
  margin: 28px auto 0;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}
.load-more:hover { border-color: var(--border-strong); color: var(--text); }
.empty-state { min-height: 220px; padding: 70px 20px; text-align: center; }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { margin: 0; color: var(--muted); }

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}
.footer-inner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand div { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-size: 14px; }
.footer-brand span { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: 13px; font-weight: 620; }
.footer-links a:hover { color: var(--text); }

.modal {
  width: min(620px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
}
.modal::backdrop { background: rgba(0,0,0,.56); backdrop-filter: blur(6px); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 22px;
}
.modal-app { padding: 38px; }
.modal-app-header {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 90px;
  padding-right: 35px;
}
.modal-app-header img {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  object-fit: cover;
  border-radius: 23px;
  background: var(--surface-soft);
}
.modal-app-header h2 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.04em; }
.modal-app-header p { margin: 0; color: var(--muted); }
.modal-description { margin: 29px 0; color: var(--muted); line-height: 1.65; }
.modal-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
.detail-box { padding: 15px; background: var(--surface-soft); border-radius: 14px; }
.detail-box span {
  display: block;
  margin-bottom: 5px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.detail-box strong { font-size: 14px; }
.modal-buttons { display: flex; gap: 10px; }
.modal-buttons a {
  flex: 1;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.modal-buttons .primary { background: var(--button); color: var(--button-text); }
.modal-buttons .secondary { background: var(--surface-soft); color: var(--text); }
.install-content { padding: 45px 38px 38px; text-align: center; }
.install-content > img {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 20px;
}
.install-content h2 { margin: 0 0 13px; font-size: 30px; letter-spacing: -.04em; }
.install-content > p:not(.eyebrow):not(.fine-print) {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.6;
}
.copy-field { display: flex; gap: 8px; padding: 8px; background: var(--surface-soft); border-radius: 14px; }
.copy-field code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 11px;
  color: var(--muted);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-field button {
  min-width: 72px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
}
.fine-print { margin: 18px 0 0; color: var(--subtle); font-size: 11px; line-height: 1.5; }

@media (max-width: 980px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-link { display: none; }
  .theme-toggle { width: 42px; padding: 0; }
  .theme-toggle span { display: none; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1240px); }
  .header-inner { height: 70px; }
  .brand span { display: none; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; }
  .search-trigger span,
  .search-trigger kbd { display: none; }
  .install-button { padding-inline: 13px; }
  .store-intro { padding-top: 40px; }
  .store-intro h1 { margin-bottom: 26px; font-size: 35px; }
  .section { padding-top: 56px; }
  .featured-grid { grid-template-columns: 1fr; }
  .feature-card,
  .feature-content { min-height: 300px; }
  .all-apps-heading { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; flex-basis: auto; }
  .catalog-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 28px 0; align-items: flex-start; flex-direction: column; }
  .modal-app { padding: 32px 24px 24px; }
  .modal-app-header img { width: 74px; height: 74px; flex-basis: 74px; }
  .modal-app-header { min-height: 74px; }
  .modal-app-header h2 { font-size: 25px; }
}

@media (max-width: 440px) {
  .feature-content { padding: 26px; }
  .feature-copy { padding-right: 52px; }
  .feature-copy h3 { font-size: 28px; }
  .feature-action { right: 22px; bottom: 22px; }
  .modal-buttons { flex-direction: column; }
  .modal-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Subtle Umbrel-style glass and background gradients */
:root {
  --glass-bg: rgba(255, 255, 255, .78);
  --glass-bg-strong: rgba(255, 255, 255, .88);
  --glass-border: rgba(255, 255, 255, .56);
}
[data-theme="dark"] {
  --glass-bg: rgba(29, 29, 33, .80);
  --glass-bg-strong: rgba(32, 32, 36, .90);
  --glass-border: rgba(255, 255, 255, .12);
}
body {
  background:
    radial-gradient(1380px 620px at 12% -10%, rgba(108, 62, 232, .18) 0%, rgba(108, 62, 232, .10) 28%, transparent 62%),
    radial-gradient(1100px 500px at 89% 8%, rgba(92, 135, 255, .14) 0%, rgba(92, 135, 255, .07) 32%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.10) 280px, rgba(255,255,255,0) 460px),
    var(--bg);
}
[data-theme="dark"] body {
  background:
    radial-gradient(1380px 640px at 12% -8%, rgba(108, 62, 232, .24) 0%, rgba(108, 62, 232, .13) 30%, transparent 64%),
    radial-gradient(1120px 520px at 89% 8%, rgba(82, 114, 255, .18) 0%, rgba(82, 114, 255, .10) 34%, transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 340px),
    var(--bg);
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(68px);
  opacity: .72;
}
body::before {
  width: 340px;
  height: 340px;
  left: -120px;
  top: 88px;
  background: rgba(108, 62, 232, .22);
}
body::after {
  width: 320px;
  height: 320px;
  right: -100px;
  top: 360px;
  background: rgba(92, 135, 255, .18);
}
[data-theme="dark"] body::before { background: rgba(108, 62, 232, .28); }
[data-theme="dark"] body::after { background: rgba(92, 135, 255, .22); }

.site-header {
  background: color-mix(in srgb, var(--bg) 68%, white 32%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .035);
}
[data-theme="dark"] .site-header {
  background: rgba(16, 16, 18, .72);
}
.search-trigger,
.theme-toggle,
.search-box,
.filter-bar select,
.category-pill,
.catalog-card,
.app-card,
.load-more,
.footer {
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
.search-trigger,
.theme-toggle,
.search-box,
.filter-bar select,
.category-pill,
.load-more {
  background: var(--glass-bg);
  border-color: color-mix(in srgb, var(--border) 70%, white 30%);
}
.search-box,
.filter-bar select,
.theme-toggle,
.search-trigger,
.category-pill,
.load-more {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .045), inset 0 1px 0 rgba(255,255,255,.46);
}
.catalog-card,
.app-card {
  background: var(--glass-bg);
  border-color: color-mix(in srgb, var(--border) 75%, white 25%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .055), inset 0 1px 0 rgba(255,255,255,.42);
}
.footer {
  background: color-mix(in srgb, var(--bg) 70%, white 30%);
  border-top-color: color-mix(in srgb, var(--border) 80%, white 20%);
}
[data-theme="dark"] .search-trigger,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .search-box,
[data-theme="dark"] .filter-bar select,
[data-theme="dark"] .category-pill,
[data-theme="dark"] .load-more,
[data-theme="dark"] .catalog-card,
[data-theme="dark"] .app-card,
[data-theme="dark"] .footer {
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.07);
}
[data-theme="dark"] .search-trigger,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .search-box,
[data-theme="dark"] .filter-bar select,
[data-theme="dark"] .category-pill,
[data-theme="dark"] .load-more,
[data-theme="dark"] .catalog-card,
[data-theme="dark"] .app-card {
  background: var(--glass-bg);
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .footer {
  background: rgba(22, 22, 25, .78);
}
.feature-card {
  box-shadow: 0 20px 54px rgba(0, 0, 0, .12);
}
.feature-card::before {
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 42%);
}
.feature-card::after {
  background: radial-gradient(circle at center, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 72%);
}
@media (max-width: 720px) {
  body::before {
    width: 220px;
    height: 220px;
    left: -80px;
    top: 90px;
  }
  body::after {
    width: 200px;
    height: 200px;
    right: -70px;
    top: 360px;
  }
}

[data-theme="dark"] .active-filter { box-shadow: 0 12px 26px rgba(0,0,0,.24); }

/* Final Umbrel visual alignment */
:root {
  --umbrel-glass: rgba(255, 255, 255, .68);
  --umbrel-glass-strong: rgba(255, 255, 255, .82);
  --umbrel-line: rgba(255, 255, 255, .56);
}

[data-theme="dark"] {
  --bg: #08090d;
  --surface: rgba(24, 25, 31, .76);
  --surface-soft: rgba(255, 255, 255, .055);
  --surface-hover: rgba(255, 255, 255, .075);
  --text: #f4f4f6;
  --muted: #a6a6ad;
  --subtle: #85858d;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --button: #f4f4f6;
  --button-text: #111217;
  --umbrel-glass: rgba(22, 23, 29, .64);
  --umbrel-glass-strong: rgba(27, 28, 35, .78);
  --umbrel-line: rgba(255, 255, 255, .11);
}

body {
  background:
    radial-gradient(900px 480px at 8% -4%, rgba(111, 65, 232, .16), transparent 62%),
    radial-gradient(1150px 620px at 92% 10%, rgba(55, 83, 190, .13), transparent 64%),
    linear-gradient(135deg, #f8f7fb 0%, #f2f2f6 46%, #eff2fb 100%);
}

[data-theme="dark"] body {
  background:
    radial-gradient(980px 520px at 6% -6%, rgba(102, 59, 214, .20), transparent 63%),
    radial-gradient(1280px 720px at 100% 12%, rgba(39, 64, 151, .22), transparent 66%),
    linear-gradient(135deg, #070709 0%, #0a0b10 54%, #11172b 100%);
}

body::before,
body::after {
  opacity: .52;
  filter: blur(76px);
}

.site-header {
  background: rgba(248, 248, 251, .70);
  border-bottom-color: rgba(24, 24, 27, .07);
  box-shadow: 0 8px 32px rgba(28, 22, 46, .04);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

[data-theme="dark"] .site-header {
  background: rgba(11, 12, 16, .68);
  border-bottom-color: rgba(255, 255, 255, .075);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .22);
}

.brand {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 700;
}

.store-intro h1,
.section-heading h2,
.all-apps-heading h2,
.feature-copy h3 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.search-trigger,
.theme-toggle,
.search-box,
.filter-bar select,
.load-more,
.catalog-card,
.app-card {
  background: var(--umbrel-glass);
  border-color: var(--umbrel-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 10px 30px rgba(16, 14, 26, .055);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

[data-theme="dark"] .search-trigger,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .search-box,
[data-theme="dark"] .filter-bar select,
[data-theme="dark"] .load-more,
[data-theme="dark"] .catalog-card,
[data-theme="dark"] .app-card {
  background: var(--umbrel-glass);
  border-color: var(--umbrel-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 14px 36px rgba(0, 0, 0, .20);
}

/* Every category, including All apps, uses the exact same component styling. */
.category-pill,
.category-pill:first-child {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--umbrel-line);
  border-radius: 999px;
  background: var(--umbrel-glass);
  color: var(--muted);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.category-pill:hover,
.category-pill:first-child:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--umbrel-glass-strong);
}

.category-pill.active,
.category-pill:first-child.active {
  background: #202126;
  border-color: #202126;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(20, 20, 24, .12);
}

[data-theme="dark"] .category-pill,
[data-theme="dark"] .category-pill:first-child {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .10);
  color: #a8a8af;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

[data-theme="dark"] .category-pill:hover,
[data-theme="dark"] .category-pill:first-child:hover {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .16);
  color: #f4f4f6;
}

[data-theme="dark"] .category-pill.active,
[data-theme="dark"] .category-pill:first-child.active {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .18);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 8px 22px rgba(0, 0, 0, .16);
}

/* The lower active filter deliberately mirrors the category pills. */
.active-filter {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--umbrel-line);
  border-radius: 999px;
  background: var(--umbrel-glass);
  color: var(--muted);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

[data-theme="dark"] .active-filter {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .10);
  color: #a8a8af;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.feature-card {
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
}

.feature-card.oniondrop {
  background:
    radial-gradient(500px 260px at 86% 4%, rgba(166, 99, 255, .30), transparent 62%),
    linear-gradient(135deg, #2d173c 0%, #51256c 58%, #29173a 100%);
}

.feature-card.pages {
  background:
    radial-gradient(520px 280px at 88% 4%, rgba(125, 155, 255, .28), transparent 62%),
    linear-gradient(135deg, #253fa1 0%, #5069dc 58%, #30479f 100%);
}

.catalog-card:hover,
.app-card:hover {
  background: var(--umbrel-glass-strong);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .085);
}

[data-theme="dark"] .catalog-card:hover,
[data-theme="dark"] .app-card:hover {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.footer {
  background: rgba(244, 244, 248, .68);
  border-top-color: rgba(24, 24, 27, .07);
}

[data-theme="dark"] .footer {
  background: rgba(10, 11, 15, .70);
  border-top-color: rgba(255, 255, 255, .075);
}
