/* Mesh-style footer */
.mesh-footer {
    position: relative;
    margin: max(12vmin, 64px) 0 0 0;
    padding-top: 64px;
    padding-bottom: 32px;
    font-family: var(--font-sans);
    color: #fff;
    background: #06111c;
    border-top: 1px solid rgba(6, 170, 225, 0.2);
    overflow: hidden;
}

.mesh-footer-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(225deg, rgba(6, 170, 225, 0.08), transparent 65%);
}

.mesh-footer-inner {
    position: relative;
    z-index: 1;
}

.mesh-footer-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px 24px;
    margin-bottom: 48px;
}

.mesh-footer-brand {
    grid-column: span 2;
    padding-right: 24px;
}

.mesh-footer-logo-link {
    display: inline-flex;
    margin-bottom: 20px;
}

.mesh-footer-logo {
    max-width: 130px;
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.mesh-footer-logo:hover {
    opacity: 1;
}

.mesh-footer-logo-fallback {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.mesh-footer-description {
    max-width: 280px;
    margin: 0 0 24px;
    color: #94a3b8;
    font-size: 1.3rem;
    line-height: 1.6;
}

.mesh-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-left: 0;
}

.mesh-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #7f93a8;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.mesh-footer-social-link:hover {
    color: #dbe7f3;
    border-color: #3d8db2;
    background: rgba(61, 141, 178, 0.16);
}

.mesh-footer-social-link svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.mesh-footer-social-link .mesh-social-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mesh-footer-column {
    grid-column: span 1;
}

.mesh-footer-title {
    margin: 0 0 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mesh-footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mesh-footer-list li {
    margin: 0 0 12px;
    padding: 0;
    color: #94a3b8;
    font-size: 1.3rem;
    line-height: 1.4;
}

.mesh-footer-list a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.mesh-footer-list a,
.mesh-footer-legal a,
.mesh-footer-contact-link:not(.mesh-footer-contact-static) .mesh-footer-contact-text {
    position: relative;
    display: inline-block;
}

.mesh-footer-list a::after,
.mesh-footer-legal a::after,
.mesh-footer-contact-link:not(.mesh-footer-contact-static) .mesh-footer-contact-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background-color: #06aae1;
    transform: scaleX(0);
    transform-origin: 100% 100%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mesh-footer-list a:hover {
    color: #fff;
    text-decoration: none;
}

.mesh-footer-list a:hover::after,
.mesh-footer-legal a:hover::after,
.mesh-footer-contact-link:hover .mesh-footer-contact-text::after {
    transform: scaleX(1);
    transform-origin: 0 0;
}

.mesh-footer-contact-list li:last-child {
    margin-bottom: 0;
}

.mesh-footer-contact-item {
    margin-bottom: 10px;
}

.mesh-footer-contact-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
}

.mesh-footer-contact-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: #3d8db2;
    flex: 0 0 14px;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.mesh-footer-contact-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mesh-footer-contact-text {
    color: #94a3b8;
    line-height: 1.35;
}

.mesh-footer-contact-link:hover .mesh-footer-contact-icon,
.mesh-footer-contact-link:hover .mesh-footer-contact-text {
    color: #fff;
}

.mesh-footer-contact-static {
    cursor: default;
}

.mesh-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mesh-footer-copyright {
    margin: 0;
    color: #94a3b8;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    opacity: 0.75;
}

.mesh-footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mesh-footer-legal a {
    color: #94a3b8;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.mesh-footer-legal a:hover {
    color: #47944f;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .mesh-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
    .mesh-footer-brand {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .mesh-footer {
        padding-top: 48px;
        padding-bottom: 24px;
    }
    .mesh-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 36px;
    }
    .mesh-footer-brand {
        grid-column: span 1;
    }
    .mesh-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .mesh-footer-legal {
        gap: 16px;
    }
}
