:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --risk-color: #3b82f6;
    --blast-color: #ef4444;
    --main-color: #10b981;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    text-align: center;
}

header {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.app-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

.app-card:nth-child(2) {
    animation-delay: 0.2s;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.app-card:hover::before {
    opacity: 1;
}

.icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
}

p {
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.btn {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s;
}

.risk-card:hover .btn {
    background: var(--risk-color);
    color: white;
}

.blast-card:hover .btn {
    background: var(--blast-color);
    color: white;
}

.main-card:hover .btn {
    background: var(--main-color);
    color: white;
}

footer {
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

@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);
    }
}