:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-subtle: #f3f4f6;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;
  --accent: #0f172a;
  --accent-contrast: #ffffff;
  --ok: #10b981;
  --grid-dot: rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17;
    --surface: #111827;
    --surface-subtle: #182235;
    --border: rgba(248, 250, 252, 0.1);
    --border-strong: rgba(248, 250, 252, 0.2);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --accent: #f8fafc;
    --accent-contrast: #0b0f17;
    --ok: #34d399;
    --grid-dot: rgba(248, 250, 252, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.25);
  }
}

:root[data-theme="dark"] {
  --bg: #0b0f17;
  --surface: #111827;
  --surface-subtle: #182235;
  --border: rgba(248, 250, 252, 0.1);
  --border-strong: rgba(248, 250, 252, 0.2);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #f8fafc;
  --accent-contrast: #0b0f17;
  --ok: #34d399;
  --grid-dot: rgba(248, 250, 252, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 0.12em 0.42em;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.page {
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-name {
  font-size: 1rem;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-toggle:active {
  transform: scale(0.97);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
}

.hero-compact {
  max-width: 560px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.status-pill-muted {
  letter-spacing: 0.04em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.headline {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 0;
  max-width: 600px;
  font-size: 1.06rem;
  color: var(--text-muted);
}

.grid {
  width: 100%;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.actions {
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.button:hover {
  opacity: 0.9;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-faint);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-sep {
  opacity: 0.5;
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 20px 18px 28px;
    gap: 36px;
  }
}
