:root {
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --border-dark: #334155;
  --blue: #3b82f6;
  --purple: #8b5cf6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-dark);
  color: #fff;
}

.solutions {
  opacity: 0.5 !important;
}

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

@keyframes glowPulse {
  0%, 100% {
    filter: 
      drop-shadow(0 0 10px rgba(59, 130, 246, 0.9))
      drop-shadow(0 0 80px rgba(139, 92, 246, 0.6));
  }
  50% {
    filter: 
      drop-shadow(0 0 15px rgba(59, 130, 246, 1))
      drop-shadow(0 0 100px rgba(139, 92, 246, 0.8));
  }
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--blue),
    var(--purple),
    var(--blue),
    var(--purple),
    var(--blue)
  );

  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation:
    gradientMove 4s ease infinite,
    glowPulse 2s ease-in-out infinite;

  font-weight: 700;
  will-change: filter, background-position;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.glass {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 1rem;
  overflow: hidden;
}

.card-hover {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(59, 130, 246, 0.18);
}

.hero-cta-group {
  width: 100%;
}

.hero-cta {
  width: max-content;
  min-width: 220px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

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

.code-glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.code-glow:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.3),
    0 0 10px rgba(59, 130, 246, 0.2);
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.3;
  animation: blob 7s infinite;
  z-index: 0;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

@keyframes blob {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.nav-link {
  color: #cbd5e1;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.mobile-link {
  display: block;
  color: #cbd5e1;
}

.mobile-link:hover {
  color: #fff;
}

.code-block-scroll {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.code-block-scroll::-webkit-scrollbar {
  height: 6px;
}

.code-block-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.9);
  border-radius: 999px;
}

.hero-code-stack {
  position: relative;
  z-index: 5;
}

.hero-code-card {
  overflow: hidden;
}

.hero-badge {
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

@media (min-width: 1024px) {
  .hero-code-stack {
    margin-top: 2.5rem;
  }
}

.ship-badge {
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.that-easy-badge {
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 9999px;
  font-weight: 600;
  transition: opacity 0.2s;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .hero-grid,
  .hero-grid > * {
    min-width: 0;
  }

  .hero-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  #home h1,
  #home .hero-content p {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  #home h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.2;
  }

  #home .max-w-7xl {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-code-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    min-width: 0;
    margin-top: 2.5rem;
  }

  .hero-code-card {
    order: 1;
    width: min(100%, 420px);
    align-self: stretch;
  }

  .hero-badge {
    position: static;
    order: 0;
    width: min(100%, 360px);
    align-self: flex-end;
  }

  .that-easy-badge {
    order: 2;
    align-self: flex-start;
  }

  .code-block-scroll {
    margin-right: 0;
  }

  .btn-primary {
    padding: 0.85rem 1.75rem;
  }

  .mobile-link {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
  }

  #home {
    align-items: flex-start;
    padding-top: 6rem;
    padding-bottom: 4rem;
    overflow-x: hidden;
  }

  #home .grid {
    align-items: flex-start;
    width: 100%;
  }

  .hero-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-brand {
    min-width: 0;
  }

  nav .max-w-7xl {
    width: 100%;
    max-width: 100%;
  }
}
