/* ═══════════════════════════════════════════════════════════
   premium.css — Cinematic visual layer · cryptotradesignals.ai
   Layered on top of the existing stylesheet; no overrides to
   functionality, SEO structure, or responsive breakpoints.
   ═══════════════════════════════════════════════════════════ */

/* ── AMBIENT AURORA ORBS ────────────────────────────────────
   Fixed behind all content (z-index 1). Three overlapping
   radial glows that drift slowly on alternate keyframes.
   ──────────────────────────────────────────────────────────── */
#px-aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.px-aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: px-drift var(--dur, 28s) ease-in-out infinite alternate;
  will-change: transform;
}
/* Gold/amber orb — top-right corner */
.px-aurora-orb:nth-child(1) {
  width:  clamp(280px, 48vw, 680px);
  height: clamp(280px, 48vw, 680px);
  background: radial-gradient(circle, rgba(217,104,70,.2) 0%, transparent 70%);
  top: -18%;
  right: -8%;
  --dur: 22s;
  opacity: .75;
}
/* Purple orb — left-center */
.px-aurora-orb:nth-child(2) {
  width:  clamp(180px, 32vw, 480px);
  height: clamp(180px, 32vw, 480px);
  background: radial-gradient(circle, rgba(124,58,237,.13) 0%, transparent 70%);
  bottom: 28%;
  left: -6%;
  --dur: 33s;
  animation-delay: -11s;
  opacity: .6;
}
/* Green orb — right-center */
.px-aurora-orb:nth-child(3) {
  width:  clamp(130px, 22vw, 320px);
  height: clamp(130px, 22vw, 320px);
  background: radial-gradient(circle, rgba(16,185,129,.11) 0%, transparent 70%);
  top: 42%;
  right: 6%;
  --dur: 26s;
  animation-delay: -7s;
  opacity: .5;
}
@keyframes px-drift {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(22px, -34px) scale(1.06); }
  65%  { transform: translate(-16px, 18px) scale(.96); }
  100% { transform: translate(12px, -8px)  scale(1.03); }
}

/* ── PERSPECTIVE GRID OVERLAY ───────────────────────────────
   Subtle dot-grid fading out toward edges using a radial mask.
   ──────────────────────────────────────────────────────────── */
#px-grid {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(205,203,214,.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205,203,214,.023) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse 78% 62% at 50% 33%,
    rgba(0,0,0,.75),
    transparent
  );
  -webkit-mask-image: radial-gradient(
    ellipse 78% 62% at 50% 33%,
    rgba(0,0,0,.75),
    transparent
  );
}

/* ── MOUSE SPOTLIGHT ────────────────────────────────────────
   500px radial glow that follows the cursor with CSS position.
   ──────────────────────────────────────────────────────────── */
#px-spotlight {
  position: fixed;
  width: 680px;
  height: 680px;
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(217,104,70,.04) 0%,
    transparent 65%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .65s ease;
  will-change: left, top;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────
   Gold dot + trailing ring. Hidden until first mousemove.
   ──────────────────────────────────────────────────────────── */
#px-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform .14s ease, background .2s ease;
  will-change: left, top;
  opacity: 0;
}
#px-cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(217,104,70,.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .22s ease, height .22s ease, border-color .22s ease;
  will-change: left, top;
  opacity: 0;
}
body.px-cursor-active #px-cursor-dot,
body.px-cursor-active #px-cursor-ring { opacity: 1; }
body.px-cursor-active,
body.px-cursor-active a,
body.px-cursor-active button,
body.px-cursor-active [role="button"] { cursor: none; }
/* Hover state — dot inflates, ring expands */
#px-cursor-dot.cursor-hover  {
  transform: translate(-50%, -50%) scale(2.8);
  background: rgba(255,255,255,.9);
}
#px-cursor-ring.cursor-hover {
  width: 54px;
  height: 54px;
  border-color: rgba(217,104,70,.85);
}

/* ── HERO CANVAS LAYER ──────────────────────────────────────
   Canvas sits absolute behind the hero content (z-index 1).
   hero-inner gets z-index 2 to float above the canvas.
   ──────────────────────────────────────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* Lift content above canvas */
.hero-inner {
  position: relative;
  z-index: 2;
}

/* ── SIGNAL CARD — GLASSMORPHISM + FLOAT ────────────────────
   Replaces the solid background with frosted glass and adds
   a gentle vertical float animation.
   ──────────────────────────────────────────────────────────── */
.signal-card {
  background: rgba(22,18,16,.78) !important;
  backdrop-filter: blur(24px) saturate(1.45) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.45) !important;
  border-color: rgba(205,203,214,.22) !important;
  box-shadow:
    0 0 0 1px rgba(217,104,70,.07),
    0 8px 40px rgba(0,0,0,.45),
    0 0 80px rgba(217,104,70,.04) !important;
  animation: px-float 7.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes px-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-15px); }
}

/* ── PROOF CARDS ────────────────────────────────────────────*/
.proof-card {
  background: rgba(22,18,16,.68) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-color: rgba(205,203,214,.1) !important;
  transition:
    transform .5s cubic-bezier(.23,1,.32,1),
    border-color .3s ease,
    box-shadow .5s ease !important;
  will-change: transform;
}
.proof-card:hover {
  border-color: rgba(217,104,70,.2) !important;
  box-shadow:
    0 28px 70px rgba(0,0,0,.48),
    0 0 0 1px rgba(217,104,70,.07) !important;
}

/* ── FEATURE CARDS ──────────────────────────────────────────*/
.feat-card {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition:
    background .25s ease,
    transform .48s cubic-bezier(.23,1,.32,1),
    box-shadow .48s ease !important;
  will-change: transform;
}
.feat-card:hover {
  box-shadow: 0 22px 52px rgba(0,0,0,.38) !important;
}

/* ── PRICING CARDS ──────────────────────────────────────────*/
.pc {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition:
    transform .48s cubic-bezier(.23,1,.32,1),
    border-color .3s ease,
    box-shadow .48s ease !important;
}
.pc:hover {
  box-shadow: 0 36px 84px rgba(0,0,0,.52) !important;
}
.pc.pro:hover {
  box-shadow:
    0 36px 84px rgba(217,104,70,.09),
    0 0 0 1px rgba(217,104,70,.17) !important;
}

/* ── ENTRY / EXIT CARD ──────────────────────────────────────*/
.entry-card {
  background: rgba(22,18,16,.72) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-color: rgba(205,203,214,.2) !important;
  box-shadow: 0 10px 44px rgba(0,0,0,.38) !important;
}

/* ── HOW-STEP + TRACK-RECORD CARDS ─────────────────────────*/
.how-step {
  transition: background .25s ease, transform .44s cubic-bezier(.23,1,.32,1) !important;
  will-change: transform;
}
.how-step:hover { transform: translateY(-5px) !important; }

.tk {
  transition: background .25s ease, transform .4s cubic-bezier(.23,1,.32,1) !important;
  will-change: transform;
}
.tk:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.28) !important;
}

/* ── LEGAL CARD GLASS ───────────────────────────────────────*/
.legal-card {
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* ── SCROLL REVEAL — SMOOTHER CURVES ───────────────────────
   Overrides the existing .rv transition to use a more cinematic
   easing while keeping the same start/end states.
   ──────────────────────────────────────────────────────────── */
.rv, .rv-l, .rv-r {
  transition:
    opacity  .9s cubic-bezier(.23,1,.32,1),
    transform .9s cubic-bezier(.23,1,.32,1) !important;
}
.rv         { transform: translateY(30px); opacity: .3; }
.rv-l       { transform: translateX(-30px); opacity: .3; }
.rv-r       { transform: translateX(30px); opacity: .3; }
.rv.in, .rv-l.in, .rv-r.in {
  transform: none !important;
  opacity: 1 !important;
}

/* ── CTA BUTTON ENHANCEMENTS ────────────────────────────────
   Shimmer overlay on hover + gold glow shadow.
   ──────────────────────────────────────────────────────────── */
.btn-primary,
.pc-btn-gold {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(217,104,70,.22);
  transition: all .28s cubic-bezier(.23,1,.32,1) !important;
}
.btn-primary::after,
.pc-btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.18) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.btn-primary:hover::after,
.pc-btn-gold:hover::after { opacity: 1; }
.btn-primary:hover,
.pc-btn-gold:hover {
  box-shadow: 0 10px 44px rgba(217,104,70,.38) !important;
}

/* ── NAV ─────────────────────────────────────────────────── */
#nav {
  backdrop-filter: blur(28px) saturate(1.9) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.9) !important;
}

/* ── FOOTER GRID FIX ────────────────────────────────────────
   The footer now has 4 children (f-brand + 3 f-col).
   Update the grid to accommodate the extra column.
   ──────────────────────────────────────────────────────────── */
.footer-inner {
  grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
}
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr !important; }
}

/* ── NOISE TEXTURE ──────────────────────────────────────────
   Very subtle grain overlay using an inline SVG data URI.
   body::after already exists (scanline), so we use ::before.
   ──────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ── REDUCED MOTION ─────────────────────────────────────────
   Respects the OS-level preference. All animations and
   heavy transitions are stripped; the page stays fully usable.
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #px-aurora, .px-aurora-orb { animation: none !important; }
  .signal-card { animation: none !important; transform: none !important; }
  .rv, .rv-l, .rv-r {
    transform: none !important;
    opacity: .4;
    transition: opacity .3s ease !important;
  }
  .rv.in, .rv-l.in, .rv-r.in { opacity: 1; }
  #px-cursor-dot, #px-cursor-ring { display: none !important; }
  .proof-card:hover,
  .feat-card:hover,
  .pc:hover,
  .how-step:hover,
  .tk:hover { transform: none !important; }
  #px-grid { display: none; }
  .btn-primary, .pc-btn-gold { box-shadow: none; }
}

/* ── MOBILE ─────────────────────────────────────────────────
   Disable heavy effects on small / touch screens.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #px-aurora { opacity: .45; }
  #px-grid, #px-spotlight { display: none; }
  #hero-canvas { display: none; }
  .signal-card { animation: none !important; }
  .proof-card, .feat-card, .pc { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
