/**
 * X10 Creator Kits - Premium Dark Theme
 * A stunning, modern SaaS design with vibrant gradients
 */

/* ============================================
   DESIGN TOKENS - Color Palette
   ============================================ */
:root {
    /* Primary Gradient Colors */
    --gradient-start: #667eea;
    --gradient-mid: #764ba2;
    --gradient-end: #ff6b6b;

    /* Accent Colors */
    --accent-orange: #FF6B35;
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;

    /* Surface Colors (Dark to Light) */
    --bg-dark: #0f0f23;
    --bg-surface: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.8);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Glow Effects */
    --glow-purple: 0 0 60px rgba(168, 85, 247, 0.3);
    --glow-orange: 0 0 40px rgba(255, 107, 53, 0.4);
    --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.3);
}

/* ============================================
   HERO SECTION - Dark Gradient Background
   ============================================ */
.hero-gradient {
    background: linear-gradient(135deg,
            var(--bg-dark) 0%,
            #16213e 30%,
            #1a1a40 60%,
            #0f0f23 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Mesh Gradient Overlay */
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: meshFloat 15s ease-in-out infinite;
}

@keyframes meshFloat {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Subtle Grid Pattern */
.hero-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        var(--glow-purple);
}

/* ============================================
   TEXT GRADIENTS - Vibrant & Eye-catching
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg,
            #667eea 0%,
            #764ba2 25%,
            #ec4899 50%,
            #ff6b6b 75%,
            #FF6B35 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Alternative Gradient - Blue to Cyan */
.text-gradient-blue {
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS - Premium with Glow
   ============================================ */
.btn-accent {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 50%, #FF6B35 100%);
    background-size: 200% 200%;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    border: none;
    box-shadow:
        0 2px 10px rgba(255, 107, 53, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(255, 107, 53, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    background-position: 100% 50%;
}

.btn-accent:hover::before {
    left: 100%;
}

/* Secondary Button - Ghost Style */
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

/* ============================================
   BADGE - Glowing Pill
   ============================================ */
.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 50px;
    color: rgba(192, 132, 252, 0.9);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.15);
    }

    50% {
        box-shadow: 0 0 10px 2px rgba(168, 85, 247, 0.08);
    }
}

/* ============================================
   FEATURE CARDS - Hover Glow Effect
   ============================================ */
.feature-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(15, 15, 35, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0), rgba(0, 212, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
}

.feature-card:hover::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(0, 212, 255, 0.5));
}

/* ============================================
   FLOATING ANIMATION
   ============================================ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   SOCIAL PROOF AVATARS
   ============================================ */
.avatar-stack {
    display: flex;
}

.avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -8px;
    transition: transform 0.2s ease;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.avatar-stack img:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* ============================================
   CHAT DEMO UI
   ============================================ */
.chat-bubble {
    max-width: 90%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-ai {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

/* Typing Indicator */
.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    margin: 0 2px;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   PRICE CARDS
   ============================================ */
.price-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 35, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: var(--glow-purple);
}

.price-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #ec4899, #FF6B35);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section-dark {
    background: var(--bg-dark);
}

.section-surface {
    background: var(--bg-surface);
}

/* Light theme override for contrast sections */
.hero-gradient-dark {
    background: linear-gradient(135deg,
            #0f0f23 0%,
            #16213e 50%,
            #1a1a40 100%);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .text-gradient {
        font-size: 2rem;
    }

    .glass-panel {
        backdrop-filter: blur(10px);
    }

    .btn-accent,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}