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

html {
  font-family: var(--font-ui);
  font-size: var(--fs-3);
  line-height: var(--lh);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background-color: #0b0f14;
  color: inherit;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

#aimy-page {
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}

main {
  display: block;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

p {
  margin: 0 0 var(--s-4);
  color: var(--text-dim);
}

.hint {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--fs-3);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--s-4);
  font-weight: 600;
  color: var(--text);
}

h1 { font-size: clamp(var(--fs-5), 4vw, 32px); }
h2 { font-size: clamp(var(--fs-4), 3vw, 26px); }
h3 { font-size: clamp(var(--fs-3), 2.4vw, 22px); }
h4 { font-size: clamp(var(--fs-3), 2vw, 20px); }
h5 { font-size: clamp(var(--fs-2), 1.8vw, 18px); }
h6 { font-size: var(--fs-2); }

small,
.tiny {
  font-size: var(--fs-1);
  color: var(--text-dim);
}

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

textarea {
  resize: vertical;
  min-height: 80px;
}

.visually-hidden,
.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;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--s-8) var(--s-4);
}

.page-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: calc(env(safe-area-inset-top, 0px) + var(--s-8)) var(--s-4)
    calc(env(safe-area-inset-bottom, 0px) + var(--s-8));
  overflow: hidden;
}

.page-shell > * {
  flex-shrink: 0;
}

.page-shell > main {
  flex: 1 1 auto;
  min-height: 0;
}

#aimy-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  width: 100%;
  height: 100%;
}

#aimy-bg::before,
#aimy-bg::after {
  content: '';
  position: absolute;
  inset: -20%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}

#aimy-bg::before {
  background-image:
    radial-gradient(180px 180px at 32px 48px, rgba(94, 210, 255, 0.18), rgba(94, 210, 255, 0)),
    radial-gradient(240px 240px at 160px 120px, rgba(255, 112, 204, 0.14), rgba(255, 112, 204, 0)),
    radial-gradient(280px 280px at 92px 200px, rgba(148, 120, 255, 0.16), rgba(148, 120, 255, 0));
  background-size: 320px 320px, 420px 420px, 520px 520px;
  opacity: 0.5;
  animation: none;
}

#aimy-bg::after {
  background-image:
    radial-gradient(220px 220px at 180px 60px, rgba(64, 188, 255, 0.12), rgba(64, 188, 255, 0)),
    radial-gradient(260px 260px at 80px 200px, rgba(255, 142, 206, 0.12), rgba(255, 142, 206, 0)),
    radial-gradient(240px 240px at 200px 220px, rgba(124, 96, 255, 0.12), rgba(124, 96, 255, 0));
  background-size: 420px 420px, 520px 520px, 460px 460px;
  filter: blur(18px);
  opacity: 0.36;
  animation: none;
}

#aimy-protons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(1.18);
  mix-blend-mode: screen;
  z-index: 0;
}

#aimy-page main,
#aimy-page .content,
#aimy-page .container,
#aimy-page .aimy-intro,
#aimy-page .page-shell,
#aimy-page .intro-shell,
#aimy-page nav,
#aimy-page header,
#aimy-page footer {
  position: relative;
  z-index: 2;
}

#aimy-page::before,
#aimy-page::after,
#aimy-page [class*='bg'],
#aimy-page [class*='background'],
#aimy-page [class*='bokeh'],
#aimy-page [class*='gradient'] {
  z-index: 1 !important;
}

@keyframes proton-drift {
  from {
    transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1.05);
  }

  to {
    transform: translate3d(6%, 5%, 0) rotate(360deg) scale(1.12);
  }
}

@keyframes proton-drift-reverse {
  from {
    transform: translate3d(5%, 6%, 0) rotate(0deg) scale(1.08);
  }

  to {
    transform: translate3d(-5%, -4%, 0) rotate(-360deg) scale(1.02);
  }
}

.ring {
  position: relative;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(64, 145, 255, 0.35), rgba(64, 145, 255, 0.05));
  box-shadow: 0 0 0 2px rgba(64, 145, 255, 0.25), 0 30px 60px rgba(0, 0, 0, 0.35);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Pagina vult viewport en vormt eigen stacking context */
#aimy-page {
  min-height: 100svh;
  min-height: -webkit-fill-available;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Hero gecentreerd in beide assen */
#aimy-hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Optioneel: contentbreedte */
#aimy-hero > .container,
#aimy-hero > .card,
#aimy-hero > .aimy-card {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* Canvas-achtergrond: volle dekking achter content */
#aimy-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#aimy-protons {
  display: block;
  width: 100%;
  height: 100%;
}

/* Content altijd boven canvas */
#aimy-hero > * {
  position: relative;
  z-index: 2;
}
