:root {
    --primary: #6c5ce7;
    --secondary: #a8a4e6;
    --accent: #32ff7e;
    --dark: #2d3436;
    --rocket: #ff4757;
    --twitter-blue: #1DA1F2;
    --telegram-blue: #0088cc;
    --support-orange: #FF7A00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 4s) infinite ease-in-out;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    text-align: center;
}

.rocket-container {
    position: absolute;
    right: 10%;
    bottom: 20%;
    animation: float 3s ease-in-out infinite;
}

.rocket {
    font-size: 8rem;
    color: var(--rocket);
    filter: drop-shadow(0 0 15px rgba(255,71,87,0.5));
    transform: rotate(-45deg);
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse {
    0% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.05); }
    100% { transform: rotate(-45deg) scale(1); }
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideIn 1s ease-out;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    background: rgba(0,0,0,0.4);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    animation: fadeIn 1.5s ease-out;
}

.cta-buttons {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%);
}

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

.btn-secondary {
    background: var(--accent);
    color: var(--dark);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    animation: slideUp 0.8s ease-out;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-link i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.telegram-link {
    background: linear-gradient(45deg, var(--telegram-blue), #24A2E0);
}

.support-link {
    background: linear-gradient(45deg, var(--support-orange), #FF9E44);
}

.twitter-link {
    background: linear-gradient(45deg, var(--twitter-blue), #1A91DA);
    opacity: 0.7;
    position: relative;
}

.twitter-link::after {
    content: 'Coming Soon';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
}

.features {
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--accent));
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.how-it-works {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.steps-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.step {
    width: 280px;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

footer {
    background: rgba(0,0,0,0.8);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.copyright {
    margin-top: 2rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .rocket-container {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 2rem auto;
        text-align: center;
        animation: floatMobile 3s ease-in-out infinite;
    }

    .rocket {
        font-size: 6rem;
        transform: rotate(0deg);
        animation: pulseMobile 2s infinite;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        max-width: 350px;
    }
}

/* Mobile-specific float and pulse */
@keyframes floatMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulseMobile {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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