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

body {
    min-height: 100vh;
    background: #ffffff;
    color: #0f172a;
    font-family: Inter, Arial, sans-serif;
}

.page {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: 16px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px;
}

.login-card {
    display: flex;
    flex-direction: column;
    align-self: start;
    padding: 32px;
    text-align: center;
}

.content-card {
    display: flex;
    flex-direction: column;
    align-self: start;
    padding: 44px;
}

.logo {
    margin-bottom: 22px;
}

.logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.8;
}

h1 {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 2rem;
}

.subtitle {
    margin-bottom: 34px;
    color: #64748b;
    line-height: 1.5;
}

.button {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.google {
    background: #e85800;
    color: #ffffff;
}

.github {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.footer {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer a {
    color: #94a3b8;
}

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

.section-header {
    margin-bottom: 28px;
}

.section-label {
    margin-bottom: 8px;
    color: #f45b00;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-header h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
    line-height: 1.25;
}

.section-header p {
    max-width: 850px;
    color: #64748b;
    line-height: 1.55;
}

.features-card {
    padding: 28px 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 0px;
    width: 30px;
    height: 20px;

    border-radius: 10px;
    /* background: #ffffff; */
    color: #ffb703;
    font-weight: 800;
    font-size: 1.8rem;
}

.feature-item h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.feature-item p {
    color: #64748b;
    line-height: 1.5;
}

.free-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 70px;
    padding: 17px 0px;
    border-radius: 14px;
}

.free-badge {
    flex: 0 0 auto;
    padding: 5px 20px;
    border: 1px solid green;
    border-radius: 999px;
    background: #ffffff;
    color: green;
    font-size: 1rem;
}

.free-message p {
    margin-top: 4px;
    color: #64748b;
    line-height: 1.45;
}

.packs-chapter {
    background: #0f172a;
}

.packs-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: 16px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 16px 64px;
}

.packs-chapter .section-label {
    color: #fb923c;
}

.packs-chapter .section-header h2 {
    color: #f1f5f9;
}

.packs-chapter .section-header p {
    color: #94a3b8;
}

.packs-chapter .features-card {
    background: #1e293b;
    border-color: #334155;
}

.packs-chapter .starter-pack-chip {
    background: #0f172a;
    border-color: #444444;
    color: #e2e8f0;
}

.packs-chapter .starter-pack-chip--locked {
    background: #1e293b;
    border-color: #334155;
    color: #64748b;
}

.starter-pack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.starter-pack-row:last-child {
    margin-bottom: 0;
}

.starter-pack-chip {
    position: relative;

    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

.starter-pack-chip--locked {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.starter-pack-mastery-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;

    min-width: 28px;
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid #eeeeee;

    background: #ffffff;
    color: #64748b;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.starter-pack-hint {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.scroll-hint {
    display: none;
}

@media (max-width: 980px) {
    .page {
        grid-template-columns: 1fr;
        min-height: 100vh;
        padding: 20px;
    }

    .packs-grid {
        grid-template-columns: 1fr;
        padding: 20px 20px 40px;
    }

    .packs-spacer {
        display: none;
    }

    .login-card {
        margin-bottom: 200px;
        padding-top: 100px;
    }

    .login-card,
    .content-card {
        padding: 28px;
    }

    h1 {
        color: #000000;
    }

    .features-card {
        padding: 8px 2px;
    }

    .scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 50%;
        bottom: 60px;
        z-index: 10;
        width: 40px;
        height: 40px;
        border: 1px solid #cbd5e1;
        border-radius: 50%;
        background: #ffffff;
        color: #64748b;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
        text-decoration: none;
        transform: translateX(-50%);
        animation: scroll-hint-bounce 1.8s ease-in-out infinite;
        transition: opacity 0.2s ease;
    }

    .scroll-hint.is-hidden {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes scroll-hint-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

@media (max-width: 900px) {
    .page {
        gap: 10px;
        padding: 10px;
    }

    .packs-grid {
        gap: 10px;
        padding: 10px 10px 32px;
    }

    .content-card {
        padding: 16px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-item {
        padding: 18px;
    }

    .free-message {
        flex-direction: column;
    }
}