/* index.html — site footer */

.index-footer {
    position: relative;
    z-index: 10;
    isolation: isolate;
    padding-top: 4.5rem;
    background: linear-gradient(180deg, #0f172a 0%, #090e34 55%, #070b1f 100%);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .index-footer {
        padding-top: 5.5rem;
    }
}

.index-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #10b981 42%, #7c3aed 100%);
    z-index: 2;
    pointer-events: none;
}

.index-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 0% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 100% 100%, rgba(139, 92, 246, 0.14) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* Main grid */
.index-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 2rem;
    padding-bottom: 2.5rem;
}

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

@media (min-width: 1024px) {
    .index-footer-grid {
        grid-template-columns: 1.25fr 0.75fr 0.85fr 0.75fr 1.1fr;
        gap: 1.75rem 1.5rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1280px) {
    .index-footer-grid {
        grid-template-columns: 1.35fr 0.8fr 0.9fr 0.8fr 1.15fr;
        gap: 2rem;
    }
}

/* Brand */
.index-footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .index-footer-brand {
        grid-column: auto;
    }
}

.index-footer-logo {
    display: inline-block;
    margin-bottom: 1.15rem;
}

.index-footer-logo img {
    max-width: 150px;
    height: auto;
}

.index-footer-tagline {
    margin: 0 0 1.25rem;
    max-width: 300px;
    font-size: 0.9875rem;
    line-height: 1.65;
    color: #94a3b8;
}

.index-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.index-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.index-footer-social a:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
}

.index-footer-social svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Columns */
.index-footer-heading {
    margin: 0 0 1.1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8fafc;
}

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

.index-footer-links li {
    margin-bottom: 0.55rem;
}

.index-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9375rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.index-footer-links a:hover,
.index-footer-links a:focus-visible {
    color: #93c5fd;
}

.index-footer-links a[aria-current="page"] {
    color: #e2e8f0;
    font-weight: 600;
}

.index-footer-links a[aria-current="page"]::before {
    content: '';
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    margin-right: 0.15rem;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
}

/* Support CTA */
.index-footer-cta {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.15rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.index-footer-cta-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #94a3b8;
}

.index-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

/* Bottom bar */
.index-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 0 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (min-width: 768px) {
    .index-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.index-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
}

@media (min-width: 768px) {
    .index-footer-legal {
        justify-content: flex-start;
    }
}

.index-footer-legal a {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.index-footer-legal a:hover {
    color: #f1f5f9;
}

.index-footer-copy {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.index-footer-copy a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.index-footer-copy a:hover {
    color: #93c5fd;
}

@media (prefers-reduced-motion: reduce) {
    .index-footer-social a:hover,
    .index-footer-cta-btn:hover {
        transform: none;
    }
}
