:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-elev: #0b0f12;
  --card: #0f1418;
  --text: #f4f7f8;
  --muted: #9aa4b2;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #ff2d2d;
  --secondary: #b00000;
  --primary-gradient: linear-gradient(90deg, #ff2d2d, #b00000);
  --success: #2cff87;
  --danger: #ff3b3b;
  --glow-red: rgba(255, 45, 45, 0.22);
  --glow-green: rgba(176, 0, 0, 0.18);
  --shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition: 200ms ease;
}

html.theme-red {
  --primary: #ff2d2d;
  --secondary: #b00000;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, rgba(255, 45, 45, 0.1), rgba(176, 0, 0, 0.08)),
              #050505;
  color: var(--text);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--glow-red), transparent 60%);
  filter: blur(10px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 14s ease-in-out infinite, hueShift 12s ease-in-out infinite;
}

body::after {
  inset: auto auto -20% -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--glow-green), transparent 60%);
  animation-delay: -6s;
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-20px, 30px, 0) scale(1.05); }
}

@keyframes hueShift {
  0%, 100% { filter: hue-rotate(0deg) blur(10px); }
  50% { filter: hue-rotate(20deg) blur(14px); }
}

main, header, footer, section {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
