:root {
  color-scheme: dark;
  --bg: #090610;
  --surface: #151020;
  --card: #1c142b;
  --primary: #a855f7;
  --accent: #d946ef;
  --text: #f8f5ff;
  --muted: #b3a8c5;
  --border: #39254d;
  --success: #34d399;
  --danger: #fb527b;
  --warning: #fbbf24;
  --glow: rgba(168,85,247,.25);
  --radius: 20px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3fb;
  --surface: #ffffff;
  --card: #ffffff;
  --primary: #7c3aed;
  --accent: #a21caf;
  --text: #20152e;
  --muted: #6b6079;
  --border: #e4d9f2;
  --success: #047857;
  --danger: #be123c;
  --warning: #a16207;
  --glow: rgba(124,58,237,.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background .25s, color .25s;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 32px var(--glow);
}

.primary-button {
  border: 0;
  border-radius: 16px;
  padding: 16px 24px;
  background: linear-gradient(
    135deg, #7c3aed, #a21caf
  );
  color: white;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

:root[data-focus="true"] * {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
}
