@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: 255 247 237;
  --foreground: 30 18 58;
}

html,
body {
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(60rem 30rem at 80% -10%, rgba(255, 95, 162, 0.18), transparent 60%),
    radial-gradient(50rem 24rem at -10% 20%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(40rem 20rem at 50% 100%, rgba(56, 189, 248, 0.16), transparent 60%);
  background-attachment: fixed;
}

.text-gradient {
  background: linear-gradient(120deg, #ff5fa2 0%, #8b5cf6 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Prevent rounded glyphs (Fredoka 's', 'g') from being clipped by background-clip:text */
  padding-inline-end: 0.05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-primary {
  @apply inline-flex items-center justify-center gap-2 rounded-full px-6 py-3 text-base font-semibold text-white shadow-play transition-all duration-200;
  background-image: linear-gradient(120deg, #ff5fa2 0%, #8b5cf6 60%, #38bdf8 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
}

.btn-ghost {
  @apply inline-flex items-center justify-center gap-2 rounded-full border-2 border-slate-900/10 bg-white/70 px-6 py-3 text-base font-semibold text-slate-900 backdrop-blur transition-all duration-200 hover:-translate-y-0.5 hover:bg-white;
}

.card-tilt {
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms;
  will-change: transform;
}
.card-tilt:hover {
  transform: translateY(-8px) rotate(-1deg);
}

/* Floating decorative shapes */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* Hide scrollbar on horizontal scroll containers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
