/* ============ Pixelium — Animations & Effects ============ */

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold));
  z-index: 100;
  transition: width .05s linear;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(180,138,62,.6);
}

/* ── Custom cursor — DISABLED (using native cursor) ── */

/* ── Hero ── */
#hero {
  position: relative;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,138,62,.35) 0%, rgba(180,138,62,.12) 30%, transparent 65%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  animation: orb-float 14s ease-in-out infinite;
}
@keyframes orb-float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.08); }
}
#hero > .container { position: relative; z-index: 1; }

/* Word stagger reveal */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.04em;
}
.word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity 1s ease;
}
.word.in {
  transform: translateY(0);
  opacity: 1;
}

/* Pulsing gold dot */
.gold-dot-pulse {
  position: relative;
  display: inline-block;
}
.gold-dot-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  border-radius: 50%;
  animation: dot-pulse 2.2s ease-out infinite;
  z-index: -1;
  opacity: 0.5;
}
@keyframes dot-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

/* The hero dot — make it a small block that pulses */
.hero-dot {
  display: inline-block;
  width: 0.12em;
  height: 0.12em;
  background: var(--gold);
  border-radius: 50%;
  vertical-align: 0.05em;
  margin-left: 0.02em;
  position: relative;
  animation: dot-soft-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-soft-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180,138,62,0); transform: scale(1); }
  50% { box-shadow: 0 0 0 0.2em rgba(180,138,62,.18); transform: scale(1.1); }
}

/* ── Values Marquee — thin Apple-style ── */
.values-marquee {
  background: var(--bg);
  color: var(--ink);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.values-track {
  display: flex;
  gap: 0;
  animation: marquee 45s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.values-marquee:hover .values-track {
  animation-play-state: paused;
}
.values-item {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  text-transform: none;
  color: var(--ink);
}
.values-item--brand {
  color: var(--ink);
  font-weight: 600;
}
.values-dot {
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── 3D tilt on pricing tiles ── */
@media (hover: hover) and (pointer: fine) {
  .price-tile {
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
    will-change: transform;
  }
  .price-tile.tilt-active {
    box-shadow: 0 40px 80px -40px rgba(0,0,0,.3);
  }
  .price-tile--feature.tilt-active {
    box-shadow: 0 40px 80px -30px rgba(180,138,62,.4);
  }
  .price-tile-inner {
    transform: translateZ(0);
  }
}

/* ── Reasons hover effect ── */
.reason {
  transition: padding-left .35s cubic-bezier(.2,.8,.2,1);
  cursor: default;
}
.reason:hover {
  padding-left: 14px;
}
.reason:hover .reason-bullet {
  color: var(--gold);
  transform: scale(1.4) rotate(-12deg);
}
.reason-bullet {
  transition: transform .4s cubic-bezier(.2,.8,.2,1), color .25s ease;
  transform-origin: center left;
}

/* ── Step numbers animation ── */
.step .n {
  position: relative;
  display: inline-block;
}
.step .n::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: var(--gold);
  width: 0;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.step.in .n::before {
  width: 24px;
}

/* ── Sign-off (removed from page; keep styles inert) ── */

/* ── Magnetic buttons ── */
.magnetic {
  display: inline-flex;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* ── Section heading underline accent ── */
.kicker--gold {
  position: relative;
  display: inline-block;
}
.kicker--gold::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gold);
  vertical-align: 0.35em;
  margin-right: 12px;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in .kicker--gold::before,
.in .kicker--gold::before {
  width: 48px;
}

/* ── Floating CTA glow ── */
.float-cta.visible {
  animation: float-glow 3s ease-in-out infinite;
}
@keyframes float-glow {
  0%, 100% { box-shadow: 0 18px 40px -16px rgba(0,0,0,.4), 0 0 0 0 rgba(180,138,62,0); }
  50% { box-shadow: 0 18px 40px -16px rgba(0,0,0,.4), 0 0 0 6px rgba(180,138,62,.12); }
}

/* ── Link underline reveal ── */
.link-cta {
  position: relative;
}
.link-cta::before {
  content: "";
  position: absolute;
  left: 0; right: 22px;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.link-cta:hover {
  text-decoration: none;
}
.link-cta:hover::before {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ── Subtle FAQ item hover ── */
.faq-q {
  transition: padding-left .3s cubic-bezier(.2,.8,.2,1);
}
.faq-q:hover {
  padding-left: 8px;
}

/* ── Disable cursor effects on touch ── */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ── Premium hero — pure black, no glow ── */
.premium-hero {
  position: relative;
}

/* ── Accessibility: respect prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Force final visible state — never leave content hidden */
  .reveal,
  .word,
  .signoff-line,
  .signoff-brand {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-orb,
  .launch-banner::before,
  .values-track,
  .launch-banner-track {
    animation: none !important;
  }
}
