/* Here lies the CSS concerned with the landing page */

.landing-page-hero {
    position: relative;
    text-align: left !important;
    padding: 4.25rem 0 3.25rem;
    max-width: 640px;
    z-index: 5;
}

.landing-page-hero h1,
.landing-page-hero .display-4 {
    font-size: clamp(2.35rem, 4.1vw, 3.4rem);
    font-weight: 600 !important;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.35rem !important;
}

.landing-page-hero h1 span,
.landing-page-hero .hero-highlight {
    display: block;
    font-weight: 800;
    color: var(--accent-bright);
    background: linear-gradient(90deg, #8b3dff 0%, #7022de 65%, #9d5cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 18px rgba(139, 61, 255, 0.25));
    margin-top: 0.1rem;
}

.landing-page-hero .lead {
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.62;
    color: var(--text-muted) !important;
    max-width: 530px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 2.25rem !important;
}

.hero-actions {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.15rem;
    margin-bottom: 0 !important;
}

.hero-actions .btn {
    min-width: 195px;
    padding: 0.82rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.hero-actions .btn::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.72rem;
    opacity: 0.9;
    transition: transform var(--transition-fast);
}

.hero-actions .btn:hover::after {
    transform: translateX(3px);
}

.features-grid {
    position: relative;
    z-index: 5;
    margin-top: 3rem !important;
    padding: 1.5rem 0 1.25rem;
}

.features-grid .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

.feature-card {
    position: relative;
    text-align: center;
    padding: 1rem 2.25rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.feature-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(180deg,
            rgba(139, 61, 255, 0.08) 0%,
            rgba(139, 61, 255, 0.48) 50%,
            rgba(139, 61, 255, 0.08) 100%);
}

.feature-icon {
    font-size: 1.85rem;
    color: var(--accent-bright);
    margin-bottom: 0.85rem !important;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(139, 61, 255, 0.38));
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted) !important;
    max-width: 275px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .public-content-wrapper::before {
        opacity: 0.45;
        max-height: 980px !important;
    }

    .landing-page-hero {
        padding: 2.5rem 0 2rem;
    }

    .features-grid .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card:not(:last-child)::after {
        top: auto;
        bottom: -0.75rem;
        right: 20%;
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg,
                rgba(139, 61, 255, 0.05) 0%,
                rgba(139, 61, 255, 0.4) 50%,
                rgba(139, 61, 255, 0.05) 100%);
    }
}

@media (max-width: 575.98px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Public Container & Background Scoping for Landing Page
   ========================================================================== */

.public-layout {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.public-content-wrapper > .container {
    justify-content: flex-start !important;
}

/* Lock landing backdrop image to the top hero section fold so it never expands when scrolled */
.public-content-wrapper::before {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 100vh !important;
    max-height: 880px !important;
    background-size: cover !important;
    background-position: center right !important;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%) !important;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%) !important;
}

/* ==========================================================================
   Scroll Down Prompt
   ========================================================================== */

.scroll-prompt-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3.25rem 0 2rem;
    position: relative;
    z-index: 6;
}

.scroll-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.45rem;
    border-radius: 999px;
    background: rgba(18, 12, 34, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(157, 92, 255, 0.32);
    color: #cfc5e8;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-prompt-btn:hover {
    background: rgba(30, 18, 58, 0.95);
    border-color: rgba(157, 92, 255, 0.65);
    color: #ffffff;
    transform: translateY(2px);
    box-shadow: 0 8px 28px rgba(139, 61, 255, 0.28);
}

.scroll-mouse-icon {
    width: 17px;
    height: 25px;
    border: 2px solid rgba(157, 92, 255, 0.7);
    border-radius: 9px;
    display: flex;
    justify-content: center;
    padding-top: 4px;
    box-sizing: border-box;
}

.scroll-wheel {
    width: 3px;
    height: 5px;
    background: #c7a2ff;
    border-radius: 2px;
    animation: mouseWheelSlide 1.6s infinite ease-in-out;
}

@keyframes mouseWheelSlide {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(5px);
        opacity: 0.2;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.scroll-arrow-icon {
    font-size: 0.78rem;
    color: #b47cff;
    animation: arrowDownBounce 1.8s infinite ease-in-out;
}

@keyframes arrowDownBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

.section-divider-glow {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 61, 255, 0.15) 15%,
        rgba(157, 92, 255, 0.65) 50%,
        rgba(139, 61, 255, 0.15) 85%,
        transparent 100%
    );
    margin: 1.25rem 0 3.25rem;
    filter: drop-shadow(0 0 8px rgba(157, 92, 255, 0.45));
}

/* ==========================================================================
   Professional README Documentation Section
   ========================================================================== */

.readme-section {
    position: relative;
    z-index: 5;
    padding-bottom: 5.5rem;
}

.readme-header-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.readme-header-main {
    max-width: 650px;
}

.readme-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    background: rgba(139, 61, 255, 0.16);
    border: 1px solid rgba(157, 92, 255, 0.35);
    color: #c7a2ff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.readme-section-title {
    font-size: clamp(1.85rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.readme-section-subtitle {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.readme-header-toolbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.readme-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.readme-ctrl-btn:hover {
    background: rgba(139, 61, 255, 0.22);
    border-color: rgba(157, 92, 255, 0.55);
    color: #ffffff;
}

.readme-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.readme-accordion {
    background: rgba(14, 9, 26, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.readme-accordion:hover {
    border-color: rgba(157, 92, 255, 0.36);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.readme-accordion[open] {
    border-color: rgba(157, 92, 255, 0.55);
    box-shadow: 0 12px 38px rgba(139, 61, 255, 0.16);
    background: rgba(18, 12, 34, 0.88);
}

.readme-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem 1.45rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.readme-summary::-webkit-details-marker {
    display: none;
}

.readme-summary-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.readme-summary-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(157, 92, 255, 0.65);
    letter-spacing: 0.06em;
    min-width: 22px;
    user-select: none;
}

.readme-summary-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(139, 61, 255, 0.16);
    border: 1px solid rgba(157, 92, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7a2ff;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.readme-accordion:hover .readme-summary-icon {
    transform: scale(1.05);
    background: rgba(139, 61, 255, 0.25);
}

.readme-titles-wrapper {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.readme-summary-category {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9c91b5;
    line-height: 1.2;
    margin-bottom: 0.18rem;
    user-select: none;
}

.readme-summary-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #f5f2fc;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.readme-summary-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.readme-summary-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.6rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.readme-accordion[open] .readme-summary-badge {
    background: rgba(139, 61, 255, 0.2);
    border-color: rgba(157, 92, 255, 0.4);
    color: #d6baff;
}

.readme-chevron {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition-fast);
}

.readme-accordion[open] .readme-chevron {
    transform: rotate(90deg);
    color: #b47cff;
}

.readme-body {
    padding: 1.4rem 1.75rem 1.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 5, 18, 0.48);
    color: #cfc5e8;
    font-size: 0.94rem;
    line-height: 1.7;
}

/* Markdown styling inside README body */
.readme-body.markdown-body h1,
.readme-body.markdown-body h2 {
    display: none; /* Already rendered in the summary header */
}

.readme-body.markdown-body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #e6daf7;
    margin: 1.35rem 0 0.65rem;
    letter-spacing: -0.01em;
}

.readme-body.markdown-body h3:first-child {
    margin-top: 0;
}

.readme-body.markdown-body p {
    margin: 0 0 0.95rem;
}

.readme-body.markdown-body p:last-child {
    margin-bottom: 0;
}

.readme-body.markdown-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.readme-body.markdown-body ul,
.readme-body.markdown-body ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

.readme-body.markdown-body li {
    margin-bottom: 0.5rem;
}

.readme-body.markdown-body li:last-child {
    margin-bottom: 0;
}

.readme-body.markdown-body code {
    background: rgba(139, 61, 255, 0.16);
    color: #d6baff;
    padding: 0.15rem 0.42rem;
    border-radius: 4px;
    font-size: 0.86em;
    border: 1px solid rgba(157, 92, 255, 0.25);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.readme-body.markdown-body hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.35rem 0;
}

.readme-body.markdown-body blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1.15rem;
    background: rgba(139, 61, 255, 0.08);
    border-left: 3px solid #9d5cff;
    border-radius: 4px;
    color: #cfc6e4;
}

.readme-body.markdown-body a {
    color: #b47cff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.readme-body.markdown-body a:hover {
    color: #d6baff;
}

@media (max-width: 991.98px) {
    .readme-header-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .readme-summary-badge {
        display: none;
    }

    .readme-summary-num {
        display: none;
    }

    .readme-body {
        padding: 1.15rem 1.25rem 1.45rem;
    }
}