:root {
  --bg-deep: #040911;
  --bg-layer: #0b1828;
  --bg-elevated: #12273f;
  --surface: #10243a;
  --color-surface: #10243a;
  --surface-soft: #17314e;
  --surface-strong: #21466b;
  --text: #f6fbff;
  --text-muted: #b7c8dc;
  --accent: #24d8a4;
  --color-accent: #24d8a4;
  --accent-strong: #13b788;
  --accent-warm: #ff9347;
  --color-accent-warm: #ff9347;
  --border: rgba(184, 201, 221, 0.32);
  --shadow-lg: 0 18px 42px rgba(1, 7, 14, 0.45);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --container: min(1120px, 100% - 2rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.55;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 700px at 12% -20%, rgba(36, 216, 164, 0.14), transparent 68%),
    radial-gradient(800px 520px at 88% 0%, rgba(255, 147, 71, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-layer) 0%, var(--bg-deep) 55%, #03070d 100%);
}

::selection {
  color: #04131c;
  background: var(--accent);
}

main,
header,
section,
footer {
  display: block;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.17em;
  text-decoration-color: rgba(36, 216, 164, 0.45);
}

a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(36, 216, 164, 0.95);
}

/* Keyboard focus for links */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: clamp(2.8rem, 6vw, 5.25rem);
}

/* Fix anchor navigation offset for sticky header */
section[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 870px) {
  section[id] {
    scroll-margin-top: 100px;
  }
}

@media (max-width: 700px) {
  section[id] {
    scroll-margin-top: 150px;
  }
}

@media (max-width: 600px) {
  section[id] {
    scroll-margin-top: 200px;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120%;
  z-index: 40;
  padding: var(--space-2) var(--space-3);
  color: #031218;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus-visible {
  top: 1rem;
}

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

@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;
    scroll-behavior: auto !important;
  }
}
