:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: rgba(17, 23, 42, 0.74);
  --panel-strong: rgba(22, 29, 52, 0.95);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f8ff;
  --muted: #9ba5bd;
  --accent: #8ca7ff;
  --accent-2: #74dfc4;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(75, 104, 208, .17), transparent 35%),
    radial-gradient(circle at 100% 30%, rgba(33, 170, 144, .10), transparent 30%),
    var(--bg);
  color: var(--text);
}

a { color: inherit; }
button, input { font: inherit; }

.ambient {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(100px);
  opacity: .12;
  pointer-events: none;
}
.ambient-one { top: -10rem; left: -10rem; background: #6b83ff; }
.ambient-two { right: -12rem; bottom: 10%; background: #39d5ad; }

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 54px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(140,167,255,.22), rgba(116,223,196,.10));
  box-shadow: var(--shadow);
  font-size: 31px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: .95; letter-spacing: -.05em; }
.intro { margin: 15px 0 0; color: var(--muted); font-size: 16px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 280px);
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.search-box span { color: var(--muted); font-size: 22px; }
.search-box input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search-box input::placeholder { color: #788198; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: .2s ease;
}
.filter:hover, .filter.active {
  border-color: rgba(140,167,255,.5);
  background: rgba(140,167,255,.12);
  color: var(--text);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.count { color: var(--muted); font-size: 14px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: 0 14px 45px rgba(0,0,0,.22);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, var(--glow), transparent 36%);
  opacity: .18;
  pointer-events: none;
}

.card-top, .card-bottom { position: relative; z-index: 1; }
.card-top { display: flex; justify-content: space-between; gap: 16px; }
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  font-size: 23px;
}
.arrow { color: var(--muted); font-size: 22px; transition: transform .2s ease, color .2s ease; }
.app-card h3 { margin: 20px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.app-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.tag { color: var(--accent-2); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: #57d6a0; box-shadow: 0 0 10px rgba(87,214,160,.55); }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #737c92;
  font-size: 12px;
}

@media (max-width: 720px) {
  .shell { padding-top: 44px; }
  .hero { align-items: flex-start; margin-bottom: 38px; }
  .brand-mark { width: 58px; height: 58px; border-radius: 18px; }
  .toolbar { flex-direction: column; }
  .search-box { width: 100%; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.search-box:focus-within,
.filter:focus-visible,
.app-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.filter {
  min-height: 44px;
}

.theme-blue { --glow: #7188ff; }
.theme-orange { --glow: #ff8f70; }
.theme-green { --glow: #74dfc4; }
.theme-purple { --glow: #d496ff; }
.theme-yellow { --glow: #ffc968; }

.noscript {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 32px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
  }

  .app-card:hover .arrow {
    transform: translate(3px,-3px);
    color: var(--text);
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 32px;
  }

  .hero {
    gap: 14px;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .intro {
    font-size: 15px;
    line-height: 1.6;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 3px 8px;
    scrollbar-width: thin;
  }

  .filter {
    flex: 0 0 auto;
  }

  .app-card {
    min-height: 190px;
    padding: 20px;
    border-radius: 18px;
  }

  .app-card h3 {
    font-size: 21px;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}
