:root {
    --spine-bg: #241f1a;
    --spine-text: #c9b68c;
    --spine-gold: #b4975a;
    --paper-bg: #f7f3eb;
    --paper-white: #fcfaf6;
    --ink-primary: #2c241b;
    --ink-secondary: #5a4f45;
    --ink-muted: #8a7e72;
    --rule-color: #d6cbbc;
    --accent-burgundy: #7a3b45;
    --shadow-book: 0 8px 40px rgba(0, 0, 0, 0.10);
    --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', 'Georgia', serif;
    background: #dad2c4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

/* Subtle paper grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
}

/* ===== LANDING CARD (Book Cover / Title Page) ===== */
.landing {
    width: 100%;
    max-width: 900px;
    background: var(--paper-white);
    box-shadow: var(--shadow-book), 0 0 0 1px rgba(0, 0, 0, 0.02);
    border-radius: 0px;
    position: relative;
    padding: 56px 64px 48px 64px;
    z-index: 1;
    transition: all var(--transition);
}

/* Decorative border (like a book page edge) */
.landing::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--rule-color);
    pointer-events: none;
    opacity: 0.5;
}

/* Book spine effect on left side */
.landing::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    bottom: 20px;
    width: 6px;
    background: linear-gradient(to right, rgba(36, 31, 26, 0.15), transparent);
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* ===== TOP DECORATION ===== */
.landing-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--spine-gold);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.landing-top .edition {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--ink-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.landing-top .edition i {
    color: var(--spine-gold);
    margin-right: 6px;
}

.landing-top .badge {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--paper-white);
    background: var(--accent-burgundy);
    padding: 14px 18px;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
.landing-body {
    text-align: center;
    padding: 20px 0 16px 0;
}

/* Seal / emblem */
.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--spine-gold);
    background: var(--paper-bg);
    margin-bottom: 28px;
    font-size: 34px;
    color: var(--spine-gold);
    position: relative;
}

.seal::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px dashed var(--spine-gold);
    opacity: 0.4;
}

/* Title */
.landing-body h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--ink-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto 8px auto;
}

.landing-body h1 em {
    font-style: italic;
    color: var(--accent-burgundy);
    font-weight: 600;
}

.landing-body .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--ink-secondary);
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-style: italic;
}

/* Ornamental divider */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px auto 28px auto;
    max-width: 300px;
}

.ornament .line {
    flex: 1;
    height: 1px;
    background: var(--rule-color);
}

.ornament .diamond {
    color: var(--spine-gold);
    font-size: 18px;
    opacity: 0.7;
}

/* Description */
.landing-body .desc {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-secondary);
    max-width: 600px;
    margin: 0 auto 36px auto;
    font-weight: 300;
}

.landing-body .desc strong {
    color: var(--ink-primary);
    font-weight: 700;
}

/* ===== ENTER BUTTON ===== */
.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--spine-bg);
    color: var(--spine-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 16px 48px 16px 40px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
}

.enter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--spine-gold);
    opacity: 0.15;
    transition: opacity var(--transition);
}

.enter-btn:hover {
    background: #3a322a;
    color: #f5ecd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.enter-btn:hover::before {
    opacity: 0.4;
}

.enter-btn i {
    font-size: 24px;
    color: var(--spine-gold);
    transition: transform var(--transition);
}

.enter-btn:hover i {
    transform: translateX(6px);
}

.enter-btn .arrow-line {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--spine-gold);
    opacity: 0.4;
    transition: all var(--transition);
}

.enter-btn:hover .arrow-line {
    width: 48px;
    opacity: 0.8;
}

/* ===== FOOTER ===== */
.landing-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--rule-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    color: var(--ink-muted);
}

.landing-footer .org {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-footer .org i {
    color: var(--spine-gold);
    font-size: 16px;
}

.landing-footer .org strong {
    color: var(--ink-secondary);
    font-weight: 600;
}

.landing-footer .version {
    letter-spacing: 0.8px;
}

.landing-footer .copyright {
    font-size: 13px;
    color: var(--ink-muted);
    letter-spacing: 0.5px;
}

.landing-footer .copyright i {
    color: var(--spine-gold);
    margin-right: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .landing {
        padding: 32px 24px 32px 24px;
        margin: 0;
    }
    .landing::before {
        inset: 4px;
    }
    .landing::after {
        display: none;
    }

    .landing-top {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    .landing-body h1 {
        font-size: 30px;
    }
    .landing-body .subtitle {
        font-size: 18px;
    }
    .landing-body .desc {
        font-size: 14px;
        padding: 0 4px;
    }

    .seal {
        width: 64px;
        height: 64px;
        font-size: 26px;
        margin-bottom: 20px;
    }

    .enter-btn {
        font-size: 18px;
        padding: 14px 32px 14px 28px;
        gap: 12px;
        width: 100%;
        justify-content: center;
    }

    .enter-btn .arrow-line {
        width: 20px;
    }
    .enter-btn:hover .arrow-line {
        width: 32px;
    }

    .landing-footer {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    .landing {
        padding: 24px 16px 24px 16px;
    }
    .landing-body h1 {
        font-size: 24px;
    }
    .landing-body .subtitle {
        font-size: 16px;
    }
    .landing-body .desc {
        font-size: 13px;
    }
    .enter-btn {
        font-size: 16px;
        padding: 12px 20px;
        letter-spacing: 1px;
    }
    .enter-btn i {
        font-size: 18px;
    }
    .landing-top .edition {
        font-size: 13px;
    }
    .landing-top .badge {
        font-size: 12px;
        padding: 2px 14px;
    }
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing {
    animation: fadeUp 0.7s ease forwards;
}

.landing-body h1,
.landing-body .subtitle,
.landing-body .desc,
.enter-btn,
.landing-footer {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.landing-body h1 {
    animation-delay: 0.1s;
}
.landing-body .subtitle {
    animation-delay: 0.2s;
}
.landing-body .desc {
    animation-delay: 0.3s;
}
.enter-btn {
    animation-delay: 0.4s;
}
.landing-footer {
    animation-delay: 0.5s;
}
.seal {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.05s;
}
.ornament {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.25s;
}
