﻿/* =====================================================
   MEKANO HOME PAGE
===================================================== */

.home-page {
    position: relative;
    overflow: hidden;
}

/* =====================================================
   HERO
===================================================== */

.corporate-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient( 120deg, #f7faff 0%, #eef6ff 50%, #f9fcff 100% );
    border-bottom: 1px solid #e5edf7;
}

.hero-layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    align-items: center;
    gap: 80px;
    padding-block: 78px 95px;
}

.hero-content {
    max-width: 750px;
}

.hero-eyebrow {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(7, 93, 204, 0.13);
    border-radius: 999px;
    color: #0755b8;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 20px rgba(7, 93, 204, 0.06);
    font-size: 12px;
    font-weight: 700;
}

.hero-eyebrow-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient( 145deg, var(--primary), var(--secondary) );
}

    .hero-eyebrow-icon svg {
        width: 15px;
        height: 15px;
    }

.hero-title {
    max-width: 760px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(38px, 4.8vw, 45px);
    line-height: 1.14;
    font-weight: 850;
    letter-spacing: -2px;
    text-wrap: balance;
}

    .hero-title span {
        display: block;
        margin-top: 5px;
        color: var(--primary);
        background: linear-gradient( 95deg, var(--primary-dark), var(--secondary) );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero-description {
    max-width: 670px;
    margin: 25px 0 0;
    color: #5e6f86;
    font-size: 17px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 31px;
}

.primary-action,
.secondary-action {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 21px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.primary-action {
    color: #ffffff;
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    box-shadow: 0 14px 28px rgba(7, 93, 204, 0.23);
}

    .primary-action:hover {
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 18px 34px rgba(7, 93, 204, 0.29);
    }

    .primary-action svg,
    .secondary-action svg {
        width: 18px;
        height: 18px;
    }

.secondary-action {
    color: var(--navy);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
}

    .secondary-action:hover {
        color: var(--primary);
        border-color: rgba(7, 93, 204, 0.2);
        background: #ffffff;
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.secondary-action-icon {
    display: grid;
    place-items: center;
}

.hero-features {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 31px;
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #526378;
    font-size: 12px;
    font-weight: 650;
}

.feature-check {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #087b5b;
    background: #e7f8f2;
}

    .feature-check svg {
        width: 14px;
        height: 14px;
    }

/* =====================================================
   HERO VISUAL
===================================================== */

.hero-visual {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-identity-card {
    position: relative;
    z-index: 3;
    width: min(430px, 100%);
    padding: 23px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 35px 75px rgba(22, 48, 84, 0.16), inset 0 0 0 1px rgba(7, 93, 204, 0.05);
    backdrop-filter: blur(22px);
}

    .company-identity-card::before {
        content: "";
        position: absolute;
        top: -120px;
        left: -100px;
        width: 270px;
        height: 270px;
        border-radius: 50%;
        background: rgba(18, 169, 199, 0.08);
        pointer-events: none;
    }

.identity-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.identity-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #426079;
    font-size: 10px;
    font-weight: 700;
}

    .identity-status span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #0ac58e;
        box-shadow: 0 0 0 5px rgba(10, 197, 142, 0.1);
    }

.identity-security {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--primary);
    background: var(--primary-soft);
}

    .identity-security svg {
        width: 19px;
        height: 19px;
    }

.identity-logo-container {
    position: relative;
    width: 154px;
    height: 154px;
    display: grid;
    place-items: center;
    margin: 33px auto 24px;
}

.identity-logo-glow {
    position: absolute;
    inset: 0;
    border-radius: 38px;
    background: linear-gradient( 145deg, rgba(7, 93, 204, 0.16), rgba(18, 169, 199, 0.08) );
    box-shadow: 0 18px 35px rgba(7, 93, 204, 0.13), inset 0 0 0 1px rgba(7, 93, 204, 0.1);
    transform: rotate(7deg);
}

.identity-logo-container::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 0 30px rgba(7, 93, 204, 0.05);
}

.identity-logo {
    position: relative;
    z-index: 3;
    width: 115px;
    height: 115px;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px rgba(15, 35, 65, 0.12));
}

.identity-logo-fallback {
    position: relative;
    z-index: 3;
    width: 106px;
    height: 106px;
    display: none;
    place-items: center;
    border-radius: 27px;
    color: #ffffff;
    background: linear-gradient( 145deg, var(--primary), var(--secondary) );
    font-size: 48px;
    font-weight: 800;
}

.identity-information {
    position: relative;
    z-index: 2;
    text-align: center;
}

.identity-label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 750;
}

.identity-information h2 {
    margin: 0;
    color: var(--navy);
    font-size: 27px;
    font-weight: 850;
}

.identity-information p {
    max-width: 310px;
    margin: 12px auto 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.8;
}

.identity-statistics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 26px;
}

.identity-statistic {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 13px 8px;
    border: 1px solid var(--border-light);
    border-radius: 15px;
    background: rgba(248, 251, 255, 0.75);
    text-align: center;
}

.statistic-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-soft);
}

    .statistic-icon svg {
        width: 17px;
        height: 17px;
    }

.identity-statistic > span:last-child {
    display: flex;
    flex-direction: column;
}

.identity-statistic strong {
    color: var(--navy);
    font-size: 11px;
}

.identity-statistic small {
    margin-top: 2px;
    color: var(--text-light);
    font-size: 8px;
}

.floating-information {
    position: absolute;
    z-index: 5;
    min-width: 174px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 36px rgba(18, 43, 75, 0.13);
    backdrop-filter: blur(12px);
}

.floating-information-one {
    top: 76px;
    left: -15px;
}

.floating-information-two {
    right: -15px;
    bottom: 68px;
}

.floating-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--primary);
    background: var(--primary-soft);
}

    .floating-icon svg {
        width: 18px;
        height: 18px;
    }

.floating-information > span:last-child {
    display: flex;
    flex-direction: column;
}

.floating-information strong {
    color: var(--navy);
    font-size: 10px;
}

.floating-information small {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 8px;
}

/* =====================================================
   HERO DECORATION
===================================================== */

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
}

.hero-circle-one {
    width: 500px;
    height: 500px;
    top: -230px;
    right: -140px;
    border: 100px solid rgba(7, 93, 204, 0.025);
}

.hero-circle-two {
    width: 420px;
    height: 420px;
    left: -220px;
    bottom: -210px;
    border: 85px solid rgba(18, 169, 199, 0.035);
}

.hero-lines {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: linear-gradient(rgba(7, 93, 204, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 93, 204, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient( to left, rgba(0, 0, 0, 0.8), transparent 75% );
}

.hero-bottom-shape {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 58px;
    background: #ffffff;
    clip-path: polygon(0 72%, 42% 22%, 72% 55%, 100% 12%, 100% 100%, 0 100%);
}

/* =====================================================
   ADVANTAGES
===================================================== */

.platform-advantages {
    position: relative;
    z-index: 5;
    padding: 10px 0 76px;
    background: #ffffff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(20, 45, 78, 0.08);
    overflow: hidden;
}

.advantage-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 24px 20px;
}

    .advantage-card:not(:last-child) {
        border-inline-end: 1px solid var(--border-light);
    }

.advantage-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--primary);
    background: linear-gradient( 145deg, var(--primary-soft), #f5faff );
}

    .advantage-icon svg {
        width: 21px;
        height: 21px;
    }

.advantage-card h3 {
    margin: 1px 0 5px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 750;
}

.advantage-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.75;
}

/* =====================================================
   SERVICES
===================================================== */

.platform-services-section {
    padding: 88px 0;
    background: var(--background);
    scroll-margin-top: 110px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 45px;
    margin-bottom: 38px;
}

.section-heading-content {
    max-width: 760px;
}

.section-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.35;
    font-weight: 850;
    letter-spacing: -1px;
}

    .section-heading h2 span {
        color: var(--primary);
    }

.section-heading p {
    max-width: 690px;
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.9;
}

.section-heading-link {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    color: var(--primary);
    border-bottom: 1px solid rgba(7, 93, 204, 0.25);
    font-size: 12px;
    font-weight: 700;
}

    .section-heading-link svg {
        width: 17px;
        height: 17px;
    }

.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-preview-card {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    padding: 27px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

    .service-preview-card::after {
        content: "";
        position: absolute;
        right: -70px;
        bottom: -80px;
        width: 190px;
        height: 190px;
        border-radius: 50%;
        background: rgba(7, 93, 204, 0.035);
    }

    .service-preview-card:hover {
        transform: translateY(-7px);
        border-color: rgba(7, 93, 204, 0.18);
        box-shadow: var(--shadow-md);
    }

.service-card-primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient( 145deg, #075dcc, #064789 );
    box-shadow: 0 22px 45px rgba(7, 75, 160, 0.2);
}

    .service-card-primary::after {
        background: rgba(255, 255, 255, 0.055);
    }

.service-card-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.service-number {
    color: #a6b3c4;
    font-size: 11px;
    font-weight: 750;
}

.service-card-primary .service-number {
    color: rgba(255, 255, 255, 0.55);
}

.service-card-icon {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--primary);
    background: var(--primary-soft);
}

.service-card-primary .service-card-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
}

.service-card-icon svg {
    width: 25px;
    height: 25px;
}

.service-preview-card h3 {
    position: relative;
    z-index: 2;
    margin: 29px 0 10px;
    color: var(--navy);
    font-size: 19px;
    font-weight: 800;
}

.service-card-primary h3 {
    color: #ffffff;
}

.service-preview-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.9;
}

.service-card-primary p {
    color: rgba(255, 255, 255, 0.76);
}

.service-card-link,
.service-card-note {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 25px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
}

.service-card-primary .service-card-link {
    color: #ffffff;
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 180ms ease;
}

.service-card-link:hover svg {
    transform: translateX(-4px);
}

.service-card-note {
    color: var(--text-light);
    font-size: 10px;
    font-weight: 650;
}

.service-card-primary .service-card-note {
    color: rgba(255, 255, 255, 0.62);
}

/* =====================================================
   FINAL SECTION
===================================================== */

.home-final-section {
    padding: 0 0 88px;
    background: var(--background);
}

.home-final-card {
    position: relative;
    min-height: 185px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 38px 42px;
    overflow: hidden;
    border-radius: 27px;
    color: #ffffff;
    background: linear-gradient( 110deg, #0d2445, #0b4b8f );
    box-shadow: 0 25px 55px rgba(13, 42, 80, 0.19);
}

.final-card-decoration {
    position: absolute;
    width: 350px;
    height: 350px;
    left: -130px;
    bottom: -210px;
    border: 75px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
}

.final-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}

.final-card-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 19px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

    .final-card-icon svg {
        width: 29px;
        height: 29px;
    }

.final-card-label {
    display: block;
    margin-bottom: 5px;
    color: #8fcbff;
    font-size: 10px;
    font-weight: 750;
}

.final-card-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(21px, 2.6vw, 31px);
    font-weight: 800;
}

.final-card-content p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.69);
    font-size: 11px;
}

.final-card-action {
    position: relative;
    z-index: 2;
    min-width: max-content;
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 13px;
    color: var(--primary-deep);
    background: #ffffff;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

    .final-card-action:hover {
        color: var(--primary);
        transform: translateY(-3px);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.19);
    }

    .final-card-action svg {
        width: 18px;
        height: 18px;
    }

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1199.98px) {

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
        gap: 45px;
    }

    .hero-title {
        font-size: clamp(38px, 5vw, 44px);
    }

    .floating-information-one {
        left: -5px;
    }

    .floating-information-two {
        right: -5px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-card:nth-child(2) {
        border-inline-end: 0;
    }

    .advantage-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border-light);
    }
}

@media (max-width: 991.98px) {

    .corporate-hero {
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-block: 65px 105px;
    }

    .hero-content {
        max-width: 800px;
        margin-inline: auto;
        text-align: center;
    }

    .hero-eyebrow {
        margin-inline: auto;
    }

    .hero-title {
        max-width: 800px;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-features {
        justify-content: center;
    }

    .hero-visual {
        width: min(550px, 100%);
        margin-inline: auto;
    }

    .floating-information-one {
        left: 5px;
    }

    .floating-information-two {
        right: 5px;
    }

    .services-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-preview-card:last-child {
        grid-column: 1 / -1;
    }

    .home-final-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .final-card-action {
        align-self: flex-end;
    }
}

@media (max-width: 767.98px) {

    .hero-layout {
        padding-block: 48px 100px;
    }

    .hero-title {
        font-size: clamp(34px, 10vw, 42px);
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .hero-description {
        margin-top: 20px;
        font-size: 14px;
    }

    .hero-actions {
        margin-top: 26px;
    }

    .hero-features {
        gap: 15px;
    }

    .hero-visual {
        min-height: 510px;
    }

    .company-identity-card {
        width: min(400px, calc(100% - 14px));
    }

    .floating-information {
        min-width: 150px;
    }

    .floating-information-one {
        top: 55px;
        left: 0;
    }

    .floating-information-two {
        right: 0;
        bottom: 48px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card,
    .advantage-card:nth-child(2) {
        border-inline-end: 0;
    }

        .advantage-card:not(:last-child) {
            border-bottom: 1px solid var(--border-light);
        }

    .platform-services-section {
        padding: 70px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .services-preview-grid {
        grid-template-columns: 1fr;
    }

    .service-preview-card:last-child {
        grid-column: auto;
    }

    .service-preview-card {
        min-height: 280px;
    }

    .home-final-card {
        padding: 31px 25px;
    }

    .final-card-content {
        align-items: flex-start;
    }

    .final-card-action {
        align-self: stretch;
    }
}

@media (max-width: 480px) {

    .hero-eyebrow {
        font-size: 10px;
    }

    .hero-title {
        font-size: clamp(30px, 10vw, 40px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .hero-features {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: start;
        width: max-content;
        max-width: 100%;
        margin-inline: auto;
    }

    .hero-visual {
        min-height: auto;
        display: block;
        padding-top: 20px;
    }

    .company-identity-card {
        width: 100%;
        padding: 18px;
        border-radius: 23px;
    }

    .identity-logo-container {
        width: 132px;
        height: 132px;
        margin-top: 27px;
    }

    .identity-logo {
        width: 98px;
        height: 98px;
    }

    .identity-information h2 {
        font-size: 23px;
    }

    .identity-statistics {
        gap: 5px;
    }

    .identity-statistic {
        padding: 10px 4px;
    }

    .floating-information {
        display: none;
    }

    .platform-advantages {
        padding-bottom: 58px;
    }

    .advantage-card {
        padding: 20px 17px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .service-preview-card {
        padding: 22px;
        border-radius: 19px;
    }

    .home-final-section {
        padding-bottom: 65px;
    }

    .home-final-card {
        padding: 27px 20px;
        border-radius: 21px;
    }

    .final-card-content {
        flex-direction: column;
    }

    .final-card-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}
