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

html {
  scroll-behavior: smooth;
  font-size: 14px; /* Mobile base */
}

@media (min-width: 48rem) {
  html { font-size: 16px; /* Tablet base */ }
}

@media (min-width: 64rem) {
  html { font-size: 18px; /* Desktop base */ }
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll from orbits */
  min-height: 100vh;
  width: 100%;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(225, 29, 72, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(190, 18, 60, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(10, 10, 10, 1) 0%, var(--bg-1) 100%);
  z-index: -2;
}

.grain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10vw, 20vh) scale(1.1); }
  66% { transform: translate(-5vw, 15vh) scale(0.9); }
  100% { transform: translate(5vw, -10vh) scale(1.05); }
}

@keyframes stars {
  from { transform: translateY(0px); }
  to { transform: translateY(-100px); }
}

@keyframes floatEffect {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-2);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: #ffffff;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.625rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.75rem;
  height: 0.1875rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 0.125rem;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
