/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    /* Color Palette - Cyber/Space Theme */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --accent-primary: #8b5cf6;
    /* Violet */
    --accent-secondary: #06b6d4;
    /* Cyan */
    --accent-tertiary: #ec4899;
    /* Pink */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    --gradient-text: linear-gradient(to right, #c084fc, #6366f1, #3b82f6);
    --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%);
    --gradient-glow: conic-gradient(from 180deg at 50% 50%, #171d37 0deg, #1e293b 55deg, #1e1b4b 120deg, #0f172a 160deg, #8b5cf6 360deg);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    /* Shadows & Glows */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --glow-primary: 0 0 20px rgba(139, 92, 246, 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* --- Header --- */
header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* --- Hero Section --- */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

/* --- App Grid --- */
.apps-section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* --- App Cards --- */
.card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.app-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Custom Icon Gradients for Variety */
.card:nth-child(1) .app-icon-placeholder {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Money */
.card:nth-child(2) .app-icon-placeholder {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Bounce */
.card:nth-child(3) .app-icon-placeholder {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Astro */
.card:nth-child(4) .app-icon-placeholder {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

/* Kids */
.card:nth-child(5) .app-icon-placeholder {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Reflex */
.card:nth-child(6) .app-icon-placeholder {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

/* Bubble */

.card-title h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.card-title span {
    font-size: 0.875rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.btn-download:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.02);
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
}

.social-links a {
    margin: 0 10px;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--accent-secondary);
}

/* --- Animations --- */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}