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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.7;
  animation: floatOrb 18s ease-in-out infinite;
}

.orb-1 { width: 420px; height: 420px; top: -100px; left: -80px; background: var(--tint-lavender); }
.orb-2 { width: 380px; height: 380px; top: 30%; right: -120px; background: var(--tint-blue); animation-delay: -6s; }
.orb-3 { width: 340px; height: 340px; bottom: -100px; left: 20%; background: var(--tint-pink); animation-delay: -12s; }
.orb-4 { width: 300px; height: 300px; bottom: 10%; right: 10%; background: var(--tint-cyan); animation-delay: -9s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 34px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 600;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 10px;
  color: var(--text-primary);
}

.section-heading p {
  margin-top: 12px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Theme toggle button */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-primary);
}

[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; }
.icon-link svg { flex-shrink: 0; }

::selection {
  background: var(--tint-lavender);
  color: var(--text-primary);
}
