/*********************************************************************/
/******************************* ROOT *******************************/
/*********************************************************************/

:root {
    --primary: #1a65e8;
    --dark: #0f1b4c;
    --text: #6c757d;

    --title-xl: clamp(2rem, 5vw, 80px);
    --title-lg: clamp(1.8rem, 4vw, 50px);
    --title-md: clamp(1.5rem, 3vw, 32px);
    --title-sm: clamp(1.3rem, 2.5vw, 24px);
    --title-xs: clamp(1.1rem, 2vw, 20px);

    --text-lg: clamp(1.1rem, 2vw, 22px);
    --text-md: clamp(1rem, 1.5vw, 18px);
    --text-sm: clamp(0.95rem, 1.2vw, 16px);
    --text-xs: clamp(0.85rem, 1vw, 14px);

    --font-title: 'Space Grotesk', sans-serif;
    --font-text: 'DM Sans', sans-serif;
}

body {
    font-family: var(--font-text);
    color: var(--text);
    line-height: 1.5;
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    letter-spacing: -2px;
}

/*********************************************************************/
/******************************* HERO ********************************/
/*********************************************************************/

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 100px;
    background: #ffffff;
}

.grid-animation {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.grid-H,
.grid-V {
    position: absolute;
    width: 90%;
    max-width: 1400px;
    opacity: .45;
}

.grid-H {
    transform-origin: left center;
    animation:
        drawH 2s ease forwards;
}

.grid-V {
    transform-origin: center top;
    animation:
        drawV 2s ease forwards;
}

.hero-title {
    font-size: var(--title-xl);
    font-weight: 500;
    line-height: .95;
    color: var(--dark);
    margin-bottom: 40px;
}

.hero-text {
    max-width: 760px;
    margin:
        0 auto 40px;
    font-size: var(--text-lg);
    color: var(--text);
    line-height: 1.5;
}

.btn-hero {
    background: #0b0b4f;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: var(--text-md);
    border-radius: 10px;
}

.btn-hero:hover {
    transform: scale(1.01);
    background: #0f55ca;
    color: #fff;
}

@keyframes drawH {
    0% {
        transform: scaleX(0);
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        transform: scaleX(1);
        opacity: .45;
        filter: blur(0);
    }
}

@keyframes drawV {
    0% {
        transform: scaleY(0);
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        transform: scaleY(1);
        opacity: .45;
        filter: blur(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 90px 0;
    }

    .grid-H,
    .grid-V {
        width: 130%;
        max-width: none;
    }

    .hero-title {
        font-size: var(--title-xl);
    }

    .hero-text {
        font-size: var(--text-lg);
        padding: 0 10px;
    }
}

.laptop-bg {
    position: absolute;
    inset: 0;
    background: #ffffff;
    background-image: url('/assets/images/crossmille/index/bannerHero.png');
    background-size: cover;
    background-position: center 80%;
}

.laptop-wrapper {
    position: relative;
    max-width: 650px;
    margin: auto;
}

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

.laptop-screen {
    position: absolute;
    top: 61%;
    left: 50%;
    transform: translateX(-50%);
    width: 58%;
    text-align: center;
}

.typing-box {
    width: 90%;
    margin: auto;
    height: 50px;
    border-radius: 20px;
    border: 1px solid #5f5f84;
    background: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    overflow: hidden;
}

#typing-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
}

.cursor {
    animation: blink .8s infinite;
    font-size: 1.4rem;
    color: var(--primary);
    margin-left: 4px;
}

.typing-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
    animation: iconPop .4s ease;
    margin-right: 5px;
}

@keyframes iconPop {
    0% {
        transform:
            scale(.6);
        opacity: 0;
    }

    100% {
        transform:
            scale(1);
        opacity: 1;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .typing-box {
        height: 48px;
        width: 92%;
    }

    #typing-text {
        font-size: .9rem;
    }
}

/*********************************************************************/
/***************************** METHOD ********************************/
/*********************************************************************/

.method-section {
    padding: 50px 0;
    background: #ffffff;
    overflow: hidden;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8d8d8;
    border-radius: 40px;
    padding: 10px 18px;
    font-size: var(--text-sm);
    color: #526b8d;
    margin-bottom: 20px;
}

.method-badge .typing-icon {
    object-fit: contain;
    animation: badgeBlink 1.2s ease-in-out infinite;
}

.method-title {
    font-size: var(--title-lg);
    font-weight: 500;
    line-height: 1.1;
    color: var(--dark);
    text-align: center;
    margin-bottom: 100px;
}

.method-steps {
    position: relative;
    row-gap: 60px;
}

.step-item {
    position: relative;
    z-index: 2;
}

.step-item h3 {
    font-size: var(--title-sm);
    font-weight: 500;
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 20px;
}

.step-item p {
    font-size: var(--text-sm);
    color: #303030;
    line-height: 1.8;
    max-width: 280px;
    margin: auto;
}

.step-number-wrapper {
    position: relative;
    width: 180px;
    height: 120px;
    margin: auto;
}

.step-outline,
.step-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-outline {
    z-index: 1;
    opacity: 1;
}

.step-fill {
    z-index: 2;
    clip-path: inset(100% 0 0 0);
}

@keyframes fillNumber {
    from {
        clip-path: inset(100% 0 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes hideOutline {
    to {
        opacity: 0;
    }
}

@keyframes badgeBlink {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.method-footer {
    text-align: center;
    font-size: var(--title-md);
    font-weight: 250;
    color: var(--dark);
    line-height: 1.4;
    margin-top: 100px;
}

@media (max-width: 992px) {
    .method-title {
        margin-bottom: 90px;
    }

}

@media (max-width: 768px) {
    .method-section {
        padding: 90px 0;
    }

    .method-title {
        margin-bottom: 70px;
    }

    .step-number-wrapper {
        width: 140px;
        height: 95px;
    }

    .step-item h3 {
        margin-top: 20px;
    }

    .method-footer {
        margin-top: 40px;
    }

}

.step-line {
    position: absolute;
    width: 220px;
    height: 80px;
    z-index: 1;
}

.step-line svg {
    width: 100%;
    height: 100%;
}

.step-line path {
    fill: none;
    stroke: #10105c;
    stroke-width: 1;
}

.line-1 {
    top: 20px;
    left: 25%;
}

.line-2 {
    top: 20px;
    right: 25%;
}

@media (max-width: 992px) {
    .step-line {
        display: none;
    }
}

/*********************************************************************/
/****************************** DOCMO ********************************/
/*********************************************************************/

.docmo-section {
    padding: 10px 40px;
    background: #ffffff;
}

.docmo-box {
    background-image: url('/assets/images/crossmille/index/bannerDocmo.png');
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    padding: 50px 100px;
    overflow: hidden;
    position: relative;
}

.solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 40px;
    padding: 10px 12px;
    color: #fff;
    font-size: var(--text-sm);
    margin-bottom: 20px;
}

.solution-badge .typing-icon {
    object-fit: contain;
    animation: badgeBlink 1.2s ease-in-out infinite;
}

.docmo-logo {
    display: block;
    width: 340px;
    margin-top: 10px;
    margin-bottom: 35px;
}

.docmo-title {
    color: #fff;
    font-size: var(--title-md);
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 30px;
    max-width: 620px;
}

.docmo-text {
    color: rgba(255, 255, 255, .85);
    font-size: var(--text-md);
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 40px;
}

.btn-docmo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    text-decoration: none;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: var(--text-md);
    border-radius: 10px;
}

.btn-docmo:hover {
    transform: scale(1.01);
    background: #3b82ff;
}

.docmo-devices {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: floatDocmo 6s ease-in-out infinite;
}


@keyframes floatDocmo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }

}

@media (max-width: 992px) {
    .docmo-box {
        padding: 50px 30px;
    }

    .docmo-logo {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .docmo-section {
        padding: 10px 0;
    }

    .docmo-box {
        border-radius: 22px;
        padding: 40px 24px;
    }

    .docmo-title {
        margin-bottom: 24px;
    }

    .docmo-text {
        margin-bottom: 30px;
    }

    .btn-docmo {
        width: 100%;
    }

    .docmo-devices {
        max-width: 400px;
    }
}

/*********************************************************************/
/****************************** AREAS ********************************/
/*********************************************************************/

.areas-section {
    padding: 50px 0;
    background: #ffffff;
}

.areas-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8d8d8;
    border-radius: 40px;
    padding: 10px 18px;
    font-size: var(--text-sm);
    color: #526b8d;
    margin-bottom: 30px;
}

.areas-badge .typing-icon {
    object-fit: contain;
    animation: badgeBlink 1.2s ease-in-out infinite;
}

.areas-title {
    font-size: var(--title-lg);
    color: var(--dark);
    font-weight: 500;
    line-height: 1.1;
    max-width: 1100px;
    margin: 0 auto 25px;
}

.areas-subtitle {
    font-size: var(--font-title);
    font-size: var(--title-md);
    color: #11115e;
    margin-bottom: 45px;
}

.areas-mini-text {
    font-size: var(--text-md);
    color: var(--text)
}

.area-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 22px;
    padding: 42px;
    height: 100%;
    transition: .35s ease;
    position: relative;
    overflow: hidden;
}


.area-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: .35s ease;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .08);
}

.area-card:hover::before {
    opacity: 1;
}

.area-icon {
    width: 170px;
    margin-bottom: 35px;
    transition: .4s ease;
}

.area-card:hover .area-icon {
    transform: scale(1.06);
}

.area-card h3 {
    font-size: var(--title-sm);
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.area-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}

.area-card ul li {
    color: var(--text);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.area-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0b0b4f;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: var(--text-md);
    border-radius: 10px;
    text-decoration: none;
    transition: .3s ease;
    position: relative;
    z-index: 2;
}

.area-btn:hover {
    transform: scale(1.01);
    background: #0f55ca;
    color: #fff;
}

@media (max-width: 992px) {
    .areas-section {
        padding: 90px 0;
    }
}

@media (max-width: 768px) {
    .areas-section {
        padding: 70px 0;
    }

    .area-card {
        padding: 30px;
    }

    .area-icon {
        width: 140px;
    }
}

/*********************************************************************/
/**************************** CONTACT ********************************/
/*********************************************************************/

.contact-section {
    padding: 50px 250px 0px 100px;
    background: #fff;
}

.contact-wrapper {
    position: relative;
}

.contact-box {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    padding: 70px 80px 0px 80px;
    box-shadow:
        -25px 0 50px rgba(162, 255, 110, .15);
}

.contact-arrow {
    position: absolute;
    top: 0px;
    right: -178px;
    width: 180px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.contact-arrow::before {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 70px;
    right: -20px;
    background: rgba(90, 124, 255, .15);
    filter: blur(50px);
    z-index: -1;
}

.contact-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-arrow path {
    fill: #ffffff;
    stroke: #ddd;
    stroke-width: 1;
}

.contact-box .row {
    position: relative;
    z-index: 10;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d8d8d8;
    border-radius: 40px;
    padding: 10px 19px;
    font-size: var(--text-sm);
    color: #526b8d;
    margin-bottom: 30px;
}

.contact-badge .typing-icon {
    object-fit: contain;
    animation: badgeBlink 1.2s ease-in-out infinite;
}

.contact-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: var(--title-lg);
    font-weight: 500;
    line-height: 1.05;
    color: #07075A;
    margin-bottom: 40px;
}

.contact-text {
    font-size: var(--text-md);
    line-height: 1.8;
    color: #707070;
    margin-bottom: 20px;
}

.contact-phone {
    max-width: 300px;
    width: 100%;
    display: block;
}

.contact-input {
    height: 50px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    padding: 0 20px;
    box-shadow: none;
}

.contact-input:focus {
    border-color: #2f67e8;
    box-shadow: none;
}

.btn-contact {
    width: 320px;
    max-width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: #2f67e8;
    color: #fff;
    font-size: var(--text-md);
}

.btn-contact:hover {
    transform: scale(1.01);
    background: #2357d0;
    color: #fff;
}

.fake-captcha {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
}

@media (max-width: 991px) {
    .contact-section {
        padding: 50px 50px 50px 50px;
    }

    .contact-box {
        padding: 50px 30px;
        border-radius: 25px;
        border-right: 1px solid #ddd;
        box-shadow:
            -25px 0 50px rgba(162, 255, 110, .15),
            25px 0 50px rgba(90, 124, 255, .15);
    }

    .contact-arrow {
        display: none;
    }

    .contact-title {
        text-align: center;
    }

    .contact-phone {
        max-width: 280px;
        margin: 30px auto;
    }

    .contact-text {
        text-align: center;
    }

    .btn-contact {
        width: 100%;
    }
}