body {
  font-family: 'Inter', sans-serif;
  background-color: #e2e8f0;
  /* Slate 200 */
  color: #18181b;
  /* Zinc 900 */
  /* Subtle mesh gradient background - Light Mode */
  background-image:
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
    /* Sky 500 */
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.1) 0px, transparent 50%),
    /* Purple 500 */
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(168, 85, 247, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  background-size: cover;
  background-attachment: fixed;
  background-size: cover;
}

.dark body {
  background-color: #09090b;
  /* Zinc 950 */
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(147, 51, 234, 0.15) 0px, transparent 50%);
}

/* Technical Dot Grid Background - Light Mode (Darker Dots) */
.bg-dot-grid {
  background-size: 40px 40px;
  background-image: radial-gradient(circle, rgba(161, 161, 170, 0.4) 1px, transparent 1px);
  /* Zinc 400 */
}

/* Smooth scrolling for the whole app */
html {
  scroll-behavior: smooth;
}

/* Animation utilities if needed */
@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(300%);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 3s linear infinite;
}

/* Gradient Text Animation */
@keyframes gradient-xy {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient-text {
  background-size: 200% auto;
  animation: gradient-xy 3s linear infinite;
}

/* Loader for Spline */
.loader {
  width: 48px;
  height: 48px;
  border: 3px solid #e4e4e7;
  border-bottom-color: #3b82f6;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Liquid Glass / Apple Style Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.glass-button {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-button:active {
  transform: translateY(0px);
}

/* Dark Mode Glass Overrides */
.dark .glass-panel {
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 20px -1px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dark .glass-button {
  background: rgba(39, 39, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
}

.dark .glass-button:hover {
  background: rgba(63, 63, 70, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

/* iOS App Icon Style */
.app-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22%;
  /* iOS Squircle approximation */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 16px -4px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.app-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  opacity: 0.5;
}

/* Specific Icon Gradients */
.icon-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  color: white;
}

.icon-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
  color: white;
}

.icon-gradient-red {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  color: white;
}

.icon-gradient-green {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
  color: white;
}

.icon-gradient-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: white;
}

.icon-gradient-dark {
  background: linear-gradient(135deg, #52525b 0%, #18181b 100%);
  color: white;
}