:root {
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* Magic Card Effect (User Requested + Brand Adapted) */
.magic-card {
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.magic-card::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 2.2rem;
  /* Matches image radius approx */
  background: linear-gradient(-45deg, #6366f1 0%, #3b82f6 100%);
  z-index: -10;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magic-card::after {
  content: "";
  z-index: -20;
  position: absolute;
  inset: -6px;
  background: linear-gradient(-45deg, #6366f1 0%, #3b82f6 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
  transition: all 0.6s;
}

.magic-card:hover::after {
  filter: blur(40px);
  opacity: 0.8;
}

.magic-card:hover::before {
  transform: rotate(-90deg) scaleX(1.34) scaleY(0.77);
}

.magic-card:active {
  transform: scale(0.98);
}

html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  overflow-x: hidden;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Premium Texture Overlay */
.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  animation: scale-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
}

.gradient-bg {
  background: radial-gradient(circle at top left, #e0e7ff 0%, #f8fafc 40%, #ffffff 100%);
  min-height: 100vh;
}

.gradient-bg-dark {
  background: radial-gradient(circle at top center, #1e1b4b 0%, #0f172a 100%);
  min-height: 100vh;
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-area {
    width: 100% !important;
    display: block !important;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Force background colors in print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .page-break {
    page-break-before: always;
  }
}

/* Neon Gradient Card - User Requested */
.neon-card {
  position: relative;
  background-color: #0f172a;
  /* Slate-900 match */
  border-radius: 2rem;
  cursor: pointer;
  /* z-index: 10; Removed to prevent new stacking context hiding pseudo-elements behind background */
  transition: all 0.3s ease;
  /* Flex properties will be handled by utility classes on the element if needed, but keeping base here */
  display: flex;
  flex-direction: column;
}

.neon-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 2.2rem;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.neon-card::after {
  content: "";
  z-index: -20;
  position: absolute;
  inset: -2px;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
  transition: all 0.6s;
  opacity: 0.7;
}

.neon-card:hover::after {
  filter: blur(30px);
  opacity: 1;
}

.neon-card:hover::before {
  transform: rotate(-90deg) scaleX(1.34) scaleY(0.77);
}

/* Force pointer cursor on all buttons - override everything including Tailwind */
button,
button.cursor-wait,
.cursor-wait {
  cursor: pointer !important;
}

button:disabled {
  cursor: not-allowed !important;
}

/* Animated Stroke-Fill Logo Effect (PressBook Brand) */
.logo-text {
  --animation-color: #6366f1; /* Indigo-500 */
  position: relative;
  color: white; /* Solid white by default, readable */
  transition: all 0.3s ease;
  display: inline-block;
}

.logo-text .hover-fill {
  position: absolute;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  top: 0;
  left: 0;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
  white-space: nowrap;
}

.logo-text:hover .hover-fill {
  width: 100%;
  filter: drop-shadow(0 0 20px var(--animation-color));
}

/* Hide scrollbar for carousel */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
