/* Utility classes replacing Tailwind for this page */
* {
    box-sizing: border-box;
}

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

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

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

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.top-1\/2 { top: 50%; }
.bottom-12 { bottom: 3rem; }
.right-12 { right: 3rem; }
.-top-32 { top: -8rem; }
.-right-32 { right: -8rem; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.-z-10 { z-index: -10; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.w-80 { width: 20rem; }
.w-3\/4 { width: 75%; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-32 { height: 8rem; }
.h-80 { height: 20rem; }

.min-h-screen { min-height: 100vh; }
.min-w-full { min-width: 100%; }
.min-w-200 { min-width: 200px; }
.min-w-0 { min-width: 0; }

.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }

/* Spacing */
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.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; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-4 { padding-left: 1rem; }
.pl-8 { padding-left: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-14 { margin-bottom: 3.5rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-3 { margin-left: 0.75rem; }

.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 2rem;
}

.col-span-3 { grid-column: span 3 / span 3; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.text-center { text-align: center; }
.text-left { text-align: left; }

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

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Text colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-cyan-400 { color: #22d3ee; }
.text-cyan-500 { color: #06b6d4; }
.text-violet-300 { color: #c4b5fd; }
.text-violet-400 { color: #a78bfa; }
.text-green-400 { color: #34d399; }
.text-pink-400 { color: #f472b6; }
.text-red-400 { color: #f87171; }
.text-yellow-400 { color: #facc15; }
.text-yellow-500 { color: #eab308; }

/* Backgrounds */
.bg-transparent { background-color: transparent; }
.bg-black { background-color: #000000; }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-white { background-color: #ffffff; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-900\/40 { background-color: rgba(17, 24, 39, 0.4); }
.bg-gray-900\/60 { background-color: rgba(17, 24, 39, 0.6); }
.bg-gray-900\/80 { background-color: rgba(17, 24, 39, 0.8); }
.bg-gray-900\/90 { background-color: rgba(17, 24, 39, 0.9); }
.bg-gray-950\/80 { background-color: rgba(3, 7, 18, 0.8); }
.bg-violet-600\/10 { background-color: rgba(124, 58, 237, 0.1); }
.bg-violet-600\/20 { background-color: rgba(124, 58, 237, 0.2); }
.bg-violet-900\/20 { background-color: rgba(76, 29, 149, 0.2); }

.bg-cover { background-size: cover; background-position: center; }

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-from, #000), var(--tw-gradient-to, #000));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from, #000), var(--tw-gradient-to, #000));
}

.from-cyan-400 { --tw-gradient-from: #22d3ee; --tw-gradient-to: rgba(34, 211, 238, 0); }
.from-cyan-500 { --tw-gradient-from: #06b6d4; --tw-gradient-to: rgba(6, 182, 212, 0); }
.from-gray-900 { --tw-gradient-from: #111827; --tw-gradient-to: rgba(17, 24, 39, 0); }
.to-black { --tw-gradient-to: #000000; }
.to-violet-500 { --tw-gradient-to: #8b5cf6; }
.to-violet-600 { --tw-gradient-to: #7c3aed; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-dashed { border-style: dashed; }

.border-gray-700 { border-color: #374151; }
.border-gray-700\/50 { border-color: rgba(55, 65, 81, 0.5); }
.border-gray-800 { border-color: #1f2937; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-violet-500 { border-color: #8b5cf6; }
.border-violet-500\/30 { border-color: rgba(139, 92, 246, 0.3); }
.border-violet-500\/50 { border-color: rgba(139, 92, 246, 0.5); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }

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

/* Effects */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-glow-white-30 { box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); }
.shadow-glow-violet-20 { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }
.shadow-glow-violet-50 { box-shadow: 0 0 50px rgba(139, 92, 246, 0.3); }
.shadow-violet-500 { text-shadow: 0 0 10px rgba(139, 92, 246, 0.6); }

.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15)); }
.blur-3xl { filter: blur(64px); }
.blur-100 { filter: blur(100px); }
.blur-150 { filter: blur(150px); }
.blur-sm { filter: blur(4px); }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.opacity-10 { opacity: 0.1; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }

.mix-blend-screen { mix-blend-mode: screen; }
.object-contain { object-fit: contain; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }

.scroll-smooth { scroll-behavior: smooth; }
.pointer-events-none { pointer-events: none; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Transforms */
.transform {
    --tw-translate-x: 0px;
    --tw-translate-y: 0px;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) scale(var(--tw-scale-x), var(--tw-scale-y));
}

.-translate-y-1\/2 {
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}

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

.transition-all {
    transition-property: all;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity {
    transition-property: opacity;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

.transition-transform {
    transition-property: transform;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Hover states */
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-gray-700:hover { background-color: #374151; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-gray-900:hover { background-color: #111827; }
.hover\:bg-red-900\/20:hover { background-color: rgba(127, 29, 29, 0.2); }
.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }

.hover\:border-cyan-500:hover { border-color: #06b6d4; }
.hover\:border-gray-500:hover { border-color: #6b7280; }
.hover\:border-red-500\/50:hover { border-color: rgba(239, 68, 68, 0.5); }
.hover\:border-violet-500:hover { border-color: #8b5cf6; }

.hover\:text-cyan-400:hover { color: #22d3ee; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-red-300:hover { color: #fca5a5; }
.hover\:text-red-400:hover { color: #f87171; }
.hover\:text-violet-400:hover { color: #a78bfa; }
.hover\:text-white:hover { color: #ffffff; }

.hover\:scale-105:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}

.hover\:scale-110:hover {
    --tw-scale-x: 1.10;
    --tw-scale-y: 1.10;
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}

.hover\:-translate-y-1:hover {
    --tw-translate-y: -0.25rem;
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}

.hover\:from-cyan-600:hover { --tw-gradient-from: #0891b2; }
.hover\:to-violet-700:hover { --tw-gradient-to: #6d28d9; }

/* Focus states */
.focus\:border-cyan-500:focus { border-color: #06b6d4; }

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll snap */
.snap-x { scroll-snap-type: x var(--tw-scroll-snap-strictness, proximity); }
.snap-mandatory { --tw-scroll-snap-strictness: mandatory; }
.snap-start { scroll-snap-align: start; }

/* Group hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-cyan-400 { color: #22d3ee; }
.group:hover .group-hover\:text-violet-300 { color: #c4b5fd; }
.group:hover .group-hover\:scale-110 {
    --tw-scale-x: 1.10;
    --tw-scale-y: 1.10;
    transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) scale(var(--tw-scale-x, 1), var(--tw-scale-y, 1));
}

/* Selection */
.selection-violet ::selection { background-color: #8b5cf6; color: #ffffff; }
.selection-violet ::-moz-selection { background-color: #8b5cf6; color: #ffffff; }

/* Custom replacements for bracketed Tailwind utilities */
.builder-bg-image {
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
}

/* Responsive */
@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:items-start { align-items: flex-start; }

    .md\:p-14 { padding: 3.5rem; }
    .md\:p-5 { padding: 1.25rem; }
    .md\:pl-8 { padding-left: 2rem; }

    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:text-base { font-size: 1rem; }
    .md\:text-left { text-align: left; }
    .md\:text-sm { font-size: 0.875rem; }

    .md\:w-48 { width: 12rem; }
    .md\:w-56 { width: 14rem; }
    .md\:w-auto { width: auto; }
    .md\:h-48 { height: 12rem; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:gap-5 { gap: 1.25rem; }
    .lg\:mb-12 { margin-bottom: 3rem; }
    .lg\:p-8 { padding: 2rem; }
    .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .lg\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

    .lg\:text-2xl { font-size: 1.5rem; }
    .lg\:text-base { font-size: 1rem; }
    .lg\:text-lg { font-size: 1.125rem; }
    .lg\:text-sm { font-size: 0.875rem; }
    .lg\:text-xl { font-size: 1.25rem; }

    .lg\:w-14 { width: 3.5rem; }
    .lg\:h-14 { height: 3.5rem; }
}

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Additional utilities used dynamically */
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(139, 92, 246, 0.6)); }
.ring-violet-500 { --tw-ring-color: rgba(139, 92, 246, 0.8); }
