/* ─────────────────────────────────────────────────────
   v12 — High-end 3D / motion effects
   Mouse parallax, scroll-triggered, glow, depth layers
   ───────────────────────────────────────────────────── */

/* ─── PRODUCT FEATURE — REDESIGNED ───
   Was: dark bg with dark product (clash)
   Now: gradient with sky-glow halo behind product
*/
.product-feature {
  background: 
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(91,168,232,0.22) 0%, rgba(91,168,232,0.08) 35%, transparent 70%),
    linear-gradient(180deg, #061629 0%, #0F2A4A 50%, #061629 100%) !important;
  position: relative;
}

/* Ambient grid backdrop */
.product-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(91,168,232,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,168,232,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Glowing halo behind product */
.product-stage {
  position: relative;
  z-index: 2;
  perspective: 1200px;
}

.product-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(400px, 60vw, 700px);
  height: clamp(400px, 60vw, 700px);
  background: radial-gradient(circle, 
    rgba(91,168,232,0.45) 0%, 
    rgba(91,168,232,0.20) 25%, 
    rgba(91,168,232,0.08) 45%, 
    transparent 70%);
  filter: blur(50px);
  z-index: -1;
  animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Floor reflection */
.product-stage::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(91,168,232,0.40) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  opacity: 0.7;
}

/* Product image — mouse parallax + 3D transform */
.product-img {
  transition: opacity 0.7s, transform 0.4s cubic-bezier(.22,.84,.32,1) !important;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45)) drop-shadow(0 0 80px rgba(91,168,232,0.25));
  transform-style: preserve-3d;
  will-change: transform;
}

.product-img.active {
  animation: floatProduct 6s ease-in-out infinite;
}

@keyframes floatProduct {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.005); }
}

/* When mouse parallax actief — neutralize float, JS bepaalt transform */
.product-stage.parallax-active .product-img.active {
  animation: none;
}

/* ─── SCROLL-TRIGGERED 3D ─── */
.scroll-3d {
  opacity: 0;
  transform: translateY(60px) scale(0.95) rotateX(8deg);
  transform-origin: center bottom;
  transition: opacity 1s cubic-bezier(.16,.84,.32,1), transform 1.2s cubic-bezier(.16,.84,.32,1);
  perspective: 1200px;
}
.scroll-3d.in {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
}

/* App cards subtle 3D lift on scroll-in */
.app-card.reveal {
  transform: translateY(40px) scale(0.96) rotateX(6deg);
  transition: opacity 0.9s cubic-bezier(.16,.84,.32,1), transform 1s cubic-bezier(.16,.84,.32,1);
  transform-origin: center bottom;
}
.app-card.reveal.in {
  transform: translateY(0) scale(1) rotateX(0deg);
}

/* Tier cards — staggered 3D entrance */
.tier-card.reveal {
  transform: translateY(30px) scale(0.92);
  transition: opacity 0.8s cubic-bezier(.22,.84,.32,1), transform 0.8s cubic-bezier(.22,.84,.32,1), border-color 0.3s, box-shadow 0.3s;
}
.tier-card.reveal.in {
  transform: translateY(0) scale(1);
}

/* Why cards — slide & fade with depth */
.why-card.reveal {
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(.22,.84,.32,1), transform 0.9s cubic-bezier(.22,.84,.32,1), background 0.3s;
}
.why-card.reveal.in {
  transform: translateY(0) scale(1);
}

/* Hero content slow zoom-in + slide */
.hero-content {
  animation: heroIn 1.4s cubic-bezier(.16,.84,.32,1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── HERO PRODUCT FLOATER (NEW) ───
   Klein product render dat zwevend in hoek staat
*/
.hero-product-float {
  position: absolute;
  right: -2%;
  bottom: 8%;
  width: clamp(260px, 32vw, 520px);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55)) drop-shadow(0 0 60px rgba(91,168,232,0.35));
  animation: heroProductFloat 7s ease-in-out infinite;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  animation: heroProductIn 1.6s 0.4s cubic-bezier(.16,.84,.32,1) forwards, heroProductFloat 7s 2s ease-in-out infinite;
}

@keyframes heroProductIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroProductFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* Hero product glow */
.hero-product-float::before {
  content: "";
  position: absolute;
  inset: -20% -10% -10% -10%;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(91,168,232,0.30) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero-product-float { display: none; }
}

/* ─── PARALLAX BACKGROUND LAYERS ─── */
.parallax-layer {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

/* Floating decorative orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-sky { background: rgba(91,168,232,0.25); }
.orb-deep { background: rgba(15,42,74,0.40); }

/* ─── SHIMMER on hover for tier cards ─── */
.tier-card {
  position: relative;
  overflow: hidden;
}
.tier-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(91,168,232,0.18) 50%, transparent 100%);
  transition: left 0.7s cubic-bezier(.16,.84,.32,1);
  pointer-events: none;
}
.tier-card:hover::after {
  left: 150%;
}

/* App cards: subtle tilt on hover */
.app-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(.16,.84,.32,1), box-shadow 0.5s !important;
  will-change: transform;
}

/* ─── BIG NUMBER RIBBONS ─── */
.spec-num {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── REDUCE MOTION fallback ─── */
@media (prefers-reduced-motion: reduce) {
  .product-img.active,
  .product-stage::before,
  .hero-product-float,
  .orb { animation: none !important; }
  .scroll-3d, .reveal { transform: none !important; transition-duration: 0.4s !important; }
}

/* ─── IN3 BADGE — visible on landing pages ─── */
.in3-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(91,168,232,0.15);
  border: 1px solid rgba(91,168,232,0.4);
  border-radius: 999px;
  color: var(--sky);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.in3-badge svg { width: 16px; height: 16px; }

/* ─── SECTION TRANSITIONS — smooth scroll ─── */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Apple-style sticky-progress on long pages */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--sky-soft) 100%);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(91,168,232,0.6);
}
