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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 12% 4%, rgba(168, 85, 247, 0.22), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(79, 209, 197, 0.16), transparent 24%),
    radial-gradient(circle at 45% 42%, rgba(79, 140, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  top: 12px;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
}

.site-shell::before {
  top: 8rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.2), transparent 66%);
}

.site-shell::after {
  top: 28rem;
  right: -14rem;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 66%);
}

.surface {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(45, 212, 191, 0.035), rgba(168, 85, 247, 0.025)),
    var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-surface);
  backdrop-filter: blur(14px);
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
}

.surface--hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(168, 85, 247, 0.24), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(79, 209, 197, 0.18), transparent 24%),
    radial-gradient(circle at 58% 80%, rgba(79, 140, 255, 0.16), transparent 30%),
    var(--surface-strong);
}

.surface--sidebar {
  background:
    radial-gradient(circle at 85% 20%, rgba(79, 209, 197, 0.12), transparent 22%),
    var(--surface);
}
