/* ============================================================
   PYXEON v2 — ENHANCEMENTS LAYER
   Loaded AFTER style.css. Pure additive polish.
   ============================================================ */

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   WAVE FIELD CANVAS — Three.js procedural terrain behind hero.
   Sits between aurora (dim color wash) and hero content.
   ============================================================ */
#hero #wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}
/* Existing particle canvas: push behind wave field, dim it */
#hero #hero-particles {
  z-index: 0;
  opacity: 0.4;
}
/* Horizon vignette on the hero — lets the wave fade into the void */
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(6,6,13,0.35) 0%, transparent 20%, transparent 70%, rgba(6,6,13,0.85) 100%),
    radial-gradient(ellipse at 50% 100%, transparent 40%, rgba(6,6,13,0.6) 100%);
}

/* ============================================================
   AURORA BACKGROUND — drifting gradient blobs behind hero
   ============================================================ */
.aurora-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
/* Aurora is now a color wash behind the wave field — dim it */
.aurora-blob { opacity: 0.38 !important; }
.aurora-blob.a4 { opacity: 0.2 !important; }
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora-blob.a1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -120px; left: -80px;
  animation: aurora-drift-a 22s ease-in-out infinite alternate;
}
.aurora-blob.a2 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 40%; right: -100px;
  animation: aurora-drift-b 28s ease-in-out infinite alternate;
}
.aurora-blob.a3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: -160px; left: 30%;
  animation: aurora-drift-c 26s ease-in-out infinite alternate;
}
.aurora-blob.a4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: 20%; left: 35%;
  opacity: 0.28;
  animation: aurora-drift-d 32s ease-in-out infinite alternate;
}
@keyframes aurora-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, 120px) scale(1.15); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}
@keyframes aurora-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-120px, 80px) scale(1.2); }
  100% { transform: translate(-60px, -80px) scale(1.05); }
}
@keyframes aurora-drift-c {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(100px, -80px) scale(1.1); }
  100% { transform: translate(-80px, -40px) scale(0.9); }
}
@keyframes aurora-drift-d {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 100px) scale(1.25); }
  100% { transform: translate(80px, -60px) scale(0.85); }
}

/* Push hero content above aurora, wave canvas, and vignette */
#hero .hero-left,
#hero .hero-right { position: relative; z-index: 3; }

/* Dim the existing orbs now that aurora is behind them */
#hero .hero-orb { opacity: 0.35; }

/* ============================================================
   GRAIN NOISE OVERLAY — film-grain feel
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ============================================================
   CUSTOM CURSOR — dot + lagging ring, grows on hover
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor { cursor: none; }
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor select,
  body.has-custom-cursor textarea,
  body.has-custom-cursor [role="button"] { cursor: none; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s;
  }
  .cursor-ring.hover {
    width: 58px; height: 58px;
    border-color: rgba(139,92,246,0.9);
    background: rgba(139,92,246,0.08);
  }
  .cursor-ring.press { transform: translate(-50%, -50%) scale(0.85); }
}

/* ============================================================
   SPOTLIGHT — radial gradient follows mouse on cards
   ============================================================ */
.p-card,
.feat-card,
.feat-hero,
.pr-card,
.tl-card,
.founder-card,
.test-card,
.about-value,
.ci,
.sp-stat {
  position: relative;
  isolation: isolate;
}
.p-card::before,
.feat-card::before,
.feat-hero::before,
.pr-card::before,
.tl-card::before,
.founder-card::before,
.test-card::before,
.about-value::before,
.ci::before,
.sp-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx, -200px) var(--my, -200px),
    rgba(139, 92, 246, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.p-card:hover::before,
.feat-card:hover::before,
.feat-hero:hover::before,
.pr-card:hover::before,
.tl-card:hover::before,
.founder-card:hover::before,
.test-card:hover::before,
.about-value:hover::before,
.ci:hover::before,
.sp-stat:hover::before { opacity: 1; }

/* Make sure content sits above the spotlight */
.p-card > *,
.feat-card > *,
.feat-hero > *,
.pr-card > *,
.tl-card > *,
.founder-card > *,
.test-card > *,
.about-value > *,
.ci > *,
.sp-stat > * { position: relative; z-index: 1; }

/* Pricing cards get gold spotlight on the featured one */
.pr-card.pr-featured::before {
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(59,130,246,0.22), transparent 45%);
}

/* ============================================================
   3D TILT — cards tilt toward cursor
   ============================================================ */
.pr-card,
.feat-card,
.p-card,
.founder-card {
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s;
}
.pr-card.is-tilting,
.feat-card.is-tilting,
.p-card.is-tilting,
.founder-card.is-tilting {
  transition: transform 0.08s linear, box-shadow 0.3s;
}

/* Reset tilt children so icons etc stay crisp */
.p-icon, .feat-num, .pr-price, .founder-img-wrap {
  transform: translateZ(30px);
}

/* ============================================================
   REVEAL ON SCROLL — directional + stagger
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1),
              transform 0.7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-40px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="blur"]  { transform: translateY(30px); filter: blur(8px); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ============================================================
   MAGNETIC BUTTONS — subtle pull toward cursor
   ============================================================ */
.btn-primary,
.btn-nav,
.pr-btn.pr-primary {
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1),
              box-shadow 0.25s, background 0.25s;
  will-change: transform;
}

/* Shimmer sweep on primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.8s ease;
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }

/* ============================================================
   HERO TITLE — word-by-word reveal
   ============================================================ */
#hero h1 { overflow: hidden; }
#hero h1 .reveal-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: hero-word-in 0.9s cubic-bezier(.22,.61,.36,1) forwards;
}
#hero h1 .reveal-word:nth-child(1) { animation-delay: 0.08s; }
#hero h1 .reveal-word:nth-child(2) { animation-delay: 0.18s; }
#hero h1 .reveal-word:nth-child(3) { animation-delay: 0.28s; }
#hero h1 .reveal-word:nth-child(4) { animation-delay: 0.38s; }
#hero h1 .reveal-word:nth-child(5) { animation-delay: 0.48s; }
#hero h1 .reveal-word:nth-child(6) { animation-delay: 0.58s; }
#hero h1 .reveal-word:nth-child(7) { animation-delay: 0.68s; }
#hero h1 .reveal-word:nth-child(8) { animation-delay: 0.78s; }
#hero h1 .reveal-word:nth-child(9) { animation-delay: 0.88s; }

@keyframes hero-word-in {
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   TERMINAL — glow + typing caret
   ============================================================ */
.terminal-card {
  box-shadow:
    0 20px 80px -20px rgba(139,92,246,0.35),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: box-shadow 0.4s;
}
.terminal-card:hover {
  box-shadow:
    0 30px 100px -20px rgba(139,92,246,0.55),
    0 0 0 1px rgba(139,92,246,0.25),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.tc-step.is-typing .tc-text::after {
  content: "▌";
  color: var(--purple);
  animation: caret-blink 0.9s steps(2) infinite;
  margin-left: 2px;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ============================================================
   COUNTERS — crisp digits during animation
   ============================================================ */
[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   PRICING CARD — featured glow pulse
   ============================================================ */
.pr-card.pr-featured {
  position: relative;
}
.pr-card.pr-featured::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad);
  z-index: -1;
  opacity: 0.35;
  filter: blur(18px);
  animation: featured-pulse 4s ease-in-out infinite;
}
@keyframes featured-pulse {
  0%, 100% { opacity: 0.28; }
  50%      { opacity: 0.5; }
}

/* ============================================================
   SECTION TRANSITIONS — subtle divider glow
   ============================================================ */
.section + .section::before {
  content: "";
  display: block;
  height: 1px;
  max-width: 400px;
  margin: 0 auto;
  background: linear-gradient(90deg,
    transparent,
    rgba(139,92,246,0.35),
    rgba(59,130,246,0.35),
    transparent);
  opacity: 0.6;
}

/* ============================================================
   SCROLL PROGRESS — thin gradient bar at top
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad);
  z-index: 9999;
  box-shadow: 0 0 10px rgba(139,92,246,0.6);
  transition: width 0.1s linear;
}

/* ============================================================
   NAVBAR — frosted glass on scroll
   ============================================================ */
#navbar.scrolled {
  background: rgba(12, 12, 26, 0.65) !important;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   MARQUEE — slight fade + hover pause
   ============================================================ */
.marquee-strip:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   LINK HOVER — underline draw
   ============================================================ */
.footer-nav a,
.footer-social a {
  position: relative;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--grad);
  transition: width 0.3s ease;
}
.footer-nav a:hover::after { width: 100%; }

/* ============================================================
   SECTION ACCENT COLOR — shifts as user scrolls
   CSS custom property set by JS per visible section
   ============================================================ */
:root {
  --accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-grad: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
}
body {
  transition: --accent 0.8s ease;
}

/* ============================================================
   MARQUEE — dual-row, skewed, better fade
   ============================================================ */
.marquee-strip {
  position: relative;
  padding: 18px 0 !important;
}
.marquee-strip .marquee-track-rev {
  display: flex;
  white-space: nowrap;
  gap: 20px;
  animation: marquee-reverse 48s linear infinite;
  font-size: 13px;
  color: var(--text-3);
  opacity: 0.55;
  padding: 6px 0;
}
.marquee-strip .marquee-track-rev span { display: inline-block; }
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ============================================================
   STAT RINGS — circular progress around social-proof stats
   ============================================================ */
.sp-grid {
  position: relative;
}
.sp-stat {
  position: relative;
  padding: 48px 24px !important;
}
.sp-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 180px; height: 180px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.sp-stat.is-in .sp-ring { opacity: 1; }
.sp-ring svg { width: 100%; height: 100%; overflow: visible; }
.sp-ring .ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 1.5;
}
.sp-ring .ring-fg {
  fill: none;
  stroke: url(#sp-ring-grad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.8s cubic-bezier(.22,.61,.36,1);
  filter: drop-shadow(0 0 6px rgba(139,92,246,0.5));
}
.sp-stat.is-in .ring-fg { stroke-dashoffset: var(--ring-offset, 20); }

/* ============================================================
   PLATFORM CARDS — per-card ambient backgrounds
   ============================================================ */
.p-card { overflow: hidden; }
.p-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
  transition: opacity 0.4s;
}
.p-card:hover::after { opacity: 0.55; }

/* Card 1 — orbiting dots (purple) */
.platform-grid .p-card:nth-child(1)::after {
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(139,92,246,0.8), transparent 50%),
    radial-gradient(2px 2px at 80% 20%, rgba(139,92,246,0.6), transparent 50%),
    radial-gradient(2px 2px at 30% 80%, rgba(167,139,250,0.7), transparent 50%),
    radial-gradient(1px 1px at 70% 70%, rgba(139,92,246,0.9), transparent 50%),
    radial-gradient(1px 1px at 50% 40%, rgba(139,92,246,0.5), transparent 50%);
  animation: orbit-drift 18s ease-in-out infinite alternate;
}

/* Card 2 — horizontal scanlines (blue) */
.platform-grid .p-card:nth-child(2)::after {
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 8px,
    rgba(59,130,246,0.35) 9px,
    transparent 10px
  );
  animation: scan-y 10s linear infinite;
}

/* Card 3 — concentric ripples (green) */
.platform-grid .p-card:nth-child(3)::after {
  background:
    radial-gradient(circle at 80% 80%, rgba(16,185,129,0.5) 0 1px, transparent 2px 999px),
    radial-gradient(circle at 80% 80%, transparent 0 20px, rgba(16,185,129,0.25) 20px 21px, transparent 22px 999px),
    radial-gradient(circle at 80% 80%, transparent 0 40px, rgba(16,185,129,0.18) 40px 41px, transparent 42px 999px),
    radial-gradient(circle at 80% 80%, transparent 0 60px, rgba(16,185,129,0.12) 60px 61px, transparent 62px 999px);
  animation: ripple-pulse 4s ease-in-out infinite;
}

@keyframes orbit-drift {
  0%   { transform: translate(0, 0) rotate(0); }
  100% { transform: translate(-10px, 8px) rotate(8deg); }
}
@keyframes scan-y {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100px; }
}
@keyframes ripple-pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(1.08); }
}

/* ============================================================
   TIMELINE — scroll-linked progress line + signal pulse
   ============================================================ */
.timeline { position: relative; }
/* tl-line remains the gray backdrop — give it explicit width so ::after fills it */
.timeline .tl-line {
  width: 2px;
  background: rgba(255,255,255,0.08) !important;
  overflow: visible !important;
}
/* Gradient progress fill inside tl-line (top-aligned, grows with scroll) */
.timeline .tl-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--tl-progress, 0%);
  background: linear-gradient(180deg, #8b5cf6, #3b82f6, #06b6d4);
  box-shadow: 0 0 14px rgba(139,92,246,0.7);
  transition: height 0.12s linear;
  pointer-events: none;
  border-radius: 2px;
}
/* Signal pulse orb — lives inside tl-line, follows scroll */
.timeline .tl-line .tl-pulse {
  position: absolute;
  left: 50%;
  top: var(--tl-pulse-y, 0px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(139,92,246,0.28),
    0 0 28px rgba(139,92,246,0.95);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.timeline.is-active .tl-line .tl-pulse { opacity: 1; }

/* Step dots light up when pulse passes */
.tl-step.tl-lit .tl-dot {
  background: #fff !important;
  box-shadow: 0 0 20px rgba(139,92,246,0.8), 0 0 0 4px rgba(139,92,246,0.3) !important;
  transition: all 0.4s;
}
.tl-step.tl-lit .tl-num {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ============================================================
   FEATURES — bento variations + ambient backgrounds
   ============================================================ */
.feat-grid .feat-card {
  overflow: hidden;
  position: relative;
}
/* Bento — vary sizes subtly */
.feat-grid .feat-card:nth-child(1) { grid-row: span 1; }
.feat-grid .feat-card:nth-child(2) { transform-origin: center; }

.feat-grid .feat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
  transition: opacity 0.4s;
}
.feat-grid .feat-card:hover::after { opacity: 0.5; }

/* Card 1 — flowing diagonal lines */
.feat-grid .feat-card:nth-child(1)::after {
  background: repeating-linear-gradient(
    135deg,
    transparent 0 40px,
    rgba(139,92,246,0.35) 40px 41px,
    transparent 41px 80px
  );
  animation: scan-diag 12s linear infinite;
}
/* Card 2 — dot grid that drifts */
.feat-grid .feat-card:nth-child(2)::after {
  background-image: radial-gradient(circle, rgba(59,130,246,0.6) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: drift-bg 20s linear infinite;
}
/* Card 3 — soft spotlight pulse */
.feat-grid .feat-card:nth-child(3)::after {
  background: radial-gradient(circle at 70% 40%, rgba(6,182,212,0.35), transparent 60%);
  animation: card3-pulse 5s ease-in-out infinite;
}

@keyframes scan-diag {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}
@keyframes drift-bg {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
@keyframes card3-pulse {
  0%, 100% { opacity: 0.22; }
  50%      { opacity: 0.45; }
}

/* feat-hero: typing-style code bar gets a subtle sweep */
.feat-hero .feat-code {
  position: relative;
  overflow: hidden;
}
.feat-hero .feat-code::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(139,92,246,0.08) 50%, transparent 100%);
  animation: code-sweep 6s linear infinite;
  pointer-events: none;
}
@keyframes code-sweep {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   FOUNDER CARDS — gradient ring + breathing photo
   ============================================================ */
.founder-img-wrap {
  position: relative !important;
  overflow: visible !important;
}
.founder-img-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #8b5cf6,
    #3b82f6,
    #06b6d4,
    #10b981,
    #8b5cf6
  );
  z-index: 0;
  opacity: 0;
  filter: blur(2px);
  animation: ring-spin 8s linear infinite;
  transition: opacity 0.5s;
}
.founder-card:hover .founder-img-wrap::before { opacity: 0.9; }
.founder-img-wrap img {
  position: relative;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.founder-card:hover .founder-img-wrap img {
  transform: scale(1.04);
}
@keyframes ring-spin {
  0%   { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

/* ============================================================
   PRICING — savings pill, feature bg grid, price transition
   ============================================================ */
#pricing {
  position: relative;
}
#pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 75%);
}

.pr-amt {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), opacity 0.35s;
}
.pr-amt.is-swapping {
  transform: translateY(-14px) scale(0.96);
  opacity: 0;
}

.pr-list li {
  transition: transform 0.3s, color 0.3s;
}
.pr-card:hover .pr-list li {
  transform: translateX(3px);
}

/* ============================================================
   TESTIMONIAL — quote scale + big quote mark
   ============================================================ */
.test-card {
  position: relative;
  overflow: hidden;
}
.test-card::before {
  content: """;
  position: absolute;
  top: -40px; right: 20px;
  font-size: 300px;
  font-family: Georgia, serif;
  color: rgba(139,92,246,0.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.test-quote-icon {
  transition: transform 0.4s, color 0.4s;
}
.test-card:hover .test-quote-icon {
  transform: scale(1.15) rotate(-5deg);
  color: #a78bfa;
}

/* ============================================================
   NEWSLETTER — flowing gradient background
   ============================================================ */
.newsletter-section {
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(139,92,246,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(6,182,212,0.15), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(59,130,246,0.12), transparent 60%);
  animation: newsletter-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.newsletter-section .container { position: relative; z-index: 1; }
@keyframes newsletter-drift {
  0%   { transform: translate(-2%, -2%) scale(1); }
  100% { transform: translate(2%, 2%) scale(1.05); }
}

/* ============================================================
   FLOATING SCROLL-TO-TOP ORB (with progress ring)
   ============================================================ */
.scroll-orb {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(12, 12, 26, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139,92,246,0.35);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 10px 40px rgba(139,92,246,0.25);
}
.scroll-orb.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.scroll-orb:hover {
  background: rgba(139,92,246,0.2);
}
.scroll-orb svg.orb-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.scroll-orb .orb-ring circle {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.scroll-orb .orb-ring .bg { stroke: rgba(255,255,255,0.08); }
.scroll-orb .orb-ring .fg {
  stroke: url(#orb-grad);
  stroke-dasharray: 145;
  stroke-dashoffset: calc(145 - (145 * var(--orb-progress, 0) / 100));
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 4px rgba(139,92,246,0.7));
}
.scroll-orb i {
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTION COMET — traveling light on dividers
   ============================================================ */
.section + .section::before {
  height: 2px !important;
  max-width: 500px !important;
  background: rgba(255,255,255,0.04) !important;
  position: relative;
  overflow: visible;
}
.section-divider-comet {
  position: relative;
  height: 2px;
  max-width: 500px;
  margin: 0 auto;
  overflow: visible;
}
.section-divider-comet::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 80px; height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4, transparent);
  filter: blur(0.5px);
  animation: comet-travel 7s ease-in-out infinite;
}
@keyframes comet-travel {
  0%, 100% { left: 0; opacity: 0; }
  10%      { opacity: 1; }
  90%      { opacity: 1; }
  50%      { left: calc(100% - 80px); }
}

/* ============================================================
   H2 GRADIENT TEXT — subtle animated shift
   ============================================================ */
.g-text {
  background-size: 200% 200% !important;
  animation: g-text-shift 10s ease-in-out infinite alternate;
}
@keyframes g-text-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ============================================================
   MOBILE — disable heavy effects for perf
   ============================================================ */
@media (max-width: 768px) {
  .aurora-blob { opacity: 0.35; filter: blur(70px); }
  .grain-overlay { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body.has-custom-cursor { cursor: auto; }
}
