@import "./fonts.css";

html {
    background: #323232;
    color: #ffffff;
    font: normal 24px/32px "Courier MT", "Courier New", sans-serif;
}

body {
    position: relative;
    margin: 0 auto;
    padding: 0;
    max-width: 1440px;
    width: 90dvw;
    background-color: #0c0c0c;
}

body > header {
    background: transparent url(/i/header-bg.jpg) center center no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
    aspect-ratio: 2.3077;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    padding-left: 17%;
}

body > header [logo] {
    position: relative;
    background: #000000;
    padding: .75rem 1rem;
    font: normal 87px/84px 'Made The Artist', serif;
    padding-right: 1.5rem;
    overflow: hidden;
    user-select: none;
}

body > header [logo] span {
    transition: filter .35s ease;
    filter: blur(0) opacity(1);
}

body[loading] > header [logo] span {
    filter: blur(30px) opacity(.25);
}

body > header [logo]::first-letter {
    font-size: 100px;
}

body > header [logo] em {
    position: absolute;
    right: 2rem;
    top: 1.2rem;
    font-size: .62rem;
    line-height: .75rem;
    text-transform: uppercase;
    font-style: inherit;
    transition: transform .075s ease-in 2.75s;
    transform: translateY(0);
}

body[loading] > header [logo] em {
    transform: translateY(-2.5rem);
}

body > header [logo] i {
    position: absolute;
    background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAIAAAD9iXMrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAc1JREFUeNpiYYABU26lRplgAy75T3+/szIyv/79ueP5pu0fLv38/xsoywxRlCLqMFMhSZSV98mv98e/3P7H8F+ZQzxA0ISHmePQ55tALgMzI1OxhNd/syXdspFsjCwMSCBV1PG10fSpCgkgjgm34m/ThXni7kC2OY/yQqWMdaoFQOQlYAAUseBR+W4yP0bYmnm6QtLL35+yHs6349XYrVH59/+/c98eSLEKVEr5Pvr1duuHC4rsop5APe+NZwEdB9R6Xqd1o2oRCyPUxbnibrEiNkCGLpfsZ+M5LEADXvz+COQrsItOf7X3z/+/EHWTX+6CMN7/+crKxMzEyMAAcf7v/39k2ITgnuiRi5qvlAZkMAIhAwPT898frHnVgKwJL3YUSXhmiDkDfZYs6pAv7n7l2xOguLeAwaOfbxniRWx/mM7X5pQBCnXIhgOd+9hg0heTuY3SwUARLia2JwaT++ViGLiZ2HdrVLwwnAqMCYiNQDmIXRKs/NvUSy/rdggwczH//v/30OcbJtxKQMMEWLiBcqyMLMA4DBO2mKmQzMjIEHN3GjCAGCFmcDCxevLrN0gHaXBKvfr9CWjJ138/u55vWfb22Ns/X4AKAAIMAC7uobzNnFy9AAAAAElFTkSuQmCC) center center no-repeat;
    background-size: cover;
    right: .8rem;
    bottom: 1.1rem;
    width: .5rem;
    height: .5rem;
    transition: transform .075s ease-in .37s;
    transform: scale(1);
}

body[loading] > header [logo] i {
    transform: scale(0);
}

body > header [intro] {
    position: relative;
    background: #000000;
    padding: .75rem 1rem;
    margin: 0;
    font-size: 1.5rem;
    line-height: 2rem;
}

body[loading] > header [intro] {
    color: transparent;
}

body > header [intro] h1 {
    display: contents;
    font: inherit;
    margin: 0;
    padding: 0;
}

body > header [intro] [display] em {
    background: #000000;
    box-sizing: border-box;
}
body > header [intro] [display] em:first-of-type {
    border-bottom: .25rem solid #ffffff;
}

body > header [intro] [mask] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(10, 1fr);
    pointer-events: none;
}

body > header [intro] [mask] b {
    background: #000000;
    position: relative;
    transition: transform 1s ease .5s;
    transform: scaleY(0);
}

body[loading] > header [intro] [mask] b {
    transform: scaleY(1.2);
}

main {
    position: relative;
    overflow: hidden;
}

main h2 {
    margin: 8rem 0 0 0;
    padding: 0;
    font-size: 1.35rem;
    line-height: 2rem;
    font-family: 'Halvar Breit';
}

main h2:first-of-type {
    margin-top: 0;
}

main section p,
main section li {
    margin: 1rem 0;
}

main section b {
    color: #ff008c;
    font-weight: bold;
}

main [video] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.773;
    user-select: none;
}   

main [video] > video[bg] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: 0;
    pointer-events: none;
}

button {
    position: relative;
    display: block;
    z-index: 10;
    background: linear-gradient(138deg,rgba(254, 0, 141, 1) 0%, rgba(219, 20, 190, 1) 100%);
    border: none;
    font: 400 1.3rem/1.5rem 'Halvar Breit';
    color: #ffffff;
    padding: .85rem 3rem;
    border-radius: 1.7rem;
    cursor: pointer;
    box-shadow: 0 0 14px 18px rgba(0,0,0,.14);
    transition: box-shadow .2s ease;
}

button:hover {
    background: linear-gradient(-42deg,rgba(254, 0, 141, 1) 0%, rgba(219, 20, 190, 1) 100%);
    box-shadow: 0 0 6px 6px rgba(128,128,128,.08);
}

main [video] > button svg {
    display: inline-block;
    vertical-align: middle;
    height: 2rem;
    fill: #ffffff;
    object-fit: contain;
    margin-left: .5rem;
    transition: transform .2s ease;
    transform: translateX(0);
}

main [video] > button:hover svg {
    transform: translateX(.75rem);
}

main [video] > button + span {
    position: absolute;
    margin-top: 7rem;
}

main [voice-to-design] {
    padding: 3rem 8rem;
}

main [voice-to-design] ul {
    list-style: none;
    padding: 0;
    padding-bottom: 1rem;
}

main [voice-to-design] ul li {
    position: relative;
    padding-left: 1.5rem;
}

main [voice-to-design] ul li::before {
    position: absolute;
    left: 0;
    top: 0;
    content: "»";
    color: #ff008c;
}

main [voice-to-design] [secured] {
    padding: 1rem 0 2rem 7rem;
    background: transparent url(/i/shield.png) .5rem top no-repeat;
    background-size: auto 88%;
}

main [tech-preview] {
    padding: 3rem 0 25rem 8rem;
    background: #ffffff;
    background-size: contain;
    color: #000000;
    position: relative;
}

main [tech-preview] * { 
    position: relative;
    z-index: 10;
}

main [tech-preview] p {
    margin: 0;
    padding: 1rem 0;
}

main [tech-preview] div[preview] {
    display: block;
    z-index: 5;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}


main [tech-preview] div[preview] iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
}

main [the-prototype] {
    padding: 3rem 3.5rem;
    display: grid;
    grid-template-columns: 35rem 1fr;
}

main [the-prototype] [info] {
    padding: 0 2.3rem;
    position: relative;
}

[l-i] {
    position: absolute;
    bottom: 0;
    width: 3.33rem;
    height: 3.33rem;
    background: transparent url(/i/linked-in.png) center center no-repeat;
    background-size: contain;
    transition: transform .15s ease;
    transform: scale(1);
}

main [the-prototype] [info] [l-i]:hover {
    transform: scale(1.2);
}

main [the-prototype] [illustration] img {
    width: 15.41rem;
    aspect-ratio: .612;
    object-fit: contain;
}

main [the-prototype] [form] {
    padding-top: 4rem;
    grid-column: span 2;
    text-align: center;
}

main [the-prototype] [form] form {
    position: relative;
    display: block;
    margin: 2rem auto;
    width: 17rem;
}

main [the-prototype] [form] form[processing] {
    pointer-events: none;
    opacity: .5;
    filter: grayscale(.5);
    user-select: none;
}


main [the-prototype] [form] form label {
    display: flex;
    margin: 1.5rem 0;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

main [the-prototype] [form] form label[error] {
    font-size: .75rem;
    color: #ff008c;
    text-align: center;
    display: block;
    position: relatve;
    padding-left: .5rem;
    box-sizing: border-box;
}

main [the-prototype] [form] form:not([error]) label[error] {
    visibility: hidden;
}

main [the-prototype] [form] form label[error]::after {
    content: "";
    position: absolute;
    left: 100%;
    bottom: 50%;
    background: transparent url(/i/form-error-arrow.png) center center no-repeat;
    background-size: contain;
    width: 3.2rem;
    aspect-ratio: .367;
}

main [the-prototype] [form] form label input {
    background-color: #0c0c0c !important;
    outline: none;
    width: 12rem;
    border: none;
    padding: 0;
    border-bottom: 1px solid #ffffff;
    font: inherit;
    color: #ffffff !important;
}

main [the-prototype] [form] form label[rq]::before {
    content: "*";
    position: absolute;
    left: -.75rem;
    color: #ff008c;
}

main [the-prototype] [form] form label span:last-child {
    text-align: center;
    position: relative;
}

main [the-prototype] [form] form label span:last-child input + i {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 100%;
    border-bottom: 2px solid #ffffff;
    transition: all .25s ease;
}
main [the-prototype] [form] form label span:last-child input:focus + i {
    width: 100%;
    left: 0;
}

main [the-prototype] [form] form [button] {
    margin: 3rem 0;
    text-align: center;
}

main [the-prototype] [form] form [button] button {
    display: inline-block;
}

main [the-prototype] [form] form [done] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-bottom: 40%;
    font-family: 'Halvar Breit';
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: #ff008c;
    transform: translateX(-100dvw);
    transition: transform .5s ease;
}

main [the-prototype] [form] form[done] [done] {
    transform: translateX(0);
}

main [the-prototype] [form] form label,
main [the-prototype] [form] form [button] {
    transition: all .5s ease;
    opacity: 1;
    transform: translteX(0);
}

main [the-prototype] [form] form[done] label,
main [the-prototype] [form] form[done] [button] {
    transform: translateX(50%);
    opacity: 0;
}

footer {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 50%);
    grid-template-rows: 34rem 1fr;
    background: transparent url(/i/footer-bg.jpg) center center no-repeat;
    background-size: cover;
    aspect-ratio: 1.45;
}

footer [patent] {
    grid-column: span 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer [patent] h2 {
    background: #000000;
    color: #ffffff;
    padding: 1.5rem 5.5rem;
    font-size: 1.35rem;
    line-height: 2rem;
    font-family: 'Halvar Breit';
    transform: translateY(.5rem);
}


footer h3 {
    font-size: 1.1rem;
    line-height: 2rem;
    font-family: 'Halvar Breit';
}


footer h3 a {
    color: #00b4ff;
    text-decoration: none;
}

footer h3 a:hover {
    filter: brightness(1.2);
}

footer [credits] {
    padding-left: 1.6rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

footer [credits] h3 {
    margin: 0;
    padding: 0;
}

footer [credits] [l-i] {
    position: static;
    display: inline-block;
}

footer [question] {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex-direction: column;
    line-height: 1em;
}

footer [question] * {
    padding: 0;
    margin: 0;
}
footer [question] p {
    font-size: .75rem;
}

video[full] {
    display: none;
    z-index: 500;
    background: #000000;
}

video[full]:fullscreen {
    display: block;
}



div[display] {
    position: absolute;
    left :0;
    top :0;
    width: 100%;
    height: 100%;
}
div[display] em {
    position: absolute;
}

[mob] { 
    display: none;
}

@media screen and (max-width: 1550px) {
    html {
        font-size: 16px;
        line-height: 20px;
    }
    
    footer [patent] h2 {
        transform: translateY(8rem);
    }
}


@media screen and (max-width: 1024px) {
    html {
        font-size: 14px;
        line-height: 18px;
    }
}


@media screen and (max-width: 860px) {
    html {
        font-size: 12px;
        line-height: 16px;
    }
}


@media screen and (max-width: 750px) {
    html {
        font-size: 10px;
        line-height: 14px;
    }
}


@media screen and (max-width: 500px) {

    html {
        font-size: 18px;
        line-height: 22px;
        overflov-x: hidden;
        overflow-y: auto;
    }

    body {
        max-width: 100dvw;
        width: 100dvw;
    }
    
    body > header {
        padding-left: 20px;
        aspect-ratio: .64;
        padding-top: 40%;
    }
    
    body > header [intro] {
        font-size: 22px;
        line-height: 28px;
        margin-top: -4px;
    }
    
    main > section {
        min-height: 100vh;
        box-sizing: border-box;
        aspect-ratio: unset !important;
    }
    main [voice-to-design] {
        padding: 4rem 20px;
    }
    
    [not-mob] {
        display: none !important;
    }
    [mob] {
        display: block !important;
    }
    button {
        text-align: left;
    }
    main [video] > button svg {
        transform: translate(.5rem, -.75rem);
    }
    
    main [voice-to-design] [secured] {
        padding: 8rem 0 0 0;
        background-size: 120px;
        transform: translateY(-4rem);
    }
    main [voice-to-design] h2:last-of-type {
        padding-left: 8rem;
        transform: translateY(3rem);
    }
    
    main [tech-preview] {
        padding: 4rem 20px 0 20px;
    }
    
    main [tech-preview] div[preview] {
        width: 100dvw;
        aspect-ratio: 1/1.3;
    }
    
    main [the-prototype] {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    main [the-prototype] [illustration] {
        order: 1;
        width: 100%;
    }
    main [the-prototype] [illustration] img {
        width: 100dvw;
    }
    main [the-prototype] [info] {
        order: 2;
        padding: 1rem 20px;
    } 
    
    main [the-prototype] [info] [l-i] {
        left: auto;
        right: 20px;
        bottom: -5.5rem;
    }
    
    main [the-prototype] [form] {
        order: 3;
        padding-top: 2rem;
    }
    
    main [the-prototype] [form] h2 {
        padding: 0 100px 0 20px;
        text-align: left;
    }
    main [the-prototype] [form] form {
        width: calc(100dvw - 80px);
        transform: translateX(-20px);
    }
    
    main [the-prototype] [form] form [button] {
        margin-top: 1rem;
        width: calc(100dvw - 40px);
    }
    main [the-prototype] [form] form [done] {
        width: calc(100dvw - 40px);
    }
    
    footer [patent] h2 {
        padding: 2rem;
        transform: translateY(30px);
    }
    
    footer {
        grid-template-columns: 100%;
        grid-template-rows: 30rem 5rem 5rem;
    }
    footer [patent] {
        grid-column: 1;
    }
    footer [credits] {
       padding-left: 0;
       align-items: center;
    }
    footer [credits] [l-i] {
        width: 80px;
        height: 80px;
        aspect-ratio: 1;
        margin-bottom: 1rem;
    }
    footer [credits] a { display: block; text-align: center;}
    footer [credits] h3 { font-size: 1.2rem; line-height: 1.4em; }
    
    footer [question] h3 { font-size: 1.35rem; }
    footer [question] p { font-size: 1.025rem; padding-top: .4rem;}
    
    
    
    main [tech-preview] span[scroller] {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100dvw;
        height: 18dvh;
        z-index: 20;
        background: rgba(0,0,0,.001);
    }
    main [tech-preview] span[scroller][left] {
        width: 12dvw;
        height: 100%;
    }
    main [tech-preview] span[scroller][right] {
        width: 12dvw;
        height: 100%;
        left: auto;
        right: 0;
    }
    
    html[lang^="ru"] body > header [logo] span {
        font-size: 70px;
        line-height: 72px;
    }
    html[lang^="ru"] body > header [logo] i {
        bottom: 1.25rem;
    }
    
    html[lang^="ru"] body > header [logo] em {
        top: 1.7rem;
    }
    html[lang^="ru"] body > header [intro] {
        font-size: 19px;
        line-height: 24px;
        max-width: 325px;
    }
    
    html[lang^="ru"] main [the-prototype] [form] h2 {
        text-align: center;
        padding: 0 50px 0 50px;
    }
    
    html[lang^="ru"] footer {
        grid-template-columns: 100%;
        grid-template-rows: 30rem 2.5rem 8rem;
    }
    
    html[lang^="ru"] footer [question] * {
        text-align: right;
    }
    html[lang^="ru"] footer [question] h3 {
        font-size: 1.3rem;
        line-height: 1em;
    }
    html[lang^="ru"] footer [question] p {
        font-size: .66rem;
    }

}
