:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
}

/* ==========================================================================
   Critical Skeleton Overrides for Instant First Contentful Paint (FCP) & 0.00 CLS
   Enables rendering above-the-fold structures instantly before Tailwind JS compiles
   ========================================================================== */
body {
  margin: 0;
  background-color: #f8fafc; /* bg-slate-50 */
  color: #1e293b; /* text-slate-800 */
}
header {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
  height: 80px;
  z-index: 1000 !important;
}
.bg-slate-950 {
  background-color: #020617;
}
.bg-slate-900\/40 {
  background-color: rgba(15, 23, 42, 0.4);
}
.bg-white {
  background-color: #ffffff;
}
.border-b {
  border-bottom-width: 1px;
}
.border-yellow-500\/20 {
  border-color: rgba(234, 179, 8, 0.2);
}
.text-white {
  color: #ffffff;
}
.text-slate-300 {
  color: #cbd5e1;
}
.text-yellow-500 {
  color: #eab308;
}
.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.sticky {
  position: sticky;
}
.top-0 {
  top: 0;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.h-20 {
  height: 5rem;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.relative {
  position: relative;
}
.overflow-hidden {
  overflow: hidden;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.animate-pulse {
  animation: pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-kf {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .lg\:col-span-7 {
    grid-column: span 7 / span 7;
  }
  .lg\:col-span-5 {
    grid-column: span 5 / span 5;
  }
  .lg\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .lg\:text-left {
    text-align: left;
  }
  .lg\:flex {
    display: flex;
  }
  .lg\:hidden {
    display: none;
  }
}
@media (max-width: 1023px) {
  .lg\:hidden {
    display: block;
  }
  .hidden.lg\:flex {
    display: none;
  }
}

/* Custom modal backdrop styling */
dialog::backdrop {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}
dialog[open] {
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Advanced premium Hero styling and animations */

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(-12deg);
  }
  50% {
    transform: translateY(-8px) rotate(-8deg);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0px) rotate(45deg);
  }
  50% {
    transform: translateY(-10px) rotate(40deg);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slow-pulse-glow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-4px) rotate(-12deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 7s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 25s linear infinite;
}

.animate-slow-pulse {
  animation: slow-pulse-glow 8s ease-in-out infinite;
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.animate-bounce-slow {
  animation: bounce-slow 4s ease-in-out infinite;
}

/* Subtle border glow */
.gold-glow {
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.15);
}
.gold-glow-hover:hover {
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.3);
}

/* RTL Support for Marquee reverse direction */
html[dir="rtl"] .animate-marquee {
  animation-direction: reverse;
}

/* 3D Exploded Layer Can Visualizer Styling */
.puck-3d-scene {
  perspective: 1200px;
}

.puck-3d-stack {
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.puck-3d-layer {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* Base shadow behind everything */
.puck-3d-shadow {
  background: radial-gradient(circle, rgba(0,0,0,0.6) 0%, transparent 70%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover behavior - 3D Explosion / Layer separation */
.group:hover .puck-3d-stack {
  transform: rotateX(25deg) rotateY(-15deg);
}

.group:hover .puck-3d-layer-lid {
  transform: translateZ(80px) translateY(-50px) rotateX(10deg) rotateY(-5deg) rotate(-10deg);
  box-shadow: 0 35px 60px -10px rgba(0,0,0,0.8);
}

.group:hover .puck-3d-layer-label {
  transform: translateZ(40px) translateY(-20px) scale(1.05);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}

.group:hover .puck-3d-layer-base {
  transform: translateZ(0px) translateY(10px) rotateX(5deg);
  box-shadow: 0 15px 30px -5px rgba(0,0,0,0.7);
}

/* Pouches floating out from inside on hover */
.group:hover .puck-3d-pouch-left {
  transform: translate3d(-110px, -40px, 30px) rotate(-35deg) scale(1.1);
  opacity: 1;
}

.group:hover .puck-3d-pouch-right {
  transform: translate3d(110px, 10px, 45px) rotate(45deg) scale(1.1);
  opacity: 1;
}

.group:hover .puck-3d-shadow {
  transform: scale(0.8) translateY(20px);
  opacity: 0.4;
}

/* Smooth active glow overlays */
.theme-glow-mint { box-shadow: 0 0 50px rgba(6, 182, 212, 0.25); }
.theme-glow-berry { box-shadow: 0 0 50px rgba(139, 92, 246, 0.25); }
.theme-glow-mango { box-shadow: 0 0 50px rgba(249, 115, 22, 0.25); }
.theme-glow-carbon { box-shadow: 0 0 50px rgba(234, 179, 8, 0.25); }

/* Grid paper pattern */
.grid-paper {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Modern CSS Render-Blocking Bypass for Below-The-Fold Content */
.lazy-render-section {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

/* Premium styling for AI-generated internal links in product descriptions */
.product-desc-text a {
  color: #d97706; /* amber-600 */
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease-in-out;
}
.product-desc-text a:hover {
  color: #1e293b; /* slate-800 */
  text-decoration-color: #1e293b;
}
