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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(43, 92, 125, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(5, 150, 105, 0.15) 0%, transparent 50%);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.has-cursor-glow {
  cursor: default;
}

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

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

a:hover {
  color: #34d399;
}

button {
  font-family: var(--font-stack);
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

p {
  color: var(--text-secondary);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 10000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--emerald);
  color: white;
  border-radius: var(--radius-soft);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(0.875rem, 4vw, var(--space-md));
}

.section {
  padding-block: var(--space-lg);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: var(--space-sm);
}

.section-header p {
  margin-top: var(--space-sm);
  font-size: 1.0625rem;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.bg-orb--teal {
  width: min(600px, 140vw);
  height: min(600px, 140vw);
  background: radial-gradient(circle, var(--teal-steel) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.bg-orb--emerald {
  width: min(500px, 120vw);
  height: min(500px, 120vw);
  background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
}

.bg-orb--forest {
  width: min(400px, 100vw);
  height: min(400px, 100vw);
  background: radial-gradient(circle, var(--green-forest) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

main {
  position: relative;
  z-index: 1;
}

:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-lg);
  }

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

  .section-header {
    margin-bottom: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-2xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
