/*
 * ai3.land — dual-theme landing page.
 * Tokens shared across the tool family (dark = GitHub Dark, light = GitHub Light);
 * dark is the default, light applies via html[data-theme='light'].
 */
:root {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1d232c;
  --border: #2b333e;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #4f9cf7;
}
:root[data-theme='light'] {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --border: #d0d7de;
  --text: #1f2328;
  --muted: #656d76;
  --accent: #0969da;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, 'PingFang SC', 'Segoe UI', Roboto, sans-serif;
}
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}
.muted {
  color: var(--muted);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  color: var(--accent);
  font-size: 22px;
}
.brand h1 {
  margin: 0;
  font-size: 20px;
}
.tagline {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.intro {
  font-size: 16px;
  max-width: 660px;
  margin: 8px 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.tool-desc {
  margin: 0 0 10px;
}
.tool-meta {
  margin: 0 0 14px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--muted);
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  opacity: 0.92;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.ghost:hover {
  color: var(--text);
}
.btn.small {
  padding: 4px 8px;
  font-size: 13px;
}

.more {
  margin: 20px 0 0;
  font-size: 13px;
}
.app-footer {
  margin-top: 32px;
  font-size: 12px;
  text-align: center;
}
.app-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.app-footer a:hover {
  color: var(--text);
}
