* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0b0b0b;
    color: white;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #222;
}
.nav-links {
    display: flex;
    gap: 24px;
}
.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: white;
}
.hero {
    max-width: 900px;
    margin: 100px auto;
    padding: 0 30px;
}

.tag {
    color: #ff3333;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.05;
    margin: 15px 0;
}

.description {
    max-width: 600px;
    color: #aaa;
    font-size: 18px;
    line-height: 1.6;
}
.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.buttons button {
    padding: 13px 22px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

#inviteButton {
    background: #ff3333;
    color: white;
}

#commandsButton {
    background: #222;
    color: white;
}

.buttons button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
#features {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 30px;
}

#features > h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #151515;
    border: 1px solid #252525;
    border-radius: 12px;
    padding: 25px;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.card:last-child {
    grid-column: 2;
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: #999;
    line-height: 1.5;
}
.legal-page {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 30px;
}

.legal-page h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

.legal-page h2 {
    margin-top: 40px;
}

.legal-page p {
    color: #aaa;
    line-height: 1.7;
}
footer {
    margin-top: 100px;
    padding: 30px;
    border-top: 1px solid #222;
    text-align: center;
}

footer p {
    color: #666;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}
@media (max-width: 700px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 46px;
    }

    nav {
        padding: 20px;
    }

    .nav-links {
        gap: 12px;
    }
}

.guide-page {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 30px;
}

.guide-header {
    margin-bottom: 70px;
}

.guide-header h1 {
    font-size: 52px;
    margin: 15px 0;
}

.guide-header > p:last-child {
    color: #aaa;
    font-size: 18px;
    line-height: 1.6;
    max-width: 650px;
}

.guide-section {
    padding: 30px;
    margin-bottom: 20px;
    background: #151515;
    border: 1px solid #252525;
    border-radius: 12px;
}

.guide-section h2 {
    margin-top: 0;
}

.guide-section p {
    color: #aaa;
    line-height: 1.6;
}

.book {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.book-page {
    width: 100%;
    max-width: 800px;
    min-height: 600px;
    padding: 70px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cover .tag {
    color: #ff3333;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 5px;
}

.cover h1 {
    font-size: 72px;
    margin: 10px 0 0;
}

.cover h2 {
    color: #888;
    font-size: 30px;
    margin: 0;
}

.cover-description {
    max-width: 450px;
    margin: 35px auto;
    color: #aaa;
    font-size: 18px;
    line-height: 1.6;
}

.page-number {
    margin-top: 50px;
    color: #555;
    font-size: 14px;
}

.cover h1 {
    text-align: center;
    width: 100%;
}

.idea-card {
    color: inherit;
    text-decoration: none;
    display: block;
}

.book-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.book-navigation button {
    padding: 10px 18px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1b1b1b;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.book-navigation button:hover:not(:disabled) {
    background: #2a2a2a;
}

.book-navigation button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.commands-page {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 30px;
}

.commands-header {
    margin-bottom: 60px;
}

.commands-header h1 {
    font-size: 52px;
    margin: 15px 0;
}

.commands-header > p:last-child {
    color: #aaa;
    font-size: 18px;
    line-height: 1.6;
}


.command-category {
    margin-bottom: 50px;
}

.command-category h2 {
    font-size: 26px;
    margin-bottom: 20px;
}


.command-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}


.command {
    padding: 18px 20px;
    background: #151515;
    border: 1px solid #252525;
    border-radius: 10px;
    transition: 0.2s ease;
}

.command:hover {
    transform: translateY(-2px);
    border-color: #444;
}


.command code {
    color: #ff3333;
    font-size: 15px;
    font-weight: bold;
}


.command p {
    margin: 8px 0 0;
    color: #999;
    font-size: 14px;
    line-height: 1.5;
}


.guide-link {
    margin: 70px 0 20px;
    padding: 25px;
    text-align: center;
    background: #151515;
    border: 1px solid #252525;
    border-radius: 10px;
}

.guide-link p {
    margin: 0;
    color: #aaa;
}

.guide-link a {
    color: #ff3333;
    font-weight: bold;
    text-decoration: none;
}

.guide-link a:hover {
    text-decoration: underline;
}


@media (max-width: 700px) {

    .commands-page {
        margin: 50px auto;
        padding: 0 20px;
    }

    .commands-header h1 {
        font-size: 42px;
    }

    .command-list {
        grid-template-columns: 1fr;
    }

    .command-category h2 {
        font-size: 23px;
    }

    .book-page {
        min-height: 550px;
        padding: 45px 25px;
    }

    .cover h1 {
        font-size: 52px;
    }

    .cover h2 {
        font-size: 24px;
    }

    .cover-description {
        font-size: 16px;
    }
}

.discord-link {
    display: block;
    margin: 20px 0;
    padding: 25px;
    text-align: center;
    background: #151515;
    border: 1px solid #252525;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s ease;
}

.discord-link:hover {
    transform: translateY(-3px);
    border-color: #444;
}

.discord-link p {
    margin: 0 0 8px;
    color: #aaa;
}

.discord-link span {
    color: #ff3333;
    font-weight: bold;
}

.book-page {
    overflow-y: auto;
}

.book-content {
    overflow-wrap: break-word;
}

.book-content {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.guide-page-link {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 18px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1b1b1b;
    color: #ff3333;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
}

.guide-page-link:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
}

.contents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.contents-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #252525;
    border-radius: 6px;
    background: #151515;
    color: white;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.contents-item:hover {
    background: #1f1f1f;
    border-color: #444;
    transform: translateX(3px);
}

.contents-item span:last-child {
    color: #666;
    font-size: 13px;
}