@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.2);
}

.logo i {
    font-size: 1.25rem;
    color: #60a5fa;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.hero-icon i {
    font-size: 2.5rem;
    color: #60a5fa;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Download Section */
.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.download-btn {
    position: relative;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.25rem 3.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -5px var(--accent-glow);
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--accent-glow);
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.download-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    backdrop-filter: blur(12px);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-item i {
    color: #60a5fa;
}

/* Progress Bar */
.download-progress {
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    width: 0%;
    transition: width 0.2s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

/* Info Grid (Bento Style) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all var(--transition-speed);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(96, 165, 250, 0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-list strong {
    color: var(--text-main);
    font-weight: 500;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    gap: 2rem;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--text-main);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-main);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 0.75rem;
        border-radius: 20px;
        align-items: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Download Hint Overlay */
.download-hint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.download-hint-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.hint-arrow-container {
    position: absolute;
    top: 20px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    animation: floatHint 2s infinite ease-in-out;
}

.hint-arrow {
    font-size: 4rem;
    color: #ffd700; /* Gold color for attention */
    transform: rotate(-45deg);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-right: 20px;
}

.hint-text-box {
    background: white;
    color: #1e293b;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border-top-right-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 400px;
    text-align: right;
    margin-top: 10px;
}

.hint-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.hint-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
}

.hint-close-btn {
    margin-top: 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@keyframes floatHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
