@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

/* ===== GEOMETRY DASH PALETTE ===== */
:root {
    --gd-bg-dark: #0a0e27;
    --gd-bg-mid: #0f1538;
    --gd-blue: #1a237e;
    --gd-purple: #2d1b69;
    --gd-cyan: #00e5ff;
    --gd-green: #76ff03;
    --gd-yellow: #ffd600;
    --gd-orange: #ff9100;
    --gd-pink: #ff4081;
    --gd-white: #ffffff;
    --gd-text-muted: #8a8fb5;
    --gd-card: rgba(15, 21, 56, 0.85);
    --gd-border: rgba(0, 229, 255, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--gd-bg-dark);
    color: var(--gd-white);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(45, 27, 105, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 35, 126, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 64, 129, 0.1) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

#stars-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--gd-bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: loaderBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.6));
    margin-bottom: 2rem;
}

.loader-bar-container {
    width: 260px;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--gd-cyan), var(--gd-green));
    box-shadow: 0 0 15px var(--gd-cyan);
    transition: width 0.3s ease;
}

.loader-text {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: var(--gd-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: loaderTextPulse 1.5s ease-in-out infinite;
}

.loader-percent {
    margin-top: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gd-cyan), var(--gd-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LOADING PARTICLES ===== */
.load-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.load-particle {
    position: absolute;
    border-radius: 50%;
    animation: loadParticleFloat linear infinite;
    opacity: 0;
}

@keyframes loadParticleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 1; }
    80% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

@keyframes loaderBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes loaderTextPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== MAIN CONTENT ===== */
.main-wrapper {
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.main-wrapper.visible {
    opacity: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulseNeon {
    0%, 100% { box-shadow: 0 0 10px var(--gd-cyan), 0 0 30px rgba(0, 229, 255, 0.15); }
    50% { box-shadow: 0 0 25px var(--gd-cyan), 0 0 60px rgba(0, 229, 255, 0.3); }
}

@keyframes glowText {
    0%, 100% { text-shadow: 0 0 10px var(--gd-cyan), 0 0 30px rgba(0, 229, 255, 0.2); }
    50% { text-shadow: 0 0 25px var(--gd-cyan), 0 0 60px rgba(0, 229, 255, 0.5); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(0, 229, 255, 0.15); }
    50% { border-color: rgba(0, 229, 255, 0.5); }
}

/* Scroll reveal class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.active {
    opacity: 1;
    transform: none;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.active {
    opacity: 1;
    transform: none;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ===== HEADER ===== */
.gd-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.gd-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    animation: floatSlow 5s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.5)) drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    margin-bottom: 1.5rem;
}

.gd-title {
    font-weight: 800;
    font-size: 4rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--gd-cyan), var(--gd-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glowText 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
}

.gd-subtitle {
    font-size: 1.2rem;
    color: var(--gd-text-muted);
    font-weight: 400;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== GLASS CARD ===== */
.gd-card {
    background: var(--gd-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gd-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.gd-card:hover {
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.08);
}

.gd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gd-cyan), transparent);
    opacity: 0.5;
}

/* ===== SLIDER ===== */
.slider-wrapper {
    max-width: 750px;
    margin: 0 auto 3rem;
}

.slider-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--gd-border);
    aspect-ratio: 16/9;
    animation: pulseNeon 4s ease-in-out infinite;
}

.slides-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide { min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gd-cyan);
    border-color: var(--gd-cyan);
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 0 12px var(--gd-cyan);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gd-cyan);
}

.section-title .icon {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
}

/* ===== STEPS ===== */
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateX(8px);
}

.step-num {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--gd-cyan), var(--gd-green));
    color: var(--gd-bg-dark);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.step-item:hover .step-num {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
    transform: scale(1.1);
}

/* ===== PLATFORM BUTTONS ===== */
.platform-section {
    text-align: center;
    margin: 2.5rem 0;
}

.platform-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--gd-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.platform-grid {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.platform-btn {
    background: rgba(15, 21, 56, 0.9);
    border: 2px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    width: 125px;
    color: var(--gd-white);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
}

.platform-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 229, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-btn:hover::after { opacity: 1; }

.platform-btn:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 255, 0.1);
}

.platform-btn.selected {
    border-color: var(--gd-cyan);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.25), 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: borderGlow 2s ease-in-out infinite;
}

.platform-btn.selected svg { fill: var(--gd-cyan); }

.platform-btn svg {
    width: 30px; height: 30px;
    fill: var(--gd-white);
    transition: fill 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.platform-btn:hover svg { transform: scale(1.15); }

.platform-btn span {
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ===== DOWNLOAD BUTTON ===== */
.action-area {
    text-align: center;
    margin-bottom: 3.5rem;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(180deg, #66bb6a 0%, #43a047 50%, #388e3c 100%);
    color: white;
    border: none;
    border-bottom: 4px solid #2e7d32;
    border-radius: 50px;
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.4);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; 
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before { left: 100%; }

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(76, 175, 80, 0.5);
}

.download-btn:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.status-msg {
    margin-top: 1rem;
    height: 24px;
    font-weight: 600;
    color: var(--gd-yellow);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.status-msg.visible { opacity: 1; }

.dl-meta {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--gd-text-muted);
}

/* ===== VERSION BADGE ===== */
.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gd-cyan), var(--gd-green));
    color: var(--gd-bg-dark);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* ===== DOWNLOAD OVERLAY ===== */
.download-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(5, 5, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.download-overlay.active {
    opacity: 1;
    visibility: visible;
}

.download-modal {
    background: var(--gd-card);
    border: 1px solid var(--gd-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    animation: fadeInScale 0.4s ease;
    position: relative;
    overflow: hidden;
}

.download-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gd-cyan), transparent);
}

.dl-phase { transition: opacity 0.4s ease; }
.dl-phase.hidden { display: none; }

/* Spinner */
.dl-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(0, 229, 255, 0.15);
    border-top: 4px solid var(--gd-cyan);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spinnerRotate 1s linear infinite;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

.dl-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--gd-white);
}

.dl-subtitle {
    font-size: 0.9rem;
    color: var(--gd-text-muted);
    margin-bottom: 1.5rem;
}

.dl-progress-wrap {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.dl-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gd-cyan), var(--gd-green));
    border-radius: 50px;
    box-shadow: 0 0 10px var(--gd-cyan);
    transition: width 0.1s linear;
}

.dl-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gd-text-muted);
}

/* Shield Icon */
.dl-shield-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.08);
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.2);
    color: var(--gd-cyan);
    animation: popIn 0.5s ease;
}

/* CAPTCHA BOX */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(10, 14, 39, 0.9);
    border: 2px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1rem;
}

.captcha-box:hover {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.captcha-box.verified {
    border-color: var(--gd-green);
    box-shadow: 0 0 15px rgba(118, 255, 3, 0.2);
}

.captcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.captcha-box.verified .captcha-checkbox {
    border-color: var(--gd-green);
    background: rgba(118, 255, 3, 0.1);
}

.captcha-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    flex: 1;
    text-align: left;
}

.captcha-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--gd-text-muted);
    font-size: 0.65rem;
    opacity: 0.7;
}

.captcha-shield {
    opacity: 0.5;
}

.captcha-check.hidden,
.captcha-spinner.hidden {
    display: none;
}

/* Mini spinner for captcha */
.captcha-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(0, 229, 255, 0.2);
    border-top: 2.5px solid var(--gd-cyan);
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite;
}

/* ===== FAQ ===== */
.faq-grid {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
    transition: padding-left 0.3s ease;
}

.faq-item:hover {
    padding-left: 8px;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gd-white);
}

.faq-item p {
    color: var(--gd-text-muted);
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.gd-footer {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--gd-border);
    margin-top: 2rem;
    color: var(--gd-text-muted);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gd-title { font-size: 2.8rem; }
    .gd-card { padding: 1.5rem; }
    .platform-btn { width: 110px; padding: 1rem; }
    .download-btn { padding: 1rem 2.5rem; font-size: 1.1rem; }
    .gd-header { padding: 3rem 1.5rem 1.5rem; }
}

@media (max-width: 480px) {
    .gd-title { font-size: 2.2rem; }
    .gd-logo { width: 100px; height: 100px; }
    .platform-grid { gap: 0.8rem; }
    .platform-btn { width: 95px; }
}
