/* ============================================================
   DigiBundleZone — custom styles layered on top of Tailwind CDN
   3D tilt cards, glassmorphism, gradient blobs, scroll reveal
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(60rem 30rem at 10% -10%, rgba(122, 60, 255, 0.18), transparent 60%),
    radial-gradient(50rem 30rem at 100% 0%, rgba(217, 70, 239, 0.12), transparent 55%),
    #0b0f1a;
}

::selection {
  background: #8a5cff;
  color: #fff;
}

.font-display {
  letter-spacing: -0.02em;
}

/* ---------------- 3D tilt (perspective card / hero mockup) ---------------- */
.tilt-wrap {
  perspective: 1200px;
}

.tilt-el {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.tilt-el .tilt-layer {
  transform: translateZ(30px);
}

/* ---------------- Glass panels ---------------- */
.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---------------- Gradient text ---------------- */
.text-gradient {
  background: linear-gradient(90deg, #a68cff 0%, #f0abfc 50%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Blob glow ---------------- */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* ---------------- Product card hover lift ---------------- */
.card-3d {
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.card-3d:hover {
  box-shadow: 0 30px 60px -20px rgba(122, 60, 255, 0.35);
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .4s; }

/* ---------------- Marquee (platform / persona strip) ---------------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ---------------- Rich text block (page builder) ---------------- */
.prose-block h1, .prose-block h2, .prose-block h3 {
  font-weight: 700;
  color: #fff;
  margin: 1.25em 0 0.5em;
}
.prose-block h1 { font-size: 1.4em; }
.prose-block h2 { font-size: 1.25em; }
.prose-block h3 { font-size: 1.1em; }
.prose-block p { margin: 0.75em 0; }
.prose-block ul, .prose-block ol { margin: 0.75em 0; padding-left: 1.5em; }
.prose-block ul { list-style: disc; }
.prose-block ol { list-style: decimal; }
.prose-block li { margin: 0.35em 0; }
.prose-block a { color: #a68cff; text-decoration: underline; }
.prose-block strong { color: #e2e8f0; font-weight: 700; }
.prose-block blockquote { border-left: 3px solid #7a3cff; padding-left: 1em; color: #94a3b8; margin: 1em 0; }
.prose-block img { border-radius: 0.75rem; margin: 0.75em 0; max-width: 100%; }

/* ---------------- Accordion (FAQ) ---------------- */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.accordion-item.open .accordion-panel {
  max-height: 400px;
}
.accordion-item .chevron {
  transition: transform .3s ease;
}
.accordion-item.open .chevron {
  transform: rotate(180deg);
}

/* ---------------- Scrollbar ---------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0f1a; }
::-webkit-scrollbar-thumb { background: #2d2450; border-radius: 8px; }

/* ---------------- Badge pulse (urgency) ---------------- */
.pulse-dot {
  position: relative;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: currentColor;
  opacity: .5;
  animation: pulse-ring 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: .5; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ---------------- Utility: line clamp ---------------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
