:root {
    --text: #a8b5c6;
    --strong: #dde6f1;
    --bg: #0d1016;
    --pale: #c68ec8;
}
body {
    font-family: "Inter", Arial, sans-serif;
    font-optical-sizing: auto;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 15px;
}
@media screen and (min-width: 400px) {
    body {
        font-size: 16px;
    }
}

/* Visibility */

@media screen and (min-width: 768px) {
    .only-m {
        display: none !important;
    }
}
.only-d {
    display: none !important;
}
@media screen and (min-width: 768px) {
    .only-d {
        display: block !important;
    }
}

/* Content max width */

.full-paddings {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media screen and (min-width: 768px) {
    .full-paddings {
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.content-paddings {
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 60rem;
}

@media screen and (min-width: 768px) {
    .content-paddings {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Header */

header {
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-glass-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    height: calc(200% + 1px);
    top: 0;
    left: 0;
    z-index: 1;
    background: #00000044;
    backdrop-filter: blur(16px);
    mask-image: linear-gradient(to bottom, black 0, black 50%, transparent 50%);
}

.header-glass-edge {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(25px);
    mask-image: linear-gradient(to bottom, black 0, black 2px, transparent 2px);
}

.header-glass-edge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #8ec2f913;
}

.header-main-bg {
    background-image: linear-gradient(180deg, #000000 0%, #00000000 100%);
}

/* Main menu */

.nav {
    position: relative;
    z-index: 2;
    pointer-events: all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--strong);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.logo a svg {
    width: 1.1em;
    margin-right: 0.4em;
    height: auto;
}

.nav-links {
    display: none;
    list-style: 0;
    margin: 0;
    padding: 0;
}
@media screen and (min-width: 1000px) {
    .nav-links {
        display: flex;
        gap: 2rem;
        list-style: none;
        align-items: center;
    }
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

@media (hover: hover) {
    header a:hover {
        color: var(--pale);
    }
}

.nav-links a svg {
    width: 1.3em;
    height: auto;
    margin: 0 0.5em 0 0;
}

.nav-links a svg.outer {
    width: 0.8em;
    height: auto;
    margin: 0 0 0 0.4em;
}

.nav-toggle-menu {
    display: block;
    position: absolute;
    top: 1.15rem;
    right: 0;
    z-index: 1;
}
@media screen and (min-width: 1000px) {
    .nav-toggle-menu {
        display: none;
    }
}
.nav-toggle-menu svg {
    width: 1.7rem;
    height: auto;
    cursor: pointer;
    display: block;
}

@media (hover: hover) {
    .nav-toggle-menu svg:hover {
        color: var(--pale);
    }
}

@media screen and (max-width: 1000px) { /* Menu opened */
    body.menu-open .logo {
        margin-bottom: 2rem;
    }

    body.menu-open .nav {
        display: flex;
        flex-flow: column nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        padding-bottom: 2rem;
    }

    body.menu-open .nav-links {
        display: flex;
        flex-flow: column nowrap;
        gap: 1rem;
        list-style: none;
        justify-content: flex-start;
        align-items: flex-start;
    }

    body.menu-open .nav-links a {
        font-size: 1rem;
    }
}

/* Hero Section */

#hero {
    padding-top: 8rem;
    position: relative;
    text-align: center;
}

.hero-bg-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 90%);
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

#hero-example {
    position: relative;
    z-index: 2;
    min-height: 10rem;
    padding: 0.5rem;
    max-width: 65rem;
    margin: 0 auto -8rem;
    background-color: #141924;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.4);
}
@media screen and (min-width: 768px) {
    #hero-example {
        padding: 1rem;
    }
}

.lumosaic-item {
    cursor: pointer;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4568dc 0%, #b06ab3 100%);
    display: inline-block;
    margin: 0 auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}
@media screen and (min-width: 768px) {
    h1 {
        font-size: 4.5rem;
    }
}

h2 {
    font-size: 2.5rem;
    margin: 3rem 0 0.9rem 0;
    color: var(--pale);
}
@media screen and (min-width: 768px) {
    h2 {
        font-size: 3rem;
        margin: 4rem 0 1.2rem 0;
    }
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1.2rem 0;
    color: var(--strong);
}
@media screen and (min-width: 768px) {
    h3 {
        font-size: 2rem;
        margin: 2.5rem 0 1.2rem 0;
    }
}

p {
    margin: 0 0 1em 0;
}

p a {
    text-decoration: underline;
    color: var(--strong);
    transition: color 0.3s ease;
}
@media (hover: hover) {
    p a:hover {
        text-decoration: none;
        color: var(--pale);
    }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-weight: 200;
}
@media screen and (min-width: 768px) {
    .subtitle {
        font-size: 1.5rem;
        margin: 0 auto 3rem;
        max-width: 35rem;
    }
}

.cta-buttons {
    margin-bottom: 3rem;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.cta-button,
.cta-secondary-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}
@media screen and (min-width: 768px) {
    .cta-button,
    .cta-secondary-button {
        padding: 0.7rem 1.4rem;
    }
}

.cta-secondary-button {
    border: 1px solid #ffffff22;
}

.cta-button {
    background: linear-gradient(135deg, #4568dc 0%, #b06ab3 100%);
}

@media (hover: hover) {
    .cta-button:hover,
    .cta-secondary-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
    }
}

.cta-button svg {
    width: 1.5rem;
    height: auto;
    margin-left: 0.4rem;
}

.cta-secondary-button svg {
    width: 1.3rem;
    height: auto;
    margin-left: 0.4rem;
}
.cta-secondary-button.second svg {
    width: 1.2rem;
    position: relative;
    top: 0.2rem;
}

.button {
    cursor: pointer;
    display: inline-block;
    padding: 0.6rem 1rem;
    background: white;
    transition: background 0.3s ease;
    color: black;
    text-decoration: none;
    border-radius: 10em;
    border: 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

@media (hover: hover) {
    .button:hover {
        background: var(--pale);
    }
}

/* Get Started Section */

#get-started {
    background: linear-gradient(180deg, #06080b 0%, #0d1016 100%);
    padding-top: 8rem;
    padding-bottom: 3rem;
}

pre {
    margin: 0;
    padding: 0;
    margin-block: 0;
}
.code-wrapper {
    background-color: #141924;
    border-radius: 0.5rem;
    padding: 1.1rem 0.7rem;
    margin: 0 auto 1.5em;
    position: relative;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 768px) {
    .code-wrapper {
        padding: 1rem;
    }
}

.code-copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #1e2530;
    border: 1px solid #ffffff22;
    border-radius: 0.375rem;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.7;
}
@media (hover: hover) {
    .code-copy-button:hover {
        opacity: 1;
        background: #252d3a;
        border-color: #ffffff44;
    }
}

.code-copy-button.copied {
    color: #98c379;
    border-color: #98c37944;
}

.code-copy-button svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Example gallery */

.example {
    text-align: center;
    border: 2px dashed #20293b;
    padding: 1rem;
    border-radius: 0.5rem;
}

#example-1 {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
}
#example-1 img {
    width: auto;
    height: 15vw;
    cursor: pointer;
    transition: opacity 300ms ease;
}
@media screen and (min-width: 1000px) {
    #example-1 img {
        height: 9vw;
    }
}
@media (hover:hover) {
    #example-1 img:hover {
        opacity: 0.7;
    }
}
#example-2 {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
}
#example-2 span {
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 0 0.3rem;
    border-radius: 4rem;
    transition: opacity 300ms ease;
    text-decoration: underline;
    text-decoration-color: var(--pale);
    text-underline-offset: 5px;
}
@media (hover:hover) {
    #example-2 span:hover {
        opacity: 0.7;
    }
}

.example button {
    padding: 0.5rem 1rem;
    background-color: var(--strong);
    color: var(--bg);
    cursor: pointer;
    margin: 0.2rem 0.3rem;
    border-radius: 4rem;
    transition: opacity 300ms ease;
    font-size: 1rem;
    border: 0;
}
@media (hover:hover) {
    .example button:hover {
        opacity: 0.7;
    }
}

section#get-started {
    scroll-margin-top: -6rem;
}

section#initialization,
section#features,
section#options {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    scroll-margin-top: 1rem;
    background: linear-gradient(180deg, #06080b 0%, #0d1016 100%);
}
section#options {
    padding-bottom: 0.5rem;
}
@media screen and (min-width: 768px) {
    section#initialization,
    section#features,
    section#options {
        padding-bottom: 3rem;
        scroll-margin-top: 2rem;
    }
    section#options {
        padding-bottom: 2rem;
    }
}

/* Quick features */

#quick-features {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: stretch;
}

#quick-features > div {
    flex: 0 0 45%;
    margin-bottom: 1.6rem;
    font-size: 0.9rem;
}

@media screen and (min-width: 768px) {
    #quick-features > div {
        flex: 0 0 22%;
    }
}

#quick-features > div strong {
    font-weight: 600;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--strong);
}

#quick-features > div strong span {
    color: var(--pale);
}

strong.key {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    margin-right: 0.3rem;
    display: inline-block;
    color: var(--strong);
    color: var(--bg);
    background-color: var(--strong);
    border-radius: 3rem;
    padding: 0.2rem 0.7rem;
}

.example-text-content hr {
    border: 1px solid var(--pale);
    width: 50%;
    opacity: 0.3;
}
.example-text-content hr:first-child {
    margin: 0 auto 2rem;
}
.example-text-content hr:last-child {
    margin: 2rem auto 0;
}
.example-text-content {
    padding: 1rem;
}
.example-text-content h2 {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.example-text-content h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0 0 1rem;
    font-weight: 400;
    opacity: 0.5;
}

.keybindings p {
    margin: 0;
}
@media screen and (min-width: 768px) {
    .keybindings {
        display: flex;
        flex-flow: row wrap;
        justify-content: flex-start;
        gap: 4rem;
        align-items: stretch;
    }
}

/* List items */

.list-item {
    margin-bottom: 1rem;
}

.list-item .item-type {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.5;
}

.list-item .item-description {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

@media screen and (min-width: 768px) {
    .list-item {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }
    .list-item .item-description {
        flex: 1 1 70%;
        margin-bottom: 0;
    }

    .list-item .item-type {
        margin-bottom: 0;
    }

    .list-item .item-name {
        flex: 0 0 20rem;
        margin-bottom: 0;
    }
}

/* Hightlight code */

code {
    color: #96abee;
    font-family: "Courier New", monospace;
    font-size: 1rem;
}

.hljs-string {
    color: #98c379;
}

.hljs {
    background-color: #141924;
}

pre code.hljs {
    padding: 0;
}

/* Footer */

footer {
    background: #000000a5;
    padding: 2rem 0;
    border-top: 1px solid #ffffff11;
    margin-top: 3rem;
}

@media screen and (min-width: 768px) {
    footer .full-paddings {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-links {
    margin-top: 1rem;
}
.footer-links strong {
    color: var(--pale);
}
@media screen and (min-width: 768px) {
    .footer-links {
        padding-top: 0.3rem;
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1rem;
    }
}

.footer-content p {
    margin: 0 0 0.5rem;
}
.footer-content p:last-child {
    margin-bottom: 0;
}
.footer-content a {
    color: var(--strong);
    text-decoration: underline;
    transition: color 0.3s;
}
@media (hover: hover) {
    .footer-content a:hover {
        color: var(--pale);
        text-decoration: none;
    }
}

.footer-content-synsym {
    padding-top: 3rem;
    text-align: center;
}
@media screen and (min-width: 768px) {
    .footer-content-synsym {
        padding-top: 0;
        text-align: right;
    }
}
.footer-content-synsym img {
    height: 3.5rem;
    width: auto;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--strong);
    margin: 0 0 0.6rem;
}
.footer-desc {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 1rem;
    max-width: 30rem;
}
