:root {
  color-scheme: dark;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

.noise::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.6;
  z-index: 0;
}

.glow-border {
  position: relative;
  isolation: isolate;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(104, 206, 207, 0.7), rgba(160, 205, 69, 0.6), rgba(248, 118, 192, 0.7));
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  z-index: -1;
  opacity: 0.35;
}

.service-card {
  position: relative;
  border-radius: 1.5rem;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(104, 206, 207, 0.75), rgba(248, 198, 63, 0.65), rgba(248, 118, 192, 0.7));
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.service-card:hover::before {
  opacity: 0.5;
}

.service-card-modern {
  position: relative;
  overflow: hidden;
}

.service-card-modern::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(104, 206, 207, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-card-modern:hover::after {
  left: 100%;
}
.tilt-card-services {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float-card 6s ease-in-out infinite;
}

.tilt-card-services:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.light-sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-120%);
  animation: sweep 6s linear infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: float 6s ease-in-out infinite;
}

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

.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 12px;
  background: linear-gradient(90deg, #f8c63f, #f876c0);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.9;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #f8c63f;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

@keyframes wave-flow {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 60% 40% 60% 40%;
  }
  25% {
    transform: translate(20px, -20px) rotate(5deg);
    border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%;
  }
  50% {
    transform: translate(-15px, 15px) rotate(-3deg);
    border-radius: 50% 50% 60% 40% / 50% 50% 70% 30%;
  }
  75% {
    transform: translate(15px, 10px) rotate(4deg);
    border-radius: 40% 60% 40% 60% / 60% 40% 50% 50%;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-shift {
  animation: gradient-shift 4s ease infinite;
}

/* Magnetic button effects */
.magnetic-button {
  transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.magnetic-button:hover {
  transform: translateY(-4px) scale(1.02);
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.magnetic-button:hover .button-shine {
  left: 100%;
}

.button-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 206, 207, 0.4), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.magnetic-button:hover .button-glow {
  width: 300px;
  height: 300px;
}

/* 3D Card transforms */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-3d:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(-5deg);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(104, 206, 207, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card-3d:hover .card-glow {
  opacity: 1;
  animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hero text animations */
.hero-text {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-shift {
  animation: gradient-shift 4s ease infinite;
}

/* Magnetic button effects */
.magnetic-button {
  transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.magnetic-button:hover {
  transform: translateY(-4px) scale(1.02);
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.magnetic-button:hover .button-shine {
  left: 100%;
}

.button-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 206, 207, 0.4), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.magnetic-button:hover .button-glow {
  width: 300px;
  height: 300px;
}

/* 3D Card transforms */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-3d:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(-5deg);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(104, 206, 207, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card-3d:hover .card-glow {
  opacity: 1;
  animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hero text animations */
.hero-text {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}

#heroHeadline {
  animation: fade-in 1.2s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-subtitle {
  animation: fade-in 1s ease-out 0.6s forwards;
  opacity: 0;
}

.hero-buttons {
  animation: fade-in 1s ease-out 0.9s forwards;
  opacity: 0;
}

.hero-cards {
  animation: fade-in 1s ease-out 1.2s forwards;
  opacity: 0;
}

.hero-animated-bg {
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #f0f9ff 15%, 
    #fef9f3 30%, 
    #fef3f8 45%, 
    #f0fdf4 60%, 
    #fdf4ff 75%, 
    #ffffff 100%);
  background-size: 400% 400%;
  animation: gradient-shift 20s ease infinite;
}

.wave-shape {
  pointer-events: none;
}

.feature-section {
  position: relative;
  overflow: hidden;
}

.tilt-card {
  position: absolute;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: translateY(-8px) !important;
}

.tilt-container {
  position: relative;
  height: 500px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.chart-bar {
  display: inline-block;
  width: 8px;
  background: linear-gradient(180deg, #68cecf, #a0cd45);
  border-radius: 4px;
  margin: 0 2px;
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0px) rotate(var(--rotation));
  }
  50% {
    transform: translateY(-15px) rotate(var(--rotation));
  }
}

/* Form checkbox styling */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background: #68cecf;
  border-color: #68cecf;
}

.clients-cards-layout {
  align-items: stretch;
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.clients-equal-card {
  height: 100%;
}

.clients-flow-row {
  position: relative;
}

.clients-flow-row .gtm-card {
  position: relative;
  z-index: 7;
}

.clients-flow-row .gtm-quote {
  min-height: 100%;
  z-index: 4;
}

.clients-corner-star {
  margin: -5.2rem 0;
  position: relative;
  z-index: 9;
  pointer-events: none;
}

.clients-corner-star svg {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

@media (max-width: 767px) {
  .clients-corner-star {
    margin: -0.5rem 0;
  }
}

@media (min-width: 768px) {
  .clients-cards-layout {
    padding: 0;
  }
}

.clients-floating-logos {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.clients-float-logo {
  position: absolute;
  width: clamp(66px, 7.4vw, 126px);
  height: auto;
  opacity: 0.085;
  filter: grayscale(1) saturate(0) contrast(0.62) brightness(0.78);
  mix-blend-mode: luminosity;
}

.clients-statement {
  position: relative;
  z-index: 6;
}

.brand-ribbon-wrap {
  position: relative;
  z-index: 6;
}

.brand-ribbon-fullbleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.brand-ribbon {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.brand-ribbon-track {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  min-width: max-content;
  padding: 0.35rem 1rem 0.45rem;
  animation: brand-ribbon-marquee 34s linear infinite;
}

.brand-ribbon:hover .brand-ribbon-track {
  animation-play-state: paused;
}

.brand-ribbon-item {
  flex: 0 0 auto;
  width: clamp(112px, 10vw, 156px);
  min-width: clamp(112px, 10vw, 156px);
  height: clamp(52px, 5vw, 72px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  border: none;
}

.brand-ribbon-item img {
  display: block;
  max-width: 82%;
  max-height: 76%;
  width: auto;
  height: auto;
  object-fit: contain;
}

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