/* ── Page load fade-in ── */
body {
  opacity: 1;
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  /* NO transition on transform — JS handles smoothness */
  transition: width 0.15s ease, height 0.15s ease, opacity 0.15s ease;
}
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  /* only transition size/color — NOT transform/left/top */
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.cursor--hover { width: 20px; height: 20px; }
.cursor-follower--hover {
  width: 52px; height: 52px;
  border-color: rgba(245, 197, 24, 0.15);
}

/* ── Aurora glow animation ── */
@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-60px, 50px) scale(1.1); }
  66%  { transform: translate(-20px, -40px) scale(0.92); }
}
@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-30px, -70px) scale(1.18); }
}

/* ── Pricing border spin ── */
@keyframes pricing-spin {
  to { transform: rotate(360deg); }
}

/* ── Mockup float ── */
@keyframes mockup-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(0.5deg); }
}

/* ── Mockup element entrance ── */
@keyframes mockup-item-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll hint bounce ── */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.4; }
  50%       { transform: translateY(7px); opacity: 0.9; }
}

/* ── Gold text shimmer ── */
@keyframes text-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Hero CTA pulse glow ── */
@keyframes hero-cta-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(245,197,24,0.2), 0 4px 20px rgba(0,0,0,0.2); }
  50%       { box-shadow: 0 0 52px rgba(245,197,24,0.5), 0 4px 24px rgba(0,0,0,0.28); }
}
.hero .btn--accent {
  animation: hero-cta-pulse 3s ease-in-out infinite;
}
.hero .btn--accent:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 0 64px rgba(245,197,24,0.55), 0 6px 28px rgba(0,0,0,0.32);
}

/* ── Nav link underline slide-in ── */
.nav__links a {
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

/* ── Pricing price-val glow ── */
.pricing__price-val {
  text-shadow: 0 0 60px rgba(245,197,24,0.4), 0 0 24px rgba(245,197,24,0.25);
}

/* ── Card hover lift (only on cards without overflow:hidden stacking issues) ── */
.trust-card,
.team-card {
  transition: background var(--transition-base), box-shadow var(--transition-slow), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.trust-card:hover,
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* ── Focus visible (keyboard navigation) ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ── Hero toast slide-in ── */
@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-border-pulse {
  0%, 100% { border-color: rgba(74,222,128,0.28); box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 16px rgba(74,222,128,0.08); }
  50%       { border-color: rgba(74,222,128,0.5);  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 24px rgba(74,222,128,0.18); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal]         { opacity: 1; transform: none; transition: none; }
  .cursor,
  .cursor-follower      { display: none; }
  .marquee              { animation: none; }
  body                  { opacity: 1; transition: none; }
  .word-reveal          { opacity: 1 !important; transform: none !important; transition: none !important; }
  .process__steps::before { transform: none !important; transition: none !important; }
  .card-spotlight       { display: none; }
  .hero__mockup-toast   { animation: none; opacity: 1; }
  .hero__title em       { animation: none; }
  .hero .btn--accent    { animation: none; }
  .hero__glow--1, .hero__glow--2, .hero__glow--3 { animation: none; }
  .dot--green           { animation: none; box-shadow: none; }
  .niche-row            { opacity: 1; transform: none; transition: none; }
  .scroll-hint__icon    { animation: none; }
  .mockup-window        { animation: none; }
  .mockup-live-dot      { animation: none; }
}

/* ── Word reveal ── */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.word-reveal--in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero h1 — clip-path rise (transition must be on base, not --in) */
.hero__title .word-reveal {
  opacity: 1;
  transform: none;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__title .word-reveal--in {
  clip-path: polygon(0 0%, 100% 0%, 100% 100%, 0 100%);
}

/* ── Process connector line draw ── */
.process__steps::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.process__steps.line-animate::before {
  transform: scaleX(1);
}

/* ── CRM bar animation ── */
.ui-mockup__bar {
  transition: height 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Trust cards stagger entrance ── */
.trust-card {
  transition: background var(--transition-base), opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}

/* ── Section enter transitions ── */
.service-card, .case-card, .guarantee-card, .testimonial-card, .trust-card, .team-card {
  transition-property: background, box-shadow, opacity, transform;
}

/* ── Mockup showcase hover lift ── */
.mockup-showcase__window {
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.mockup-showcase:hover .mockup-showcase__window {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 100px rgba(245,197,24,0.1);
}

/* ── Before/After row highlight ── */
.ba-row {
  transition: background var(--transition-base);
}

/* ── Cursor glow on dark sections ── */
.services, .cases, .niches, .testimonials,
.guarantees, .process, .faq, .stack, .pricing,
.trust, .before-after, .mockups, .team {
  background-image: radial-gradient(
    550px circle at var(--glow-x, -200%) var(--glow-y, -200%),
    rgba(245, 197, 24, 0.028) 0%,
    transparent 65%
  );
}

/* ── Card spotlight (antimetal) ── */
.card-spotlight {
  position: absolute;
  left: 0; top: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245, 197, 24, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform, opacity;
}

/* ── Niche row entrance ── */
.niche-row {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.niche-row--in {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hero frame light reflection (JS-driven --light-x/y) ── */
.hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--light-x, 50%) var(--light-y, 35%),
    rgba(255, 255, 255, 0.07) 0%,
    transparent 58%
  );
  transition: background 0.1s ease;
}

/* ── Section depth separators ── */
section + section {
  position: relative;
}

/* ── Reduced motion — disable clip-path reveal ── */
@media (prefers-reduced-motion: reduce) {
  .hero__title .word-reveal {
    clip-path: none !important;
    opacity: 1 !important;
  }
}
