/* Gracious Solutions - Stripe-Inspired Design System CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0a2540;
}

.font-display {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Stripe's Signature Multi-Color Fluid Gradient Meshes */
.stripe-hero-mesh {
  background-color: #ffffff;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 91, 255, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 212, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 60%, rgba(255, 128, 181, 0.10) 0px, transparent 60%),
    radial-gradient(at 80% 90%, rgba(121, 40, 202, 0.08) 0px, transparent 50%);
}

.stripe-dark-mesh {
  background-color: #0a2540;
  background-image: 
    radial-gradient(at 20% 20%, rgba(99, 91, 255, 0.25) 0px, transparent 55%),
    radial-gradient(at 80% 30%, rgba(0, 212, 255, 0.20) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(255, 128, 181, 0.15) 0px, transparent 60%);
}

.grid-pattern {
  background-size: 32px 32px;
  background-image: linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
}

/* Stripe-Level Elevated Card Shadow */
.stripe-card-shadow {
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.12), 0 18px 36px -18px rgba(0, 0, 0, 0.16);
}

.stripe-card-shadow:hover {
  box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.18), 0 30px 60px -30px rgba(0, 0, 0, 0.22);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Subtle Floating Hover Animations */
.stripe-float {
  animation: stripe-float-anim 6s ease-in-out infinite;
}

@keyframes stripe-float-anim {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.pulse-dot {
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.18); }
}

/* Stripe Animated Gradient Text Flow */
.stripe-animated-gradient-text {
  background: linear-gradient(135deg, #635bff 0%, #00d4ff 25%, #ff705a 50%, #7928ca 75%, #635bff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: stripe-text-shimmer 8s ease infinite;
}

@keyframes stripe-text-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Stripe 3D Perspective Tilt Card Support */
.stripe-tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}

/* Stripe Shimmer Badge */
.stripe-badge-shimmer {
  position: relative;
  overflow: hidden;
}

.stripe-badge-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 80%
  );
  transform: rotate(30deg);
  animation: stripe-badge-sweep 4s infinite linear;
}

@keyframes stripe-badge-sweep {
  0% { transform: translate(-100%, -100%) rotate(30deg); }
  100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* Stripe Glowing Border Beam */
.stripe-border-beam {
  position: relative;
}

.stripe-border-beam::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent, #635bff, #00d4ff, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-size: 200% 100%;
  animation: beam-flow 4s linear infinite;
  pointer-events: none;
}

@keyframes beam-flow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Stripe Client Logos Marquee Ribbon */
.stripe-marquee-wrapper,
.stripe-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.stripe-marquee-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: stripe-marquee-slide 28s linear infinite;
}

.stripe-marquee-wrapper:hover .stripe-marquee-track,
.stripe-marquee-container:hover .stripe-marquee-track {
  animation-play-state: paused;
}

@keyframes stripe-marquee-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.stripe-client-logo {
  height: 38px;
  max-height: 42px;
  max-width: 160px;
  object-fit: contain;
  width: auto;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.stripe-client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.12);
}

/* Interactive Tech Stack & Platform Hover Cards */
.tech-hover-card {
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

.tech-hover-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}



/* Mobile & Touch Optimizations */
@media (max-width: 768px) {
  /* Prevent iOS Safari form input auto-zoom on focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .stripe-marquee-track {
    gap: 2.5rem;
  }

  .stripe-client-logo {
    height: 30px;
    max-height: 34px;
    max-width: 130px;
  }
}

/* Momentum scrolling for horizontal comparison matrices */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Scroll-to-Top Floating Button */
#scroll-to-top {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
  will-change: transform, opacity;
}

#scroll-to-top:hover {
  box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.4);
}
