/* Codnixy — base: variables, reset, layout primitives, headings, blends, reveal */

:root {
  --bg: #04060a;
  --bg-2: #0a0f1a;
  --ink: #f5f8ff;
  --ink-dim: rgba(245, 248, 255, 0.62);
  --ink-faint: rgba(245, 248, 255, 0.36);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #3a5cff;
  --accent-2: #5b7bff;
  --accent-deep: #1a2e8c;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.gridfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 90%);
}

.glow-top {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background:
    radial-gradient(ellipse 50% 55% at 50% 50%, rgba(120, 165, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(58, 92, 255, 0.30), transparent 75%);
  filter: blur(40px);
  pointer-events: none;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

section {
  position: relative;
  padding: 120px 0;
}

.section-blend {
  position: relative;
  height: 220px;
  margin: -110px 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.section-blend::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 280px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(90, 130, 255, 0.20), transparent 70%),
    radial-gradient(ellipse 30% 30% at 30% 50%, rgba(58, 92, 255, 0.12), transparent 70%);
  filter: blur(40px);
}
.section-blend::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(120, 150, 255, 0.18) 30%,
    rgba(180, 200, 255, 0.35) 50%,
    rgba(120, 150, 255, 0.18) 70%,
    transparent 100%);
  transform: translateY(-0.5px);
}
.section-blend.faint::before { opacity: 0.55; }
.section-blend.faint::after  { opacity: 0.4; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
h2.section-title {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  max-width: 22ch;
  text-wrap: balance;
}
h2.section-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: #cad6ff;
}
.section-sub {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 64ch;
}
