/* ══════════════════════════════════════════════════════
   NERODYN — SCROLL REVEALS + MATH BACKGROUND EFFECTS
   ══════════════════════════════════════════════════════ */

/* ── INITIAL HIDDEN STATES ── */
.reveal-up   { opacity:0; transform:translateY(20px); }
.reveal-left { opacity:0; transform:translateX(-20px); }
.reveal-right{ opacity:0; transform:translateX(20px); }
.reveal-scale{ opacity:0; transform:scale(.96); }
.reveal-fade,.anim-up{ opacity:0; }

/* ── SHARED TRANSITION ── */
.reveal-up,.reveal-left,.reveal-right,.reveal-scale,.reveal-fade,.anim-up {
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
  will-change: transform,opacity;
}

/* ── VISIBLE STATE ── */
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-fade.is-visible,
.anim-up.is-visible { opacity:1; transform:none; }


/* ════════════════════════════════════════════
   MATH GLYPH FLOAT (JS-generated via scroll-reveal.js)
   ════════════════════════════════════════════ */
@keyframes mathFloat {
  0%   { transform: translateY(0)         rotate(var(--rot,0deg)); }
  100% { transform: translateY(var(--dy,-20px)) rotate(calc(var(--rot,0deg) + 8deg)); }
}
.math-sym { animation: mathFloat var(--dur,18s) ease-in-out var(--del,0s) infinite alternate; will-change:transform; }

/* ════════════════════════════════════════════
   EFFECT 2 — ORBITAL ARCS
   Slow-rotating circles, pure CSS, GPU-composited
   ════════════════════════════════════════════ */
.orb-arc {
  position:absolute; border-radius:50%;
  border:1px solid rgba(124,58,237,.04);
  will-change:transform;
}
.arc-1 { width:600px; height:600px; top:-200px; right:-150px; animation:arcSpin 48s linear infinite; }
.arc-2 { width:380px; height:380px; bottom:-100px; left:-80px; animation:arcSpin 32s linear infinite reverse; }
.arc-3 { width:200px; height:200px; top:32%; left:6%;
         animation:arcSpin 22s linear infinite;
         border-style:dashed; border-color:rgba(124,58,237,.025); }
@keyframes arcSpin { from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }

/* ════════════════════════════════════════════
   EFFECT 3 — SIGNAL PULSE RINGS
   Expanding concentric rings from a fixed anchor
   ════════════════════════════════════════════ */
.sig-ring {
  position:absolute; border-radius:50%;
  border:1px solid rgba(124,58,237,.07);
  will-change:transform,opacity;
}
.ring-1 { width:48px; height:48px; right:16%; top:22%; animation:ringPulse 5.5s ease-out 0s    infinite; }
.ring-2 { width:48px; height:48px; right:16%; top:22%; animation:ringPulse 5.5s ease-out 1.83s infinite; }
.ring-3 { width:48px; height:48px; right:16%; top:22%; animation:ringPulse 5.5s ease-out 3.67s infinite; }
@keyframes ringPulse {
  0%   { transform:scale(1);   opacity:.55; }
  100% { transform:scale(5.5); opacity:0;   }
}

/* ════════════════════════════════════════════
   EFFECT 4 — TOPOGRAPHIC GRADIENT LINES
   Animated horizontal bands forming contour map effect
   ════════════════════════════════════════════ */
.topo-lines {
  position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 88px,
    rgba(124,58,237,.018) 88px,
    rgba(124,58,237,.018) 89px
  );
  animation: topoShift 28s ease-in-out infinite alternate;
  will-change: background-position;
}
@keyframes topoShift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 88px; }
}

/* ════════════════════════════════════════════
   EFFECT 5 — DATA NODE GRID
   Small pulsing dots in a scattered geometric pattern
   ════════════════════════════════════════════ */
.data-node {
  position:absolute; width:2px; height:2px; border-radius:50%;
  background:rgba(124,58,237,.18);
  animation:nodePulse var(--dur,4s) ease-in-out var(--del,0s) infinite;
  will-change:opacity,transform;
}
@keyframes nodePulse {
  0%,100% { opacity:.08; transform:scale(1); }
  50%     { opacity:.4;  transform:scale(1.8); }
}

/* ── MOBILE CUTOFFS ── */
@media (max-width:767px) {
  #mathDecor { display:none; }
  .topo-lines { display:none; }
  .math-sym   { font-size:7px !important; opacity:.5; }
}

/* ════════════════════════════════════════════
   ANIMATED GRADIENT TEXT
   background-position animation = GPU-composited, zero layout cost
   ════════════════════════════════════════════ */
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Upgrades the static gradient-text class site-wide */
.gradient-text {
  background:linear-gradient(135deg,#fff 0%,#c4b5fd 22%,#a78bfa 42%,#f0abfc 62%,#c4b5fd 80%,#fff 100%) !important;
  background-size:300% 300% !important;
  -webkit-background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
  background-clip:text !important;
  color:transparent !important;
  animation:gradientFlow 8s linear infinite;
  will-change:background-position;
  display:inline;
}
/* Standalone animated gradient class (for pages without output.css gradient-text) */
.text-flow {
  background:linear-gradient(135deg,#fff 0%,#c4b5fd 22%,#a78bfa 42%,#f0abfc 62%,#c4b5fd 80%,#fff 100%);
  background-size:300% 300%;
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  animation:gradientFlow 8s linear infinite;
  will-change:background-position;
  display:inline;
}
/* Inline keyword accent */
.kw        { color:#a78bfa; font-weight:600; display:inline; }
.kw-green  { color:#4ade80; font-weight:600; display:inline; }
.kw-neg    { color:rgba(248,113,113,.75); font-weight:600; display:inline; }
.kw-dim    { color:rgba(255,255,255,.75); font-weight:500; display:inline; }

/* Metric accent numbers */
.metric-violet { color:#a78bfa !important; }
.metric-green  { color:#4ade80 !important; }
.metric-red    { color:rgba(248,113,113,.75) !important; }

/* ════════════════════════════════════════════
   PREMIUM IMAGE FRAME
   ════════════════════════════════════════════ */
.img-frame {
  position:relative; border-radius:1.25rem; overflow:hidden; contain:paint;
  border:1px solid rgba(124,58,237,.14);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 24px 64px rgba(0,0,0,.55), 0 0 70px rgba(124,58,237,.07);
}
.img-frame::before {
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  background: linear-gradient(135deg, rgba(124,58,237,.07) 0%, transparent 55%, rgba(167,139,250,.04) 100%);
}
.img-frame::after {
  content:''; position:absolute; top:0; left:0; right:0; height:1px; z-index:3; pointer-events:none;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.55), transparent);
}
.frame-corner {
  position:absolute; width:18px; height:18px; z-index:4; pointer-events:none;
  border-color:rgba(124,58,237,.38);
}
.frame-tl { top:12px; left:12px; border-top:1px solid; border-left:1px solid; }
.frame-br { bottom:12px; right:12px; border-bottom:1px solid; border-right:1px solid; }
.frame-tr { top:12px; right:12px; border-top:1px solid; border-right:1px solid; }
.frame-bl { bottom:12px; left:12px; border-bottom:1px solid; border-left:1px solid; }
.frame-tag {
  position:absolute; bottom:14px; left:14px; z-index:4;
  font-family:'JetBrains Mono',monospace; font-size:.5rem; letter-spacing:.12em;
  color:rgba(255,255,255,.4); background:rgba(0,0,0,.65); backdrop-filter:blur(8px);
  padding:4px 10px; border-radius:4px; border:1px solid rgba(255,255,255,.07);
}
.frame-ref {
  position:absolute; top:14px; right:14px; z-index:4;
  font-family:'JetBrains Mono',monospace; font-size:.45rem; letter-spacing:.1em;
  color:rgba(124,58,237,.45);
}
@keyframes scanLine {
  0%   { transform:translateY(-100%); opacity:0; }
  8%   { opacity:.6; }
  92%  { opacity:.6; }
  100% { transform:translateY(100vh); opacity:0; }
}
.frame-scan {
  position:absolute; left:0; right:0; height:1px; z-index:5; pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(124,58,237,.35), transparent);
  animation:scanLine 9s ease-in-out 1.5s infinite;
  will-change:transform;
}

/* ════════════════════════════════════════════
   TESTIMONIAL CARDS
   ════════════════════════════════════════════ */
.testi-card {
  background:rgba(255,255,255,.019); border:1px solid rgba(255,255,255,.055);
  border-radius:1.25rem; padding:1.75rem 2rem; position:relative; overflow:hidden;
  transition:border-color .3s, transform .4s cubic-bezier(.25,.46,.45,.94); contain:paint;
}
.testi-card::before {
  content:'\201C'; position:absolute; top:-.5rem; left:1.25rem;
  font-size:5rem; line-height:1; font-family:Georgia,serif;
  color:rgba(124,58,237,.1); pointer-events:none; z-index:0; user-select:none;
}
.testi-card:hover { border-color:rgba(124,58,237,.13); transform:translateY(-3px); }
.testi-avatar {
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg,rgba(124,58,237,.25),rgba(167,139,250,.08));
  border:1px solid rgba(124,58,237,.22);
  display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono',monospace; font-size:.55rem; font-weight:700;
  color:rgba(167,139,250,.85);
}
.testi-stars { color:#a78bfa; letter-spacing:3px; font-size:.6rem; }

/* ════════════════════════════════════════════
   CTA GLOW PULSE (compositor-safe)
   opacity on pseudo-element = zero paint cost
   ════════════════════════════════════════════ */
.cta-glow { position:relative; isolation:isolate; display:inline-block; }
.cta-glow::before {
  content:''; position:absolute; inset:-18px; border-radius:1.75rem;
  background:radial-gradient(ellipse at center, rgba(124,58,237,.22), transparent 70%);
  filter:blur(7px); opacity:0;
  animation:ctaOpacityPulse 3.2s ease infinite;
  will-change:opacity; z-index:-1; pointer-events:none;
}
@keyframes ctaOpacityPulse { 0%,100%{opacity:0} 50%{opacity:1} }

/* ════════════════════════════════════════════
   ACCENT LINE DIVIDER
   ════════════════════════════════════════════ */
.accent-line {
  height:1px; width:100%;
  background:linear-gradient(90deg, transparent, rgba(124,58,237,.28), rgba(167,139,250,.45), rgba(124,58,237,.28), transparent);
}
.accent-line-sm {
  height:1px; width:80px;
  background:linear-gradient(90deg, rgba(124,58,237,.5), rgba(167,139,250,.8), rgba(124,58,237,.5));
  display:inline-block;
}

/* ════════════════════════════════════════════
   TECH LOGO TRUST STRIP
   ════════════════════════════════════════════ */
.tech-logo {
  display:inline-flex; align-items:center; gap:7px;
  font-family:'JetBrains Mono',monospace; font-size:.5rem; letter-spacing:.14em;
  color:rgba(255,255,255,.2); transition:color .3s;
}
.tech-logo:hover { color:rgba(255,255,255,.45); }
.tech-logo svg { opacity:.22; transition:opacity .3s; }
.tech-logo:hover svg { opacity:.45; }

/* ════════════════════════════════════════════
   STAT HIGHLIGHT (large impactful numbers)
   ════════════════════════════════════════════ */
.stat-highlight {
  font-size:clamp(3rem,6vw,5.5rem); font-weight:900; line-height:1; letter-spacing:-.04em;
  background:linear-gradient(135deg,#fff 0%,rgba(167,139,250,.85) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* ════════════════════════════════════════════
   SECTION INTRO BADGE
   ════════════════════════════════════════════ */
.section-eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono',monospace; font-size:.6rem; letter-spacing:.18em;
  color:rgba(167,139,250,.8); background:rgba(124,58,237,.08);
  border:1px solid rgba(124,58,237,.14); border-radius:999px; padding:5px 14px;
}
.section-eyebrow::before {
  content:''; width:6px; height:6px; border-radius:50%; background:#a78bfa;
  animation:pulse 2s ease infinite;
}

/* ════════════════════════════════════════════
   SHIMMER PROGRESS BAR (trust indicators)
   ════════════════════════════════════════════ */
@keyframes barShimmer {
  0%   { transform:translateX(-100%); }
  100% { transform:translateX(250%); }
}
.shimmer-bar {
  position:relative; overflow:hidden; border-radius:999px;
  background:rgba(124,58,237,.1);
}
.shimmer-bar::after {
  content:''; position:absolute; inset:0; border-radius:inherit;
  background:linear-gradient(90deg, transparent 0%, rgba(167,139,250,.35) 50%, transparent 100%);
  animation:barShimmer 2.5s ease-in-out infinite;
  will-change:transform;
}
