:root {
    --bg-dark: #0a0a0f;
    --bg-surface: rgba(25, 25, 35, 0.6);
    --bg-surface-hover: rgba(35, 35, 50, 0.8);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.4);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Dynamic Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(245, 158, 11, 0.2); /* Gold */
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(96, 165, 250, 0.15); /* Blue */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: rgba(167, 139, 250, 0.1); /* Purple */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    animation: fadeInDown 1s ease-out forwards;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--gold-glow);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(to right, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Grid Layout */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* Glassmorphism Card */
.app-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger card animations */
.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: var(--app-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(var(--app-color), 0.2);
    background: var(--bg-surface-hover);
}

.app-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--app-color);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.app-card:hover .icon-wrapper {
    background: var(--app-color);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.text-content {
    flex-grow: 1;
}

.text-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.text-content p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.app-card:hover .text-content h2 {
    color: var(--app-color);
}

.launch-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.launch-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.app-card:hover .launch-btn {
    color: var(--app-color);
}

.app-card:hover .launch-btn i {
    transform: translateX(8px);
}

footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 3rem 1.5rem;
    }
}
