/* ============================================
   UNICORN-LEVEL STYLES - World-Class Design
   Inspired by: Stripe, Linear, Vercel, Framer, Apple
   ============================================ */

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
}

.custom-cursor.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: rgba(99, 102, 241, 0.6);
}

body {
    cursor: none;
}

a, button, .card-tilt {
    cursor: none;
}

/* ===== HERO PARTICLES CANVAS ===== */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== BENTO GRID LAYOUT ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
}

.bento-item {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.bento-large {
    grid-column: span 8;
}

.bento-medium {
    grid-column: span 6;
}

.bento-small {
    grid-column: span 4;
}

@media (max-width: 1024px) {
    .bento-large, .bento-medium {
        grid-column: span 12;
    }
    .bento-small {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .bento-small {
        grid-column: span 12;
    }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text-animated {
    background: linear-gradient(90deg, #000 0%, #667eea 25%, #764ba2 50%, #667eea 75%, #000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s linear infinite;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== STATISTICS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.125rem;
    color: #6B7280;
    font-weight: 500;
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.testimonial-item {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    width: 100%;
    pointer-events: none;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

.testimonial-content {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #1F2937;
    margin-bottom: 2rem;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.carousel-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #000;
    color: white;
    transform: scale(1.1);
}

/* ===== FEATURE CARDS WITH 3D EFFECT ===== */
.feature-card-3d {
    perspective: 1000px;
    transition: transform 0.6s;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.feature-card-3d:hover .feature-card-inner {
    transform: rotateY(10deg) rotateX(5deg);
}

.feature-card-front {
    backface-visibility: hidden;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== PRICING TOGGLE ===== */
.pricing-toggle {
    display: inline-flex;
    background: #F3F4F6;
    border-radius: 9999px;
    padding: 0.25rem;
    position: relative;
}

.pricing-toggle-option {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.pricing-toggle-option.active {
    color: white;
}

.pricing-toggle-slider {
    position: absolute;
    background: #000;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* ===== ENHANCED BUTTONS ===== */
.btn-unicorn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-unicorn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-unicorn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-unicorn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.btn-outline-unicorn {
    background: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 1.25rem 3rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-unicorn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-outline-unicorn:hover::before {
    left: 0;
}

.btn-outline-unicorn:hover {
    color: white;
}

/* ===== FLOATING LABELS ===== */
.floating-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 0 8px;
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    margin: 4rem 0;
}

/* ===== BADGE STYLES ===== */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.badge-new::before {
    content: '✨';
}

/* ===== GRID BACKGROUND ===== */
.grid-background {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    a, button, .card-tilt {
        cursor: pointer;
    }
    
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .testimonial-text {
        font-size: 1.25rem;
    }
    
    .btn-unicorn,
    .btn-outline-unicorn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== FOCUS STATES ===== */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 4px;
}

/* ===== SELECTION STYLES ===== */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #000;
}

/* ===== SCROLLBAR STYLES ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
