/* ============================================
   MagicComp Marketing Site - Dark Theme
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --gold: #f59e0b;
    --dark-bg: #0f0f1a;
    --dark-surface: #1a1a2e;
    --dark-card: #16162a;
    --dark-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #d97706);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
}

/* Typography */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.text-purple {
    color: #a855f7 !important;
}

.bg-purple {
    background-color: #a855f7 !important;
}

/* Sections */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-gradient-dark {
    background: linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

/* Navigation */
#mainNav {
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNav.scrolled {
    background: rgba(15, 15, 26, 0.95);
    border-bottom-color: var(--dark-border);
    padding: 0.75rem 0;
}

#mainNav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--text-white);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                var(--dark-bg);
    min-height: 100vh;
    padding-top: 100px;
}

.hero-image-wrapper {
    position: relative;
    padding: 2rem;
}

.hero-mockup {
    position: relative;
    z-index: 1;
}

.mockup-browser {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    background: var(--dark-surface);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.mockup-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-header .dot.red { background: #ef4444; }
.mockup-header .dot.yellow { background: #f59e0b; }
.mockup-header .dot.green { background: #22c55e; }

.mockup-content {
    aspect-ratio: 16/10;
    background: var(--dark-bg);
}

.mockup-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 1rem;
}

.floating-card {
    position: absolute;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.floating-card.card-1 {
    bottom: 20%;
    left: -20px;
}

.floating-card.card-2 {
    top: 20%;
    right: -20px;
}

.floating-card i {
    font-size: 1.25rem;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    background: var(--gradient-primary);
}

.btn-outline-light {
    border-color: var(--dark-border);
    color: var(--text-white);
    font-weight: 500;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary-light);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Feature Cards */
.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-highlight {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-muted);
}

.feature-list li i {
    color: var(--primary-light);
}

/* Stats */
.stat-card {
    padding: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pricing Cards */
.pricing-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--dark-card) 50%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 1.5rem;
}

.pricing-header h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    margin-top: 1rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price .period {
    color: var(--text-muted);
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.pricing-features li.text-muted {
    color: var(--text-muted);
}

/* Demo Section */
.demo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-preview {
    position: relative;
}

.demo-browser {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.browser-dots {
    background: var(--dark-surface);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-border);
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-content {
    aspect-ratio: 16/9;
    background: var(--dark-bg);
}

.demo-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 1rem;
}

.demo-placeholder i {
    color: var(--primary-light);
}

/* Testimonials */
.testimonial-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.testimonial-card .avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

/* FAQ Accordion */
.accordion-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border) !important;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--dark-card);
    color: var(--text-white);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--dark-surface);
    color: var(--primary-light);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--dark-border);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: var(--dark-card);
    color: var(--text-muted);
    padding: 1.5rem;
}

/* CTA Section */
.cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid var(--dark-border);
}

.cta-card .form-control {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    color: var(--text-white);
}

.cta-card .form-control:focus {
    background: var(--dark-surface);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.cta-card .form-control::placeholder {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--dark-surface);
}

footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary-light) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .floating-card {
        display: none;
    }
    
    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 767px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .pricing-price .amount {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-2 {
    animation-delay: 1s;
}
