:root {
  color-scheme: dark;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  background: #101b20;
  color: #f0f3ed;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 85% 3%, rgba(164, 200, 148, .075), transparent 30rem),
    #101b20;
}

.site-header, .main-content { width: min(100% - 40px, 1160px); margin-inline: auto; }
.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #354247;
}
.brand { display: inline-flex; align-items: center; gap: 13px; white-space: nowrap; }
.brand-name { font-size: 1.22rem; font-weight: 740; letter-spacing: -.07em; }
.brand-dot { color: #d7f27d; }
.brand-mark { width: 33px; height: 33px; position: relative; display: inline-block; }
.brand-mark span { position: absolute; width: 17px; height: 17px; border: 3px solid #d7f27d; border-radius: 4px; }
.brand-mark span:first-child { top: 2px; left: 2px; }
.brand-mark span:last-child { right: 2px; bottom: 2px; }
.app-count, .card-category {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .09em;
}
.main-content { flex: 1; }
.apps-section { padding-block: 46px 88px; }
.section-heading {
  padding: 0 0 25px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 700; }
.app-count { color: #8fa29e; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card {
  min-height: 264px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: #1b2a2f;
  border: 1px solid #35464a;
  border-radius: 18px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.app-card:hover { transform: translateY(-3px); background: #223339; border-color: #83a085; box-shadow: 0 14px 26px rgba(0,0,0,.15); }
a.app-card:active { transform: translateY(0) scale(.99); }
a.app-card:focus-visible { outline: 3px solid #d7f27d; outline-offset: 3px; }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #344a43;
  color: #d7f27d;
}
.card-icon svg { width: 27px; height: 27px; }
.card-arrow { color: #d7f27d; font-size: 1.5rem; line-height: 1; align-self: flex-start; }
.app-card-pending .card-arrow { color: #728881; }
.card-content { margin: 24px 0 auto; }
.card-category { color: #b7d78b; text-transform: uppercase; margin: 0 0 9px; }
.card-content h3 { font-size: 1.29rem; line-height: 1.25; font-weight: 670; letter-spacing: -.025em; margin: 0; }
.card-description { margin: 10px 0 0; color: #b5c2be; font-size: .95rem; line-height: 1.48; }
.card-note { margin: 9px 0 0; color: #d7e1c6; font-size: .82rem; line-height: 1.4; }
.card-bottom { margin-top: 28px; padding-top: 17px; border-top: 1px solid #3c4a4d; }
.card-status { color: #c6d2cd; font-size: .78rem; white-space: nowrap; }
.card-status::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d7f27d; margin-right: 8px; vertical-align: 1px; }
.status-experimental::before { background: #f3be79; }
.status-in-development::before { background: #94a9b7; }
.card-action { font-size: .8rem; font-weight: 650; color: #d7f27d; white-space: nowrap; }
.app-card-pending .card-action { color: #92a59e; }
.empty-state { min-height: 210px; display: flex; align-items: center; gap: 22px; padding: 28px; border: 1px dashed #536762; border-radius: 18px; background: #1b2a2f; }
.empty-state[hidden] { display: none; }
.empty-icon { flex: 0 0 65px; display: grid; place-items: center; height: 65px; color: #d7f27d; background: #344a43; border-radius: 15px; }
.empty-icon svg { width: 36px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h2 { font-size: 1.4rem; margin: 0 0 8px; }
.empty-state p:last-child { color: #b5c2be; margin: 0; line-height: 1.5; }
code { color: #d7f27d; }
@media (max-width: 900px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .site-header, .main-content { width: min(100% - 32px, 1160px); }
  .site-header { min-height: 70px; }
  .apps-section { padding-block: 35px 58px; }
  .app-grid { grid-template-columns: 1fr; gap: 13px; }
  .app-card { min-height: 233px; padding: 20px; }
  .card-content { margin-top: 20px; }
  .card-bottom { margin-top: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card { transition: none; }
}
