/* Core Styling System */
:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(22, 28, 45, 0.45);
    --bg-card-hover: rgba(30, 41, 67, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --color-primary: #4F46E5;
    --color-primary-hover: #6366F1;
    --color-primary-light: rgba(79, 70, 229, 0.15);
    
    --color-success: #10B981;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --font-family: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 50px -10px rgba(79, 70, 229, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8%;
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
}

.logo-text span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.api-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    background-color: var(--color-success-bg);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.85rem !important;
    color: var(--color-success) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-success);
    position: relative;
}

.status-indicator.online::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-success);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 8% 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 80vh;
}

.gradient-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: var(--color-primary-light);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: var(--color-primary-hover);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #6366F1 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* Download Card */
.download-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.download-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.card-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.download-header {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    margin-bottom: 28px;
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--color-primary-hover);
    padding: 14px;
    border: 1px solid var(--border-color);
}

.download-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.download-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.download-action {
    margin-bottom: 20px;
}

.btn-download {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    color: white;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    opacity: 0.95;
}

.btn-download:active {
    transform: scale(0.99);
}

.btn-text {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.btn-subtext {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

.download-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Features Section */
.features-section {
    padding: 100px 8%;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: 12px;
    color: var(--color-primary-hover);
    padding: 12px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Installation Guide Section */
.install-section {
    padding: 100px 8%;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.step-num {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(79, 70, 229, 0.12);
    position: absolute;
    top: 16px;
    right: 24px;
}

.step-detail h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-detail p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 8%;
    background-color: #060911;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 5%;
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 36px;
    }
    
    .download-card {
        padding: 24px 20px;
    }
    
    .features-section, .install-section {
        padding: 80px 5%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
