/*
  Vibes for Humanity — One-page site styles
  - Uses system font stack for speed and privacy
  - Responsive layout, dark-mode friendly
*/

:root {
  --bg: #0b1020;
  --surface: #0f172a;
  --surface-2: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #a78bfa; /* violet-400 */
  --accent: #6ee7b7;  /* emerald-300 */
  --ring: color-mix(in oklab, var(--primary) 60%, #ffffff 40%);
  --radius: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --muted: #475569;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  /* Subtle, lighter animated gradient using Explore Apps colors */
  background:
    linear-gradient(-45deg,
      color-mix(in oklab, var(--primary) 18%, transparent),
      color-mix(in oklab, var(--accent) 16%, transparent),
      color-mix(in oklab, var(--primary) 14%, transparent),
      color-mix(in oklab, var(--accent) 12%, transparent)
    ),
    var(--bg);
  background-size: 800% 800%, auto;
  animation: gradient 36s ease infinite;
  line-height: 1.6;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { font-size: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.brand-text { letter-spacing: 0.2px; }

.nav { display: flex; gap: 18px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 56px 0 8px; }
.hero-inner { text-align: center; }
.hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.lead { color: var(--muted); max-width: 820px; margin: 0 auto 22px; font-size: clamp(16px, 2.2vw, 18px); }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  color: var(--text);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  font-weight: 700; letter-spacing: 0.2px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 30px rgba(0,0,0,.06);
}
.btn:hover { text-decoration: none; border-color: color-mix(in oklab, var(--text) 22%, transparent); }
.btn.primary { background: linear-gradient(140deg, color-mix(in oklab, var(--primary) 42%, transparent), color-mix(in oklab, var(--accent) 42%, transparent)); border-color: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; }

/* Sections */
.section { padding: 40px 0; }
.section#apps { padding-top: 8px; }
.section.alt { background: color-mix(in oklab, var(--surface) 70%, transparent); border-top: 1px solid color-mix(in oklab, var(--text) 10%, transparent); border-bottom: 1px solid color-mix(in oklab, var(--text) 10%, transparent); }
.section-title { font-size: 22px; margin: 0 0 18px; letter-spacing: 0.3px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  padding: 18px;
  background: color-mix(in oklab, var(--surface-2) 80%, transparent);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 26px rgba(2,6,23,.14);
}
.card-top { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 8px; }
.card-meta { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
/* Remove bottom margin when meta is in the top row */
.card-top .card-meta { margin-bottom: 0; }
/* Make status clearly smaller, lighter, uppercase, right-aligned */
.card .card-status { display: inline-block; font-size: 10px; line-height: 1; font-weight: 300; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); text-align: right; white-space: nowrap; }
.card-title { margin: 0 0 6px; font-size: 18px; }
.card-body { margin: 0 0 12px; color: var(--text); }
.card-actions { display: flex; gap: 10px; align-items: center; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 0; border-radius: 0; color: var(--muted); background: transparent; border: 0; text-decoration: none; }

/* Bullets */
.bullets { margin: 0; padding-left: 18px; }
.bullets li { margin: 10px 0; }

/* Footer */
.site-footer { padding: 20px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.to-top { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--text) 14%, transparent); }
.to-top:hover { background: color-mix(in oklab, var(--surface) 80%, transparent); text-decoration: none; }

.fineprint { color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .nav { gap: 12px; }
  .footer-inner { gap: 12px; }
}
