/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #495057;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
}

h1 {
    font-size: 56px;
    font-weight: 700;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 24px;
}

/* Typography */
.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: #E9E7FF;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #868E96;
    margin-bottom: 48px;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.bg-light {
    background-color: #F8F9FA;
}

/* Spacing */
.space-xs { margin: 8px 0; }
.space-sm { margin: 16px 0; }
.space-md { margin: 24px 0; }
.space-lg { margin: 32px 0; }
.space-xl { margin: 48px 0; }
.space-xxl { margin: 64px 0; }
.space-xxxl { margin: 96px 0; }

/* Colors */
:root {
    /* Primary Colors */
    --primary-50: #F4F3FF;
    --primary-100: #E9E7FF;
    --primary-500: #7B61FF;
    --primary-700: #5D42D0;
    --primary-900: #3E278B;
    
    /* Neutral Colors */
    --neutral-0: #FFFFFF;
    --neutral-50: #F8F9FA;
    --neutral-100: #F1F3F5;
    --neutral-400: #868E96;
    --neutral-600: #495057;
    --neutral-900: #212529;
    
    /* Semantic Colors */
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    
    /* Gradient */
    --primary-gradient: linear-gradient(120deg, #7B61FF, #5D42D0);
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(93, 66, 208, 0.08);
    --shadow-md: 0 8px 24px rgba(93, 66, 208, 0.12);
    --shadow-lg: 0 16px 48px rgba(93, 66, 208, 0.18);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-100);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: 140px;
    background: var(--primary-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary-700);
    font-weight: 600;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-900);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--neutral-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-500);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 24px;
    height: 3px;
    background: var(--neutral-600);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    min-height: 48px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--neutral-0);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-500);
    border: 2px solid var(--primary-500);
}

.btn-outline:hover {
    background: var(--primary-500);
    color: var(--neutral-0);
}

.btn-light {
    background: var(--neutral-0);
    color: var(--primary-500);
    box-shadow: var(--shadow-lg);
}

.btn-light:hover {
    background: var(--neutral-50);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--neutral-0);
    border: 2px solid var(--neutral-0);
}

.btn-outline-light:hover {
    background: var(--neutral-0);
    color: var(--primary-500);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-text {
    color: var(--neutral-0);
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-carousel {
    width: 500px;
    height: 350px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.mock-card {
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    box-shadow: var(--shadow-lg);
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.mock-icon {
    font-size: 48px;
}

.mock-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--neutral-900);
}

.mock-content {
    color: var(--neutral-600);
}

.mock-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--neutral-100);
}

.mock-chart {
    display: flex;
    gap: 8px;
    align-items: end;
    height: 100px;
    margin-bottom: 16px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-gradient);
    border-radius: 4px 4px 0 0;
    animation: growUp 1s ease-out;
}

@keyframes growUp {
    from { height: 0; }
    to { height: 100%; }
}

.mock-stats {
    text-align: center;
    font-weight: 600;
    color: var(--success);
}

.carousel-controls {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--neutral-0);
    color: var(--primary-500);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary-500);
    color: var(--neutral-0);
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.product-card {
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--neutral-400);
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--neutral-900);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--error);
    margin-bottom: 8px;
}

.product-commission {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.commission-tag {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.product-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--neutral-400);
}

.section-footer {
    text-align: center;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--neutral-0);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--neutral-0);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--neutral-900);
}

.feature-description {
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Earnings Section */
.earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.earnings-card {
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.earnings-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.earnings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-weight: 600;
    font-size: 18px;
}

.user-name {
    font-weight: 600;
    color: var(--neutral-900);
}

.user-level {
    font-size: 14px;
    color: var(--neutral-400);
}

.earnings-period {
    font-size: 14px;
    color: var(--neutral-400);
}

.earnings-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.earnings-chart {
    height: 80px;
    position: relative;
    margin-bottom: 16px;
}

.chart-line {
    position: relative;
    height: 100%;
    border-left: 2px solid var(--neutral-200);
    border-bottom: 2px solid var(--neutral-200);
}

.chart-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.chart-point::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--primary-500);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    align-items: center;
}

.partner-logo {
    height: 100px;
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--neutral-600);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--neutral-0);
}

.contact-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--neutral-900);
}

.contact-details p {
    color: var(--neutral-600);
}

/* Contact Form */
.contact-form {
    background: var(--neutral-0);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--neutral-0);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-0);
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo {
    background: var(--primary-700);
    color: var(--neutral-0);
}

.footer-description {
    margin-bottom: 24px;
    line-height: 1.6;
    color: #CCCCCC;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-500);
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--neutral-0);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-500);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 24px;
    text-align: center;
    color: #CCCCCC;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--neutral-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--neutral-400);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--neutral-600);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--neutral-600);
}

.modal-footer a {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--neutral-0);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .nav-actions.active {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .earnings-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .modal-content {
        margin: 16px;
        width: calc(100% - 32px);
    }
    
    .contact-form {
        padding: 24px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }