:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
  --bg: #f5f7fc;
  --surface: #ffffff;
  --text: #152238;
  --muted: #58677e;
  --border: #dce3ee;
  --accent: #5b46da;
  --accent-text: #ffffff;
  --glow: rgba(91,70,218,.12);
  --shadow: 0 12px 34px rgba(25,38,65,.07);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #151d31;
  --text: #f0f3fc;
  --muted: #b4c0d5;
  --border: #303c54;
  --accent: #a28aff;
  --accent-text: #101023;
  --glow: rgba(162,138,255,.13);
  --shadow: 0 12px 34px rgba(0,0,0,.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1020;
    --surface: #151d31;
    --text: #f0f3fc;
    --muted: #b4c0d5;
    --border: #303c54;
    --accent: #a28aff;
    --accent-text: #101023;
    --glow: rgba(162,138,255,.13);
    --shadow: 0 12px 34px rgba(0,0,0,.18);
  }
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
button, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; }
.skip-link:focus { left: 12px; z-index: 10; background: var(--surface); padding: 12px; }
.app-shell { max-width: 1320px; margin: auto; padding: 0 clamp(16px,4vw,56px); }
.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { color: var(--text); text-decoration: none; font-size: 1.3rem; font-weight: 850; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.brand-symbol { font-size: 2rem; color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-actions label { color: var(--muted); font-size: .85rem; }
select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}
.hero {
  text-align: center;
  padding: clamp(42px,7vw,105px) 18px 64px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 10%,var(--glow),transparent 70%), var(--surface);
  box-shadow: var(--shadow);
}
.eyebrow { color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 8px 0 0; font-size: clamp(3.5rem,10vw,7.2rem); line-height: 1.04; letter-spacing: -.055em; }
.hero-subtitle { font-size: clamp(1.25rem,3vw,1.8rem); font-weight: 650; margin: 12px 0; }
.hero-description { max-width: 560px; margin: 14px auto 28px; color: var(--muted); }
.hero-actions, .footer-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  border-radius: 13px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  font-weight: 700;
  min-height: 48px;
}
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn-secondary { background: var(--surface); color: var(--text); }
.btn:disabled { opacity: .64; cursor: not-allowed; }
.feature-note { font-size: .78rem; color: var(--muted); margin: 17px 0 0; }
.categories { padding: 58px 0 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; }
.section-heading h2 { margin: 5px 0; font-size: clamp(1.6rem,3vw,2.2rem); }
.section-heading .eyebrow { margin: 0; }
.count { color: var(--muted); font-size: .85rem; }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.category-card {
  min-height: 210px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.category-icon { font-size: 2.4rem; }
.category-card h3 { font-size: 1.25rem; margin: 0 0 5px; }
.category-card p { font-size: .83rem; margin: 0; color: var(--muted); }
.footer-actions { padding: 12px 0 40px; }
.footer { text-align: center; padding: 24px 0 38px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8rem; }
@media (max-width: 780px) {
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .topbar { min-height: 72px; }
  .top-actions label { display: none; }
  .hero { padding: 46px 14px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 145px; }
  .hero-actions .btn { flex: 1 1 170px; }
}
@media (prefers-reduced-motion: no-preference) {
  .category-card { transition: transform .15s ease; }
}