:root {
  color-scheme: light;
}

:root[data-theme='dark'] {
  color-scheme: dark;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background-color: #f5f7f9;
}

:root[data-theme='dark'] body {
  background-color: #05070a;
}

.bg-grid {
  background-image: radial-gradient(
      rgba(19, 56, 24, 0.18) 1px,
      rgba(3, 7, 18, 0) 1px
    ),
    radial-gradient(rgba(5, 12, 7, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.dark .bg-grid {
  background-image: radial-gradient(
      rgba(34, 197, 94, 0.15) 1px,
      rgba(3, 7, 18, 0) 1px
    ),
    radial-gradient(rgba(132, 204, 22, 0.08) 1px, transparent 1px);
}

.shadow-elevated {
  box-shadow:
    0 20px 45px -25px rgba(1, 57, 27, 0.65),
    0 10px 30px -12px rgba(16, 185, 129, 0.25);
}

.card-gradient {
  position: relative;
  overflow: hidden;
}

.card-gradient::before {
  content: '';
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(34, 197, 94, 0.1),
    rgba(134, 239, 172, 0.2),
    rgba(52, 211, 153, 0.12),
    transparent 65%
  );
  transition: transform 0.8s ease;
}

.card-gradient:hover::before {
  transform: rotate(12deg) scale(1.05);
}

.card-gradient > * {
  position: relative;
  z-index: 1;
}

.badge-pill {
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      140deg,
      rgba(34, 197, 94, 0.55),
      rgba(16, 185, 129, 0.65)
    ),
    linear-gradient(45deg, rgba(15, 118, 110, 0.3), transparent);
  mix-blend-mode: multiply;
}

.image-placeholder svg,
.image-placeholder img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.dark .image-placeholder::before {
  background: linear-gradient(
      140deg,
      rgba(74, 222, 128, 0.55),
      rgba(34, 197, 94, 0.65)
    ),
    linear-gradient(45deg, rgba(52, 211, 153, 0.3), transparent);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(34, 197, 94, 0.15);
  backdrop-filter: blur(16px);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(52, 211, 153, 0.15);
}

.floating-dots::before,
.floating-dots::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 100%;
  filter: blur(70px);
  opacity: 0.55;
}

.floating-dots::before {
  top: -60px;
  right: 10%;
  background: rgba(74, 222, 128, 0.45);
}

.floating-dots::after {
  bottom: -80px;
  left: 15%;
  background: rgba(59, 130, 246, 0.25);
}

.dark .floating-dots::before {
  background: rgba(134, 239, 172, 0.4);
}

.dark .floating-dots::after {
  background: rgba(45, 212, 191, 0.3);
}

@media (max-width: 640px) {
  .floating-dots::before,
  .floating-dots::after {
    width: 120px;
    height: 120px;
    filter: blur(48px);
  }
}
