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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: #e8e6f2;
  background: var(--color-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background ambient gradient on every page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(14,72,246,0.28), transparent 60%),
    radial-gradient(1000px 700px at 105% 5%, rgba(218,0,255,0.22), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(125,11,178,0.22), transparent 60%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

h1 { font-size: var(--fs-5xl); font-weight: 800; }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { color: rgba(232,230,242,0.78); }

a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--color-primary-accent); }

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

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul, ol { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 2.5rem, var(--container-narrow));
  margin-inline: auto;
}

.section { padding-block: var(--space-9); position: relative; }
.section-tight { padding-block: var(--space-7); }
.section-muted {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-band {
  padding-block: var(--space-8);
  background: linear-gradient(135deg, rgba(14,72,246,0.18), rgba(218,0,255,0.14));
  border-top: 1px solid rgba(218,0,255,0.25);
  border-bottom: 1px solid rgba(218,0,255,0.25);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 50% 50%, rgba(218,0,255,0.12), transparent 70%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  text-align: center;
  max-width: 64ch;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
  padding: .4rem .8rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gradient-cta);
  box-shadow: 0 0 10px rgba(218,0,255,0.7);
}

.gradient-text {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted { color: rgba(232,230,242,0.6); }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Selection */
::selection { background: rgba(218,0,255,0.45); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }
