@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0b1220;
  --surface: #121b2e;
  --surface-2: #1a2540;
  --border: #26314d;
  --text: #e7edf7;
  --text-muted: #93a1c0;
  --accent: #3fe7dd;
  --accent-2: #7c9cff;
  --live: #3fe7a0;
  --soon: #f2b84b;
  --review: #7c9cff;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-2: #eaf0f8;
    --border: #d7e0ee;
    --text: #101728;
    --text-muted: #56617c;
    --accent: #0d8f88;
    --accent-2: #3b5bdb;
    --live: #0f8a55;
    --soon: #a86a00;
    --review: #3b5bdb;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eaf0f8;
  --border: #d7e0ee;
  --text: #101728;
  --text-muted: #56617c;
  --accent: #0d8f88;
  --accent-2: #3b5bdb;
  --live: #0f8a55;
  --soon: #a86a00;
  --review: #3b5bdb;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.55;
}
h1, h2, h3 {
  font-family: 'Unbounded', 'Segoe UI', sans-serif;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}
@media (max-width: 520px) { .wrap { padding-inline: 16px; } }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.wordmark {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
  transform: rotate(45deg);
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 620px) {
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #06201d;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--accent); filter: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* hero */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 10;
  max-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,11,22,0.18) 0%, rgba(6,11,22,0.62) 45%, rgba(6,11,22,0.94) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero .eyebrow {
  color: #eafffd;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 0 16px rgba(0,0,0,0.5);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: #ffffff;
  max-width: 14ch;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.hero p {
  max-width: 56ch;
  color: #cdd8ec;
  font-size: 1.02rem;
}
.hero-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.hero-ctas .secondary {
  text-decoration: none;
  color: #cdd8ec;
  font-size: 0.92rem;
  border-bottom: 1px solid color-mix(in srgb, #cdd8ec 40%, transparent);
}
@media (max-width: 760px) {
  .hero { aspect-ratio: 4 / 5; max-height: 560px; }
}

/* page header (subpages) */
.page-head {
  padding-block: 64px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 62ch;
}
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.page-head p { color: var(--text-muted); font-size: 1.04rem; }

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
}
.stat {
  background: var(--surface);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat b {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--text-muted); font-size: 0.88rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

section { padding-block: 64px; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  max-width: 60ch;
}
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.section-head p { color: var(--text-muted); }

/* app cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.app-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .app-grid, .app-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .app-grid, .app-grid.four { grid-template-columns: 1fr; } }
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
a.app-card:hover, a.app-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.app-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.app-card h3 { font-size: 1.08rem; }
.app-card p { color: var(--text-muted); font-size: 0.93rem; flex: 1; }
.app-card .go {
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 500;
}
.platform {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status.live { color: var(--live); }
.status.soon { color: var(--soon); }
.status.review { color: var(--review); }

/* principles */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ethos-card {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ethos-card h3 { font-size: 1.02rem; }
.ethos-card p { color: var(--text-muted); font-size: 0.94rem; }
@media (max-width: 760px) { .ethos-grid { grid-template-columns: 1fr; } }

/* detailed app entries */
.detail-group { padding-block: 40px; border-top: 1px solid var(--border); }
.detail-group:first-of-type { border-top: none; }
.detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  padding-block: 28px;
  scroll-margin-top: 80px;
}
.detail + .detail { border-top: 1px dashed var(--border); }
.detail-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.detail-meta h3 { font-size: 1.4rem; }
.detail-meta .tag { font-size: 1rem; color: var(--text); font-weight: 500; }
.detail-body { display: flex; flex-direction: column; gap: 14px; color: var(--text-muted); }
.detail-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.detail-body .links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.facts span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.82rem;
  color: var(--text);
}
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; gap: 16px; } }

/* jump links */
.jump {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.jump a {
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.jump a:hover { color: var(--text); border-color: var(--accent); }

/* CTA band */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.cta-band p { color: var(--text-muted); margin-top: 8px; max-width: 52ch; }

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}
.contact-grid .app-card a { color: var(--accent); }
.link-cards .app-card { padding: 20px; gap: 8px; }
.link-cards .app-card p { color: var(--text-muted); }

footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  margin-top: 24px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.footer-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--text); }

/* app card media, icons and labels */
.app-card { padding: 0; overflow: hidden; gap: 0; }
.app-card .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.media {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media.tall { display: flex; justify-content: center; }
.media.tall img { width: auto; height: 100%; object-fit: contain; }
.media.tall.cream { background: #fff3e4; }
.media.tall.dark { background: #0a0a0c; }
.media.top img { object-position: top; }
.media .status { position: absolute; top: 10px; right: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); }

.title-row { display: flex; align-items: center; gap: 12px; }
.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: none;
  box-shadow: 0 0 0 1px var(--border);
}
.title-row div { display: flex; flex-direction: column; gap: 2px; }

.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.labels span {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* drawn mock panels for apps without screenshots */
.mock {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #e7edf7;
}
.mock.pg { background: linear-gradient(135deg, #0f2a3a, #173f52); }
.mock.cw { background: linear-gradient(135deg, #1d2716, #2f4120); }
.mock.cg { background: #0a1020; font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; line-height: 1.6; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 7px 10px;
}
.mock-row .thumb { width: 30px; height: 30px; border-radius: 4px; flex: none; }
.mock-row .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.9; }
.sbadge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
  flex: none;
}
.sbadge.none { background: #00a32a; }
.sbadge.low { background: #3c83c4; }
.sbadge.medium { background: #dba617; color: #201800; }
.sbadge.high { background: #d63638; }
.mock.cg .k { color: #7c9cff; }
.mock.cg .s { color: #3fe7a0; }
.mock.cg .h { color: #ff8a8a; }
.mock.cg .c { color: #6b7899; }

/* detail page visuals */
.detail-meta .app-icon { width: 64px; height: 64px; border-radius: 15px; }
.shot {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.shot img { display: block; width: 100%; height: auto; }
.shot.phone { max-width: 260px; }
.shot.mockwrap { position: relative; aspect-ratio: 16 / 9; }
.app-card .body > .status { align-self: flex-start; }
.mock { padding: 12px 14px; gap: 6px; font-size: 0.74rem; }
.mock-row { padding: 5px 8px; gap: 8px; }
.mock-row .thumb { width: 24px; height: 24px; }
.mock.cg { font-size: 0.72rem; line-height: 1.5; }
.mock.cg div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot .mock { padding: 24px 32px; gap: 10px; font-size: 0.92rem; }
.shot .mock-row { padding: 9px 12px; }
.shot .mock-row .thumb { width: 34px; height: 34px; }
.shot .mock .sbadge { font-size: 0.7rem; }
@media (max-width: 560px) { .shot .mock { padding: 14px; font-size: 0.78rem; gap: 6px; } .shot .mock-row { padding: 5px 8px; } .shot .mock-row .thumb { width: 24px; height: 24px; } }
