:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --fg: #f5f5f5;
  --fg-dim: #a1a1aa;
  --fg-muted: #71717a;
  --border: #262626;
  --accent: #f5f5f5;
  --radius: 14px;
  --maxw: 720px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-elev: #ffffff;
    --fg: #0a0a0a;
    --fg-dim: #52525b;
    --fg-muted: #a1a1aa;
    --border: #e4e4e7;
    --accent: #0a0a0a;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero { display: flex; flex-direction: column; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.brand-tagline {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 6px;
}
.wordmark {
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", Quicksand, Comfortaa, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 19px;
}

.tagline {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lede {
  color: var(--fg-dim);
  font-size: 17px;
  max-width: 520px;
}

.section { display: flex; flex-direction: column; gap: 16px; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  align-self: flex-start;
}
.tab {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab:hover { color: var(--fg); }
.tab.is-active {
  background: var(--fg);
  color: var(--bg);
}

.tab-panel { display: none; flex-direction: column; gap: 64px; }
.tab-panel.is-active { display: flex; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.projects {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-link {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .15s, transform .15s;
}
.project-link:hover {
  border-color: var(--fg-muted);
  transform: translateY(-1px);
}
.project-link[data-coming-soon] {
  opacity: 0.6;
  cursor: default;
}
.project-link[data-coming-soon]:hover {
  border-color: var(--border);
  transform: none;
}

.project-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.project-head > div { flex: 1; min-width: 0; }

.project-mark {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--mark, #f5f5f5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  text-transform: lowercase;
  overflow: hidden;
}
.project-mark-img { background: transparent; }
.project-mark-img img { width: 100%; height: 100%; object-fit: contain; }

.project-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--border);
  color: var(--fg-dim);
  border-radius: 999px;
}
.pill-beta { background: #1D6FFF; color: #fff; }
.pill-soon { background: #FACC15; color: #1a1a00; }
.pill-live { background: #10B981; color: #062b1f; }

.project-desc {
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: 4px;
}

.services {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.services li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.service-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 14px;
  color: var(--fg-dim);
}

.games {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.games li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.game-name {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.game-desc {
  font-size: 13px;
  color: var(--fg-dim);
}

.arrow {
  color: var(--fg-muted);
  font-size: 18px;
  flex-shrink: 0;
}

.prose {
  color: var(--fg-dim);
  font-size: 16px;
  max-width: 520px;
}
.prose a {
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.prose a:hover { border-color: var(--fg); }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-muted);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.foot .dim { color: var(--fg-muted); }

@media (max-width: 600px) {
  .wrap { padding: 48px 20px 32px; gap: 48px; }
}
