:root {
    --site-bg: #f8fafc;
    --site-bg-soft: #ffffff;
    --site-surface: rgba(255, 255, 255, 0.85);
    --site-surface-strong: rgba(255, 255, 255, 0.95);
    --site-border: rgba(226, 232, 240, 0.8);
    --site-border-strong: rgba(99, 102, 241, 0.25);
    --site-shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.04), 0 12px 48px -12px rgba(15, 23, 42, 0.04);
    --site-shadow-hover: 0 8px 32px -4px rgba(79, 70, 229, 0.1), 0 24px 64px -12px rgba(79, 70, 229, 0.12);
    --site-text: #0f172a;
    --site-muted: #64748b;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--site-text);
    background-color: var(--site-bg);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.06), transparent 25%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    transform: translate3d(0, 0, 0);
}

body::before {
    top: -10vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
}

body::after {
    right: -10vw;
    bottom: -10vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%);
}

nav.sticky {
    background: rgba(255, 255, 255, 0.6) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.sticky.is-scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}

.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #0ea5e9 100%) !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

header {
    position: relative;
}

.site-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
    border: 1px solid var(--site-border) !important;
    box-shadow: var(--site-shadow) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s ease;
    border-radius: 1.5rem !important;
}

.site-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent 40%, transparent 60%, rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.site-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--site-shadow-hover) !important;
    border-color: var(--site-border-strong) !important;
}

.site-card:hover::before {
    opacity: 1;
}

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

.site-dark-card {
    background: linear-gradient(180deg, #1e293b, #0f172a) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 24px 64px -12px rgba(15, 23, 42, 0.4) !important;
    color: #f8fafc !important;
}

.site-dark-card * {
    color: inherit;
}

.site-dark-card:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 32px 80px -12px rgba(99, 102, 241, 0.2) !important;
}

.site-button-lift {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
}

.site-button-lift:hover {
    transform: translateY(-2px) scale(1.02);
}

.site-button-lift:active {
    transform: translateY(0) scale(0.98);
}

a[class*="bg-indigo-600"],
button[class*="bg-indigo-600"] {
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.4);
}

a[class*="bg-indigo-600"]:hover,
button[class*="bg-indigo-600"]:hover {
    box-shadow: 0 14px 28px -8px rgba(79, 70, 229, 0.5);
    background-color: #4f46e5;
}

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.02) inset;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:focus,
textarea:focus,
select:focus {
    background: #ffffff;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 24px -4px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Premium Reveal Animation */
.site-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.site-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.site-reveal-delay-0 { transition-delay: 0ms; }
.site-reveal-delay-1 { transition-delay: 100ms; }
.site-reveal-delay-2 { transition-delay: 200ms; }
.site-reveal-delay-3 { transition-delay: 300ms; }
.site-reveal-delay-4 { transition-delay: 400ms; }
.site-reveal-delay-5 { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-card,
    .site-button-lift,
    .site-reveal,
    nav.sticky {
        transition: none !important;
    }

    .site-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
