/* ── Landing page — glass-morphism & animations ── */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ── Grain overlay ── */
.grain-overlay {
  position: relative;
}
.grain-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── Gradient mesh blobs ── */
.gradient-mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.gradient-mesh-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 163, 127, 0.15) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}
.gradient-mesh-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 163, 127, 0.08) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
}

/* ── Hero glow ── */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 163, 127, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: hero-pulse 6s ease-in-out infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* ── Glass card ── */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  transition: background 0.3s, border-color 0.3s;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Nav glass ── */
.nav-glass {
  background: rgba(23, 23, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}
.nav-glass.scrolled {
  background: rgba(23, 23, 23, 0.85);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* ── CTA primary sweep ── */
.cta-primary {
  position: relative;
  overflow: hidden;
}
.cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.15) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.cta-primary:hover::before {
  transform: translateX(100%);
}

/* ── Pricing card glow ── */
.pricing-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.pricing-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(16, 163, 127, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
.pricing-card:hover::after {
  opacity: 1;
}
.pricing-card > * {
  position: relative;
  z-index: 1;
}

/* ── Testimonial quote mark ── */
.testimonial-quote {
  position: relative;
}
.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: -4px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(16, 163, 127, 0.15);
  font-family: Georgia, serif;
  pointer-events: none;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Mobile menu animation ── */
.mobile-menu-enter {
  animation: slide-down 0.25s ease-out;
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Platform logo hover ── */
.platform-logo {
  transition: color 0.3s, filter 0.3s;
}
.platform-logo:hover {
  color: var(--platform-color, #10a37f);
  filter: drop-shadow(0 0 8px var(--platform-color, #10a37f));
}

/* ── Stat card glow ── */
.stat-card-glow {
  position: relative;
}
.stat-card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(16, 163, 127, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}
.stat-card-glow.revealed::before {
  opacity: 1;
}
.stat-card-glow > * {
  position: relative;
  z-index: 1;
}

/* ── Carousel ── */
.carousel-track {
  will-change: transform;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-card img {
  transition: transform 0.4s ease;
}
.carousel-card:hover img {
  transform: scale(1.05);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s, background 0.3s;
}
.carousel-dot.active {
  width: 24px;
  background: #10a37f;
}

/* ── Performance hints for parallax ── */
.gradient-mesh,
.hero-glow {
  will-change: transform;
}

/* ── Parallax divider ── */
.parallax-divider {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Image marquee ── */
.marquee-wrapper {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee-scroll 40s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, #212121 0%, transparent 100%);
}
.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, #212121 0%, transparent 100%);
}

/* ── Hero floating cards ── */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-float-card {
  animation: hero-float 4s ease-in-out infinite;
  will-change: transform;
}
