:root {
  color-scheme: light;
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-soft: #eeeeea;
  --text: #181817;
  --muted: #696965;
  --line: #ddddD7;
  --line-strong: #c7c7c0;
  --accent: #2258d3;
  --accent-soft: #e8eefc;
  --key: #fafaf8;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.055);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;
  --surface: #191919;
  --surface-soft: #232323;
  --text: #f2f2ef;
  --muted: #a5a5a0;
  --line: #30302e;
  --line-strong: #454541;
  --accent: #83a6ff;
  --accent-soft: #1f2a45;
  --key: #252524;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.site-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 780; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 850; }
.topnav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
.topnav a:hover { color: var(--text); }
.theme-button { justify-self: end; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); padding: 7px 10px; font-size: 13px; }
.theme-button:hover { color: var(--text); border-color: var(--line-strong); }
.hero { max-width: 880px; padding: 90px 0 62px; }
.eyebrow, .section-label { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 850px; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.055em; font-weight: 780; }
.hero-copy { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.hero-stats span { border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 8px 12px; color: var(--muted); font-size: 13px; }
.hero-stats strong { color: var(--text); }
.browser { margin-bottom: 72px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.browser-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.browser-heading h2, .guide h2, .about h2 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 14px; }
.text-button:hover { color: var(--text); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-box { min-height: 52px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); padding: 0 14px; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: var(--muted); opacity: .75; }
.search-box kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); padding: 2px 7px; color: var(--muted); font-size: 12px; }
.saved-filter { min-width: 110px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--text); padding: 0 16px; }
.saved-filter.active { border-color: var(--text); background: var(--text); color: var(--bg); }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.filters label { display: grid; gap: 7px; }
.filters label > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.filters select { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 0 12px; }
.results-meta { display: flex; gap: 14px; margin: 20px 0 12px; color: var(--muted); font-size: 13px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shortcut-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px; transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.shortcut-card:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, .05); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category-pill { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; background: var(--surface-soft); padding: 0 9px; color: var(--muted); font-size: 11px; font-weight: 760; }
.save-button { border: 0; background: transparent; color: var(--muted); padding: 2px 0; font-size: 12px; }
.save-button:hover, .save-button.saved { color: var(--accent); }
.key-row { width: 100%; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; border: 0; background: transparent; color: var(--text); padding: 20px 0 14px; text-align: left; }
.key-pair { display: inline-flex; align-items: center; gap: 7px; }
.key-row kbd, .mini-keys kbd { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 8px; background: var(--key); padding: 5px 10px; color: var(--text); font-size: 13px; font-weight: 740; line-height: 1; }
.plus { color: var(--muted); font-size: 13px; }
.copy-state { margin-left: auto; color: var(--muted); font-size: 11px; }
.shortcut-card h3 { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.015em; }
.example, .note { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.example span { display: block; margin-bottom: 3px; color: var(--text); font-size: 11px; font-weight: 780; letter-spacing: .05em; text-transform: uppercase; }
.note { padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.empty-state { padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; }
.empty-state h3 { margin: 0; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); padding: 9px 13px; }
.guide { padding: 18px 0 72px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.guide-grid article { border-top: 1px solid var(--line-strong); padding: 20px 0 0; }
.mini-keys { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.mini-keys span { color: var(--muted); }
.guide-grid h3 { margin: 0 0 8px; font-size: 17px; }
.guide-grid p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.about { max-width: 760px; padding: 56px 0 72px; border-top: 1px solid var(--line); }
.about p:last-child { margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 780px) {
  .site-shell { width: min(100% - 22px, 1180px); }
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero { padding: 60px 0 42px; }
  .hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .hero-copy { font-size: 17px; }
  .browser { padding: 18px; border-radius: 18px; }
  .browser-heading { align-items: flex-start; }
  .search-row { grid-template-columns: 1fr; }
  .saved-filter { min-height: 44px; }
  .filters { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article { padding-bottom: 18px; }
  footer { flex-direction: column; }
}
