/* Tailwind-inspired utility classes for SpellTales Landing Page */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility classes */
.min-h-screen { min-height: 100vh; }
.bg-white { background-color: #ffffff; }
.text-slate-900 { color: #0f172a; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-indigo-700 { color: #4338ca; }
.text-indigo-800 { color: #3730a3; }

.bg-emerald-600 { background-color: #059669; }
.bg-emerald-700 { background-color: #047857; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-800 { background-color: #1e293b; }
.bg-emerald-50 { background-color: #ecfdf5; }

.border { border-width: 1px; }
.border-slate-200 { border-color: #e2e8f0; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.m-0 { margin: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-20 { margin-bottom: 5rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }

.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.sticky { position: sticky; }
.top-0 { top: 0; }
.z-20 { z-index: 20; }

.backdrop-blur { backdrop-filter: blur(8px); }

.aspect-video { aspect-ratio: 16 / 9; }

.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.overflow-hidden { overflow: hidden; }

.space-y-3 > * + * { margin-top: 0.75rem; }

.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:text-indigo-800:hover { color: #3730a3; }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:items-center { align-items: center; }
  .md\:pt-14 { padding-top: 3.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:flex-row { flex-direction: row; }
}

/* Custom gradient backgrounds */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

.from-white { --tw-gradient-from: #ffffff; --tw-gradient-to: rgb(255 255 255 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-white { --tw-gradient-to: rgb(255 255 255 / 0); --tw-gradient-stops: var(--tw-gradient-from), #ffffff, var(--tw-gradient-to); }
.to-white { --tw-gradient-to: #ffffff; }

.from-indigo-700\/20 { --tw-gradient-from: rgb(67 56 202 / 0.2); --tw-gradient-to: rgb(67 56 202 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-violet-700\/20 { --tw-gradient-to: rgb(109 40 217 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(109 40 217 / 0.2), var(--tw-gradient-to); }
.to-amber-400\/20 { --tw-gradient-to: rgb(251 191 36 / 0.2); }

.from-indigo-700\/10 { --tw-gradient-from: rgb(67 56 202 / 0.1); --tw-gradient-to: rgb(67 56 202 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-violet-700\/10 { --tw-gradient-to: rgb(109 40 217 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(109 40 217 / 0.1), var(--tw-gradient-to); }
.to-amber-400\/10 { --tw-gradient-to: rgb(251 191 36 / 0.1); }

.from-indigo-900 { --tw-gradient-from: #312e81; --tw-gradient-to: rgb(49 46 129 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-violet-900 { --tw-gradient-to: rgb(76 29 149 / 0); --tw-gradient-stops: var(--tw-gradient-from), #4c1d95, var(--tw-gradient-to); }
.to-slate-900 { --tw-gradient-to: #0f172a; }

.from-black\/40 { --tw-gradient-from: rgb(0 0 0 / 0.4); --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-black\/10 { --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / 0.1), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }

.from-transparent { --tw-gradient-from: transparent; --tw-gradient-to: rgb(0 0 0 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-slate-200 { --tw-gradient-to: rgb(226 232 240 / 0); --tw-gradient-stops: var(--tw-gradient-from), #e2e8f0, var(--tw-gradient-to); }

/* Blur effects */
.blur-3xl { filter: blur(64px); }

/* Opacity */
.opacity-70 { opacity: 0.7; }

/* Positioning utilities */
.pointer-events-none { pointer-events: none; }
.fixed { position: fixed; }
.-z-10 { z-index: -10; }
.-top-24 { top: -6rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.h-\[520px\] { height: 520px; }
.w-\[980px\] { width: 980px; }
.rounded-\[60px\] { border-radius: 60px; }
.top-\[420px\] { top: 420px; }
.inset-x-0 { left: 0; right: 0; }
.h-px { height: 1px; }

/* Flexbox utilities */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Width and height */
.h-9 { height: 2.25rem; }
.w-9 { width: 2.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.h-2 { height: 0.5rem; }
.w-2 { width: 0.5rem; }
.h-full { height: 100%; }
.w-full { width: 100%; }

/* Object fit */
.object-cover { object-fit: cover; }

/* Text alignment */
.text-center { text-align: center; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Focus styles */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); }
.focus\:ring-emerald-500:focus { --tw-ring-color: #10b981; }

/* Group hover effects */
.group:hover .group-hover\:bg-slate-800 { background-color: #1e293b; }
.group:hover .group-hover\:bg-white { background-color: #ffffff; }

/* Custom component styles */
.landing-page-container {
  min-height: 100vh;
  background-color: #ffffff;
  color: #0f172a;
}

.landing-hero-gradient {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 50%, rgba(251, 191, 36, 0.1) 100%);
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Custom button styles */
.btn-primary {
  background-color: #059669;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #047857;
}

.btn-secondary {
  background-color: white;
  color: #0f172a;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #f8fafc;
}