:root {
    --text: #a8b5c6;
    --strong: #dde6f1;
    --bg: #0d1016;
    --pale: #ceef7b;
}

body {
    font-family: "Roboto", "Segoe UI", system-ui, 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: 1rem;
    z-index: 1;
}

@media screen and (min-width: 768px) {
    .nav-toggle-menu {
        right: 2rem;
    }
}

@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;
    }
}

/* Shuffle button */

#shuffle {
    position: absolute;
    top: -0.6rem;
    left: 50%;
    z-index: 3;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease 0s;
    transform: translate(-50%, 0) scale(1);
    border-radius: 10rem;
    padding: 0.3rem 0.7rem 0.3rem 0.5rem;
    background-color: var(--bg);
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.7);
}

@media (hover: hover) {
    #shuffle:hover {
        opacity: 1;
        transform: translate(-50%, 0) scale(1.1);
    }
}

@media screen and (min-width: 768px) {
    #shuffle {
        top: -0.1rem;
    }
}

#shuffle svg {
    width: 1.3rem;
    height: auto;
    margin-right: 0.4rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F6BB33 0%, #28C1C0 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-bottom: 3rem;
    }
}

.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, #a3a605 0%, #0fa8a8 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 */

.lumosaic-example {
    background: #141924;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 0 auto 1.5em;
    position: relative;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.4);
}

.example-wrapper .options-wrapper {
    margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {
    .example-wrapper {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: flex-start;
        gap: 1rem;
    }

    .example-wrapper .options-wrapper {
        flex: 1 1 auto;
        margin-bottom: 0;
    }

    .example-wrapper .lumosaic-example {
        flex: 0 0 auto;
        width: 25vw;
    }
}

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

    .example-wrapper .lumosaic-example {
        width: 30rem;
    }
}

.options-item {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

/* Inputs */

select {
    width: 4.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #ffffff22;
    background-color: #141924;
    color: var(--text);
    transition: border-color 0.3s ease;
}

@media (hover: hover) {
    select:hover {
        border-color: #ffffff55;
    }
}

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

section#usage,
section#preview,
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#usage,
    section#preview,
    section#options {
        padding-bottom: 3rem;
        scroll-margin-top: 2rem;
    }

    section#options {
        padding-bottom: 2rem;
    }
}

/* 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: #8af0d8;
    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;
}