/* =========================================================
   SCHOOLLY WEBSITE
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    color: #ffffff;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.5;

    overflow-x: hidden;

    background:

        linear-gradient(
            rgba(25, 7, 54, 0.27),
            rgba(22, 5, 48, 0.50)
        ),

        url("Scholly Bacround.png");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

    background-color: #32105c;

}


body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

    background:

        radial-gradient(
            circle at 10% 15%,
            rgba(255,255,255,0.06),
            transparent 25%
        ),

        radial-gradient(
            circle at 85% 75%,
            rgba(168,85,247,0.11),
            transparent 30%
        );

}


::selection {

    background:
        rgba(216,180,254,0.40);

    color: white;

}


a {

    color: inherit;

    text-decoration: none;

}


img {

    display: block;

    max-width: 100%;

}


button {

    font-family: inherit;

}



/* =========================================================
   COLORS
========================================================= */

:root {

    --white: #ffffff;

    --text: #f8f5fb;

    --muted: #d1c9db;

    --muted-dark: #a79caf;

    --purple-light: #e9d5ff;

    --purple: #a855f7;

    --purple-dark: #7e22ce;

    --panel:
        rgba(24, 7, 47, 0.68);

    --panel-strong:
        rgba(30, 9, 58, 0.82);

    --border:
        rgba(255,255,255,0.13);

    --border-hover:
        rgba(255,255,255,0.23);

    --container: 1180px;

}



/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(19, 5, 39, 0.68);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    border-bottom:
        1px solid
        rgba(255,255,255,0.10);

}


.nav-container {

    width:
        min(
            var(--container),
            calc(100% - 40px)
        );

    min-height: 72px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 34px;

}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 17px;

    font-weight: 800;

    letter-spacing:
        -0.02em;

}


.logo img {

    width: 35px;

    height: 35px;

    object-fit: cover;

    border-radius: 10px;

    box-shadow:
        0 0 25px
        rgba(168,85,247,0.25);

}



/* =========================================================
   NAV LINKS
========================================================= */

nav {

    display: flex;

    align-items: center;

    gap: 27px;

}


nav a {

    position: relative;

    color:
        rgba(255,255,255,0.74);

    font-size: 13px;

    transition:
        color 0.2s ease;

}


nav a:hover {

    color:
        white;

}


nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    border-radius: 999px;

    background:
        var(--purple-light);

    transition:
        width 0.2s ease;

}


nav a:hover::after {

    width: 100%;

}



/* =========================================================
   ADD BUTTON
========================================================= */

.add-button {

    margin-left: auto;

    min-height: 42px;

    padding:
        0 17px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,0.16);

    border-radius: 11px;

    background:
        rgba(255,255,255,0.08);

    color:
        white;

    font-size: 12px;

    font-weight: 800;

    transition:
        0.2s ease;

}


.add-button:hover {

    background:
        rgba(255,255,255,0.15);

    border-color:
        rgba(255,255,255,0.25);

    transform:
        translateY(-2px);

}



/* =========================================================
   HERO
========================================================= */

.hero {

    width:
        min(
            var(--container),
            calc(100% - 40px)
        );

    min-height: 760px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr 0.9fr;

    align-items: center;

    gap: 70px;

    padding:
        90px 0;

}


.hero-content {

    max-width: 700px;

}


.label {

    color:
        var(--purple-light);

    font-size: 10px;

    font-weight: 900;

    letter-spacing:
        0.17em;

}


.hero h1 {

    margin-top: 18px;

    font-size:
        clamp(53px, 7vw, 88px);

    line-height:
        0.95;

    letter-spacing:
        -0.07em;

}


.hero h1 span {

    color:
        var(--purple-light);

    text-shadow:
        0 0 35px
        rgba(216,180,254,0.18);

}


.hero-description {

    max-width: 590px;

    margin-top: 25px;

    color:
        rgba(255,255,255,0.79);

    font-size: 17px;

    line-height:
        1.75;

}


/* =========================================================
   BUTTONS
========================================================= */

.buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;

}


.button {

    min-height: 46px;

    padding:
        0 18px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    font-size: 13px;

    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.button:hover {

    transform:
        translateY(-2px);

}


.button.primary {

    background:
        white;

    color:
        #32105c;

    border-color:
        transparent;

    box-shadow:
        0 10px 30px
        rgba(255,255,255,0.10);

}


.button.primary:hover {

    background:
        #f4eaff;

    box-shadow:
        0 15px 35px
        rgba(255,255,255,0.16);

}


.button.secondary {

    background:
        rgba(38, 11, 69, 0.67);

    color:
        white;

    border:
        1px solid
        rgba(255,255,255,0.16);

    backdrop-filter:
        blur(10px);

}


.button.secondary:hover {

    background:
        rgba(72, 25, 116, 0.78);

    border-color:
        rgba(255,255,255,0.25);

}



/* =========================================================
   HERO LOGO
========================================================= */

.hero-logo {

    display: flex;

    align-items: center;

    justify-content: center;

}


.logo-box {

    position: relative;

    width:
        min(430px, 100%);

    min-height: 480px;

    padding:
        40px 30px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,0.15);

    border-radius: 27px;

    background:

        linear-gradient(
            145deg,
            rgba(58,18,95,0.76),
            rgba(22,6,43,0.73)
        );

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:

        0 30px 85px
        rgba(9,0,25,0.42),

        0 0 70px
        rgba(168,85,247,0.15);

}


.logo-box::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -55%);

    border-radius: 50%;

    background:
        rgba(168,85,247,0.13);

    filter:
        blur(45px);

}


.logo-box img {

    position: relative;

    width: 235px;

    height: 235px;

    object-fit: cover;

    border-radius: 48px;

    box-shadow:

        0 0 90px
        rgba(168,85,247,0.42);

}


.logo-box h2 {

    position: relative;

    margin-top: 22px;

    font-size: 29px;

    letter-spacing:
        -0.03em;

}


.logo-box p {

    position: relative;

    margin-top: 5px;

    color:
        var(--muted);

    font-size: 13px;

}



/* =========================================================
   SECTIONS
========================================================= */

.section {

    width:
        min(
            var(--container),
            calc(100% - 40px)
        );

    margin: auto;

    padding:
        110px 0;

    border-top:
        1px solid
        rgba(255,255,255,0.09);

}


.section-title {

    margin-top: 16px;

    max-width: 900px;

    font-size:
        clamp(40px,5vw,63px);

    line-height:
        0.98;

    letter-spacing:
        -0.055em;

}


.section-description {

    max-width: 700px;

    margin-top: 22px;

    color:
        rgba(255,255,255,0.72);

    font-size: 15px;

    line-height:
        1.8;

}



/* =========================================================
   COMMAND AREA
========================================================= */

.command-area {

    margin-top: 43px;

    padding: 15px;

    display: grid;

    grid-template-columns:
        0.75fr 1.25fr;

    gap: 15px;

    border:
        1px solid
        rgba(255,255,255,0.13);

    border-radius: 24px;

    background:

        linear-gradient(
            145deg,
            rgba(52,16,87,0.76),
            rgba(18,5,35,0.72)
        );

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    box-shadow:
        0 25px 70px
        rgba(10,0,30,0.23);

}


.command-text {

    padding:
        35px 25px;

}


.tag {

    display: inline-flex;

    padding:
        7px 10px;

    border:
        1px solid
        rgba(216,180,254,0.17);

    border-radius:
        999px;

    background:
        rgba(168,85,247,0.12);

    color:
        var(--purple-light);

    font-size: 10px;

    font-weight: 900;

    letter-spacing:
        0.12em;

}


.command-text h3 {

    margin-top: 20px;

    font-size: 35px;

    line-height:
        1;

    letter-spacing:
        -0.04em;

}


.command-text p {

    margin-top: 16px;

    color:
        var(--muted);

    font-size: 14px;

    line-height:
        1.75;

}


.command-text ul {

    margin-top: 24px;

    padding-left: 18px;

    color:
        rgba(255,255,255,0.82);

    line-height:
        2;

}


.command-text li::marker {

    color:
        var(--purple-light);

}


.command-image {

    min-height: 440px;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,0.10);

    border-radius: 17px;

    background:
        #070707;

}


.command-image img {

    width: 100%;

    height: 100%;

    min-height: 440px;

    display: block;

    object-fit: cover;

}



/* =========================================================
   FEATURES
========================================================= */

.feature-grid {

    margin-top: 42px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

}


.feature {

    position: relative;

    min-height: 275px;

    padding: 28px;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius: 20px;

    background:

        linear-gradient(
            145deg,
            rgba(41,12,70,0.72),
            rgba(18,5,35,0.70)
        );

    backdrop-filter:
        blur(13px);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;

}


.feature:hover {

    transform:
        translateY(-5px);

    background:

        linear-gradient(
            145deg,
            rgba(57,17,96,0.80),
            rgba(20,6,39,0.74)
        );

    border-color:
        rgba(216,180,254,0.25);

}


.feature > span {

    color:
        var(--purple-light);

    font-size: 11px;

    font-weight: 800;

}


.feature h3 {

    margin-top: 47px;

    font-size: 27px;

    letter-spacing:
        -0.03em;

}


.feature p {

    margin-top: 13px;

    color:
        var(--muted);

    font-size: 14px;

    line-height:
        1.7;

}



/* =========================================================
   UPDATES
========================================================= */

.updates {

    margin-top: 35px;

    margin-bottom: 20px;

    display: grid;

    gap: 12px;

}


.update-card {

    display: grid;

    grid-template-columns:
        46px
        minmax(0,1fr)
        auto;

    gap: 15px;

    padding: 18px;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius: 17px;

    background:
        rgba(24,7,47,0.68);

    backdrop-filter:
        blur(13px);

    -webkit-backdrop-filter:
        blur(13px);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;

}


.update-card:hover {

    transform:
        translateY(-2px);

    background:
        rgba(48,15,80,0.74);

    border-color:
        rgba(216,180,254,0.22);

}


.update-card img {

    width: 46px;

    height: 46px;

    object-fit: cover;

    border-radius: 13px;

}


.update-author {

    color:
        white;

    font-size: 13px;

    font-weight: 800;

}


.update-date {

    margin-left: 8px;

    color:
        var(--muted-dark);

    font-size: 11px;

}


.update-content {

    margin-top: 6px;

    color:
        rgba(255,255,255,0.78);

    white-space: pre-wrap;

    overflow-wrap: anywhere;

    font-size: 14px;

    line-height:
        1.6;

}


.update-link {

    color:
        var(--purple-light);

    font-size: 12px;

    font-weight: 800;

}


.update-link:hover {

    color:
        white;

}


.update-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 18px;

}


.loading {

    min-height: 120px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px dashed
        rgba(255,255,255,0.16);

    border-radius: 17px;

    background:
        rgba(25,7,44,0.45);

    color:
        var(--muted);

    font-size: 13px;

}



/* =========================================================
   ADD SCHOOLLY
========================================================= */

.action-section {

    width:
        min(
            var(--container),
            calc(100% - 40px)
        );

    margin:
        15px auto 60px;

    padding:
        55px;

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap: 35px;

    border:
        1px solid
        rgba(255,255,255,0.14);

    border-radius: 25px;

    background:

        linear-gradient(
            120deg,
            rgba(54,16,91,0.80),
            rgba(22,6,42,0.76)
        );

    backdrop-filter:
        blur(15px);

    box-shadow:
        0 30px 75px
        rgba(10,0,30,0.25);

}


.action-section .section-title {

    font-size:
        clamp(39px,5vw,56px);

}



/* =========================================================
   SUPPORT
========================================================= */

.support-section {

    padding-bottom:
        120px;

}



/* =========================================================
   STAFF
========================================================= */

.coming-soon {

    margin-top: 38px;

    min-height: 250px;

    padding: 35px;

    display: flex;

    align-items: center;

    gap: 25px;

    border:
        1px solid
        rgba(255,255,255,0.13);

    border-radius: 22px;

    background:

        linear-gradient(
            145deg,
            rgba(45,13,76,0.74),
            rgba(18,5,35,0.69)
        );

    backdrop-filter:
        blur(14px);

}


.coming-soon img {

    width: 90px;

    height: 90px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 22px;

}


.coming-soon h2 {

    font-size: 35px;

    line-height:
        1.05;

    letter-spacing:
        -0.04em;

}


.coming-soon p {

    margin-top: 9px;

    color:
        var(--muted);

    font-size: 14px;

}



/* =========================================================
   DOCS
========================================================= */

.docs-card {

    padding: 35px;

    border:
        1px solid
        rgba(255,255,255,0.13);

    border-radius: 22px;

    background:
        rgba(25,7,48,0.68);

    backdrop-filter:
        blur(14px);

}


.docs-card h2 {

    margin-top: 12px;

    font-size:
        50px;

}


.docs-card p {

    max-width: 650px;

    margin-top: 15px;

    color:
        var(--muted);

    line-height:
        1.7;

}



/* =========================================================
   FOOTER
========================================================= */

footer {

    margin-top: 20px;

    border-top:
        1px solid
        rgba(255,255,255,0.10);

    background:
        rgba(13,3,25,0.72);

    backdrop-filter:
        blur(18px);

}


.footer-inner {

    width:
        min(
            var(--container),
            calc(100% - 40px)
        );

    min-height: 105px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 30px;

}


.footer-brand {

    margin-right:
        auto;

}


.footer-links {

    display: flex;

    align-items: center;

    gap: 14px;

}


.footer-button {

    padding: 0;

    border: none;

    background: transparent;

    color:
        rgba(255,255,255,0.78);

    font-size: 13px;

    text-decoration:
        underline;

    cursor: pointer;

    transition:
        color 0.2s ease;

}


.footer-button:hover {

    color:
        white;

}


.footer-divider {

    color:
        rgba(255,255,255,0.35);

}


.copyright {

    color:
        rgba(255,255,255,0.68);

    font-size: 12px;

}


.copyright a {

    color:
        white;

}


.copyright a:hover {

    text-decoration:
        underline;

}



/* =========================================================
   LEGAL MODAL
========================================================= */

.legal-modal {

    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(6,2,15,0.78);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

}


.legal-modal.active {

    display: flex;

}


.legal-box {

    width:
        min(
            900px,
            100%
        );

    max-height:
        86vh;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,0.15);

    border-radius: 22px;

    background:

        linear-gradient(
            145deg,
            rgba(48,15,80,0.97),
            rgba(15,4,29,0.98)
        );

    box-shadow:
        0 40px 100px
        rgba(0,0,0,0.6);

}


.legal-header {

    min-height: 75px;

    padding:
        0 22px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.10);

    background:
        rgba(255,255,255,0.025);

}


.legal-header h2 {

    font-size: 24px;

    letter-spacing:
        -0.03em;

}


.legal-close {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,0.14);

    border-radius: 10px;

    background:
        rgba(255,255,255,0.05);

    color:
        white;

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.legal-close:hover {

    background:
        rgba(255,255,255,0.12);

    transform:
        rotate(5deg);

}


.legal-content {

    max-height:
        calc(86vh - 75px);

    overflow-y: auto;

    padding:
        30px;

    color:
        rgba(255,255,255,0.78);

    font-size: 14px;

    line-height:
        1.75;

}


.legal-content h3 {

    margin-top: 28px;

    margin-bottom: 8px;

    color:
        white;

    font-size: 17px;

}


.legal-content h3:first-child {

    margin-top:
        0;

}


.legal-content p {

    margin-bottom:
        13px;

}


.legal-content ul {

    margin:
        10px 0 18px 22px;

}


.legal-content li {

    margin-bottom:
        8px;

}


.legal-content strong {

    color:
        white;

}


.legal-content a {

    color:
        var(--purple-light);

    text-decoration:
        underline;

}


/* =========================================================
   LEGAL SCROLLBAR
========================================================= */

.legal-content::-webkit-scrollbar {

    width:
        8px;

}


.legal-content::-webkit-scrollbar-track {

    background:
        rgba(255,255,255,0.04);

}


.legal-content::-webkit-scrollbar-thumb {

    background:
        rgba(196,181,253,0.35);

    border-radius:
        999px;

}



/* =========================================================
   MAIN SCROLLBAR
========================================================= */

::-webkit-scrollbar {

    width: 9px;

}


::-webkit-scrollbar-track {

    background:
        #17062d;

}


::-webkit-scrollbar-thumb {

    background:
        linear-gradient(
            180deg,
            #a855f7,
            #6d28d9
        );

    border-radius:
        999px;

}


::-webkit-scrollbar-thumb:hover {

    background:
        linear-gradient(
            180deg,
            #c084fc,
            #9333ea
        );

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {


    .hero {

        grid-template-columns:
            1fr;

        min-height:
            auto;

        padding:
            85px 0;

    }


    .hero-logo {

        margin-top:
            10px;

    }


    .logo-box {

        width:
            min(
                500px,
                100%
            );

    }


    .command-area {

        grid-template-columns:
            1fr;

    }


    .feature-grid {

        grid-template-columns:
            1fr;

    }


    .action-section {

        flex-direction:
            column;

        align-items:
            flex-start;

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {


    .nav-container {

        width:
            calc(100% - 28px);

        min-height:
            64px;

        flex-wrap:
            wrap;

        gap:
            10px;

        padding:
            8px 0;

    }


    nav {

        width:
            100%;

        order:
            3;

        justify-content:
            space-between;

        gap:
            7px;

        padding-bottom:
            5px;

    }


    nav a {

        font-size:
            10px;

    }


    nav a::after {

        display:
            none;

    }


    .add-button {

        min-height:
            38px;

        padding:
            0 11px;

        font-size:
            10px;

    }


    .hero {

        width:
            calc(100% - 28px);

        padding:
            75px 0;

    }


    .hero h1 {

        font-size:
            clamp(
                48px,
                14vw,
                68px
            );

    }


    .hero-description {

        font-size:
            15px;

    }


    .buttons {

        flex-direction:
            column;

        align-items:
            stretch;

    }


    .button {

        width:
            100%;

    }


    .logo-box {

        min-height:
            410px;

        padding:
            30px 20px;

    }


    .logo-box img {

        width:
            185px;

        height:
            185px;

        border-radius:
            38px;

    }


    .section {

        width:
            calc(100% - 28px);

        padding:
            80px 0;

    }


    .section-title {

        font-size:
            clamp(
                39px,
                12vw,
                55px
            );

    }


    .command-text {

        padding:
            25px 15px;

    }


    .command-text h3 {

        font-size:
            31px;

    }


    .command-image {

        min-height:
            280px;

    }


    .command-image img {

        min-height:
            280px;

    }


    .update-card {

        grid-template-columns:
            42px
            minmax(0,1fr);

    }


    .update-card img {

        width:
            42px;

        height:
            42px;

    }


    .update-link {

        grid-column:
            2;

    }


    .update-actions {

        flex-direction:
            column;

    }


    .action-section {

        width:
            calc(100% - 28px);

        padding:
            35px 25px;

    }


    .action-section .section-title {

        font-size:
            40px;

    }


    .coming-soon {

        flex-direction:
            column;

        align-items:
            flex-start;

        padding:
            30px 25px;

    }


    .coming-soon h2 {

        font-size:
            31px;

    }


    .docs-card {

        padding:
            28px 23px;

    }


    .footer-inner {

        width:
            calc(100% - 28px);

        min-height:
            130px;

        flex-wrap:
            wrap;

        align-content:
            center;

        padding:
            20px 0;

    }


    .footer-brand {

        width:
            100%;

    }


    .footer-links {

        flex-wrap:
            wrap;

    }


    .copyright {

        width:
            100%;

    }


    .legal-modal {

        padding:
            10px;

    }


    .legal-box {

        max-height:
            92vh;

        border-radius:
            17px;

    }


    .legal-header {

        min-height:
            68px;

        padding:
            0 17px;

    }


    .legal-header h2 {

        font-size:
            20px;

    }


    .legal-content {

        max-height:
            calc(92vh - 68px);

        padding:
            22px;

        font-size:
            13px;

    }

}