/* ============================================
   NEXORAI — Futuristic Web Design
   Couleurs vibrantes inspirées du logo
============================================ */

:root {
  --bg: #050616;
  --bg-2: #0a0d2e;
  --bg-3: #131745;
  --ink: #ffffff;
  --ink-2: #c9d2ff;
  --ink-3: #7a86c4;

  --cyan: #00e5ff;
  --cyan-2: #22f0ff;
  --blue: #3b82ff;
  --blue-2: #2563ff;
  --indigo: #5b3fff;
  --purple: #8b5cf6;
  --purple-2: #a855f7;
  --magenta: #d946ef;

  --grad-main: linear-gradient(135deg, #00e5ff 0%, #3b82ff 35%, #8b5cf6 70%, #d946ef 100%);
  --grad-blue: linear-gradient(135deg, #00e5ff 0%, #3b82ff 100%);
  --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(217,70,239,0.18));

  --border: rgba(150, 170, 255, 0.16);
  --border-strong: rgba(150, 170, 255, 0.32);
  --border-glow: rgba(0, 229, 255, 0.5);

  --glow-cyan: 0 0 40px rgba(0, 229, 255, 0.6);
  --glow-blue: 0 0 40px rgba(59, 130, 255, 0.6);
  --glow-purple: 0 0 40px rgba(139, 92, 246, 0.6);
  --glow-magenta: 0 0 40px rgba(217, 70, 239, 0.6);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #050616; }
body {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(59, 130, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(217, 70, 239, 0.18), transparent 60%),
    #050616;
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ============================================
   PULSE BEAMS (animated circuit beams around buttons)
============================================ */
.pulse-frame {
  position: relative;
  display: inline-flex;
  isolation: isolate;
}
.pulse-frame .pulse-svg {
  position: absolute;
  inset: -22px -28px;
  width: calc(100% + 56px);
  height: calc(100% + 44px);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.pulse-frame--nav .pulse-svg {
  inset: -18px -22px;
  width: calc(100% + 44px);
  height: calc(100% + 36px);
}
.pulse-frame > a,
.pulse-frame > .btn {
  position: relative;
  z-index: 2;
}

.pb-track {
  fill: none;
  stroke: rgba(150, 170, 255, 0.18);
  stroke-width: 1;
}
.pb-pulse {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 22 220;
  stroke-dashoffset: 242;
  animation: pbRun 2.6s linear infinite;
}
.pb-pulse--1 { animation-delay: 0s; }
.pb-pulse--2 { animation-delay: 0.65s; }
.pb-pulse--3 { animation-delay: 1.3s; }
.pb-pulse--4 { animation-delay: 1.95s; }

@keyframes pbRun {
  0%   { stroke-dashoffset: 242; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

.pb-node {
  fill: #0a0d2e;
  stroke: rgba(150, 170, 255, 0.55);
  stroke-width: 1;
}
.pb-node--accent {
  fill: #18CCFC;
  stroke: rgba(0, 229, 255, 0.7);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.9));
  animation: pbNodePulse 2.6s ease-in-out infinite;
}
@keyframes pbNodePulse {
  0%, 100% { opacity: 0.5; r: 3; }
  50%      { opacity: 1;   r: 4; }
}

/* ============================================
   CURSOR ORB (follows mouse)
============================================ */
.cursor-orb {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9998;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0);
}
.cursor-orb--core {
  width: 22px; height: 22px;
  background: radial-gradient(circle, rgba(0,229,255,1) 0%, rgba(59,130,255,0.7) 40%, rgba(139,92,246,0) 75%);
  filter: blur(2px);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.9), 0 0 48px rgba(59, 130, 255, 0.55);
}
.cursor-orb--trail {
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(139,92,246,0.55) 0%, rgba(217,70,239,0.25) 40%, rgba(0,229,255,0) 75%);
  filter: blur(18px);
  opacity: 0.85;
}
@media (max-width: 900px), (hover: none) {
  .cursor-orb { display: none; }
}

/* ============================================
   GALAXY SHADER BACKGROUND (Three.js)
   Apparaît progressivement quand on scrolle
============================================ */
.galaxy {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s linear;
  overflow: hidden;
}
.galaxy__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Voile sombre pour assombrir le shader (rend les sections lisibles) */
.galaxy__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(5, 6, 22, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 6, 22, 0.4) 0%, rgba(5, 6, 22, 0.25) 50%, rgba(5, 6, 22, 0.5) 100%);
  mix-blend-mode: multiply;
}
/* Étoiles scintillantes */
.galaxy__stars {
  position: absolute;
  inset: 0;
}
.galaxy__stars span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px #ffffff;
  animation: starTwinkle 3s ease-in-out infinite;
}
.galaxy__stars span:nth-child(1)  { top: 8%;  left: 12%; animation-delay: 0s;    }
.galaxy__stars span:nth-child(2)  { top: 15%; left: 28%; animation-delay: 0.3s;  width: 1px; height: 1px; }
.galaxy__stars span:nth-child(3)  { top: 22%; left: 45%; animation-delay: 0.6s;  width: 3px; height: 3px; }
.galaxy__stars span:nth-child(4)  { top: 9%;  left: 62%; animation-delay: 0.9s;  }
.galaxy__stars span:nth-child(5)  { top: 18%; left: 78%; animation-delay: 1.2s;  width: 1px; height: 1px; }
.galaxy__stars span:nth-child(6)  { top: 28%; left: 88%; animation-delay: 1.5s;  }
.galaxy__stars span:nth-child(7)  { top: 35%; left: 6%;  animation-delay: 1.8s;  }
.galaxy__stars span:nth-child(8)  { top: 42%; left: 22%; animation-delay: 2.1s;  width: 1px; height: 1px; }
.galaxy__stars span:nth-child(9)  { top: 38%; left: 38%; animation-delay: 2.4s;  width: 3px; height: 3px; }
.galaxy__stars span:nth-child(10) { top: 48%; left: 55%; animation-delay: 0.2s;  }
.galaxy__stars span:nth-child(11) { top: 52%; left: 72%; animation-delay: 0.5s;  width: 1px; height: 1px; }
.galaxy__stars span:nth-child(12) { top: 45%; left: 92%; animation-delay: 0.8s;  }
.galaxy__stars span:nth-child(13) { top: 60%; left: 14%; animation-delay: 1.1s;  width: 3px; height: 3px; }
.galaxy__stars span:nth-child(14) { top: 65%; left: 32%; animation-delay: 1.4s;  }
.galaxy__stars span:nth-child(15) { top: 58%; left: 48%; animation-delay: 1.7s;  width: 1px; height: 1px; }
.galaxy__stars span:nth-child(16) { top: 70%; left: 65%; animation-delay: 2.0s;  }
.galaxy__stars span:nth-child(17) { top: 68%; left: 82%; animation-delay: 2.3s;  width: 3px; height: 3px; }
.galaxy__stars span:nth-child(18) { top: 78%; left: 4%;  animation-delay: 2.6s;  }
.galaxy__stars span:nth-child(19) { top: 75%; left: 24%; animation-delay: 0.4s;  width: 1px; height: 1px; }
.galaxy__stars span:nth-child(20) { top: 82%; left: 42%; animation-delay: 0.7s;  }
.galaxy__stars span:nth-child(21) { top: 88%; left: 58%; animation-delay: 1.0s;  width: 3px; height: 3px; }
.galaxy__stars span:nth-child(22) { top: 85%; left: 75%; animation-delay: 1.3s;  }
.galaxy__stars span:nth-child(23) { top: 92%; left: 92%; animation-delay: 1.6s;  width: 1px; height: 1px; }
.galaxy__stars span:nth-child(24) { top: 12%; left: 38%; animation-delay: 1.9s;  }
.galaxy__stars span:nth-child(25) { top: 25%; left: 8%;  animation-delay: 2.2s;  width: 1px; height: 1px; }
.galaxy__stars span:nth-child(26) { top: 30%; left: 68%; animation-delay: 2.5s;  width: 3px; height: 3px; }
.galaxy__stars span:nth-child(27) { top: 55%; left: 6%;  animation-delay: 0.15s; }
.galaxy__stars span:nth-child(28) { top: 62%; left: 96%; animation-delay: 0.45s; }
.galaxy__stars span:nth-child(29) { top: 5%;  left: 50%; animation-delay: 0.75s; width: 1px; height: 1px; }
.galaxy__stars span:nth-child(30) { top: 96%; left: 28%; animation-delay: 1.05s; }
.galaxy__stars span:nth-child(31) { top: 3%;  left: 85%; animation-delay: 1.35s; width: 3px; height: 3px; }
.galaxy__stars span:nth-child(32) { top: 40%; left: 78%; animation-delay: 1.65s; }
.galaxy__stars span:nth-child(33) { top: 72%; left: 50%; animation-delay: 1.95s; width: 1px; height: 1px; }
.galaxy__stars span:nth-child(34) { top: 20%; left: 4%;  animation-delay: 2.25s; }
.galaxy__stars span:nth-child(35) { top: 50%; left: 38%; animation-delay: 2.55s; }
.galaxy__stars span:nth-child(36) { top: 80%; left: 88%; animation-delay: 0.05s; width: 1px; height: 1px; }
.galaxy__stars span:nth-child(37) { top: 34%; left: 54%; animation-delay: 0.35s; }
.galaxy__stars span:nth-child(38) { top: 90%; left: 18%; animation-delay: 0.65s; width: 3px; height: 3px; }
.galaxy__stars span:nth-child(39) { top: 14%; left: 95%; animation-delay: 0.95s; }
.galaxy__stars span:nth-child(40) { top: 56%; left: 28%; animation-delay: 1.25s; width: 1px; height: 1px; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* ============================================
   STRANGE WORLDS SHADER (Three.js GLSL3)
   Prend la relève dans la section Contact
============================================ */
.worlds {
  position: fixed;
  inset: 0;
  z-index: 1;          /* même couche que .galaxy, mais après dans le DOM */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s linear;
  overflow: hidden;
}
/* Image cosmique en arrière-plan + lente dérive pour la garder vivante */
.worlds__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: cosmicDrift 45s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes cosmicDrift {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1.5%, -1.5%); }
}
.worlds__veil {
  position: absolute;
  inset: 0;
  /* Voile sombre subtil pour garder le formulaire de contact lisible
     sans masquer la beauté de l'image */
  background:
    radial-gradient(ellipse at 50% 30%, transparent 30%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.45) 100%);
}

/* Étoiles dorées scintillantes par-dessus le shader worlds */
.worlds__stars {
  position: absolute;
  inset: 0;
}
.worlds__stars span {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff5d6;
  box-shadow: 0 0 4px #fff5d6, 0 0 10px rgba(255, 200, 120, 0.6);
  animation: worldStarTwinkle 3.5s ease-in-out infinite;
}
.worlds__stars span:nth-child(1)  { top: 4%;  left: 8%;  animation-delay: 0s;    }
.worlds__stars span:nth-child(2)  { top: 10%; left: 22%; animation-delay: 0.4s;  width: 1px; height: 1px; }
.worlds__stars span:nth-child(3)  { top: 6%;  left: 40%; animation-delay: 0.8s;  width: 3px; height: 3px; }
.worlds__stars span:nth-child(4)  { top: 15%; left: 58%; animation-delay: 1.2s;  }
.worlds__stars span:nth-child(5)  { top: 8%;  left: 75%; animation-delay: 1.6s;  width: 1px; height: 1px; }
.worlds__stars span:nth-child(6)  { top: 18%; left: 90%; animation-delay: 2.0s;  width: 3px; height: 3px; }
.worlds__stars span:nth-child(7)  { top: 25%; left: 5%;  animation-delay: 2.4s;  }
.worlds__stars span:nth-child(8)  { top: 32%; left: 18%; animation-delay: 0.2s;  width: 1px; height: 1px; }
.worlds__stars span:nth-child(9)  { top: 22%; left: 35%; animation-delay: 0.6s;  }
.worlds__stars span:nth-child(10) { top: 35%; left: 50%; animation-delay: 1.0s;  width: 3px; height: 3px; }
.worlds__stars span:nth-child(11) { top: 28%; left: 68%; animation-delay: 1.4s;  width: 1px; height: 1px; }
.worlds__stars span:nth-child(12) { top: 38%; left: 84%; animation-delay: 1.8s;  }
.worlds__stars span:nth-child(13) { top: 45%; left: 12%; animation-delay: 2.2s;  }
.worlds__stars span:nth-child(14) { top: 52%; left: 28%; animation-delay: 2.6s;  width: 3px; height: 3px; }
.worlds__stars span:nth-child(15) { top: 48%; left: 45%; animation-delay: 0.3s;  width: 1px; height: 1px; }
.worlds__stars span:nth-child(16) { top: 58%; left: 62%; animation-delay: 0.7s;  }
.worlds__stars span:nth-child(17) { top: 55%; left: 80%; animation-delay: 1.1s;  }
.worlds__stars span:nth-child(18) { top: 65%; left: 6%;  animation-delay: 1.5s;  width: 1px; height: 1px; }
.worlds__stars span:nth-child(19) { top: 70%; left: 24%; animation-delay: 1.9s;  width: 3px; height: 3px; }
.worlds__stars span:nth-child(20) { top: 62%; left: 42%; animation-delay: 2.3s;  }
.worlds__stars span:nth-child(21) { top: 75%; left: 56%; animation-delay: 2.7s;  width: 1px; height: 1px; }
.worlds__stars span:nth-child(22) { top: 68%; left: 72%; animation-delay: 0.5s;  }
.worlds__stars span:nth-child(23) { top: 80%; left: 90%; animation-delay: 0.9s;  width: 3px; height: 3px; }
.worlds__stars span:nth-child(24) { top: 85%; left: 14%; animation-delay: 1.3s;  }
.worlds__stars span:nth-child(25) { top: 88%; left: 36%; animation-delay: 1.7s;  width: 1px; height: 1px; }
.worlds__stars span:nth-child(26) { top: 78%; left: 52%; animation-delay: 2.1s;  }
.worlds__stars span:nth-child(27) { top: 92%; left: 68%; animation-delay: 2.5s;  width: 3px; height: 3px; }
.worlds__stars span:nth-child(28) { top: 95%; left: 4%;  animation-delay: 0.1s;  }
.worlds__stars span:nth-child(29) { top: 12%; left: 50%; animation-delay: 0.55s; width: 1px; height: 1px; }
.worlds__stars span:nth-child(30) { top: 42%; left: 95%; animation-delay: 1.45s; width: 3px; height: 3px; }

@keyframes worldStarTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.3); }
}

/* ÉTOILES FILANTES — traînées dorées qui traversent l'écran en diagonale */
.worlds__shooting {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.worlds__shooting span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff8dc;
  box-shadow:
    0 0 10px #fff8dc,
    0 0 22px rgba(255, 200, 120, 0.95),
    0 0 44px rgba(255, 160, 60, 0.55);
  opacity: 0;
  /* point de départ : haut-droite hors écran */
  will-change: transform, opacity;
}
/* La traînée (queue lumineuse) — sort à droite du point brillant */
.worlds__shooting span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  width: 140px;
  height: 1.5px;
  background: linear-gradient(to right,
    #fff8dc 0%,
    rgba(255, 220, 140, 0.85) 25%,
    rgba(255, 170, 70, 0.45) 55%,
    transparent 100%);
  transform: translateY(-50%);
  border-radius: 1px;
  filter: blur(0.5px);
}

@keyframes shootingStar {
  0%   { transform: translate(0, 0) rotate(-25deg);            opacity: 0; }
  4%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(-115vw, 55vh) rotate(-25deg);    opacity: 0; }
}

.worlds__shooting span:nth-child(1) {
  top: 4%; left: 102%;
  animation: shootingStar 7s ease-out 1s infinite;
}
.worlds__shooting span:nth-child(2) {
  top: 12%; left: 95%;
  animation: shootingStar 9s ease-out 3.5s infinite;
}
.worlds__shooting span:nth-child(3) {
  top: 22%; left: 100%;
  animation: shootingStar 6.5s ease-out 6s infinite;
}
.worlds__shooting span:nth-child(4) {
  top: 8%; left: 75%;
  animation: shootingStar 8s ease-out 4s infinite;
}
.worlds__shooting span:nth-child(5) {
  top: 17%; left: 60%;
  animation: shootingStar 7.5s ease-out 8s infinite;
}
.worlds__shooting span:nth-child(6) {
  top: 2%; left: 88%;
  animation: shootingStar 10s ease-out 2s infinite;
}

/* ============================================
   ANIMATED FUTURISTIC BACKGROUND
============================================ */
.fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}

/* Smooth animated gradient blobs (gooey blend) */
.fx__gradient {
  position: absolute; inset: 0;
  filter: blur(60px) saturate(140%);
  opacity: 0.55;
}
.fx__blob {
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  transform-origin: center;
}
.fx__blob--1 {
  background: radial-gradient(circle, rgba(0, 229, 255, 0.55) 0%, transparent 60%);
  top: 10%; left: 10%;
  animation: blobFloat1 24s ease-in-out infinite;
}
.fx__blob--2 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, transparent 60%);
  top: 0%; right: 10%;
  animation: blobFloat2 30s ease-in-out infinite;
}
.fx__blob--3 {
  background: radial-gradient(circle, rgba(217, 70, 239, 0.45) 0%, transparent 60%);
  bottom: 10%; left: 30%;
  animation: blobFloat3 36s ease-in-out infinite;
}
.fx__blob--4 {
  background: radial-gradient(circle, rgba(59, 130, 255, 0.5) 0%, transparent 60%);
  bottom: -10%; right: 5%;
  animation: blobFloat1 28s ease-in-out infinite reverse;
}
.fx__blob--5 {
  background: radial-gradient(circle, rgba(91, 63, 255, 0.4) 0%, transparent 60%);
  top: 40%; left: -10%;
  animation: blobFloat2 40s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(20vw, 15vh) scale(1.15); }
  66%      { transform: translate(-10vw, 25vh) scale(0.9); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-25vw, 20vh) scale(1.2); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%      { transform: translate(15vw, -20vh) scale(1.1) rotate(180deg); }
}

.fx__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: gridMove 30s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.fx__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite;
}
.fx__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: -15%; left: -10%;
}
.fx__orb--2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  top: 30%; right: -10%;
  animation-delay: -6s;
}
.fx__orb--3 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 70%);
  bottom: -10%; left: 30%;
  animation-delay: -12s;
  opacity: 0.45;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(60px, -50px) scale(1.1); }
  66%      { transform: translate(-50px, 40px) scale(0.95); }
}

.fx__beam {
  position: absolute;
  width: 2px; height: 100vh;
  top: -10vh;
  opacity: 0.4;
}
.fx__beam--1 {
  left: 20%;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  animation: beamSweep 8s ease-in-out infinite;
}
.fx__beam--2 {
  right: 25%;
  background: linear-gradient(180deg, transparent, var(--purple), transparent);
  animation: beamSweep 11s ease-in-out infinite;
  animation-delay: -3s;
}
@keyframes beamSweep {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50%      { transform: translateY(20vh); opacity: 0.6; }
}

.fx__particles span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: particleFloat 12s linear infinite;
  opacity: 0;
}
.fx__particles span:nth-child(1)  { left: 8%;  top: 100%; animation-delay: 0s;  background: var(--cyan);    box-shadow: 0 0 12px var(--cyan); }
.fx__particles span:nth-child(2)  { left: 18%; top: 100%; animation-delay: 1.2s; background: var(--blue);    box-shadow: 0 0 12px var(--blue); }
.fx__particles span:nth-child(3)  { left: 28%; top: 100%; animation-delay: 2.4s; background: var(--purple);  box-shadow: 0 0 12px var(--purple); }
.fx__particles span:nth-child(4)  { left: 38%; top: 100%; animation-delay: 3.6s; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.fx__particles span:nth-child(5)  { left: 48%; top: 100%; animation-delay: 4.8s; background: var(--cyan);    box-shadow: 0 0 12px var(--cyan); }
.fx__particles span:nth-child(6)  { left: 58%; top: 100%; animation-delay: 6.0s; background: var(--blue);    box-shadow: 0 0 12px var(--blue); }
.fx__particles span:nth-child(7)  { left: 68%; top: 100%; animation-delay: 7.2s; background: var(--purple);  box-shadow: 0 0 12px var(--purple); }
.fx__particles span:nth-child(8)  { left: 78%; top: 100%; animation-delay: 8.4s; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.fx__particles span:nth-child(9)  { left: 88%; top: 100%; animation-delay: 9.6s; background: var(--cyan);    box-shadow: 0 0 12px var(--cyan); }
.fx__particles span:nth-child(10) { left: 13%; top: 100%; animation-delay: 5.5s; background: var(--purple);  box-shadow: 0 0 12px var(--purple); }
.fx__particles span:nth-child(11) { left: 33%; top: 100%; animation-delay: 7.8s; background: var(--cyan);    box-shadow: 0 0 12px var(--cyan); }
.fx__particles span:nth-child(12) { left: 53%; top: 100%; animation-delay: 2.1s; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.fx__particles span:nth-child(13) { left: 73%; top: 100%; animation-delay: 4.3s; background: var(--blue);    box-shadow: 0 0 12px var(--blue); }
.fx__particles span:nth-child(14) { left: 93%; top: 100%; animation-delay: 6.7s; background: var(--purple);  box-shadow: 0 0 12px var(--purple); }
.fx__particles span:nth-child(15) { left: 43%; top: 100%; animation-delay: 10.5s; background: var(--cyan);   box-shadow: 0 0 12px var(--cyan); }
@keyframes particleFloat {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: scale(1); }
  90%  { opacity: 1; }
  100% { transform: translateY(-110vh) scale(0); opacity: 0; }
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(5, 6, 22, 0.4);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, background 0.3s;
}
.nav.scrolled {
  padding: 12px 40px;
  background: rgba(5, 6, 22, 0.85);
  box-shadow: 0 4px 30px rgba(0, 229, 255, 0.08);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav__logo {
  width: 46px; height: 46px;
  object-fit: contain;
  /* mix-blend-mode: screen fait disparaître le fond sombre du PNG */
  /* en le fondant avec le fond du site — résultat : logo "découpé". */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.7));
}
.nav__name {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}
.nav__links {
  display: flex; gap: 36px;
}
.nav__links a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}
.nav__links a:hover { color: var(--cyan); }
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad-main);
  transition: width 0.3s;
  box-shadow: 0 0 8px var(--cyan);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: var(--grad-main);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 30px rgba(59, 130, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(217, 70, 239, 0.65), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 56px 100px;
  z-index: 2;
  overflow: hidden;
}
.hero__layout {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.hero__content {
  position: relative;
  z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  max-width: 1100px;
}
.hero__content .hero__lead { margin-left: auto; margin-right: auto; }
.hero__content .hero__cta { justify-content: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 30, 80, 0.5);
  backdrop-filter: blur(14px);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 28px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* GIANT NEXORAI BRAND TEXT */
.hero__brand {
  position: relative;
  display: inline-flex; align-items: center;
  gap: 0.12em;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(3.4rem, 9.5vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  user-select: none;
}
.hero__brand-bracket {
  color: var(--cyan);
  font-weight: 500;
  opacity: 0.55;
  font-size: 0.7em;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
}
.hero__brand-text {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #c9d2ff 45%, #5b3fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.35)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.25));
  -webkit-text-stroke: 1px rgba(0, 229, 255, 0.18);
}
.hero__brand-text::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  filter: blur(14px);
  opacity: 0.55;
  z-index: -1;
  animation: brandPulse 4s ease-in-out infinite;
}
.hero__brand-text::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 229, 255, 0.18) 50%, transparent 100%);
  background-size: 100% 4px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  pointer-events: none;
  animation: scanlines 6s linear infinite;
}
@keyframes brandPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.02); }
}
@keyframes scanlines {
  0%   { background-position: 0 0; }
  100% { background-position: 0 60px; }
}
.hero__brand-cursor {
  display: inline-block;
  width: 0.08em; height: 0.85em;
  background: var(--cyan);
  margin-left: 0.08em;
  box-shadow: 0 0 14px var(--cyan), 0 0 28px var(--cyan);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero__title {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(0, 229, 255, 0.15);
}
.grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.35));
}

.hero__lead {
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  color: var(--ink-2);
  max-width: 680px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 44px;
}

/* HERO VISUAL (right side: Spline robot floats freely, no box) */
.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 680px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  z-index: 1;
}
.hero__visual::before { display: none; }

/* Colored ambient lights around the robot — site palette bleeds onto it */
.hero__visual-glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(217, 70, 239, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.4) 0%, transparent 50%);
  filter: blur(70px);
  animation: heroGlowShift 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGlowShift {
  0%, 100% { opacity: 0.85; transform: scale(1) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.1) rotate(8deg); }
}
.hero__visual-grid { display: none; }

.hero__robot {
  position: absolute; inset: 0;
  z-index: 2;
  display: grid; place-items: center;
  perspective: 1200px;
}
.hero__robot-aura {
  position: absolute;
  width: 75%; height: 75%;
  top: 12%; left: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.55) 0%, rgba(59, 130, 255, 0.35) 30%, rgba(139, 92, 246, 0.25) 55%, transparent 75%);
  filter: blur(40px);
  animation: robotAura 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes robotAura {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* 3D stage — JS sets --rx and --ry to tilt the robot toward the cursor */
.hero__robot-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  transform:
    rotateY(var(--rx, 0deg))
    rotateX(var(--ry, 0deg))
    translateZ(0);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: transform;
}
.hero__robot-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: robotFloat 7s ease-in-out infinite;
  filter:
    drop-shadow(0 0 24px rgba(0, 229, 255, 0.55))
    drop-shadow(0 0 60px rgba(139, 92, 246, 0.4))
    drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  will-change: transform;
  transform-style: preserve-3d;
}
.hero__robot-img.is-missing { display: none; }
@keyframes robotFloat {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50%      { transform: translateY(-18px) translateZ(20px); }
}
.hero__robot-shadow {
  position: absolute;
  bottom: 4%; left: 50%;
  width: 60%; height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.6) 0%, rgba(139, 92, 246, 0.3) 40%, transparent 75%);
  filter: blur(12px);
  z-index: 1;
  animation: robotShadow 7s ease-in-out infinite;
}
@keyframes robotShadow {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.5;  transform: translateX(-50%) scale(0.85); }
}

/* ============================================
   FALLBACK ROBOT (visible only if assets/robot.png is missing)
============================================ */
.hero__robot-fallback {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  z-index: 3;
}
.rfb {
  position: relative;
  width: 260px; height: 380px;
  filter:
    drop-shadow(0 0 24px rgba(0, 229, 255, 0.55))
    drop-shadow(0 0 60px rgba(139, 92, 246, 0.4));
  animation: robotFloat 7s ease-in-out infinite;
}
.rfb__head {
  position: absolute; top: 0; left: 50%;
  width: 110px; height: 110px;
  transform: translateX(-50%);
  background: linear-gradient(160deg, #ffffff 0%, #c9d2ff 40%, #3b82ff 100%);
  border-radius: 50% 50% 45% 45%;
  border: 2px solid rgba(0, 229, 255, 0.5);
  box-shadow: inset -8px -8px 18px rgba(0, 30, 80, 0.4), 0 0 20px rgba(0, 229, 255, 0.4);
}
.rfb__visor {
  position: absolute; top: 32%; left: 50%;
  width: 78px; height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, #050616 60%, #0a0d2e 100%);
  border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.7);
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.6), 0 0 14px rgba(0, 229, 255, 0.5);
}
.rfb__antenna {
  position: absolute; top: -14px; left: 50%;
  width: 3px; height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--cyan), transparent);
  box-shadow: 0 0 8px var(--cyan);
}
.rfb__antenna::after {
  content: ''; position: absolute; top: -6px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
.rfb__neck {
  position: absolute; top: 105px; left: 50%;
  width: 30px; height: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #5b6588, #2a3060);
  border-radius: 4px;
}
.rfb__torso {
  position: absolute; top: 120px; left: 50%;
  width: 160px; height: 140px;
  transform: translateX(-50%);
  background: linear-gradient(160deg, #ffffff 0%, #d6deff 50%, #3b82ff 100%);
  border-radius: 35% 35% 25% 25%;
  border: 2px solid rgba(0, 229, 255, 0.4);
  box-shadow: inset -10px -10px 22px rgba(0, 20, 80, 0.45), 0 0 18px rgba(139, 92, 246, 0.4);
}
.rfb__core {
  position: absolute; top: 40px; left: 50%;
  width: 42px; height: 42px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--cyan) 0%, var(--blue) 50%, #0a0d2e 100%);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--cyan), inset 0 0 10px rgba(255, 255, 255, 0.4);
  animation: pulse 2s ease-in-out infinite;
}
.rfb__plate { position: absolute; top: 18px; width: 18px; height: 80px; background: linear-gradient(180deg, var(--blue) 0%, var(--indigo) 100%); border-radius: 4px; }
.rfb__plate--l { left: 8px; }
.rfb__plate--r { right: 8px; }
.rfb__arm {
  position: absolute; top: 130px;
  width: 30px; height: 130px;
  background: linear-gradient(180deg, #ffffff 0%, #3b82ff 100%);
  border-radius: 14px;
  border: 1.5px solid rgba(0, 229, 255, 0.3);
}
.rfb__arm--l { left: 6px; transform: rotate(-8deg); }
.rfb__arm--r { right: 6px; transform: rotate(8deg); }
.rfb__leg {
  position: absolute; top: 260px;
  width: 40px; height: 120px;
  background: linear-gradient(180deg, #ffffff 0%, #3b82ff 100%);
  border-radius: 12px;
  border: 1.5px solid rgba(0, 229, 255, 0.3);
}
.rfb__leg--l { left: 70px; }
.rfb__leg--r { right: 70px; }
.rfb__notice {
  position: absolute; bottom: -70px; left: 50%;
  transform: translateX(-50%);
  width: 280px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.5;
}
.rfb__notice code {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* 3D LOGO floating — moved to top right so it doesn't cover NEXORAI text */
.hero__logo3d {
  position: absolute;
  top: -10px; right: -10px;
  z-index: 4;
  display: flex; flex-direction: column; gap: 10px;
  perspective: 600px;
  pointer-events: none;
}
.logo3d {
  position: relative;
  width: 90px; height: 90px;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  animation: logo3dSpin 12s linear infinite;
}
@keyframes logo3dSpin {
  0%   { transform: rotateY(0deg) rotateX(8deg); }
  100% { transform: rotateY(360deg) rotateX(8deg); }
}
.logo3d__ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
}
.logo3d__ring--1 {
  border-top-color: var(--cyan);
  border-right-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6), inset 0 0 12px rgba(0, 229, 255, 0.3);
  animation: ringSpin 4s linear infinite;
}
.logo3d__ring--2 {
  inset: -18px;
  border-bottom-color: var(--purple);
  border-left-color: var(--magenta);
  box-shadow: 0 0 18px rgba(217, 70, 239, 0.5);
  animation: ringSpin 6s linear infinite reverse;
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
.logo3d__inner {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(20, 30, 80, 0.95) 0%, rgba(5, 6, 22, 1) 80%);
  border: 1px solid var(--border-glow);
  box-shadow:
    0 0 24px rgba(0, 229, 255, 0.5),
    inset 0 0 18px rgba(139, 92, 246, 0.3);
}
.logo3d__img {
  width: 70%; height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.9));
}
.logo3d__label {
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}
.logo3d__tag { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 229, 255, 0.6); }
.logo3d__status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2);
}
.logo3d__status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00ff88; box-shadow: 0 0 10px #00ff88;
  animation: pulse 1.5s ease-in-out infinite;
}

/* HUD HINTS */
.hero__hints {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  inset: 0;
}
.hint {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(5, 6, 22, 0.7);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.hint__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.hint--1 { top: 36px; right: 24px; }
.hint--2 { bottom: 90px; left: 24px; }
.hint--3 { bottom: 24px; right: 24px; }
.hint--2 .hint__dot { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.hint--3 .hint__dot { background: var(--purple); box-shadow: 0 0 8px var(--purple); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 40px rgba(59, 130, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 50px rgba(217, 70, 239, 0.7), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary > * { position: relative; z-index: 1; }

.btn--ghost {
  background: rgba(150, 170, 255, 0.08);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(150, 170, 255, 0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}
.btn--full { width: 100%; justify-content: center; padding: 18px; font-size: 1rem; }

.hero__stats {
  display: flex; align-items: center; gap: 36px;
  padding: 22px 40px;
  background: rgba(10, 16, 50, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 0 50px rgba(59, 130, 255, 0.15);
}
.hero__stats > div:not(.div) { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
}
.hero__stats span { font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.05em; }
.hero__stats .div {
  width: 1px; height: 26px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--ink-3);
}
.hero__scroll .line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SECTION HEAD (shared)
============================================ */
.section-head {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 20px;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}
.section-title {
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.section-sub {
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================
   SERVICES
============================================ */
.services { padding: 140px 0; position: relative; z-index: 2; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  padding: 36px 30px;
  background: linear-gradient(180deg, rgba(30, 40, 90, 0.45), rgba(15, 20, 55, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  opacity: 0.5;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 30px 80px -20px rgba(0, 229, 255, 0.4), 0 0 40px rgba(139, 92, 246, 0.25);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-main);
  margin-bottom: 24px;
  box-shadow: 0 10px 28px rgba(59, 130, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.3);
}
.card__icon svg { width: 28px; height: 28px; color: #fff; }
.card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.card p { color: var(--ink-2); font-size: 0.95rem; }

/* ============================================
   PRICING
============================================ */
.pricing { padding: 140px 0; position: relative; z-index: 2; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1340px; margin: 0 auto;
}
.plan {
  position: relative;
  padding: 44px 36px;
  background: linear-gradient(180deg, rgba(30, 40, 100, 0.45), rgba(12, 16, 40, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  backdrop-filter: blur(12px);
}
.plan::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}
.plan:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 30px 80px -20px rgba(0, 229, 255, 0.35);
}
.plan--featured {
  background: linear-gradient(180deg, rgba(60, 40, 140, 0.55), rgba(20, 30, 80, 0.7));
  border-color: var(--purple);
  box-shadow: 0 30px 100px -20px rgba(139, 92, 246, 0.65), 0 0 60px rgba(217, 70, 239, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: scale(1.04);
  z-index: 2;
}
.plan--featured::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: var(--grad-main);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderGlow 3s ease-in-out infinite;
}
@keyframes borderGlow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.plan--featured::after { display: none; }
.plan--featured:hover { transform: scale(1.04) translateY(-8px); }
.plan__badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  padding: 8px 18px;
  background: var(--grad-main);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(217, 70, 239, 0.6);
}
.plan__head { margin-bottom: 28px; }
.plan__tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}
.plan__name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.plan__desc { color: var(--ink-2); font-size: 0.95rem; }

.plan__price {
  display: flex; align-items: baseline; gap: 6px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.plan__price .currency {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  color: var(--ink-2);
}
.plan__price .amount {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 3.6rem;
  line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.4));
}
.plan__price .amount--custom { font-size: 2.5rem; }
.plan__price .cur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-left: 8px;
}

.plan__features {
  list-style: none;
  margin-bottom: 36px;
  flex: 1;
}
.plan__features li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  color: var(--ink);
  font-size: 0.94rem;
}
.plan__features svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--cyan);
  margin-top: 2px;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}

.plan__cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  background: rgba(150, 170, 255, 0.1);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.plan__cta:hover {
  background: rgba(150, 170, 255, 0.18);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.3);
}
.plan__cta--primary {
  background: var(--grad-main);
  border: none;
  box-shadow: 0 10px 36px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.plan__cta--primary:hover {
  box-shadow: 0 14px 48px rgba(217, 70, 239, 0.8);
}

.pricing__note {
  text-align: center;
  margin-top: 56px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============================================
   PROCESS
============================================ */
.process { padding: 140px 0; position: relative; z-index: 2; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1340px; margin: 0 auto;
}
.step {
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(180deg, rgba(30, 40, 90, 0.35), rgba(12, 16, 40, 0.5));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute; top: -50%; right: -50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px -20px rgba(139, 92, 246, 0.4);
}
.step:hover::before { opacity: 1; }
.step__num {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.3));
}
.step h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.step p { color: var(--ink-2); font-size: 0.93rem; position: relative; z-index: 1; }

/* ============================================
   CONTACT
============================================ */
.contact { padding: 140px 0; position: relative; z-index: 2; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  max-width: 1340px; margin: 0 auto;
}
.contact__left { text-align: left; }
.contact__left .section-head { text-align: left; max-width: 100%; margin: 0; }
.contact__left .section-title { text-align: left; }
.contact__left .section-sub { text-align: left; margin-left: 0; }

.contact__info {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 14px;
}
.contact__row {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  background: rgba(20, 30, 70, 0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(10px);
}
.contact__row:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
}
.contact__row svg { width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; }

.contact__form {
  padding: 40px;
  background: linear-gradient(180deg, rgba(30, 40, 100, 0.45), rgba(12, 16, 40, 0.6));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 30px 80px -20px rgba(59, 130, 255, 0.3);
  position: relative;
}
.contact__form::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), transparent 40%, transparent 60%, var(--purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}
.field input,
.field select,
.field textarea {
  padding: 14px 18px;
  background: rgba(3, 4, 15, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(3, 4, 15, 0.9);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15), 0 0 24px rgba(0, 229, 255, 0.2);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='3'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.field select option { background: #0a0d2e; color: var(--ink); }
.form__note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: 6px;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  position: relative;
  background: rgba(5, 6, 22, 0.6);
  backdrop-filter: blur(10px);
  z-index: 2;
}
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo {
  width: 60px; height: 60px; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.5));
}
.footer__name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 1.1rem;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  margin-top: 4px;
}
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a {
  color: var(--ink-2);
  font-size: 0.9rem;
  transition: color 0.2s, text-shadow 0.2s;
}
.footer__nav a:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ============================================
   REVEAL ANIMATIONS
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
  .nav.scrolled { padding: 10px 20px; }
  .hero { padding-top: 110px; padding-left: 24px; padding-right: 24px; }
  .hero__logoWrap { width: 170px; height: 170px; }
  .hero__stats { padding: 16px 24px; gap: 18px; }
  .hero__stats .div { display: none; }
  .hero__scroll { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .services, .pricing, .process, .contact { padding: 90px 0; }
  .section-head { margin-bottom: 56px; }
  .plan--featured { transform: scale(1); }
  .plan--featured:hover { transform: translateY(-6px); }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .fx__orb { filter: blur(80px); }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .nav { padding: 12px 16px; }
  .nav__name { display: none; }
  .nav__cta { padding: 8px 14px; font-size: 0.8rem; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .plan { padding: 32px 24px; }
  .plan__price .amount { font-size: 2.8rem; }
  .contact__form { padding: 28px 22px; }
}
