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

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

body.font {
    font-family: "Golos Text", "Inter", Arial, sans-serif;
}

/* 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;
    background-image: linear-gradient(180deg, #0D1016 30%, #1e2431 100%);
}

@media screen and (min-width: 1000px) {
    #hero {
        padding-bottom: 2rem;
    }
}

.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;
    background: #1e2431;
}

#hero-example img {
    width: 100%;
    height: auto;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.3);
    border-radius: 0.7rem;
}

.hero-example-wrapper-1,
.hero-example-wrapper-2 {
    padding: 1.5rem;
}

@media screen and (min-width: 1000px) {

    .hero-example-wrapper-1,
    .hero-example-wrapper-2 {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: flex-start;
        gap: 3rem;
        padding: 2rem 2rem 5rem;

    }

    .hero-example-wrapper-1>div:first-child,
    .hero-example-wrapper-2>div:first-child {
        flex: 1 1 60%;
    }

    .hero-example-wrapper-1>div:last-child,
    .hero-example-wrapper-2>div:last-child {
        flex: 1 1 40%;
    }

    .hero-example-wrapper-2>div:first-child {
        order: 2;
    }

    .hero-example-wrapper-2>div:last-child {
        order: 1;
    }
}

@media screen and (min-width: 1200px) {

    .hero-example-wrapper-1>div:last-child h2,
    .hero-example-wrapper-2>div:last-child h2,
    .hero-example-wrapper-1>div:last-child h3,
    .hero-example-wrapper-2>div:last-child h3,
    .hero-example-wrapper-1>div:last-child p,
    .hero-example-wrapper-2>div:last-child p {
        max-width: 80%;
        position: relative;
        left: 10%;
    }
}

.hero-example-wrapper-1 h2,
.hero-example-wrapper-2 h2 {
    line-height: 1;
    margin-top: 2rem;
}

.hero-example-wrapper-1 h3,
.hero-example-wrapper-2 h3 {
    line-height: 1;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.refracta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;

    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.refracta-overlay.active {
    opacity: 1;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #67e8f9, #81b5f8, #4863af);
    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 {
    padding-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, #0ab1c7, #488eea, #4863af);
}

@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: 2rem;
    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;
}

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

section#configuration,
section#security,
section#preview {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    scroll-margin-top: 1rem;
    background: linear-gradient(180deg, #06080b 0%, #0d1016 100%);
}

section#preview {
    padding-bottom: 0.5rem;
}

@media screen and (min-width: 768px) {

    section#configuration,
    section#security,
    section#preview {
        padding-bottom: 3rem;
        scroll-margin-top: 2rem;
    }

    section#preview {
        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: #9cc7f9;
    font-family: "Courier New", monospace;
    font-size: 1rem;
}

/* background: linear-gradient(135deg, #67e8f9, #81b5f8, #4863af); */

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