/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --bg-dark: #0a0e17;
    --bg-card: #151a25;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-glow: rgba(79, 172, 254, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary), #a933f5);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.8);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--bg-dark);
}

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: pulse 10s infinite alternate;
}

.bg-glow:nth-child(2) {
    top: auto;
    bottom: -100px;
    left: auto;
    right: -100px;
    background: radial-gradient(circle, rgba(169, 51, 245, 0.3) 0%, transparent 70%);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-btn {
    padding: 10px 25px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), #a933f5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.cta-primary {
    padding: 15px 40px;
    background: white;
    color: black;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

/* Features */
.features {
    padding: 80px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    color: var(--text-muted);
}

/* API Status in Header */
.api-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffaa00;
    /* Loading color */
    box-shadow: 0 0 10px #ffaa00;
}

/* Setup Section */
.setup-section {
    padding: 80px 5%;
    text-align: center;
    background: radial-gradient(circle at center, rgba(79, 172, 254, 0.05) 0%, transparent 70%);
}

.setup-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.setup-section p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.os-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.os-btn {
    padding: 15px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.os-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.os-btn.active {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: black;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.apps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.app-card {
    background: rgba(21, 26, 37, 0.6);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(5px);
}

.app-card:hover {
    transform: scale(1.05);
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(21, 26, 37, 0.8);
}

.app-card.selected {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.app-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.app-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.app-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.app-card.selected .app-check {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
}

.selected-apps-info {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px 0;
}

.app-tag {
    padding: 8px 18px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.cta-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--text-main);
    color: black;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Stats Row in Hero */
.stats-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    header {
        padding: 15px 4%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .api-status {
        display: none;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats-row {
        gap: 20px;
        justify-content: center;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .cta-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 40px 5%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }
}