body {
    font-family: 'Lexend', 'Inter', sans-serif;
    /* background-color: #333333;
    color:aliceblue; */
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1B1B1D;
        color: azure;
    }
}

main {
    margin-top:100px;
}

.topbar {
    position:absolute;
    /* background-color: #111111; */
    padding: 7px 35px;
    top: 0;
    left: 0;
    right: 0;
}
@media (prefers-color-scheme: dark) {
    .topbar {
        background-color: #242526;
    }
}

.topbar__grid {
    display:flex;
    align-items: center;
    justify-items: center;
    justify-content: space-between;
}

.topbar__logo {
    font-weight: 600;
    font-size: x-large;
    letter-spacing: -1px;
}

.topbar__navigation {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.topbar__list {
    list-style-type: none;
    list-style: none;
    display: flex;
}

.topbar__list li {
    margin: 0 7px;
}

    .topbar__link {
        text-decoration: none;
        display: flex;
        align-items: flex-end;
        color:#444444;
        font-weight: 300;
        border-radius: 7px;
        padding: 7px 12px;
        transition: all .4s;
    }
    .topbar__link:hover {
        color: black;
        background-color: #FEFEFE;
        transition: all .5s;
    }

.topbar__link.as_active {
    font-weight: bold;
}



@media (prefers-color-scheme: dark) {
    .topbar__link {
        display: flex;
        align-items:flex-end;
        color: azure;
        transition: all .4s;
    }
    .topbar__link:hover {
        color: rgb(80, 250, 123);
        background-color: #222;
        transition: all .5s;
    }
}

.topbar__link__icon {
    margin: 0;
    padding: 0;
    margin-right: -12px;
    transition: all .4s;
}

.topbar__link:hover .topbar__link__icon {
    transform: rotateZ(-180deg);
    transition: transform .5s;
    transition-delay: .1s;
}


.topbar__buttons button {
    background-color: black;
    color:#FFFFFF;
    border-radius: 7px;
    padding: 7px 12px;
    font-size: medium;
    margin: 0 18px;
    transition: all .4s;
    border: 1px solid black;
}

.topbar__buttons button:hover {
    background-color:rgb(213, 1, 1);
    border: 1px solid rgb(213, 1, 1);
    transition: all .5s;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 10%;
    gap: 3rem;
    flex-wrap: wrap;
    background-color: white;
}

.hero__content {
    flex: 1;
    max-width: 550px;
}

.hero__content h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.accent {
    color: var(--primary);
}

.hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.hero__buttons .btn {
    margin-right: 1rem;
}

.hero__image img {
    max-width: 380px;
    width: 300px;
}


@media (prefers-color-scheme: dark) {
    .hero {
        background-color: #242526;
        color: white;
    }
}

@media (prefers-color-scheme: dark) {
    .topbar__buttons button {
        color: rgb(80, 250, 123);
        background-color: #242526;
        border: 1px solid rgb(80, 250, 123);
    }
    .topbar__buttons button:hover {
        background-color: #25C2A0;
        transition: all .5s;
        color: white;
        border-color: #25C2A0;
    }
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: #b80000;
}

.btn--secondary {
    background: var(--secondary);
    color: #fff;
}

.btn--secondary:hover {
    opacity: 0.8;
}

@media (prefers-color-scheme: dark) {
    .btn--primary {
        background: rgb(80, 250, 123);
        color: #000;
    }
    .btn--primary:hover {
        background: #25C2A0;
        color: white;
    }
    .btn--secondary {
        background: #333;
        color: rgb(80, 250, 123);
    }
}

/* FEATURES */
.features {
    text-align: center;
    padding: 4rem 10%;
    background: #fff;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: #fffdf8;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

/* DARK MODE FEATURES */
@media (prefers-color-scheme: dark) {
    .features {
        background: #1B1B1D;
    }
    .feature {
        background: #242526;
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
    }
}

/* DEMO SECTION */
.demo {
    padding: 4rem 10%;
    text-align: center;
}

.demo__input {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.demo__input input {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    width: 250px;
    background: #fff;
    color: #000;
}

.demo__input button {
    padding: 0.8rem 1.4rem;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all .3s;
}

.demo__input button:hover {
    background: #b80000;
}

.demo__result {
    background: #111;
    color: #0f0;
    text-align: left;
    padding: 1.5rem;
    border-radius: var(--radius);
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* DARK MODE DEMO */
@media (prefers-color-scheme: dark) {
    .demo__input input {
        background: #242526;
        color: #fff;
        border-color: #444;
    }
    .demo__input button {
        background: rgb(80, 250, 123);
        color: #000;
    }
    .demo__input button:hover {
        background: #25C2A0;
        color: white;
    }
}

/* FOOTER */
.footer {
    background: #000;
    color: #efefef;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    a {
        color: #fff;
        text-decoration: none;
    }
}

@media (prefers-color-scheme: dark) {
    .footer {
        background: #242526;
        color: rgb(200, 200, 200);
    }
}

