/* INFINIX footer — matches premium dark UI mockup */
.site-footer {
    position: relative;
    font-family: 'Inter', system-ui, sans-serif;
    color: #cbd5e1;
    background: #060b16;
    overflow: hidden;
}

.site-footer__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 15% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 35% at 85% 20%, rgba(6, 182, 212, 0.1), transparent 50%);
}

.site-footer__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    pointer-events: none;
    opacity: 0.55;
    background:
        radial-gradient(ellipse 120% 80% at 50% 100%, rgba(37, 99, 235, 0.35), transparent 65%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%231d4ed8' fill-opacity='0.12' d='M0,64 C240,120 480,0 720,48 C960,96 1200,24 1440,64 L1440,120 L0,120 Z'/%3E%3Cpath fill='%2306b6d4' fill-opacity='0.08' d='M0,80 C360,20 720,100 1080,40 C1260,10 1380,50 1440,72 L1440,120 L0,120 Z'/%3E%3C/svg%3E")
        center bottom / 100% 100% no-repeat;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
}

/* Project CTA */
.site-footer__cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-top: 0;
    border-radius: 0 0 1.5rem 1.5rem;
    background:
        linear-gradient(115deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.84) 56%),
        rgba(15, 23, 42, 0.7);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.site-footer__cta-copy {
    max-width: 720px;
}

.site-footer__cta-kicker {
    display: block;
    margin-bottom: 0.55rem;
    color: #60a5fa;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-footer__cta h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.site-footer__cta p {
    margin: 0.65rem 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
}

.site-footer__cta-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.8rem 1.15rem;
    border-radius: 0.7rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-footer__cta-button:hover {
    transform: translateY(-2px);
    background: #3b82f6;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.45);
}

@media (min-width: 800px) {
    .site-footer__cta {
        flex-direction: row;
        align-items: center;
        padding: 2.25rem 2.5rem;
    }
}

/* Main footer grid */
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem 1.75rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .site-footer__grid {
        grid-template-columns: minmax(240px, 1.4fr) 0.75fr 1fr 1.2fr;
        gap: 1.5rem clamp(1.5rem, 3vw, 3.25rem);
    }
}

/* Brand */
.site-footer__brand-logo {
    height: 3rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1.125rem;
}

.site-footer__brand-lockup {
    margin-bottom: 1.125rem;
}

.site-footer__brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.site-footer__brand-title .site-footer__x {
    display: inline-block;
    background: linear-gradient(135deg, #fff 48%, #3b82f6 52%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.site-footer__brand-sub {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.site-footer__brand-sub::before,
.site-footer__brand-sub::after {
    content: '';
    flex: 1;
    max-width: 2.5rem;
    height: 1px;
    background: rgba(59, 130, 246, 0.45);
}

.site-footer__tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(148, 163, 184, 0.95);
    margin: 0 0 1.375rem;
    max-width: 300px;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.site-footer__social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(59, 130, 246, 0.55);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

/* Headings */
.site-footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f8fafc;
    margin: 0 0 1.125rem;
}

/* Chevron links */
.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links li { margin-bottom: 0.5rem; }

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.95);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__links a .site-footer__chev {
    color: #3b82f6;
    font-size: 0.7rem;
    font-weight: 700;
}

.site-footer__links a:hover { color: #e2e8f0; }

/* Contact */
.site-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.95);
}

.site-footer__contact-icon {
    flex-shrink: 0;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 0.75rem;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.25);
}

.site-footer__contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__contact a:hover { color: #93c5fd; }

/* Blog cards */
.site-footer__blog {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__blog li { margin-bottom: 0.875rem; }

.site-footer__blog-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-footer__blog-link:hover { opacity: 0.88; }

.site-footer__blog-thumb {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

.site-footer__blog-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #f1f5f9;
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer__blog-date {
    font-size: 0.6875rem;
    color: rgba(100, 116, 139, 0.95);
}

.site-footer__blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(15, 23, 42, 0.6);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.site-footer__blog-btn:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: #3b82f6;
}

/* Stats bar */
.site-footer__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 0;
    margin-bottom: 2rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer__stat {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.65rem;
    min-width: 50%;
    padding: 0.45rem 1rem;
}

@media (min-width: 640px) {
    .site-footer__stat {
        min-width: 33.333%;
    }
}

@media (min-width: 1000px) {
    .site-footer__stat {
        min-width: 20%;
        border-right: 1px solid rgba(148, 163, 184, 0.12);
    }

    .site-footer__stat:last-child { border-right: 0; }
}

.site-footer__stat-icon {
    grid-row: 1 / 3;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.site-footer__stat-num {
    align-self: end;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.site-footer__stat-label {
    align-self: start;
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.9);
    line-height: 1.25;
}

/* Bottom bar */
.site-footer__bottom {
    padding: 1.25rem 0 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .site-footer__bottom {
        grid-template-columns: 1fr auto 1fr;
        gap: 1.5rem;
    }
}

.site-footer__copy {
    font-size: 0.75rem;
    color: rgba(100, 116, 139, 0.95);
    margin: 0;
    text-align: center;
}

@media (min-width: 1024px) {
    .site-footer__copy { text-align: left; }
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}

.site-footer__legal a {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.95);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__legal a:hover { color: #93c5fd; }

.site-footer__legal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3b82f6;
    opacity: 0.7;
}

.site-footer__subscribe {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .site-footer__subscribe {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
    }
}

.site-footer__subscribe-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    margin: 0;
}

.site-footer__subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 340px;
}

@media (min-width: 480px) {
    .site-footer__subscribe-form { flex-direction: row; }
}

@media (min-width: 1024px) {
    .site-footer__subscribe-form { margin-left: auto; }
}

.site-footer__subscribe-input {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(8, 12, 24, 0.8);
    color: #fff;
    font-size: 0.8125rem;
    outline: none;
}

.site-footer__subscribe-input::placeholder {
    color: rgba(100, 116, 139, 0.8);
}

.site-footer__subscribe-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.site-footer__subscribe-btn {
    flex-shrink: 0;
    padding: 0.625rem 1.125rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.site-footer__subscribe-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
}
