/* ===== Premium Ecom Rally Styles ===== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0A1628;
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ======== TYPOGRAPHY ======== */
.font-display {
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* ======== REVEAL ANIMATIONS (Premium) ======== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-reveal-fade] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-fade].is-visible {
  opacity: 1;
}

/* Stagger reveal helpers (premium stagger timing) */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 500ms; }

/* ======== BUTTON PREMIUM EFFECTS ======== */
.btn-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}
.btn-gold:hover::before {
  left: 100%;
}
.btn-gold span,
.btn-gold svg {
  position: relative;
  z-index: 2;
}

/* ======== GRADIENTS & TEXT ======== */
.text-gradient-gold {
  background: linear-gradient(135deg, #E8C875 0%, #C8A45A 50%, #A88A4A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-white {
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(200,164,90,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ======== HERO OVERLAY (side-fade for text contrast, image stays visible) ======== */
.hero-overlay {
  background:
    linear-gradient(100deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.7) 35%, rgba(10, 22, 40, 0.25) 70%, rgba(10, 22, 40, 0.05) 100%),
    linear-gradient(0deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0) 35%);
}
@media (max-width: 768px) {
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.95) 100%);
  }
}

/* ======== GLASSMORPHISM (Premium modern cards) ======== */
.glass {
  background: rgba(13, 27, 46, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ======== CARD LIFT (Premium hover) ======== */
.card-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.card-lift:hover {
  transform: translateY(-10px);
  border-color: rgba(200, 164, 90, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 30px rgba(200, 164, 90, 0.08);
}

/* ======== GOLD GLOW (Responsive) ======== */
.gold-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(200, 164, 90, 0.15), transparent 65%);
  pointer-events: none;
}

/* ======== NAVBAR ANIMATION ======== */
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
.scrolled-header {
  animation: navSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ======== SCROLLBAR (Premium) ======== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb { background: #1A1F26; border-radius: 6px; border: 1px solid rgba(255,255,255,0.03); }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 164, 90, 0.5); }

/* ======== SELECTION ======== */
::selection {
  background: #C8A45A;
  color: #0A1628;
}

/* ======== PREMIUM DIVIDER ======== */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8A45A, transparent);
  width: 100%;
}

/* ======== PULSE DOT ======== */
.pulse-dot {
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #C8A45A;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-dot-anim 2s infinite;
}
@keyframes pulse-dot-anim {
  0% { box-shadow: 0 0 0 0 rgba(200, 164, 90, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(200, 164, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 164, 90, 0); }
}

/* ======== FLOATING ANIMATION ======== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.float-animate {
  animation: float 4s ease-in-out infinite;
}

/* ======== GRADIENT BORDER ======== */
.gradient-border {
  position: relative;
  background: #0D1B2E;
  border-radius: 1rem;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(1rem + 1px);
  background: linear-gradient(135deg, rgba(200,164,90,0.3), transparent 50%, rgba(200,164,90,0.2));
  z-index: -1;
}

/* ======== RESPONSIVE UTILITIES ======== */
@media (max-width: 768px) {
  .font-display {
    letter-spacing: -0.01em;
    line-height: 1.0;
  }
  [data-reveal] {
    transform: translateY(20px) scale(0.99);
  }
  .gold-glow::before {
    background: radial-gradient(ellipse at 60% 40%, rgba(200, 164, 90, 0.12), transparent 70%);
  }
}

/* ======== REDUCED MOTION ======== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ======== TABLE STYLES (Comparison) ======== */
.feature-table {
  border-collapse: separate;
  border-spacing: 0;
}
.feature-table th,
.feature-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.feature-table tr:last-child td {
  border-bottom: none;
}

/* ======== FORM INPUT PREMIUM ======== */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.15);
}

/* ======== MOBILE MENU (Premium, iOS/Android-safe) ======== */
.mobile-menu-overlay {
  /* solid fallback (no transparency dependency on cheap Android browsers) */
  background: #0A1628;
  /* viewport-safe height for iOS Safari toolbar resize */
  min-height: 100vh;
  min-height: 100dvh;
  /* prevent rubber-banding the page underneath on iOS */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .mobile-menu-overlay {
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
  }
}
/* subtle gold radial inside the overlay */
.mobile-menu-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(200, 164, 90, 0.12), transparent 60%);
  pointer-events: none;
}
/* lock page scroll when menu open (set by Alpine via x-init $watch) */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ======== BOSS? SECTION ======== */
.boss-section {
  background: linear-gradient(135deg, #0A1628 0%, #0D1B2E 50%, #0A1628 100%);
  position: relative;
  overflow: hidden;
}
.boss-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(200,164,90,0.08), transparent 70%);
  pointer-events: none;
}
