/* ========================================
   ASTROCHEAT - INDEX PAGE STYLES
   ======================================== */

/* Index-specific styles that extend the main stylesheet */

/* Animated background for index page */
body.index-page {
    background: #0a0a0a;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    padding-top: 100px;
    position: relative;
    overflow-x: hidden;
}

/* Animated stars background */
body.index-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes sparkle {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-100px);
    }
}

/* Hero section enhancements */
.hero {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.hero::before {
    content: '🚀';
    font-size: 80px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    animation: rocket 3s ease-in-out infinite;
}

@keyframes rocket {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }

    25% {
        transform: translateX(-50%) rotate(-5deg);
    }

    75% {
        transform: translateX(-50%) rotate(5deg);
    }
}

.hero h1 {
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    }

    to {
        text-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.3);
    }
}

.hero p {
    color: #a0a0a0;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* Script section styling */
.script-section {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.script-section h3 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Script code display */
.script-code {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #00ffff;
    word-break: break-all;
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.script-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Script actions section */
.script-actions {
    display: table;
    margin: 20px auto 0;
    border-spacing: 15px 0;
}

.script-actions .btn {
    display: table-cell;
    width: 180px;
    height: 45px;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
    padding: 8px 16px;
}

/* Terms link styling (backup - in case needed) */
.terms-link {
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Features grid enhancements */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

/* License result section */
.license-result {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 25px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.license-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    animation: gradientShift 3s ease infinite;
}

.license-result h3 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* License key display box */
.license-key-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.license-key-box .form-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.3);
}

/* License info styling */
.license-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.license-info p {
    color: #a0a0a0;
    margin: 10px 0;
    font-size: 1.1rem;
}

.license-info strong {
    color: #00ffff;
}

.status-active {
    color: #4ecdc4;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

/* Responsive design for index page */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .script-code {
        font-size: 0.9rem;
        padding: 15px;
    }

    .script-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .script-actions .btn {
        width: 100%;
        max-width: 280px;
        height: auto;
        display: inline-block;
        font-size: 14px;
        padding: 10px 16px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .license-key-box {
        flex-direction: column;
        gap: 15px;
    }

    .license-key-box .form-input {
        width: 100%;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
