/* Base */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FFFFFF;
  color: #111111;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

/* Subtle noise texture overlay */
.bg-noise {
  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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Cursor blink */
.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Scroll-triggered fade-ins */
.fade-in {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 180ms; }
.stagger-3 { transition-delay: 260ms; }
.stagger-4 { transition-delay: 340ms; }

/* Parallax background */
.parallax-bg {
  will-change: transform;
}

/* Navbar scrolled state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Buttons */
button,
a.btn-presale {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

button:hover,
a.btn-presale:hover {
  transform: translateY(-1px);
}

button:active,
a.btn-presale:active {
  transform: translateY(0);
}

/* Images */
img {
  image-rendering: auto;
}

.product-card img,
.parallax-bg img {
  filter: saturate(0.96) contrast(1.02);
}

/* Inputs */
input[type="email"] {
  transition: color 0.3s ease, border-color 0.3s ease;
}

input[type="email"]:focus::placeholder {
  color: #9CA3AF;
}

/* Custom selection */
::selection {
  background-color: #C8A254;
  color: #1B3A2D;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .fade-in-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
