﻿:root {
  --bg: #06070b;
  --panel: #0d111a;
  --panel-2: #121829;
  --ink: #ece8f5;
  --muted: #a5aec3;
  --line: #233047;
  --accent: #22d3ee;
  --accent-2: #2563eb;
  --accent-3: #7c3aed;
  --accent-soft: #1a2d45;
  --lux-gold: #7dd3fc;
  --radius: 16px;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.52);
  --maxw: 1120px;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --theme-glow: rgba(34, 211, 238, 0.28);
}

body.route-home {
  --accent: #22d3ee;
  --accent-2: #2563eb;
  --accent-3: #7c3aed;
  --theme-glow: rgba(34, 211, 238, 0.28);
}

body.route-diensten {
  --accent: #2dd4bf;
  --accent-2: #0ea5e9;
  --accent-3: #4338ca;
  --theme-glow: rgba(45, 212, 191, 0.25);
}

body.route-projecten {
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-3: #9333ea;
  --theme-glow: rgba(99, 102, 241, 0.25);
}

body.route-werkwijze {
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-3: #4f46e5;
  --theme-glow: rgba(59, 130, 246, 0.26);
}

body.route-advies {
  --accent: #67e8f9;
  --accent-2: #0ea5e9;
  --accent-3: #8b5cf6;
  --theme-glow: rgba(14, 165, 233, 0.24);
}

body.route-contact {
  --accent: #22d3ee;
  --accent-2: #2563eb;
  --accent-3: #a855f7;
  --theme-glow: rgba(168, 85, 247, 0.24);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, #151a2a 0, transparent 38%),
    radial-gradient(circle at 92% 0%, #0a2033 0, transparent 32%),
    radial-gradient(circle at 50% 115%, #0f182b 0, transparent 35%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-wrap: pretty;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 22%, var(--theme-glow), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(124, 58, 237, 0.16), transparent 34%),
    radial-gradient(circle at 66% 78%, rgba(37, 99, 235, 0.17), transparent 30%);
  filter: blur(18px) saturate(120%);
  mix-blend-mode: screen;
  animation: auroraDrift 18s ease-in-out infinite alternate;
  z-index: -2;
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  pointer-events: none;
  left: calc(var(--cursor-x) - 160px);
  top: calc(var(--cursor-y) - 160px);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.08) 40%, transparent 72%);
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 12;
}

body.cursor-glow-on .cursor-glow {
  opacity: 1;
}

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

::selection {
  background: #1d8db8;
  color: #f6f2ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(12px);
  background:
    linear-gradient(180deg, rgba(10, 12, 20, 0.92), rgba(5, 7, 11, 0.84)),
    rgba(5, 7, 11, 0.84);
  border-bottom: 1px solid rgba(34, 211, 238, 0.24);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  transition: background-color 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -55%;
  width: 52%;
  pointer-events: none;
  background:
    linear-gradient(102deg,
      rgba(34, 211, 238, 0) 0%,
      rgba(34, 211, 238, 0.34) 38%,
      rgba(124, 58, 237, 0.3) 54%,
      rgba(34, 211, 238, 0.34) 68%,
      rgba(34, 211, 238, 0) 100%);
  filter: blur(14px) saturate(116%);
  mix-blend-mode: screen;
  opacity: 0.94;
  transform: translateX(0);
  animation: headerSweep 5.6s linear infinite;
}

.site-header::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.82) 30%, rgba(124, 58, 237, 0.72) 60%, transparent 100%);
  filter: blur(0.15px);
  animation: headerEdgeFlow 7.5s linear infinite;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.header-inner::before {
  content: "";
  position: absolute;
  left: -110px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 66%);
  filter: blur(2px);
}

.header-inner::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -78px;
  height: 180px;
  pointer-events: none;
  background:
    radial-gradient(45% 80% at 24% 60%, rgba(34, 211, 238, 0.34), transparent 70%),
    radial-gradient(40% 75% at 56% 48%, rgba(124, 58, 237, 0.28), transparent 72%),
    radial-gradient(34% 70% at 82% 58%, rgba(37, 99, 235, 0.32), transparent 75%);
  filter: blur(26px) saturate(115%);
  mix-blend-mode: screen;
  opacity: 0.66;
  z-index: 0;
  animation: headerNebula 12s ease-in-out infinite alternate;
}

.brand,
.nav,
.cta,
.nav-toggle {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.9) 0 18%, transparent 22%),
    linear-gradient(145deg, rgba(34, 211, 238, 0.28), rgba(37, 99, 235, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.52);
  box-shadow: inset 0 0 16px rgba(34, 211, 238, 0.22), 0 0 16px rgba(37, 99, 235, 0.22);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 6px;
  justify-self: center;
  flex-wrap: wrap;
  position: relative;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: linear-gradient(180deg, rgba(13, 18, 31, 0.84), rgba(9, 14, 24, 0.72));
  box-shadow: inset 0 1px 0 rgba(199, 236, 255, 0.08), 0 6px 18px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.nav::before {
  content: "";
  position: absolute;
  top: -32px;
  left: -18%;
  right: -18%;
  height: 40px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), rgba(124, 58, 237, 0.22), transparent);
  filter: blur(7px);
  animation: navStream 8.2s ease-in-out infinite alternate;
  pointer-events: none;
}

.nav::after {
  content: "";
  position: absolute;
  inset: -30% -10%;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 52%, rgba(34, 211, 238, 0.2), transparent 36%),
    radial-gradient(circle at 72% 50%, rgba(124, 58, 237, 0.18), transparent 38%);
  filter: blur(15px);
  opacity: 0.64;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 0.93rem;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  position: relative;
  z-index: 1;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.nav a:hover {
  color: var(--ink);
  border-color: rgba(34, 211, 238, 0.45);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(180deg, #251e35, #20192f);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: var(--shadow-soft);
}

.cta {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 58%, var(--accent-3));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.4);
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 36%;
  height: 340%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(24deg);
  animation: ctaSweep 3.9s linear infinite;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(34, 211, 238, 0.4);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px 72px;
  width: 100%;
  flex: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 100% at 80% -20%, rgba(34, 211, 238, 0.12), transparent 48%),
    radial-gradient(90% 90% at -10% 120%, rgba(124, 58, 237, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(17, 20, 31, 0.95), rgba(10, 12, 20, 0.95)),
    var(--panel);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -70px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 68%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent);
}

.hero::after {
  box-shadow: 0 0 56px var(--theme-glow);
}

h1,
.section h2 {
  text-wrap: balance;
}

h1 {
  background: linear-gradient(92deg, #f2f7ff 0%, #bdeeff 54%, #d2c7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(125, 211, 252, 0.12);
}

.hero .lead {
  font-size: 1.11rem;
  max-width: 74ch;
  line-height: 1.78;
}

.eyebrow {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--lux-gold);
}

h1 {
  margin: 10px 0 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.14;
}

.lead {
  font-size: 1.07rem;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-ghost {
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(36, 31, 52, 0.72);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ddd2ff;
  font-weight: 600;
}

.btn-ghost:hover {
  background: #1f3348;
}

.section {
  margin-top: 24px;
  background: linear-gradient(180deg, var(--panel), #090d16);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.section::after {
  content: "";
  position: absolute;
  inset: auto 16px 10px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), transparent);
  opacity: 0.6;
  transform: translateX(-20%);
  animation: sectionSweep 8s linear infinite;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 100% -10%, rgba(34, 211, 238, 0.11), transparent 42%),
    linear-gradient(120deg, transparent 0%, rgba(37, 99, 235, 0.07) 40%, transparent 72%);
}

.section > * {
  position: relative;
  z-index: 1;
}

.section h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section h2::after {
  content: "";
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.9), transparent);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.48rem;
  letter-spacing: 0.01em;
  color: #def5ff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(17, 23, 38, 0.98), rgba(16, 21, 35, 0.98)),
    var(--panel-2);
  padding: 18px 16px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(34, 211, 238, 0.06);
  opacity: 0;
  transition: opacity 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

.card:hover::after {
  opacity: 1;
}

.reveal-grid .card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reveal-grid .card h3::before {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  color: #d9f8ff;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(37, 99, 235, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.1), 0 0 18px rgba(34, 211, 238, 0.14);
}

.reveal-grid .card:nth-child(1) h3::before { content: "⚙"; }
.reveal-grid .card:nth-child(2) h3::before { content: "🛡"; }
.reveal-grid .card:nth-child(3) h3::before { content: "🧹"; }
.reveal-grid .card:nth-child(4) h3::before { content: "⬆"; }
.reveal-grid .card:nth-child(5) h3::before { content: "🧭"; }
.reveal-grid .card:nth-child(6) h3::before { content: "🖥"; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.panel {
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(17, 23, 38, 0.92), rgba(11, 17, 29, 0.92));
  box-shadow: var(--shadow-soft);
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.meta-list {
  display: grid;
  gap: 10px;
}

.meta-item {
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 12px;
  padding: 11px 12px;
  background: rgba(9, 15, 26, 0.74);
}

.meta-item strong {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: #cde9ff;
  margin-bottom: 3px;
}

.meta-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.list {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 9px;
}

.list li {
  list-style: none;
  position: relative;
  padding-left: 22px;
  color: #bfd0e7;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.95), rgba(37, 99, 235, 0.75));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.list a {
  color: #cdeaff;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.45);
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.list a:hover {
  color: #f2f9ff;
  text-decoration-color: rgba(34, 211, 238, 0.9);
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, #101624, #0d1320);
  box-shadow: var(--shadow-soft);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  background: linear-gradient(180deg, #173751, #152e45);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #b5f2ff;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sr-only-field {
  display: none;
}

.card-stack {
  display: grid;
  gap: 12px;
}

.form-shell {
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(180deg, #101624, #0b121d);
  border-radius: 14px;
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #c3d9f2;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 10px;
  background: #090f1a;
  padding: 10px 12px;
  font: inherit;
  color: #ece8f5;
}

input::placeholder,
textarea::placeholder {
  color: #8da4bf;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2);
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.button-submit {
  margin-top: 14px;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 58%, var(--accent-3));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.button-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(34, 211, 238, 0.3);
}

.step h3 {
  margin: 2px 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-grid .card,
.reveal-list li,
.reveal-steps .step,
.reveal-panels .form-shell,
.reveal-panels .card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 560ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.reveal.in.reveal-grid .card,
.reveal.in.reveal-list li,
.reveal.in.reveal-steps .step,
.reveal.in.reveal-panels .form-shell,
.reveal.in.reveal-panels .card {
  opacity: 1;
  transform: translateY(0);
}

.reveal-steps .step + .step {
  margin-top: 12px;
}

.reveal-grid .card:nth-child(1),
.reveal-list li:nth-child(1),
.reveal-steps .step:nth-child(1),
.reveal-panels .form-shell:nth-child(1),
.reveal-panels .card:nth-child(1) { transition-delay: 60ms; }
.reveal-grid .card:nth-child(2),
.reveal-list li:nth-child(2),
.reveal-steps .step:nth-child(2),
.reveal-panels .form-shell:nth-child(2),
.reveal-panels .card:nth-child(2) { transition-delay: 120ms; }
.reveal-grid .card:nth-child(3),
.reveal-list li:nth-child(3),
.reveal-steps .step:nth-child(3),
.reveal-panels .form-shell:nth-child(3),
.reveal-panels .card:nth-child(3) { transition-delay: 180ms; }
.reveal-grid .card:nth-child(4),
.reveal-list li:nth-child(4),
.reveal-steps .step:nth-child(4),
.reveal-panels .form-shell:nth-child(4),
.reveal-panels .card:nth-child(4) { transition-delay: 240ms; }
.reveal-grid .card:nth-child(5),
.reveal-list li:nth-child(5),
.reveal-steps .step:nth-child(5),
.reveal-panels .form-shell:nth-child(5),
.reveal-panels .card:nth-child(5) { transition-delay: 300ms; }
.reveal-grid .card:nth-child(6),
.reveal-list li:nth-child(6),
.reveal-steps .step:nth-child(6),
.reveal-panels .form-shell:nth-child(6),
.reveal-panels .card:nth-child(6) { transition-delay: 360ms; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  background: #070a12;
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.04);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.02);
    opacity: 0.75;
  }
}

@keyframes ctaSweep {
  0% { left: -48%; }
  60%, 100% { left: 138%; }
}

@keyframes navStream {
  0% {
    transform: translateX(-14%);
    opacity: 0.24;
  }
  50% {
    opacity: 0.58;
  }
  100% {
    transform: translateX(14%);
    opacity: 0.24;
  }
}

@keyframes headerNebula {
  0% {
    transform: translate3d(-1.5%, 0, 0) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: translate3d(1.2%, -2%, 0) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate3d(-0.8%, 1.5%, 0) scale(1.03);
    opacity: 0.84;
  }
}

@keyframes headerFlow {
  0% {
    transform: translateX(-11%);
    opacity: 0.58;
  }
  50% {
    opacity: 0.95;
  }
  100% {
    transform: translateX(11%);
    opacity: 0.58;
  }
}

@keyframes headerSweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.92;
  }
  50% {
    opacity: 0.86;
  }
  90% {
    opacity: 0.92;
  }
  100% {
    transform: translateX(310%);
    opacity: 0;
  }
}

@keyframes headerEdgeFlow {
  0% {
    transform: translateX(-8%);
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(8%);
    opacity: 0.62;
  }
}

@keyframes sectionSweep {
  0% {
    transform: translateX(-20%);
    opacity: 0.26;
  }
  45% {
    opacity: 0.62;
  }
  100% {
    transform: translateX(20%);
    opacity: 0.22;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .cta::after,
  .cursor-glow {
    animation: none;
    transition: none;
  }

  .section::after {
    animation: none;
  }

  .site-header::before {
    animation: headerSweep 14s linear infinite;
    opacity: 0.62;
  }

  .site-header::after {
    animation: headerEdgeFlow 16s linear infinite;
    opacity: 0.75;
  }

  .header-inner::before,
  .header-inner::after,
  .nav::before {
    animation: none;
  }
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 32px;
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    row-gap: 10px;
  }

  .brand { grid-area: brand; }
  .nav-toggle {
    grid-area: toggle;
    display: inline-block;
    justify-self: end;
    color: #dff4ff;
    border-color: rgba(34, 211, 238, 0.42);
    background: linear-gradient(180deg, rgba(15, 21, 35, 0.95), rgba(11, 16, 26, 0.95));
  }

  .nav-toggle[aria-expanded="true"] {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
  }

  .nav {
    grid-area: nav;
    display: none;
    width: 100%;
    padding: 10px;
    gap: 8px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: linear-gradient(180deg, rgba(11, 16, 28, 0.96), rgba(8, 13, 22, 0.96));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
    flex-direction: column;
    align-items: stretch;
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(15, 23, 38, 0.7);
  }

  .cta {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .contact-wrap,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}
