:root {
    --primary: #8e63e6;
    --primary-hover: #7a52c7;
    --bg-dark: #0D0D0F;
    --bg-card: #16171a;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --gradient: linear-gradient(135deg, #8e63e6 0%, #5b36b5 100%);
    --success: #2ecc71;
    --warning: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #8e63e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(142, 99, 230, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(142, 99, 230, 0.6);
}

/* FIX: Increased border brightness for better visibility */
.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    margin-left: 10px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.urgency-banner {
    background: linear-gradient(90deg, rgba(142, 99, 230, 0.2) 0%, rgba(243, 156, 18, 0.2) 100%);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--primary);
    font-size: 0.95rem;
}

.urgency-banner strong {
    color: var(--warning);
}

header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(13, 13, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.logo img {
    height: 35px;
}

.hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);

    /* FIX: Use flexible width */
    width: 100%;
    max-width: 600px;

    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hero-badges span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
}

.hero-video-wrapper {
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
    /* Enforces aspect ratio even if video is missing */
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trust-bar {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-stat {
    text-align: center;
}

.trust-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.trust-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.problem-section {
    padding: 60px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.pain-point {
    color: #ff6b6b;
}

.gain-point {
    color: #2ecc71;
}

.price-math {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    font-family: monospace;
    margin-top: 20px;
}

.social-proof {
    padding: 80px 0;
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: var(--warning);
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.6;
}

.features-interactive {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.interactive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.feature-item.active {
    border-color: var(--primary);
    background: linear-gradient(90deg, rgba(142, 99, 230, 0.1) 0%, rgba(22, 23, 26, 0) 100%);
    box-shadow: -4px 0 0 var(--primary);
}

.feature-icon-box {
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item.active .feature-icon-box {
    background: var(--primary);
    color: white;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.feature-preview-container {
    position: sticky;
    top: 100px;
}

.preview-window {
    background: #1e1e20;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
}

.window-header {
    background: #2a2a2d;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.window-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.preview-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
    transition: opacity 0.3s ease;
    background: #16171a;
}

.fade-out {
    opacity: 0.5;
    filter: blur(2px);
}

.pricing {
    padding: 80px 0;
    position: relative;
    background: var(--bg-card);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 50px auto 0;
}

.pricing-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(142, 99, 230, 0.1) 0%, rgba(13, 13, 15, 1) 100%);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0 5px;
}

.price-period {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4d4d8;
}

.features-list li i {
    color: var(--primary);
}

.guarantee-section {
    padding: 60px 0;
    text-align: center;
    background: var(--bg-dark);
}

.guarantee-box {
    max-width: 600px;
    margin: 30px auto 0;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--success);
}

.guarantee-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 20px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.trust-badge i {
    font-size: 1.5rem;
    color: var(--success);
}

.faq {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--bg-card);
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    cursor: pointer;
}

summary {
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

details[open] summary::after {
    content: '-';
}

details p {
    margin-top: 15px;
    color: var(--text-muted);
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 992px) {

    /* 1. Fix the "Everything in One Dashboard" Grid */
    .interactive-grid {
        display: flex;
        flex-direction: column;
        /* Stack vertically */
        gap: 30px;
    }

    /* 2. Move Image Preview to TOP and disable Sticky */
    .feature-preview-container {
        position: relative;
        /* Disable sticky */
        top: 0;
        width: 100%;
        order: -1;
        /* Force Image to top */
        margin-bottom: 20px;
    }

    /* 3. Adjust Preview Window Aspect Ratio for Mobile */
    .preview-window {
        aspect-ratio: 16/9;
        /* Standard widescreen look */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 10px;
    }

    .trust-stats {
        gap: 20px;
    }
}

@media (max-width: 480px) {

    /* --- Hero Section Fixes --- */
    .hero {
        padding: 40px 0;
        /* Reduce vertical padding */
    }

    .hero h1 {
        font-size: 2rem !important;
        /* Smaller Headline */
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-badges {
        gap: 8px;
    }

    .hero-badges span {
        font-size: 0.75rem;
        /* Smaller badges */
        padding: 4px 10px;
    }

    /* --- Feature List Items --- */
    .feature-item {
        padding: 15px;
        /* Compact padding */
        gap: 15px;
    }

    .feature-icon-box {
        width: 40px;
        /* Smaller icon box */
        height: 40px;
        font-size: 1rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    /* --- Pricing Card Fixes --- */
    .pricing-card {
        padding: 25px;
    }

    .price-tag {
        font-size: 2.5rem;
    }
}

/* 1. Base Styles for the Inner Image */
.mobile-feature-img {
    display: none;
    /* Hidden by default on Desktop */
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* 2. Utility Class for layout */
.d-flex {
    display: flex;
}

.align-items-start {
    align-items: flex-start;
}

.gap-3 {
    gap: 15px;
}

/* 3. Feature Item Layout Fix */
.feature-item {
    flex-direction: column;
    /* Stack content vertically */
    /* Remove the old display:flex that forced side-by-side */
}

/* 4. MOBILE LOGIC (Max Width 992px) */
@media (max-width: 992px) {

    /* Hide the big desktop preview column completely */
    .feature-preview-container {
        display: none !important;
    }

    /* Reset the grid to single column */
    .interactive-grid {
        display: block;
    }

    /* Show the internal image ONLY if the item is active */
    .feature-item.active .mobile-feature-img {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }

    /* Optional: Add a subtle slide animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}