/* REVO Lab landing — core (desktop) styles. Design ref: Figma "Revo site (Copy)" / Lab */

:root {
    --lab-orange-1: #ff9771;
    --lab-orange-2: #fe3811;
    --lab-gradient: linear-gradient(50deg, #ff744e 0%, #fe4822 100%);
    --lab-gradient--btn: linear-gradient(98deg, #ff734d 0%, #fe4922 100%);
    --lab-lin-gradient: linear-gradient(70deg, #313131 0%, #000000 100%);
    --lab-dark: #171717;
    --lab-dark-2: #262626;
    --lab-ink: #252527;
    --lab-card: #f8f8f8;
    --lab-light: #f5f5f6;
    --lab-gray: #888888;
    --lab-gray-2: #84848c;
    --lab-placeholder: #adadb3;
    --lab-radius: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Clip horizontal overflow at the root, not just on body: the hero badge
       bleeds past the right edge, and unless the root clips it the layout
       viewport expands to include it. In DevTools device mode position:fixed
       resolves against that widened layout viewport, so the fixed header would
       render wider than the screen and drift right. */
    overflow-x: hidden;
}

body.lab {
    font-family: "Onest", system-ui, sans-serif;
    background: var(--lab-gradient) fixed;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lab main,
.lab-footer {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.lab button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
}

.lab img {
    display: block;
    max-width: 100%;
}

/* ---------- Shared ---------- */

.lab-section {
    padding: 72px;
}

.lab-section--dark {
    background: var(--lab-dark);
    border-radius: var(--lab-radius);
}

.lab-section__title {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1.1;
    color: #fff;
}

.lab-section__subtitle {
    margin-top: 16px;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
}

.lab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.lab-btn:hover {
    transform: translateY(-1px);
}

.lab-btn:active {
    transform: translateY(0);
}

.lab-btn--white {
    background: #fff;
    color: var(--lab-ink);
}

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

.lab-btn--lin-gradient {
    background: var(--lab-lin-gradient);
    color: #fff;
}

/* ---------- Header ---------- */

.lab-header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 1416px;
    z-index: 50;
    height: 80px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 32px;
    /* Figma "Glass" effect: light -45deg / frost 54 -> soft diagonal sheen,
       mild blur and a thin inner rim highlight */
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.1) 55%,
        rgba(255, 255, 255, 0.16) 100%
    );
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 1px 0 1px rgba(255, 255, 255, 0.22),
        inset 0 -1px 1px rgba(255, 255, 255, 0.1);
}

.lab-header__logo img {
    height: 44px;
    width: auto;
}

.lab-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab-header__lang,
.lab-audience__circle,
.lab-process__card {
    color: #fff;
}

.lab-header__lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.32);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--lab-light);
}

.lab-header__cta {
    height: 56px;
    padding: 0 26px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Language dropdown ---------- */

.lab-lang {
    position: relative;
}

.lab-lang__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    min-width: 168px;
    padding: 8px;
    border-radius: 16px;
    background: #232325;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(23, 23, 23, 0.35);
}

.lab-lang__list:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lab-lang__list a {
    padding: 10px 12px;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    white-space: nowrap;
}

.lab-lang__list a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lab-lang__list a.is-active {
    color: #fff;
    background: var(--lab-lin-gradient);
}

/* Language labels: full names by default, short ones on mobile
   (see lab-responsive.css) */
.lab-lang__short {
    display: none;
}

/* ---------- Hero ---------- */

.lab-hero {
    position: relative;
    padding: 170px 72px 100px;
    overflow: visible;
}

/* Badge bbox 809x637. Figma frames: 1440px -> top 92 / bleed 194 / width 809;
   834px -> top 49 / bleed 130 / width 469. Linear between, capped above 1440. */
.lab-hero__badge {
    position: absolute;
    top: min(92px, calc(7.1vw - 10.2px));
    right: max(-194px, calc(-10.56vw - 42px));
    width: min(709px, 56.2vw);
    pointer-events: none;
    user-select: none;
}

.lab-hero__content {
    position: relative;
    z-index: 1;
}

.lab-hero__title {
    max-width: 800px;
    font-size: 96px;
    font-weight: 600;
    letter-spacing: -3.6px;
    line-height: 1;
}

.lab-hero__subtitle {
    margin-top: 40px;
    max-width: 560px;
    font-size: 20px;
    line-height: 1.3;
}

.lab-hero__cta {
    margin-top: 48px;
    height: 64px;
    padding: 0 56px;
    font-size: 16px;
}

/* ---------- About ---------- */

.lab-about {
    padding: 88px 32px 32px;
}

.lab-about__intro {
    padding: 0 54px;
}

.lab-about__subtitle {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    max-width: 1180px;
}

.lab-about__grid {
    margin-top: 72px;
    display: grid;
    grid-template-columns: 566fr 796fr;
    gap: 12px;
}

.lab-about__card-build {
    position: relative;
    min-height: 681px;
    border-radius: 56px;
    background: #d1d1d1;
    overflow: hidden;
}

.lab-about__card-build h3 {
    position: relative;
    z-index: 1;
    padding: 48px 48px 0;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--lab-dark-2);
}

.lab-about__card-build img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 75%;
    max-width: none;
}

.lab-about__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lab-about__video {
    position: relative;
    flex: 1;
    min-height: 464px;
    border-radius: 56px;
    background: var(--lab-dark-2);
    overflow: hidden;
}

.lab-about__video img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab-about__cta {
    height: 205px;
    padding: 0 56px;
    border-radius: 56px;
    background: var(--lab-gradient--btn);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.04em;
    transition: filter 0.15s ease;
}

.lab-about__cta:hover {
    filter: brightness(1.05);
}

/* ---------- Audience ---------- */

.lab-audience {
    padding-top: 130px;
    padding-bottom: 130px;
}

.lab-audience__grid {
    margin-top: 96px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.lab-audience__circle {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lab-audience__circle img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 62%;
    opacity: 0.07;
    pointer-events: none;
}

.lab-audience__circle span {
    position: relative;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
}

/* ---------- Services ---------- */

.lab-services {
    padding: 88px 0 84px;
}

.lab-services__intro {
    padding: 0 72px;
}

.lab-services__track {
    margin-top: 88px;
    display: flex;
    gap: 12px;
    padding: 0 72px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
}

.lab-services__track::-webkit-scrollbar {
    display: none;
}

.lab-services__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.lab-services__card {
    position: relative;
    flex: 0 0 432px;
    height: 650px;
    border-radius: 48px;
    background: var(--lab-card);
    padding: 40px 32px 0;
    overflow: hidden;
}

.lab-services__card h3 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #3d3d3d;
}

.lab-services__card p {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--lab-gray);
}

.lab-services__card img {
    position: absolute;
    max-width: none;
    pointer-events: none;
    user-select: none;
}

.lab-services__card--mentorship img {
    bottom: 0;
    right: 0;
    height: 75%;
}

.lab-services__card--fundraising img {
    bottom: 0;
    right: 0;
    height: 100%;
}

.lab-services__card--software img {
    bottom: 0;
    left: 0;
    height: 55%;
}

.lab-services__card--investment img {
    bottom: 0;
    right: 0;
    height: 50%;
}

/* ---------- Process ---------- */

.lab-process {
    padding-top: 120px;
    padding-bottom: 120px;
}

.lab-process__subtitle {
    font-weight: 600;
    max-width: 1120px;
    color: rgba(255, 255, 255, 0.72);
}

.lab-process__grid {
    margin-top: 88px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lab-process__card {
    position: relative;
    height: 188px;
    border-radius: 48px;
    background: var(--lab-dark);
    padding: 32px;
    overflow: hidden;
}

.lab-process__info {
    position: relative;
    z-index: 1;
    max-width: 70%;
}

.lab-process__info h3 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--lab-light);
}

.lab-process__info p {
    margin-top: 12px;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.55);
}

.lab-process__num {
    position: absolute;
    font-family: "Inter", sans-serif;
    font-size: 262px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
}

.lab-process__num--1 {
    right: 12px;
    top: -18px;
}

.lab-process__num--2 {
    right: -21px;
    top: -18px;
}

.lab-process__num--3 {
    right: -26px;
    top: -18px;
}

.lab-process__num--4 {
    right: -23px;
    top: -18px;
    font-size: 247px !important;
}

.lab-process__num--5 {
    right: -23px;
    top: -15px;
}

.lab-process__num--6 {
    right: -25px;
    top: -15px;
}

.lab-process__num--7 {
    right: -8px;
    top: -15px;
}

.lab-process__num--8 {
    right: -25px;
    top: -15px;
}

/* ---------- Projects ---------- */

.lab-projects {
    padding: 88px 72px;
}

.lab-projects__grid {
    margin-top: 68px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lab-projects__card {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 173px;
    border-radius: 46px;
    padding: 32px;
    background: linear-gradient(
        115deg,
        #252527 45%,
        rgba(134, 134, 141, 0.9) 190%
    );
}

.lab-projects__tile {
    flex: 0 0 108px;
    width: 108px;
    height: 108px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lab-projects__tile img {
    object-fit: cover;
}

.lab-projects__text h3 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.lab-projects__text p {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--lab-gray-2);
}

/* ---------- Partners ---------- */

.lab-partners {
    padding: 120px 0;
}

.lab-partners .lab-section__title,
.lab-partners .lab-section__subtitle {
    padding: 0 72px;
}

.lab-partners__marquee {
    margin-top: 96px;
    overflow: hidden;
}

.lab-partners__row {
    display: flex;
    align-items: center;
    gap: 13px;
    width: max-content;
    padding-right: 13px;
    animation: lab-marquee 32s linear infinite;
}

.lab-partners__item {
    flex: 0 0 auto;
    width: 250px;
    height: 250px;
    border: 1.25px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes lab-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.lab-partners__logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.lab-partners__logo--kon {
    height: 18px;
}
.lab-partners__logo--tezavia {
    height: 130px;
}
.lab-partners__logo--itpark {
    height: 100px;
}
.lab-partners__logo--garage {
    height: 46px;
}
.lab-partners__logo--asaxiy {
    height: 46px;
}

/* ---------- Footer ---------- */

.lab-footer {
    padding: 88px 72px 72px;
}

.lab-footer__cta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.lab-footer__cta-text p {
    margin-top: 32px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.lab-footer__cta-btn {
    flex: 0 0 auto;
    width: 560px;
    height: 180px;
    border-radius: 56px;
    padding: 0 56px;
    background: var(--lab-gradient--btn);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em;
    transition: filter 0.15s ease;
}

.lab-footer__cta-btn:hover {
    filter: brightness(1.05);
}

.lab-footer__divider {
    margin: 72px 0;
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.lab-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 40px;
}

.lab-footer__brand img {
    height: 44px;
    width: auto;
}

.lab-footer__col h4 {
    font-size: 22px;
    font-weight: 600;
}

.lab-footer__col a,
.lab-footer__col p {
    display: block;
    margin-top: 22px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
}

.lab-footer__col a:hover {
    opacity: 0.75;
}

/* ---------- Modals ---------- */

.lab-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lab-modal[hidden] {
    display: none;
}

.lab-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 39, 46, 0.56);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lab-modal__panel {
    position: relative;
    background: var(--lab-dark);
    border-radius: 64px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.lab-modal__panel--form {
    width: 1300px;
    max-width: 100%;
    padding: 62px;
    display: grid;
    grid-template-columns: 1fr 475px;
    gap: 60px;
}

.lab-modal__close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.lab-modal__close:hover {
    background: rgba(255, 255, 255, 0.45);
}

.lab-modal__text h2 {
    font-size: 96px;
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}

.lab-modal__text p {
    margin-top: 32px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.55);
    max-width: 460px;
}

.lab-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lab-form__input {
    width: 100%;
    height: 68px;
    padding: 0 24px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: #313131;
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.lab-form__input::placeholder {
    color: var(--lab-placeholder);
}

.lab-form__input:focus {
    outline: 2px solid var(--lab-orange-2);
    outline-offset: -1px;
}

.lab-form__textarea {
    height: 160px;
    padding: 20px 24px;
    resize: none;
    line-height: 1.35;
}

.lab-form__upload {
    height: 100px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: #313131;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--lab-placeholder);
}

.lab-form__upload img {
    width: 22px;
    height: 22px;
}

.lab-form__upload.has-file {
    color: #fff;
}

.lab-form__hint {
    margin-top: -4px;
    font-size: 14px;
    color: var(--lab-light);
}

.lab-form__submit {
    position: relative;
    width: 100%;
    height: 68px;
    border-radius: 24px;
    background: var(--lab-gradient--btn);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    transition: filter 0.15s ease;
}

.lab-form__submit:hover {
    filter: brightness(1.05);
}

/* Loading state while the application is being sent */
.lab-form__submit.is-loading {
    color: transparent;
    pointer-events: none;
}

.lab-form__submit.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lab-spin 0.7s linear infinite;
}

@keyframes lab-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lab-form__submit.is-loading::after {
        animation-duration: 1.4s;
    }
}

.lab-modal__panel--success {
    width: 1130px;
    max-width: 100%;
    padding: 62px;
}

.lab-modal__panel--success h2 {
    font-size: clamp(38px, 6.4vw, 96px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.lab-modal__panel--success p {
    margin-top: 40px;
    font-size: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.lab-modal__panel--success .lab-form__submit {
    margin-top: 50px;
}

body.lab--modal-open {
    overflow: hidden;
}

/* ---------- Scroll-reveal (class added by JS; no-JS = visible) ---------- */

.lab-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.6s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.lab-reveal.is-inview {
    opacity: 1;
    transform: none;
}

/* ---------- Modal entrance ---------- */

.lab-modal:not([hidden]) .lab-modal__backdrop {
    animation: lab-fade-in 0.3s ease both;
}

.lab-modal:not([hidden]) .lab-modal__panel {
    animation: lab-modal-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lab-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lab-modal-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Card hover lift (pointer devices only) ---------- */

.lab-services__card,
.lab-projects__card,
.lab-audience__circle {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .lab-services__card:hover,
    .lab-audience__circle:hover {
        transform: translateY(-6px);
    }

    .lab-projects__card:hover {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lab-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .lab-modal:not([hidden]) .lab-modal__backdrop,
    .lab-modal:not([hidden]) .lab-modal__panel {
        animation: none;
    }
}
