/* Obsidian Luxe — modern motion (2026) · gold palette */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-fast: 0.2s;
  --motion-base: 0.55s;
  --motion-slow: 0.85s;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-line: rgba(212, 175, 55, 0.55);
}

/* ---- Hero: crisp staged entrance (no blur) ---- */
.hero-content > *:not(.site-title-long) {
  animation: modern-fade-up var(--motion-slow) var(--ease-out) both;
}

.hero-content > .hero-badge { animation-delay: 0.05s; }
.hero-content > .site-tagline { animation-delay: 0.42s; }
.hero-content > .hero-sub { animation-delay: 0.52s; }
.hero-content > .hero-btns { animation-delay: 0.62s; }
.hero-content > .keyword-pills { animation-delay: 0.72s; }
.hero-content > .hero-stats { animation-delay: 0.82s; }

.hero-content > .site-title-long {
  animation: none;
}

.hero-right {
  animation: modern-panel-in var(--motion-slow) var(--ease-out) 0.28s both;
}

@keyframes modern-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes modern-panel-in {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Aurora mesh (replaces pulsing scale) */
.hero-bg {
  animation: modern-aurora 18s ease-in-out infinite alternate;
}

@keyframes modern-aurora {
  0% {
    opacity: 1;
    filter: hue-rotate(0deg);
  }
  100% {
    opacity: 0.92;
    filter: hue-rotate(8deg);
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(212, 175, 55, 0.18), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, rgba(158, 183, 255, 0.12), transparent 65%),
    radial-gradient(50% 40% at 60% 90%, rgba(196, 161, 255, 0.08), transparent 70%);
  animation: modern-mesh-drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes modern-mesh-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.04); }
}

.hero-grid {
  opacity: 0.14 !important;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: modern-grid-pan 40s linear infinite;
}

@keyframes modern-grid-pan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

/* Glass card + subtle float */
.hero-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.12s var(--ease-out), box-shadow 0.35s var(--ease-out);
  animation: modern-card-breathe 8s ease-in-out infinite;
}

@keyframes modern-card-breathe {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

.hero-card.is-tilting {
  animation: none;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 42%,
    rgba(212, 175, 55, 0.04) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-line),
    transparent
  );
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: modern-border-sweep 5s var(--ease-smooth) infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes modern-border-sweep {
  0% { background-position: 200% 0; opacity: 0.25; }
  50% { opacity: 0.65; }
  100% { background-position: -200% 0; opacity: 0.25; }
}

.hero-card > * {
  position: relative;
  z-index: 2;
}

.hero-card .tx-row {
  animation: modern-row-in 0.5s var(--ease-out) both;
}

.hero-card .tx-row:nth-child(2) { animation-delay: 0.55s; }
.hero-card .tx-row:nth-child(3) { animation-delay: 0.65s; }
.hero-card .tx-row:nth-child(4) { animation-delay: 0.75s; }
.hero-card .tx-row:nth-child(5) { animation-delay: 0.85s; }

@keyframes modern-row-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.tx-status.pulse {
  animation: modern-live-dot 2s ease-in-out infinite !important;
}

@keyframes modern-live-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* H1: line mask + keyword spans (intro-chain.js) */
.site-title-long {
  overflow: hidden;
}

.site-title-long.modern-title-ready {
  animation: modern-title-unmask var(--motion-slow) var(--ease-out) 0.12s both;
}

@keyframes modern-title-unmask {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.modern-kw {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.85em, 0);
  animation: modern-kw-in 0.7s var(--ease-out) forwards;
}

.modern-kw::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.15em;
  background: linear-gradient(90deg, var(--gold-line), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: modern-kw-line 0.55s var(--ease-out) forwards;
  animation-delay: calc(var(--kw-delay, 0s) + 0.18s);
}

@keyframes modern-kw-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes modern-kw-line {
  to { transform: scaleX(1); }
}

.modern-block-in {
  animation: modern-fade-up var(--motion-base) var(--ease-out) both;
}

/* Buttons: hover-only shine, no infinite pulse */
.btn-primary,
.btn-buy-nav,
.btn-secondary {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--motion-fast) var(--ease-spring),
    box-shadow var(--motion-fast) var(--ease-out),
    filter var(--motion-fast) var(--ease-out);
}

.btn-primary::after,
.btn-buy-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-buy-nav:hover::after {
  transform: translateX(130%);
}

.btn-buy-nav {
  animation: none;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-buy-nav:hover,
.btn-price:hover {
  transform: translate3d(0, -2px, 0) scale(1.01);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.22);
}

.btn-primary.is-magnetic,
.btn-buy-nav.is-magnetic {
  transition: transform 0.15s var(--ease-out);
}

.keyword-pill,
.price-card,
.card,
.blog-card,
.nav-links a,
.logo {
  transition:
    transform var(--motion-fast) var(--ease-spring),
    box-shadow var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out);
}

.keyword-pill:hover {
  transform: translate3d(0, -2px, 0);
  border-color: var(--gold-line) !important;
}

.price-card:hover,
.card:hover,
.blog-card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(212, 175, 55, 0.12);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  transition: width 0.35s var(--ease-out), left 0.35s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

.logo {
  animation: none;
}

/* Ticker */
.ticker-track {
  animation: ticker 20s linear infinite;
}

.ticker-item {
  transition: transform 0.25s var(--ease-spring), opacity 0.25s;
}

.ticker-item:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* WhatsApp — minimal float */
.whatsapp-float {
  animation: modern-wa-idle 4s ease-in-out infinite;
  transition: transform 0.3s var(--ease-spring);
}

@keyframes modern-wa-idle {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

.whatsapp-float:hover {
  transform: translate3d(0, -6px, 0) scale(1.06);
  animation: none;
}

/* Header scroll */
.site-header.is-scrolled .site-nav {
  transform: translate3d(0, 0, 0);
  backdrop-filter: blur(24px) saturate(1.35) !important;
  box-shadow: 0 1px 0 rgba(212, 175, 55, 0.15), 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.site-nav {
  transition:
    box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    backdrop-filter 0.4s var(--ease-out);
}

/* Scroll reveals — clean, no blur */
.anim-reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity var(--motion-base) var(--ease-out),
    transform var(--motion-base) var(--ease-out);
}

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

.anim-reveal--fade {
  transform: translate3d(0, 16px, 0);
}

.anim-reveal--scale {
  transform: translate3d(0, 24px, 0) scale(0.97);
}

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

.anim-stagger-parent .anim-stagger-child {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.anim-stagger-parent.is-visible .anim-stagger-child {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-img-reveal {
  animation: modern-img-in 0.7s var(--ease-out) both;
}

@keyframes modern-img-in {
  from {
    opacity: 0;
    transform: scale(0.98) translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

/* Modal */
.modal-overlay {
  transition: opacity 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
}

.modal-overlay.open {
  backdrop-filter: blur(8px);
}

.modal-overlay.open .modal {
  animation: modern-modal 0.45s var(--ease-spring) both;
}

@keyframes modern-modal {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Purchase toast */
.purchase-toast {
  transform: translate3d(0, 16px, 0) scale(0.96) !important;
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.45s var(--ease-spring) !important;
}

.purchase-toast.visible {
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.purchase-toast.hiding {
  transform: translate3d(0, 8px, 0) scale(0.98) !important;
  opacity: 0 !important;
}

/* Key facts — soft edge glow, no sweep bar */
.key-facts-panel::after {
  display: none;
}

.key-facts-panel {
  transition: box-shadow 0.4s var(--ease-out);
}

.key-facts-panel.is-visible,
.anim-reveal.key-facts-panel.is-visible {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* SPA */
.page {
  position: relative;
  z-index: 1;
}

.page.active {
  pointer-events: auto;
}

.site-header,
.site-header a,
.site-header button,
.btn-primary,
.btn-secondary,
.btn-buy-nav,
.nav-links a {
  pointer-events: auto;
}

.hero-stats .stat {
  transition: transform 0.35s var(--ease-spring);
}

.hero-stats .stat:hover {
  transform: translate3d(0, -3px, 0);
}

.hero-stats .stat:hover .stat-num {
  transform: scale(1.05);
  color: #f0d78a !important;
}

.stat-num {
  display: inline-block;
  transition: transform 0.35s var(--ease-spring), color 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content > *,
  .hero-right,
  .hero-card,
  .hero-grid,
  .hero-bg,
  .hero-bg::after,
  .whatsapp-float,
  .ticker-track {
    animation: none !important;
  }

  .anim-reveal,
  .anim-reveal.is-visible,
  .anim-stagger-parent .anim-stagger-child,
  .modern-kw,
  .modern-block-in {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}
