:root {
  --brand: #1E88E5;
  --brand-dark: #1565C0;
  --success: #2E7D32;
  --warn: #EF6C00;
  --danger: #C62828;
  --bg: #0F172A;
  --panel: #1E293B;
  --panel-2: #334155;
  --text: #E2E8F0;
  --text-dim: #94A3B8;
  --border: #334155;
  --accent-yellow: #FFC107;
  --accent-orange: #FF9800;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ─────────── Header ─────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.btn-ghost, .btn-primary {
  padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.btn-ghost {
  border: 1px solid var(--border); color: var(--text) !important;
}
.btn-ghost:hover { background: var(--panel); border-color: var(--brand); }
.btn-primary {
  background: var(--brand); color: white !important; border: 0;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* ─────────── Hero ─────────── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(30, 136, 229, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 152, 0, 0.08), transparent 50%);
}
.hero-logo { width: 96px; height: 96px; margin: 0 auto 24px; display: block; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff, #94A3B8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 20px; color: var(--text-dim);
  max-width: 720px; margin: 0 auto 32px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta .btn-primary { padding: 14px 28px; font-size: 16px; }
.hero-cta .btn-ghost   { padding: 14px 28px; font-size: 16px; }
.hero-badges {
  margin-top: 40px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero-badges img { height: 22px; border-radius: 4px; }

/* ─────────── Section ─────────── */
section.section { padding: 72px 0; }
section.section h2 {
  font-size: 32px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 8px; text-align: center;
}
section.section > p.section-sub {
  color: var(--text-dim); text-align: center; margin: 0 auto 48px;
  max-width: 640px;
}

/* ─────────── Feature grid ─────────── */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.card.blue   .icon { background: rgba(30, 136, 229, 0.15); color: var(--brand); }
.card.orange .icon { background: rgba(255, 152, 0, 0.15); color: var(--accent-orange); }
.card.green  .icon { background: rgba(46, 125, 50, 0.15); color: var(--success); }
.card.purple .icon { background: rgba(156, 39, 176, 0.15); color: #BA68C8; }
.card.yellow .icon { background: rgba(255, 193, 7, 0.18); color: var(--accent-yellow); }
.card.red    .icon { background: rgba(198, 40, 40, 0.15); color: var(--danger); }
.card h3 { font-size: 17px; margin: 0 0 6px; font-weight: 650; }
.card p  { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ─────────── Status table ─────────── */
.status-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 8px 20px;
  max-width: 800px; margin: 0 auto;
}
@media (max-width: 640px) { .status-grid { grid-template-columns: 1fr 1fr; } }
.status-grid > div {
  padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
}
.status-grid > div.label { font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.pill.done { background: rgba(46, 125, 50, 0.18); color: #81C784; }
.pill.wip  { background: rgba(239, 108, 0, 0.18); color: #FFB74D; }
.pill.soon { background: rgba(120, 120, 120, 0.2); color: #B0BEC5; }

/* ─────────── Tech stack ─────────── */
.stack {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.stack span {
  background: var(--panel); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
  color: var(--text-dim);
}

/* ─────────── Shortcut keys ─────────── */
kbd {
  background: var(--panel-2); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 4px;
  padding: 2px 8px; font-family: "Consolas", monospace; font-size: 12px;
  color: var(--text);
}

/* ─────────── Code ─────────── */
code {
  background: var(--panel); padding: 2px 6px; border-radius: 4px;
  font-family: "Consolas", "Menlo", monospace; font-size: 0.9em;
  color: #FFB74D;
}
pre {
  background: var(--panel); border: 1px solid var(--border);
  padding: 16px; border-radius: 8px; overflow-x: auto;
}
pre code { background: transparent; padding: 0; color: var(--text); }

/* ─────────── Links (prose) ─────────── */
main a { color: var(--brand); text-decoration: none; }
main a:hover { text-decoration: underline; }

/* ─────────── Tables (doc pages) ─────────── */
table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  background: var(--panel); border-radius: 8px; overflow: hidden;
}
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--panel-2); font-weight: 600; font-size: 14px; }
tr:last-child td { border-bottom: 0; }

/* ─────────── Doc page headings ─────────── */
main h1 { font-size: 36px; margin-top: 24px; }
main h2 { font-size: 26px; margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
main h3 { font-size: 18px; margin-top: 28px; }
main blockquote {
  border-left: 3px solid var(--brand); margin: 16px 0; padding: 8px 16px;
  background: rgba(30, 136, 229, 0.08); border-radius: 0 8px 8px 0;
  color: var(--text-dim);
}

/* ─────────── Footer ─────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dim); font-size: 13px;
  margin-top: 80px;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.foot-links a { color: var(--text-dim); text-decoration: none; margin: 0 4px; }
.foot-links a:hover { color: var(--text); }

/* ─────────── Utilities ─────────── */
.hidden { display: none; }
.muted { color: var(--text-dim); }
