html {
  scroll-behavior: smooth;
}

body {
  cursor: none;
}

/* =========================================================
   XACTO PREMIUM POLISH LAYER (no layout changes)
   - Unified micro-interactions (0.3s ease)
   - Premium depth/shadows
   - Page-load fade + scroll reveal fallback (paired with JS)
   - Form focus glow + better placeholders
   - Trust strip, urgency microcopy, product mini-badges
   ========================================================= */

:root {
  --xacto-ease: 0.3s ease;
  --xacto-shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.1);
  --xacto-shadow-premium-strong: 0 18px 55px rgba(0, 0, 0, 0.16);
  --xacto-focus: 0 0 0 4px rgba(56, 189, 248, 0.22), 0 0 0 1px rgba(56, 189, 248, 0.25);
}

/* Premium default interaction timing without changing structure */
a,
button,
.xacto-cta,
.btn-primary,
.btn-secondary,
.xacto-product-card,
.xacto-card,
.xacto-tool-card,
.xacto-why-card,
.feature-card,
.segment-box,
.info-card,
.xpro-card {
  transition: transform var(--xacto-ease), box-shadow var(--xacto-ease), filter var(--xacto-ease),
    opacity var(--xacto-ease);
}

/* Buttons: slight scale + glow (keeps existing gradients/colors) */
.xacto-cta:hover,
.btn-primary:hover,
.btn-secondary:hover,
.xpro-btn:hover,
.xacto-btn:hover {
  filter: brightness(1.02) saturate(1.03);
}

/* Cards: soft lift */
.xacto-product-card:hover,
.xacto-card:hover,
.xacto-tool-card:hover,
.xacto-why-card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--xacto-shadow-premium);
}

/* Visual depth: consistent premium shadow for key surfaces */
.xacto-nav,
.xacto-review,
.hero-visual,
.hero-card {
  box-shadow: var(--xacto-shadow-premium);
}

/* Soft section glow behind key sections (non-invasive, no layout impact) */
.xacto-section-glow {
  position: relative;
}
.xacto-section-glow::before {
  content: '';
  position: absolute;
  inset: -30px 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(34, 197, 94, 0.12), transparent 60%),
    radial-gradient(circle at 60% 90%, rgba(249, 115, 22, 0.10), transparent 62%);
  filter: blur(2px);
}
.xacto-section-glow > * {
  position: relative;
  z-index: 1;
}

/* Page load fade-in (paired with JS adding .xacto-loaded) */
body {
  opacity: 0.001;
}
body.xacto-loaded {
  opacity: 1;
  transition: opacity 420ms ease;
}

/* Scroll reveal fallback (IntersectionObserver adds .is-visible) */
.xacto-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.xacto-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.xacto-reveal[data-reveal-delay='1'] {
  transition-delay: 90ms;
}
.xacto-reveal[data-reveal-delay='2'] {
  transition-delay: 160ms;
}
.xacto-reveal[data-reveal-delay='3'] {
  transition-delay: 230ms;
}

/* Trust badges strip (minimal + premium) */
.xacto-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(2, 132, 199, 0.10);
}
.xacto-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.xacto-trust-item .tick {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #0284c7, #22c55e);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.18);
  flex: 0 0 auto;
  font-size: 12px;
}

/* Urgency + conversion microcopy (subtle, non-spammy) */
.xacto-cta-subcopy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  color: #475569;
  font-size: 12px;
}
.xacto-cta-subcopy strong {
  color: #0f172a;
}

/* Product mini badge + highlight line */
.xacto-mini-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.92);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
}
.xacto-mini-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #22c55e);
}
.xacto-highlight-line {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  letter-spacing: 0.01em;
}
.xacto-highlight-line.light {
  color: #334155;
}

/* Form UX: premium focus glow (keeps Tailwind classes intact) */
input:focus,
textarea:focus,
select:focus {
  box-shadow: var(--xacto-focus);
}
input::placeholder,
textarea::placeholder {
  color: rgba(71, 85, 105, 0.75);
}

/* Mobile premium touch: slightly larger tap targets without layout redesign */
@media (max-width: 600px) {
  .btn-primary,
  .btn-secondary,
  .xacto-cta {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .xacto-trust-strip {
    padding: 10px 10px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.xacto-glass {
  backdrop-filter: blur(24px);
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
}

.xacto-noise {
  position: fixed;
  pointer-events: none;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

.xacto-bubble {
  box-shadow: 0 0 40px rgba(15, 157, 232, 0.35);
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.9),
    rgba(15, 157, 232, 0.15)
  );
}

.xacto-gradient-bg {
  background: radial-gradient(circle at top left, #e0f6ff, #f0fff9 40%, #ffffff 75%);
}

.xacto-btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.xacto-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.8),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.xacto-btn:hover::before {
  opacity: 1;
}

.xacto-magnetic {
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.xacto-card-3d {
  transform-style: preserve-3d;
  transform: perspective(1200px);
}

.xacto-sparkle {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  filter: blur(0.5px);
}

.xacto-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 50;
  transform-origin: left;
}

.xacto-custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(15, 157, 232, 0.75);
  box-shadow: 0 0 32px rgba(15, 157, 232, 0.7);
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  z-index: 50;
}

.xacto-custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0f9de8;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 50;
}
