:root {
  --bg: #0a0d1a;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #d946ef;
  --secondary-glow: rgba(217, 70, 239, 0.35);
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.3);
  --text: #ffffff;
  --text-muted: #94a3b8;
  --border: rgba(99, 102, 241, 0.2);
  --card-bg: rgba(15, 20, 35, 0.6);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes floating {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(30px, -50px);
  }

  66% {
    transform: translate(-20px, 40px);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bg-waves.png');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: -2;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  z-index: 10000;
  pointer-events: none;
}

.glow {
  position: fixed;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 75%);
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  animation: floating 25s infinite ease-in-out;
}

.glow-1 {
  top: -25vw;
  left: -10vw;
  animation-delay: 0s;
}

.glow-2 {
  bottom: -25vw;
  right: -10vw;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 75%);
  animation-delay: -5s;
}

.glow-3 {
  top: 30%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 75%);
  animation-delay: -10s;
}

.glow-4 {
  bottom: 10%;
  left: 10%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 75%);
  animation-delay: -15s;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
}

.logo-text {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background:
    linear-gradient(110deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 38%,
      rgba(244, 248, 253, 1) 41%,
      rgba(255, 255, 255, 1) 44.5%,
      rgba(228, 236, 247, 1) 46.8%,
      rgba(158, 174, 198, 1) 50%,
      rgba(234, 241, 250, 1) 53.2%,
      rgba(255, 255, 255, 1) 56.5%,
      rgba(248, 251, 255, 1) 59%,
      rgba(255, 255, 255, 1) 100%);
  background-size: 245% 100%;
  background-position: 130% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-sheen 14.5s ease-in-out infinite;
  will-change: background-position, filter;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  background-size: 300% 300%;
  animation: gradientMove 8s ease infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 18px 44px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 17px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 40px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px var(--primary-glow);
}

.btn-outline {
  border: 1px solid var(--border);
  color: white;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  padding: 56px 40px;
  border-radius: 32px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(217, 70, 239, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.services,
.solutions,
.omnichannel {
  padding: 140px 0;
}

.services-grid,
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.feature-item {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}

.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--primary);
  opacity: 0.8;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  -moz-transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  -ms-transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  -o-transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(11, 16, 31, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(99, 102, 241, 0.18);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
  z-index: 1200;
  isolation: isolate;
}

.back-to-top i {
  position: relative;
  z-index: 2;
}

.back-to-top__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.back-to-top__outline-path {
  --outline-start-offset: -5.35;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  stroke-dashoffset: var(--outline-start-offset);
  filter: drop-shadow(0 0 8px rgba(180, 162, 255, 0.95));
  opacity: 0;
  animation: back-to-top-border-sweep 61.8s linear infinite;
  -webkit-animation: back-to-top-border-sweep 61.8s linear infinite;
  -webkit-filter: drop-shadow(0 0 8px rgba(180, 162, 255, 0.95));
}

.back-to-top:hover {
  background: rgba(18, 24, 44, 0.92);
  border-color: rgba(129, 140, 248, 0.48);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes back-to-top-border-sweep {
  0% {
    opacity: 0;
    stroke-dasharray: 0 100;
    stroke-dashoffset: var(--outline-start-offset);
  }

  0.01% {
    opacity: 1;
  }

  2.9126% {
    opacity: 1;
    stroke-dasharray: 100 0;
    stroke-dashoffset: var(--outline-start-offset);
  }

  3.08% {
    opacity: 0.75;
    stroke-dasharray: 100 0;
    stroke-dashoffset: var(--outline-start-offset);
  }

  3.45% {
    opacity: 0;
    stroke-dasharray: 100 0;
    stroke-dashoffset: var(--outline-start-offset);
  }

  100% {
    opacity: 0;
    stroke-dasharray: 100 0;
    stroke-dashoffset: var(--outline-start-offset);
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 80dvw;
  }
}

@media (max-width: 1024px) {

  .platform-content,
  .omnichannel-content {
    flex-direction: column;
  }

  .services-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 24px;
  }

  .card {
    padding: 40px 30px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 90dvw;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}

@keyframes logo-sheen {
  0% {
    background-position: 130% 50%;
  }

  0.15% {
    background-position: 130% 50%;
  }

  31.0345% {
    background-position: -30% 50%;
  }

  32.2% {
    background-position: -30% 50%;
  }

  100% {
    background-position: -30% 50%;
  }
}