:root {
  color-scheme: light dark;
  --bg: #0b0d12;
  --surface: #141821;
  --border: #252c3b;
  --text: #f3f5f8;
  --muted: #9aa4b2;
  --accent: #5b8cff;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.35);
  --warning-text: #fbbf24;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #475569;
    --accent: #2563eb;
    --warning-bg: #fffbeb;
    --warning-border: #fcd34d;
    --warning-text: #b45309;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.container {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  font-size: 0.9rem;
}

.demo-list {
  display: grid;
  gap: 12px;
}

.demo-card {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.demo-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.demo-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.demo-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.demo-slugs {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.redirect-box {
  text-align: center;
  padding: 16px 0;
}

.redirect-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.redirect-link:hover {
  text-decoration: underline;
}
