:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #5BA3F5;
    --tiktok-color: #fe2c55;
    --instagram-color: #E4405F;
    --facebook-color: #1877f2;
    --threads-color: #000000;
    --pinterest-color: #E60023;
    --bg-color: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-color: #ffffff;
    --text-light: #a8a8a8;
    --text-secondary: #666666;
    --card-bg: #161616;
    --border-color: #2a2a2a;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: radial-gradient(ellipse at top, rgba(74, 144, 226, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.loading-icon div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

.loading-icon div:nth-child(2) {
    border: 10px solid transparent;
    border-bottom-color: var(--primary-light);
    animation: spin 2s linear infinite;
}

.loader-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin-top: 20px;
}

.loader-wave span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: wave 1.5s infinite ease-in-out;
}

.loader-wave span:nth-child(2) {
    animation-delay: 0.2s;
    background-color: var(--primary-light);
}

.loader-wave span:nth-child(3) {
    animation-delay: 0.4s;
    background-color: var(--primary-color);
}

.loader-wave span:nth-child(4) {
    animation-delay: 0.6s;
    background-color: var(--primary-light);
}

.loader-wave span:nth-child(5) {
    animation-delay: 0.8s;
    background-color: var(--primary-color);
}

@keyframes wave {
    0%, 40%, 100% { transform: translateY(0); }
    20% { transform: translateY(-15px); }
}

.header {
    background: rgba(22, 22, 22, 0.95);
    border-bottom: 1px solid var(--border-color);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header h1 i {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 14px;
    margin: 6px 0 0 0;
    color: var(--text-light);
    font-weight: 500;
}

.header-nav {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 100;
}

.hamburger-menu {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    min-width: 180px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.nav-menu a:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding-left: 22px;
}

.nav-menu a i {
    margin-right: 10px;
    width: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
}

.platforms-section {
    margin: 40px 0;
}

.platforms-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.platform-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(74, 144, 226, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.platform-card.tiktok {
    border-color: rgba(254, 44, 85, 0.3);
}

.platform-card.tiktok:hover {
    border-color: var(--tiktok-color);
    box-shadow: 0 12px 40px rgba(254, 44, 85, 0.4);
}

.platform-card.instagram {
    border-color: rgba(228, 64, 95, 0.3);
}

.platform-card.instagram:hover {
    border-color: var(--instagram-color);
    box-shadow: 0 12px 40px rgba(228, 64, 95, 0.4);
}

.platform-card.facebook {
    border-color: rgba(24, 119, 242, 0.3);
}

.platform-card.facebook:hover {
    border-color: var(--facebook-color);
    box-shadow: 0 12px 40px rgba(24, 119, 242, 0.4);
}

.platform-card.threads {
    border-color: rgba(255, 255, 255, 0.15);
}

.platform-card.threads:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
}

.platform-card.pinterest {
    border-color: rgba(230, 0, 35, 0.3);
}

.platform-card.pinterest:hover {
    border-color: var(--pinterest-color);
    box-shadow: 0 12px 40px rgba(230, 0, 35, 0.4);
}

.platform-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    transition: all 0.4s ease;
    position: relative;
}

.tiktok .platform-icon {
    background: linear-gradient(135deg, #fe2c55 0%, #ff6b6b 100%);
    box-shadow: 0 8px 30px rgba(254, 44, 85, 0.4);
}

.instagram .platform-icon {
    background: linear-gradient(135deg, #f56040 0%, #E4405F 50%, #c13584 100%);
    box-shadow: 0 8px 30px rgba(228, 64, 95, 0.4);
}

.facebook .platform-icon {
    background: linear-gradient(135deg, #1877f2 0%, #4267B2 100%);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.threads .platform-icon {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.pinterest .platform-icon {
    background: linear-gradient(135deg, #E60023 0%, #ad081b 100%);
    box-shadow: 0 8px 30px rgba(230, 0, 35, 0.4);
}

.platform-icon i {
    color: white;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
}

.platform-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 800;
}

.platform-badge {
    display: inline-block;
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.tiktok .platform-badge {
    background: rgba(254, 44, 85, 0.2);
    color: var(--tiktok-color);
    border-color: rgba(254, 44, 85, 0.3);
}

.instagram .platform-badge {
    background: rgba(228, 64, 95, 0.2);
    color: var(--instagram-color);
    border-color: rgba(228, 64, 95, 0.3);
}

.facebook .platform-badge {
    background: rgba(24, 119, 242, 0.2);
    color: var(--facebook-color);
    border-color: rgba(24, 119, 242, 0.3);
}

.threads .platform-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.pinterest .platform-badge {
    background: rgba(230, 0, 35, 0.2);
    color: var(--pinterest-color);
    border-color: rgba(230, 0, 35, 0.3);
}

.how-to-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.how-to-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 36px 28px;
    border-radius: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    background: rgba(74, 144, 226, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.15);
}

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

.step-card h3 {
    font-size: 21px;
    margin-bottom: 14px;
    font-weight: 700;
}

.step-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    margin-bottom: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .platforms-grid,
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 18px 0;
    }

    .header h1 {
        font-size: 24px;
    }

    .header h1 i {
        font-size: 28px;
    }

    .header p {
        font-size: 13px;
    }

    .header-nav {
        top: 16px;
        right: 20px;
    }

    .platforms-section h2,
    .how-to-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .platforms-grid,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .platform-card {
        padding: 40px 28px;
    }

    .platform-icon {
        width: 90px;
        height: 90px;
        font-size: 44px;
    }

    .how-to-section {
        padding: 48px 28px;
    }

    .step-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px 60px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header h1 i {
        font-size: 24px;
    }

    .header p {
        font-size: 12px;
    }

    .platforms-section h2,
    .how-to-section h2 {
        font-size: 24px;
    }

    .how-to-section {
        padding: 40px 20px;
    }

    .platform-card {
        padding: 36px 24px;
    }

    .platform-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .platform-card h3 {
        font-size: 24px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}
