:root {
  --ilima-blue: #2563eb;
  --ilima-indigo: #4338ca;
  --ilima-ink: #172033;
  --ilima-muted: #64748b;
  --ilima-surface: rgba(255, 255, 255, 0.94);
  --ilima-border: rgba(148, 163, 184, 0.28);
  --ilima-shadow: 0 18px 45px rgba(30, 41, 59, 0.12);
}

html { scroll-behavior: smooth; }

body {
  color: var(--ilima-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(125, 211, 252, 0.22), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(196, 181, 253, 0.20), transparent 32rem),
    #f8fafc;
}

header {
  background-image: linear-gradient(110deg, #1d4ed8 0%, #4338ca 52%, #6366f1 100%);
}

nav {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.88) !important;
}

nav a,
header a,
button,
.group,
[class*="rounded-2xl"] {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

nav a:hover,
header a:hover,
button:hover,
.group:hover {
  transform: translateY(-2px);
}

.group:hover,
[class*="hover:shadow-xl"]:hover,
[class*="hover:shadow-lg"]:hover {
  box-shadow: var(--ilima-shadow);
}

main > div,
main .max-w-6xl,
main .max-w-5xl {
  position: relative;
}

main > div::before,
main .max-w-6xl::before,
main .max-w-5xl::before {
  content: "";
  position: absolute;
  inset: -1.5rem -1rem auto auto;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, .24), rgba(244, 114, 182, .10));
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 640px) {
  nav a { padding-left: .85rem !important; padding-right: .85rem !important; }
  main { padding: 1.25rem !important; }
}