:root {
  --ink: #0b0c0a;
  --surface: #151713;
  --surface2: #1b1d19;
  --ivory: #f4efdf;
  --muted: #aaa99f;
  --line: #34372f;
  --acid: #c8ff32;
  --acid2: #e2ff90;
  --radius: 12px;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input { font: inherit; }

.contours {
  position: absolute;
  inset: 0 0 auto;
  height: 430px;
  pointer-events: none;
  opacity: .46;
  background:
    repeating-radial-gradient(at 16% -10%, transparent 0, transparent 22px, rgba(200,255,50,.18) 23px, rgba(200,255,50,.18) 24px, transparent 25px, transparent 39px),
    repeating-radial-gradient(at 84% -10%, transparent 0, transparent 27px, rgba(200,255,50,.14) 28px, rgba(200,255,50,.14) 29px, transparent 30px, transparent 44px);
  mask-image: linear-gradient(#000 45%, transparent 100%);
}

.hero {
  position: relative;
  max-width: 1440px;
  margin: auto;
  text-align: center;
  padding: 42px 24px 46px;
}

.monogram {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 8px;
  border: 1.5px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  font-size: 35px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.06em;
  background: rgba(11,12,10,.7);
  box-shadow: 0 0 36px rgba(200,255,50,.06);
}

h1 {
  font-size: clamp(48px, 6.2vw, 94px);
  letter-spacing: -.065em;
  line-height: .95;
  margin: 0;
  font-weight: 800;
  text-shadow: 0 4px 28px #000;
}

.hero p {
  font-family: var(--mono);
  font-size: clamp(14px, 1.35vw, 20px);
  color: #d8d2c2;
  margin: 20px 0;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.socials a,
.socials button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--acid);
  border-radius: 50%;
  text-decoration: none;
  font-size: 21px;
  cursor: pointer;
  transition: .2s;
}

.socials svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.socials a:hover,
.socials button:hover {
  border-color: var(--acid);
  transform: translateY(-2px);
  background: #151910;
}

main {
  position: relative;
  max-width: 1440px;
  margin: auto;
  padding: 0 28px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.section-head h2 {
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--acid);
  margin: 0;
  white-space: nowrap;
}

.section-head > span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  order: 3;
}

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

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr 42px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface2), #10110f);
  color: var(--ivory);
  text-decoration: none;
  transition: .22s;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--acid);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0,0,0,.34);
}

.feature-card .mark,
.app-row .mark {
  display: grid;
  place-items: center;
  border: 1px solid #3e4238;
  background: var(--ink);
  color: var(--acid);
  font-weight: 800;
  letter-spacing: -.04em;
}

.feature-card .mark {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  font-size: 21px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.feature-card p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.launch {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--acid);
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
}

.directory { padding: 34px 0 60px; }

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(600px, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.search {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #4b4e44;
  border-radius: 8px;
  padding: 0 17px;
  background: rgba(16,17,15,.8);
}

.search:focus-within {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(200,255,50,.08);
}

.search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 15px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.filters button,
.sort {
  border: 1px solid #4b4e44;
  background: transparent;
  color: var(--ivory);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
}

.filters button:hover,
.filters button.active {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

.directory-head { margin-bottom: 12px; }
.directory-head::after { order: 2; }

.directory-head .sort {
  order: 3;
  border: 0;
  color: var(--muted);
  padding: 8px;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.app-row {
  display: grid;
  grid-template-columns: 44px minmax(170px, .72fr) minmax(270px, 2.4fr) 100px 36px;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 7px 14px;
  border: 1px solid #292c26;
  border-radius: 9px;
  background: linear-gradient(90deg, #171916, #121310);
  color: var(--ivory);
  text-decoration: none;
  transition: .18s;
}

.app-row:hover {
  border-color: #656a59;
  background: #1b1e18;
  transform: translateX(3px);
}

.app-row .mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 12px;
}

.app-row h3 {
  font-size: 15px;
  margin: 0;
}

.app-row p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag {
  border: 1px solid #464a40;
  border-radius: 20px;
  text-align: center;
  padding: 5px 9px;
  color: var(--acid2);
  font-family: var(--mono);
  font-size: 10px;
}

.arrow {
  font-size: 25px;
  color: var(--acid);
  text-align: right;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  padding: 48px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--acid);
  color: #10110f;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  transition: .2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

footer {
  border-top: 1px solid var(--line);
  max-width: 1440px;
  margin: auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.signature {
  font-family: cursive;
  font-size: 30px;
  color: var(--acid);
  margin-right: auto;
  transform: rotate(-8deg);
}

footer a {
  color: var(--acid);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

@media (max-width: 1150px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .controls { grid-template-columns: 1fr; }
  .app-row { grid-template-columns: 44px minmax(150px, .8fr) minmax(200px, 1.8fr) 86px 30px; }
}

@media (max-width: 680px) {
  .contours { height: 330px; }
  .hero { padding: 28px 18px 36px; }
  .monogram { width: 66px; height: 66px; font-size: 28px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero p { max-width: 340px; margin: 17px auto; line-height: 1.6; }
  main { padding: 0 14px; }
  .section-head > span { display: none; }
  .featured-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .feature-card {
    min-width: 88%;
    scroll-snap-align: start;
    grid-template-columns: 54px 1fr 38px;
  }
  .feature-card .mark { width: 54px; height: 54px; }
  .controls { margin-bottom: 24px; }
  .filters {
    overflow-x: auto;
    display: flex;
    padding-bottom: 4px;
  }
  .filters button { min-width: 88px; height: 42px; }
  .app-row {
    grid-template-columns: 42px 1fr 29px;
    gap: 11px;
    padding: 8px 10px;
    min-height: 62px;
  }
  .app-row p,
  .tag { display: none; }
  .app-row h3 { font-size: 14px; }
  .arrow { font-size: 21px; }
  .directory { padding-top: 26px; }
  .sort { font-size: 10px; }
  footer { padding: 24px 16px; gap: 12px; flex-wrap: wrap; }
  .signature { display: none; }
}

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

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  position: relative;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 72px;
}

.legal-nav .monogram {
  margin: 0;
  width: 58px;
  height: 58px;
  font-size: 23px;
}

.back-link {
  color: var(--acid);
  font: 12px var(--mono);
  text-decoration: none;
}

.legal-page h1 {
  font-size: clamp(46px, 8vw, 84px);
  margin-bottom: 22px;
}

.legal-intro {
  font: 15px/1.7 var(--mono);
  color: #d2cdbc;
  max-width: 760px;
}

.legal-warning {
  border: 1px solid var(--acid);
  background: rgba(200,255,50,.06);
  padding: 18px 20px;
  border-radius: 10px;
  margin: 32px 0;
  color: var(--ivory);
  font: 13px/1.65 var(--mono);
}

.legal-meta {
  color: var(--muted);
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 40px 0;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.legal-section h2 {
  font-size: 21px;
  margin: 0 0 14px;
  color: var(--acid);
}

.legal-section p,
.legal-section li {
  color: #c4c0b4;
  font: 13px/1.75 var(--mono);
}

.legal-section ul { padding-left: 22px; }
.legal-page footer { padding-left: 0; padding-right: 0; }
.legal-page strong { color: var(--ivory); }

@media (min-width: 1151px) {
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
