:root {
  color-scheme: dark;
  --bg: #080d18;
  --surface: rgba(18, 27, 45, 0.78);
  --surface-hover: rgba(25, 37, 60, 0.94);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f9fc;
  --muted: #9caac0;
  --blue: #5aa9ff;
  --green: #5ee0b5;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -10%, rgba(49, 119, 235, 0.18), transparent 34rem),
    radial-gradient(circle at 96% 18%, rgba(83, 222, 181, 0.1), transparent 28rem),
    linear-gradient(145deg, #0b1220 0%, var(--bg) 55%, #090f1c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: 24%;
  left: -13rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(90, 169, 255, 0.12);
}

.ambient-two {
  right: -17rem;
  bottom: -14rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(94, 224, 181, 0.1);
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 24px;
}

.hero {
  padding: 18px 0 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(145deg, #2878eb, #65b8ff);
  box-shadow: 0 8px 24px rgba(40, 120, 235, 0.25);
  font-size: 0.98rem;
}

.hero-copy {
  max-width: 760px;
  margin-top: 76px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 11px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.intro {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(12, 20, 34, 0.7);
  font-size: 0.86rem;
}

.status strong {
  color: var(--text);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(94, 224, 181, 0.11);
}

.apps-section {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(19, 29, 48, 0.82), rgba(11, 18, 31, 0.78));
  box-shadow: 0 30px 90px var(--shadow);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 330px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 3px 1px 8px;
  overflow-x: auto;
  scrollbar-color: rgba(90, 169, 255, 0.32) transparent;
  scrollbar-width: thin;
}

.no-js .category-tabs,
.no-js #filter-status,
.no-js .filter-empty {
  display: none;
}

.category-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(9, 16, 29, 0.62);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 720;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.category-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.category-tab.is-active {
  border-color: rgba(90, 169, 255, 0.42);
  color: #fff;
  background: linear-gradient(145deg, rgba(40, 120, 235, 0.88), rgba(69, 150, 241, 0.78));
  box-shadow: 0 8px 22px rgba(40, 120, 235, 0.18);
}

.category-tab:focus-visible {
  outline: 3px solid rgba(90, 169, 255, 0.9);
  outline-offset: 3px;
}

.tab-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
}

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

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

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 138px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.app-card[hidden] {
  display: none;
}

.app-card::after {
  position: absolute;
  right: -30px;
  bottom: -54px;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: var(--card-glow, rgba(90, 169, 255, 0.08));
  content: "";
  filter: blur(5px);
  pointer-events: none;
}

.app-card:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--surface-hover);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.app-card:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(90, 169, 255, 0.9);
  outline-offset: 4px;
}

.app-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background: var(--card-gradient, linear-gradient(145deg, #2878eb, #55b4ff));
  box-shadow: 0 12px 26px var(--card-shadow, rgba(40, 120, 235, 0.22));
  font-size: 1.45rem;
  font-weight: 820;
}

.app-content {
  display: block;
  min-width: 0;
}

.category {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-title {
  display: block;
  overflow: hidden;
  font-size: 1.18rem;
  font-weight: 740;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-description {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.open-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1rem;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.app-card:hover .open-icon {
  transform: translate(2px, -2px);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.card-2 {
  --card-gradient: linear-gradient(145deg, #7b53e8, #ad7cff);
  --card-glow: rgba(157, 112, 255, 0.09);
  --card-shadow: rgba(123, 83, 232, 0.21);
}

.card-3 {
  --card-gradient: linear-gradient(145deg, #0d9f86, #5ee0b5);
  --card-glow: rgba(94, 224, 181, 0.08);
  --card-shadow: rgba(13, 159, 134, 0.2);
}

.card-4 {
  --card-gradient: linear-gradient(145deg, #dc6942, #ffad6c);
  --card-glow: rgba(255, 154, 94, 0.08);
  --card-shadow: rgba(220, 105, 66, 0.2);
}

.card-5 {
  --card-gradient: linear-gradient(145deg, #bd4f91, #f083c1);
  --card-glow: rgba(240, 131, 193, 0.08);
  --card-shadow: rgba(189, 79, 145, 0.2);
}

.empty-state {
  padding: 44px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  margin-bottom: 0;
}

.filter-empty {
  margin-top: 4px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px 0;
  color: #738097;
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 24px), 620px);
    padding-top: 20px;
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero-copy {
    margin-top: 58px;
  }

  h1 {
    letter-spacing: -0.055em;
  }

  .apps-section {
    padding: 20px;
    border-radius: 22px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 10px;
    text-align: left;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: min(calc(100% - 16px), 620px);
  }

  .apps-section {
    padding: 13px;
  }

  .app-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 122px;
    padding: 17px;
  }

  .app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.2rem;
  }

  .open-icon {
    display: none;
  }

  footer {
    display: block;
  }

  footer span {
    display: block;
  }
}

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