/*
 * Polished footer — 5-column nav + trust badges + brand block + socials.
 * Served from /public so it works without a Vite rebuild.
 */

.mt-footer {
    background: #0d0d0f;
    color: #d2d2d7;
    padding: 64px 0 28px;
    margin-top: 0;          /* butt directly against previous section — no body-bg gap */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ════════════════════════════════════════════════════════════════════
 * Section spacing — kill all body-bg gaps + tighten excess padding
 * between adjacent marketing sections so they sit flush.
 * ════════════════════════════════════════════════════════════════════ */

body.guest-shell {
    background: #ffffff;
}

.guest-shell::before {
    display: none;          /* kill the fixed gradient overlay */
}

/* No margins between any guest-main child sections. */
.guest-main > section,
.guest-main > .mkt-section,
.guest-main > .mkt-page-header,
.guest-main > .mkt-cta-band,
.guest-main > .lp-hero,
.guest-main > .mt-blog-header {
    margin: 0;
}

/* Tighten internal section padding so sections don't have huge dead space. */
.mkt-section {
    padding: 56px 0;
}

@media (min-width: 768px) {
    .mkt-section {
        padding: 64px 0;
    }
}

/* When a content section is directly followed by the CTA band or footer,
   collapse the bottom padding — the next section already has its own top
   padding for breathing room. Avoids the "two-section-padding stack" gap. */
.mkt-section:has(+ .mkt-cta-band),
.mkt-section:has(+ .mt-footer) {
    padding-bottom: 24px;
}

/* CTA band — slightly tighter top padding when following a section. */
.mkt-cta-band {
    margin: 0;
    padding: 64px 0 72px;
}

/* Marketing page header sits flush against the topbar. */
.mkt-page-header,
.lp-hero {
    margin-top: 0;
}

/* Footer butts directly against whatever precedes it. */
.mt-footer + * { margin-top: 0; }
section + .mt-footer,
.mkt-cta-band + .mt-footer,
.mkt-section + .mt-footer { margin-top: 0; }

/* ── Top section: brand + nav columns ───────────────────────────────── */
.mt-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px)  { .mt-footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .mt-footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
@media (min-width: 1200px) { .mt-footer-top { grid-template-columns: 1.6fr repeat(4, 1fr); } }

/* Brand column */
.mt-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.mt-footer-brand .brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071e3, #5e5ce6);
    box-shadow: 0 0 12px rgba(0, 113, 227, 0.6);
}

.mt-footer-brand span span {
    background: linear-gradient(135deg, #6ab0ff, #a5a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-footer-tagline {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.4;
}

.mt-footer-sub {
    color: #8e8e93;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 20px;
    max-width: 320px;
}

.mt-footer-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mt-footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #d2d2d7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mt-footer-socials a:hover {
    background: rgba(0, 113, 227, 0.18);
    color: #6ab0ff;
    transform: translateY(-1px);
}

.mt-footer-socials .mt-footer-rss {
    background: rgba(255, 159, 10, 0.12);
    color: #ff9f0a;
}
.mt-footer-socials .mt-footer-rss:hover {
    background: rgba(255, 159, 10, 0.22);
}

/* Nav columns */
.mt-footer-nav-col h4 {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.mt-footer-nav-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #a1a1a6;
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.5;
    transition: color 0.15s ease, transform 0.15s ease;
}

.mt-footer-nav-col a:hover {
    color: #fff;
    transform: translateX(2px);
}

.mt-footer-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    background: linear-gradient(135deg, #0071e3, #5e5ce6);
    color: #fff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

/* ── Trust badges row (visual, prominent) ───────────────────────────── */
.mt-footer-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px)  { .mt-footer-trust-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mt-footer-trust-row { grid-template-columns: repeat(4, 1fr); } }

.mt-footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mt-footer-trust-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.mt-footer-trust-badge i {
    font-size: 1.5rem;
    color: #34c759;
    flex-shrink: 0;
}

.mt-footer-trust-badge strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.mt-footer-trust-badge span {
    color: #8e8e93;
    font-size: 0.78rem;
}

.mt-footer-trust-india i {
    color: #FF9933;
    background: linear-gradient(180deg, #FF9933 33%, #fff 33% 66%, #138808 66%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Bottom bar ─────────────────────────────────────────────────────── */
.mt-footer-base {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 28px;
    text-align: center;
}

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

.mt-footer-copy {
    color: #d2d2d7;
    font-size: 0.85rem;
    margin: 0;
}

.mt-footer-dim {
    color: #6e6e73;
}

.mt-footer-meta {
    color: #6e6e73;
    font-size: 0.82rem;
    margin: 0;
}

.mt-footer-dot {
    color: #48484a;
    margin: 0 6px;
}

/* ── Override legacy guest-footer if any rules leak through ─────────── */
.guest-footer.mt-footer { background: #0d0d0f; padding-top: 64px; }
