@font-face {
  font-family: "Pontano Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/pontanosans/v19/qFdD35GdgYR8EzR6oBLDHa3axT8N.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --page: #0a0c08;
  --header: #0a0c08;
  --ink: #e8f5d0;
  --hero: #0a0c08;
  --hero-text: #e8f5d0;
  --hero-muted: #d1d5db;
  --green: #91c84a;
  --green-dark: #91c84a;
  --green-light: #c4e382;
  --green-pale: #1f2e18;
  --text: #e8f5d0;
  --muted: #9ca3af;
  --line: #2d4222;
  --surface: #10140d;
  --white: #161a0e;
  --shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 28%);
  font-family: "Pontano Sans", "Arial Narrow", Arial, sans-serif;
  font-synthesis: none;
}

:root[data-neurodesk-theme="light"] {
  color-scheme: light;
  --page: #ffffff;
  --header: #0c0e0a;
  --ink: #0c0e0a;
  --hero: #1e2a16;
  --hero-text: #ffffff;
  --hero-muted: #e3e8df;
  --green: #9ec672;
  --green-dark: #6ba442;
  --green-light: #d3e7b6;
  --green-pale: #eef5e6;
  --text: #212529;
  --muted: #5f675c;
  --line: #dee2de;
  --surface: #f7f8f5;
  --white: #ffffff;
  --shadow: 0 0.35rem 1.25rem rgb(12 14 10 / 8%);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

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

.site-header {
  width: 100%;
  background: var(--header);
  color: var(--muted);
}

.site-header__inner,
main,
.site-footer__inner {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.brand {
  display: block;
  width: 12.5rem;
  text-decoration: none;
}

.brand img { display: block; width: 100%; height: auto; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.8rem);
  align-items: center;
  color: #b9beb7;
  font-size: 0.9rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid #495047;
  border-radius: 8px;
  color: var(--green-light);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.theme-toggle:hover { color: #fff; border-color: var(--green); }
.theme-toggle svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }

.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--hero-text); }
.site-nav > span {
  padding: 0.38rem 0.7rem;
  border: 1px solid #495047;
  border-radius: 8px;
  color: var(--green-light);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 7vw, 5.5rem) 0 clamp(5rem, 8vw, 7rem);
  color: var(--hero-text);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background: var(--hero);
  content: "";
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.35rem, 4.2vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.hero__lede {
  max-width: 47rem;
  margin: 1.3rem 0 0;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.privacy-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 1.25rem;
  border: 2px solid rgba(211, 231, 182, 0.75);
  border-radius: 8px;
  background: rgba(12, 14, 10, 0.14);
}

.privacy-card__icon {
  display: grid;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
}

.privacy-card svg { width: 1.65rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.privacy-card strong, .privacy-card span { display: block; }
.privacy-card strong { margin-bottom: 0.25rem; font-size: 0.95rem; font-weight: 700; }
.privacy-card span { color: var(--hero-muted); font-size: 0.82rem; line-height: 1.45; }

.catalog-controls {
  position: relative;
  z-index: 2;
  margin-top: -2.75rem;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-box { position: relative; }

.search-box > svg {
  position: absolute;
  top: 50%;
  left: 1.15rem;
  width: 1.25rem;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--green-dark);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  height: 3.9rem;
  padding: 0 7rem 0 3.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { border-color: var(--green-dark); background: var(--white); box-shadow: 0 0 0 3px rgba(107, 164, 66, 0.18); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input:not(:placeholder-shown) ~ kbd { display: none; }

.search-box kbd {
  position: absolute;
  top: 50%;
  right: 1rem;
  min-width: 2rem;
  padding: 0.25rem 0.5rem;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--green-pale);
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.clear-search {
  position: absolute;
  top: 50%;
  right: 1rem;
  padding: 0.42rem 0.7rem;
  transform: translateY(-50%);
  border: 1px solid var(--green-dark);
  border-radius: 5px;
  background: var(--green-pale);
  color: var(--text);
  cursor: pointer;
  font-size: 0.76rem;
}

.catalog-controls__meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

#result-summary { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: 0.8rem; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }

.filter-chip {
  padding: 0.45rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font-size: 0.74rem;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.filter-chip span { margin-left: 0.25rem; color: var(--muted); }
.filter-chip:hover { border-color: var(--green-dark); background: var(--green-pale); }
.filter-chip.is-active { border-color: var(--green); background: var(--green); color: var(--page); }
.filter-chip.is-active span { color: var(--page); }

.catalog { padding: 1.5rem 0 3rem; }

.category-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.category-section[hidden], .app-card[hidden] { display: none; }

.category-section__header {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(18rem, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.category-section__header > div { display: flex; gap: 0.85rem; align-items: baseline; }
.category-section__index { margin: 0; color: var(--green-dark); font: 700 0.72rem/1 "Pontano Sans", "Arial Narrow", Arial, sans-serif; }
.category-section h2 { margin: 0; color: var(--ink); font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; }
.category-section__header > p { max-width: 34rem; margin: 0; color: var(--muted); line-height: 1.55; }

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

.app-card {
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 0.15rem 0.5rem rgba(12, 14, 10, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-card:hover, .app-card:focus-visible { border-color: var(--green-dark); box-shadow: 0 0.45rem 1.2rem rgba(30, 42, 22, 0.12); transform: translateY(-2px); }
.app-card:focus-visible { outline: 3px solid rgba(107, 164, 66, 0.24); outline-offset: 3px; }

.app-card__topline { display: flex; min-height: 1.3rem; gap: 0.6rem; align-items: center; justify-content: space-between; color: var(--green-dark); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.app-card__status { padding: 0.2rem 0.4rem; border: 1px solid #b58a36; border-radius: 5px; color: #f0c777; font-size: 0.56rem; }
.app-card__title-row { display: flex; gap: 1rem; align-items: start; justify-content: space-between; margin-top: 1.25rem; }
.app-card h3 { margin: 0; color: var(--ink); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; }
.app-card__arrow { display: grid; flex: 0 0 auto; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--green-dark); border-radius: 8px; color: var(--green-dark); transition: background 160ms ease, color 160ms ease; }
.app-card:hover .app-card__arrow { background: var(--green); color: var(--ink); }
.app-card > p { margin: 0.8rem 0 1.6rem; color: var(--muted); line-height: 1.55; }

.app-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: auto 0 0; padding: 0; list-style: none; }
.app-card__tags li { padding: 0.28rem 0.48rem; border-radius: 5px; background: var(--green-pale); color: var(--green-light); font-size: 0.68rem; }

.no-results { padding: 7rem 1rem 10rem; color: var(--text); text-align: center; }
.no-results > div { width: 4rem; margin: 0 auto 1.25rem; color: var(--green-dark); font-size: 3rem; }
.no-results h2 { margin: 0; color: var(--ink); font-size: 2rem; font-weight: 500; }
.no-results p { max-width: 34rem; margin: 0.8rem auto 1.5rem; color: var(--muted); line-height: 1.6; }
.no-results button { padding: 0.75rem 1rem; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: var(--ink); cursor: pointer; }

.analytics-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.analytics-section__header {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(20rem, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.analytics-section__header .eyebrow { color: var(--green-dark); }
.analytics-section h2 { margin: 0; color: var(--ink); font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 500; }
.analytics-section__header > p { max-width: 38rem; margin: 0; color: var(--muted); line-height: 1.6; }

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.analytics-summary article {
  padding: 1.35rem;
  border: 1px solid var(--green-light);
  border-radius: 8px;
  background: var(--green-pale);
}

.analytics-summary strong,
.analytics-summary span { display: block; }
.analytics-summary strong { color: var(--ink); font-size: 2rem; font-weight: 500; }
.analytics-summary span { margin-top: 0.2rem; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

.analytics-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.analytics-panel__heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.analytics-panel__heading :is(h3, p) { margin: 0; }
.analytics-panel__heading h3 { color: var(--ink); font-size: 1.15rem; }
.analytics-panel__heading p { color: var(--muted); font-size: 0.78rem; }
.analytics-table-wrap { overflow-x: auto; }
.analytics-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.analytics-table :is(th, td) { padding: 0.9rem 1.4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.analytics-table thead th { color: var(--muted); background: var(--white); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.analytics-table tbody th { color: var(--ink); font-weight: 600; }
.analytics-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.analytics-table a { color: var(--green-light); text-underline-offset: 0.2rem; }
.analytics-privacy { max-width: 58rem; margin: 1rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

.site-footer { width: 100%; background: var(--header); color: #b9beb7; }

.site-footer__inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  min-height: 9rem;
  font-size: 0.8rem;
}

.site-footer p, .site-footer strong, .site-footer span { margin: 0; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { margin-bottom: 0.3rem; color: var(--hero-text); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--green-light); text-underline-offset: 0.25rem; }

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

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__copy, .privacy-card { min-width: 0; }
  .privacy-card { max-width: 27rem; }
  .catalog-controls__meta { align-items: flex-start; flex-direction: column; }
  .filter-chips { justify-content: flex-start; }
  .category-section__header { grid-template-columns: 1fr; gap: 0.75rem; }
  .analytics-section__header { grid-template-columns: 1fr; gap: 0.75rem; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .site-header__inner, main, .site-footer__inner { width: min(100% - 2rem, 76rem); }
  .site-nav a { display: none; }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .search-box kbd { display: none; }
  .search-box input { height: 3.65rem; padding-right: 4.7rem; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 14.5rem; }
  .analytics-summary { grid-template-columns: 1fr; }
  .analytics-panel__heading { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

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