/* CSS Variables and Base Styles */
:root {
    /* Premium Purple Color Palette */
    --primary-dark: #0a0014;
    --primary-darker: #130025;
    --purple-900: #2e1065;
    --purple-800: #3730a3;
    --purple-700: #4c1d95;
    --purple-600: #5b21b6;
    --purple-500: #6d28d9;
    --purple-400: #7c3aed;
    --purple-300: #8b5cf6;
    --purple-200: #a78bfa;
    --purple-100: #c4b5fd;
    --purple-50: #ede9fe;

    /* Accent Colors */
    --accent-pink: #ec4899;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-gold: #fbbf24;

    /* Neutrals */
    --pure-white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Premium Gradients */
    --gradient-dark: linear-gradient(180deg, #0a0014 0%, #130025 25%, #1a0033 50%, #130025 75%, #0a0014 100%);
    --gradient-purple: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-purple-pink: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 25%, #ec4899 100%);
    --gradient-purple-indigo: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #6366f1 100%);
    --gradient-mesh:
        radial-gradient(at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(at 80% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);

    /* Glass Effects */
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-purple: rgba(139, 92, 246, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-purple: rgba(139, 92, 246, 0.2);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-purple: 0 4px 24px rgba(139, 92, 246, 0.4);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-dark);
    color: var(--pure-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: 1;
}

/* Typography System */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--pure-white);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

/* Premium Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, transparent, var(--purple-400), transparent);
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card:hover::before {
    opacity: 0.4;
    animation: borderRotate 3s linear infinite;
}

.glass-card:hover::after {
    opacity: 1;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-400) 100%);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple-400) 0%, var(--purple-300) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1; /* stay behind text */
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
}

.btn-primary:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
    transition: width 0s, height 0s, opacity 0.3s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--pure-white);
    border-color: var(--purple-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-400);
}
