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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.7s ease both;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: #a0a0c0;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa, #60a5fa);
    border-radius: 2px;
    margin: 1.25rem auto 0;
}

#pagesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: 900px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #a78bfa;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    width: 100%;
}

.page-section {
    width: 100%;
    max-width: 900px;
    margin-top: 1rem;
}

.page-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.75rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    color: #e0e0ff;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    word-break: break-word;
}

.page-button .icon {
    font-size: 1.8rem;
}

.page-button:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: #a78bfa;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
    transform: translateY(-4px);
    color: #fff;
}

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

.empty-state {
    color: #a0a0c0;
    font-size: 1rem;
    margin-top: 2rem;
    text-align: center;
}

footer {
    margin-top: auto;
    padding-top: 3rem;
    color: #555575;
    font-size: 0.8rem;
    animation: fadeInUp 0.7s ease 0.4s both;
}

@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); }
}
