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

:root {
  --bg:     #09090b;
  --amber:  #f59e0b;
  --text:   #fafafa;
  --text2:  #71717a;
  --text3:  #3f3f46;
  --border: rgba(255,255,255,0.08);
  --mono:   'JetBrains Mono', monospace;
  --sans:   'Inter', sans-serif;
}

:root[data-theme="light"] {
  --bg:     #f8f8f9;
  --amber:  #d97706;
  --text:   #09090b;
  --text2:  #52525b;
  --text3:  #a1a1aa;
  --border: rgba(0,0,0,0.08);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.site-header {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.logo { display: none; }

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text3);
  font-size: 14px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}

.theme-btn:hover { color: var(--text2); border-color: rgba(255,255,255,0.18); }
[data-theme="light"] .theme-btn:hover { border-color: rgba(0,0,0,0.18); }

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}

.hero-inner {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.wordmark {
  font-size: 42px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 40px;
}

/* ── Search ── */
.search-form { margin-bottom: 20px; }

.search-wrap {
  display: flex;
  align-items: center;
  background: #111113;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 6px 0 16px;
  height: 56px;
  gap: 10px;
  transition: border-color 0.15s;
}

.search-wrap:focus-within {
  border-color: rgba(245,158,11,0.4);
}

.search-icon { color: var(--text3); flex-shrink: 0; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  min-width: 0;
  -webkit-appearance: none;
}

.search-input::placeholder { color: var(--text3); }
.search-input::-webkit-search-cancel-button { display: none; }

.search-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
  letter-spacing: -0.2px;
}

.search-btn:hover { opacity: 0.88; }

/* ── Severity filters ── */
.severity-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.sev-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: none;
  color: var(--text3);
  transition: all 0.15s;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.sev-btn:hover { color: var(--text2); border-color: rgba(255,255,255,0.18); }

.sev-btn.sev-Critical:hover,
.sev-btn.sev-Critical.active { color: #fb7185; border-color: rgba(244,63,94,0.4);  background: rgba(244,63,94,0.06); }
.sev-btn.sev-Error:hover,
.sev-btn.sev-Error.active    { color: #fdba74; border-color: rgba(251,146,60,0.4); background: rgba(251,146,60,0.06); }
.sev-btn.sev-Warning:hover,
.sev-btn.sev-Warning.active  { color: #fbbf24; border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.sev-btn.sev-Info:hover,
.sev-btn.sev-Info.active     { color: #7dd3fc; border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.06); }
.sev-btn.sev-Verbose:hover,
.sev-btn.sev-Verbose.active  { color: var(--text2); border-color: rgba(82,82,91,0.4); background: rgba(82,82,91,0.06); }

/* ── Suggestions ── */
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.chip:hover {
  color: var(--amber);
  border-color: rgba(245,158,11,0.25);
}

/* ── Footer ── */
.site-footer {
  padding: 24px 40px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .site-header { padding: 20px 20px; }
  h1 { font-size: 36px; letter-spacing: -1.5px; }
  .hero { padding: 20px 16px 60px; }
  .site-footer { padding: 20px 16px; }
}
