:root {
  --bg: #15191c;
  --cell: #1b2024;
  --surface: #1c2226;
  --line: rgba(255, 255, 255, .07);
  --text: #f2f3fa;
  --muted: #969ca2;
  --faint: #5d6368;
  --green: #2eaa6e;
  --green-hi: #36c07e;
}
* { box-sizing: border-box; margin: 0; }
html {
  /* The logo's own pixel grid, faintly, behind everything. A tiled SVG
     rather than repeating gradients: Safari drew those inconsistently
     (tiles missing or half-drawn). */
  background: var(--bg) url("/grid.svg") 0 0 / 14px 14px repeat;
}
body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* Site navigation, on every page. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav .brand img { width: 28px; height: 28px; border-radius: 22%; image-rendering: pixelated; }
.nav ul { list-style: none; padding: 0; display: flex; gap: clamp(14px, 4vw, 28px); font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); }

/* Top: logo, name, philosophy, download. */
header.hero {
  min-height: min(78vh, 660px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0 48px;
  animation: rise 900ms cubic-bezier(.2, .7, .2, 1) both;
}
.logo {
  width: min(180px, 44vw);
  height: auto;
  image-rendering: pixelated;
  border-radius: 20%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
}
h1 {
  margin-top: 32px;
  font-size: clamp(40px, 9vw, 60px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}
.philosophy {
  margin-top: 22px;
  max-width: 30ch;
  font-size: clamp(20px, 4.4vw, 26px);
  line-height: 1.35;
  color: var(--muted);
  text-wrap: balance;
}
.philosophy strong { color: var(--text); font-weight: 600; }
/* From the pitch deck's title slide: same face and colour. */
.motto {
  margin-top: 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(15px, 3.4vw, 19px);
  color: #687176;
}

.button {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(46, 170, 110, .25);
  transition: background .15s, transform .15s;
}
.button:hover { background: var(--green-hi); transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button[aria-disabled="true"] {
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 0 0 1px var(--line);
  pointer-events: none;
}
.button.small { margin-top: 20px; padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.caption { margin-top: 12px; font-size: 13px; color: var(--faint); }

/* The programs. */
section {
  padding: 24px 0 96px;
  scroll-margin-top: 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--green); }
.card {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, .35);
  padding: 28px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
}
.card + .card { margin-top: 20px; }
.card img { width: 88px; height: 88px; border-radius: 20%; image-rendering: pixelated; }
.card h2 { font-size: 28px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.1; }
.card .free {
  margin-left: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(46, 170, 110, .15);
  color: var(--green-hi);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  vertical-align: middle;
}
.card .beta {
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(230, 170, 60, .15);
  color: #e8b14f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  vertical-align: middle;
}
.card .notice {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(230, 170, 60, .08);
  box-shadow: inset 2px 0 0 #e8b14f;
  color: #d9b77a;
  font-size: 14px;
}
.card .notice a { color: #e8b14f; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card .links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.card .links a { text-decoration: none; color: var(--green-hi); font-weight: 600; }
.card .links a:hover { text-decoration: underline; }
.card .links a[aria-disabled="true"] { color: var(--faint); pointer-events: none; }
.card .links .source { color: var(--muted); font-weight: 500; }
@media (max-width: 520px) {
  .card { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
  .card img { width: 72px; height: 72px; }
}

footer { padding: 0 0 40px; text-align: center; font-size: 12px; color: var(--faint); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* About and Contact. */
main.page { padding: 56px 0 96px; animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
.page h1 { margin-top: 0; font-size: clamp(36px, 8vw, 52px); }
.page .lede { margin-top: 18px; font-size: clamp(19px, 4vw, 23px); line-height: 1.4; color: var(--muted); text-wrap: balance; }
.page .lede strong { color: var(--text); font-weight: 600; }
.page h2 { margin-top: 48px; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.page p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.page p a, .page li a { color: var(--green-hi); text-decoration: none; }
.page p a:hover, .page li a:hover { text-decoration: underline; }
.page .points { margin-top: 12px; padding-left: 20px; display: grid; gap: 10px; }
.page .points li { font-size: 17px; color: var(--muted); }
.page .points li::marker { color: var(--green); }
.page .points strong { color: var(--text); font-weight: 600; }
.page .eyebrow { margin-top: 0; }
.email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--green-hi);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email:hover { text-decoration: underline; }

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

@media (prefers-reduced-motion: reduce) { header.hero, main.page { animation: none; } }
