:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #f43f5e;
    --bg: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.8);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --warning: #f59e0b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, #1e293b 100%);
    min-height: 100vh;
    color: var(--text);
    padding: 1.5rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.app-grid {
    display: grid;
    gap: 1rem;
}

.app-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.app-card:active {
    transform: translateY(0);
}

.app-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon svg {
    width: 32px;
    height: 32px;
}

.host-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.student-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #e11d48 100%);
    color: white;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.app-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.auth-note {
    font-size: 0.8rem;
    color: var(--warning);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-note::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--warning);
    border-radius: 50%;
}

/* How It Works Section */
.how-it-works {
    margin-top: 2.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.how-it-works h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.how-it-works ol {
    list-style: none;
    counter-reset: steps;
}

.how-it-works li {
    counter-increment: steps;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.how-it-works li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.how-it-works li strong {
    color: var(--text);
}

footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .intro {
        font-size: 1rem;
    }

    .app-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .app-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .app-icon svg {
        width: 26px;
        height: 26px;
    }

    .app-name {
        font-size: 1.15rem;
    }

    .app-description {
        font-size: 0.85rem;
    }

    .how-it-works {
        padding: 1.25rem;
    }

    .how-it-works li {
        padding-left: 2.25rem;
    }
}
