/* ZURSHIL — Modern Stealth Luxury Design System */
:root {
  --bg-primary: #09090B;
  --bg-surface: #121215;
  --bg-hover: #1A1A1F;
  --border-subtle: #27272A;
  --text-primary: #FAFAFA;
  --text-warm: #F4F1EA;
  --text-secondary: #A1A1AA;
  --text-muted: #8E8E93;
  --gold-primary: #D4AF37;
  --gold-light: #E5B85C;
  --gold-dark: #AA8220;
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: #09090B;
  color: #FAFAFA;
}

body {
  background-color: #09090B;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #09090B;
}
::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3F3F46;
}

/* Gold Gradients & Glows */
.gold-gradient-text {
  background: linear-gradient(135deg, #FCE38A 0%, #D4AF37 50%, #AA8220 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #E5B85C 0%, #D4AF37 60%, #B89028 100%);
}

.lifetime-card-glow {
  background: radial-gradient(120% 100% at 0% 0%, rgba(212, 175, 55, 0.20) 0%, rgba(18, 18, 21, 0.96) 55%, #121215 100%);
}

/* Infinite Marquee Ticker */
@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.promo-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
  will-change: transform;
}

.promo-marquee-track:hover {
  animation-play-state: paused;
}

/* Scroll Reveal Animations (60fps silk cubic-bezier) */
.reveal-section .divider-line {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-luxury);
}

.reveal-section.is-visible .divider-line {
  transform: scaleX(1);
}

.reveal-up {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
  will-change: opacity, transform;
}

.reveal-section.is-visible .reveal-up {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.delay-100 { transition-delay: 0.12s; }
.delay-200 { transition-delay: 0.24s; }
.delay-300 { transition-delay: 0.36s; }

.reveal-card {
  opacity: 0;
  transform: scale(0.97) translate3d(0, 12px, 0);
  transition: opacity 0.85s var(--ease-luxury), transform 0.85s var(--ease-luxury);
  will-change: opacity, transform;
}

.reveal-section.is-visible .reveal-card {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
}

/* Ambient Pulse for "Due Today" ring */
@keyframes dueTodayPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.0), 0 0 8px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.65);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.12), 0 0 14px rgba(212, 175, 55, 0.35);
    border-color: rgba(229, 184, 92, 0.95);
  }
}

.due-today-ring {
  animation: dueTodayPulse 2.8s infinite ease-in-out;
}

/* Checkmark SVG Draw & Spring Pop */
@keyframes springPop {
  0% { transform: scale(0.85); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.cell-pop {
  animation: springPop 0.38s var(--ease-spring) forwards;
}

@keyframes checkDraw {
  0% {
    stroke-dashoffset: 20;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.check-svg-path {
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
  animation: checkDraw 0.32s var(--ease-luxury) forwards;
}

/* Ripple Glow Effect on Click */
@keyframes rippleGold {
  0% {
    transform: scale(0.8);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.ripple-ring::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  border: 1.5px solid #D4AF37;
  animation: rippleGold 0.55s var(--ease-luxury) forwards;
  pointer-events: none;
}

/* Section 02 Bar Chart Rise */
.bar-col {
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 0.85s var(--ease-luxury), translate 0.25s var(--ease-luxury), filter 0.25s ease, box-shadow 0.25s ease;
}

.reveal-section.is-visible .bar-col {
  transform: scaleY(1);
}

.bar-wrapper:hover .bar-col-active {
  translate: 0 -4px;
  box-shadow: 0 8px 22px -4px rgba(212, 175, 55, 0.42);
  filter: brightness(1.08);
}

.bar-wrapper:hover .bar-col-muted {
  translate: 0 -4px;
  background-color: #52525B;
}

/* Section 03 Schedule Day Glow */
.schedule-day-new {
  background-color: #D4AF37;
  color: #09090B;
  border-color: #D4AF37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.38);
}

/* Spotlight Card Follow (Desktop Only) */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
      420px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
      rgba(212, 175, 55, 0.42),
      transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.3s ease;
  }
}

/* Floating Hero Glass Cards */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.float-card-1 { animation: floatSlow 5.5s ease-in-out infinite; }
.float-card-2 { animation: floatSlow 6.5s ease-in-out 1.2s infinite; }
.float-card-3 { animation: floatSlow 7s ease-in-out 0.6s infinite; }

/* Modal Backdrop Fade */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-animate {
  animation: modalFadeIn 0.28s var(--ease-luxury) forwards;
}

/* Smooth page/view fade (opacity-only so fixed/sticky navbars stay locked on iOS/mobile) */
@keyframes viewFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.view-enter {
  animation: viewFadeIn 0.28s var(--ease-luxury) forwards;
}

.dash-scroll-touch {
  -webkit-overflow-scrolling: touch;
}

/* Prevent iOS Safari auto-zoom when focusing inputs/selects on phone */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Hero Statue Seamless Vignette */
.hero-statue-mask {
  -webkit-mask-image: radial-gradient(92% 92% at 55% 50%, #000 54%, transparent 100%);
  mask-image: radial-gradient(92% 92% at 55% 50%, #000 54%, transparent 100%);
}

/* Safe area for mobile bottom navigation */
.pb-safe {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

/* Hide scrollbars cleanly where horizontal touch scroll is natural */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Gold Ring Progress Animation */
.ring-progress {
  transition: stroke-dashoffset 0.75s var(--ease-luxury);
}
