:root {
  --bg: #0e1012;
  --bg-elev: #16181b;
  --bg-elev-2: #1d2024;
  --line: #2a2d31;
  --text: #ece7df;
  --text-dim: #9a958c;
  --text-faint: #66625b;
  --amber: #e8a33d;
  --teal: #52b3a4;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 16, 18, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 480px) { .nav { gap: 16px; } .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 20px; }
.hero h1 {
  margin: 0; max-width: 16ch;
  font-size: clamp(38px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
}
.hero p.lede { margin: 24px 0 0; max-width: 56ch; font-size: 18px; color: var(--text-dim); }
@media (max-width: 600px) { .hero { padding: 64px 0 48px; } .hero p.lede { font-size: 16px; } }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section h2 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.section-head .count { font: 400 13px var(--mono); color: var(--text-faint); }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 360px) { .apps { grid-template-columns: 1fr; } }
.app {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elev);
  transition: border-color 0.15s, background 0.15s;
}
.app:has(.app-link:hover) { border-color: #3a3e44; background: var(--bg-elev-2); }
.app-top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; background: var(--bg-elev-2); }
.app h3 { margin: 0; font-size: 20px; letter-spacing: -0.015em; }
.app h3 a { text-decoration: none; }
.app h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.platforms { margin: 4px 0 0; font: 400 12.5px var(--mono); color: var(--text-faint); }
.app p.desc { margin: 18px 0 20px; color: var(--text-dim); font-size: 15px; flex: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--text-dim); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.status.live::before { background: var(--teal); }
.status.beta::before { background: var(--amber); }
.app-more { position: relative; z-index: 1; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--amber); }
.app-more:hover { text-decoration: underline; }
.app-more.muted { color: var(--text-faint); font-weight: 500; }

/* About / contact */
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 16px; } }
.prose p { margin: 0 0 16px; color: var(--text-dim); max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--text); text-decoration-color: var(--amber); text-underline-offset: 3px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { color: var(--text-dim); }
.contact-list a { text-decoration-color: var(--amber); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.notfound h1 { margin: 0 0 12px; font-size: 40px; letter-spacing: -0.03em; }
.notfound p { color: var(--text-dim); margin: 0; }
