/* Shared public landing footer styles.
   Loaded by /js/components/layout.js when the server returns footer-landing.html. */

.landing-footer {
    position: relative;
    overflow: hidden;
}

.landing-footer-bottom {
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 620px;
}

.landing-footer-bottom-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--landing-bg), var(--landing-bg-deep));
}

.landing-footer-bottom-top-blend {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(180deg, var(--landing-primary-dark), var(--landing-bg), transparent);
    z-index: 5;
}

@media (min-width: 640px) {
    .landing-footer-bottom-top-blend {
        height: 12rem;
    }
}

.landing-footer-grid-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 10;
    opacity: 0.3;
}

.landing-footer-grid-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.landing-footer-grid-image-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10rem;
    background: linear-gradient(180deg, var(--landing-primary-dark), rgba(5, 40, 80, 0.5), transparent);
}

@media (min-width: 640px) {
    .landing-footer-grid-image-top-overlay {
        height: 14rem;
    }
}

.landing-footer-horizon-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--landing-silver), transparent);
    opacity: 0.4;
    z-index: 20;
}

.landing-footer-horizon-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 8rem;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(48px);
    z-index: 20;
}

.landing-footer-v5-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
}

.landing-footer-v5-border::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(74, 158, 255, 0.15) 15%,
        rgba(74, 158, 255, 0.4) 35%,
        rgba(139, 92, 246, 0.35) 50%,
        rgba(74, 158, 255, 0.4) 65%,
        rgba(74, 158, 255, 0.15) 85%,
        transparent 100%
    );
}

.landing-footer-v5-border::after {
    content: '';
    display: block;
    height: 60px;
    margin-top: -30px;
    background: radial-gradient(ellipse at center, rgba(74, 158, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.landing-footer-v5-wrap {
    position: relative;
    z-index: 25;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 2rem;
}

@media (min-width: 1024px) {
    .landing-footer-v5-wrap {
        padding: 4.5rem 1.5rem 2.5rem;
    }
}

.landing-footer-v5-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 639px) {
    .landing-footer-v5-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0.75rem;
    }

    .landing-footer-v5-wrap {
        padding: 2.5rem 1.25rem 1.5rem !important;
    }
}

@media (min-width: 640px) {
    .landing-footer-v5-grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .landing-footer-v5-grid {
        grid-template-columns: 2.5fr 1fr 0.8fr 2.1fr;
        gap: 3rem;
    }
}

.landing-footer-v5-brand {
    max-width: 320px;
}

@media (max-width: 639px) {
    .landing-footer-v5-brand {
        grid-column: 1 / -1;
        grid-row: 1;
        max-width: none;
        text-align: center;
    }

    .landing-footer-v5-brand .landing-footer-v5-logo,
    .landing-footer-v5-brand .landing-footer-v5-desc,
    .landing-footer-v5-brand .landing-footer-v5-check-us {
        display: none;
    }

    .landing-footer-v5-social {
        width: 34px !important;
        height: 34px !important;
    }

    .landing-footer-v5-social svg {
        width: 15px !important;
        height: 15px !important;
    }

    .landing-footer-v5-socials {
        gap: 0.5rem !important;
        justify-content: center;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .landing-footer-v5-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

.landing-footer-v5-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.landing-footer-v5-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.landing-footer-v5-logo-text {
    font-family: var(--font-memdex);
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    letter-spacing: 0.04em;
}

.landing-footer-v5-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.landing-footer-v5-desc-sub {
    max-width: 230px;
    margin-bottom: 1.5rem;
}

.landing-footer-v5-check-us {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.75rem;
}

.landing-footer-v5-socials {
    display: flex;
    gap: 0.65rem;
}

.landing-footer-v5-social {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(74, 158, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-footer-v5-social:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(74, 158, 255, 0.4);
    color: #fff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 24px rgba(74, 158, 255, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
}

.landing-footer-v5-social svg {
    width: 18px;
    height: 18px;
}

.landing-footer-v5-col h4 {
    position: relative;
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
}

.landing-footer-v5-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #4a9eff, rgba(139, 92, 246, 0.6));
    border-radius: 1px;
}

@media (min-width: 1024px) {
    .landing-footer-v5-grid > :nth-child(3),
    .landing-footer-v5-grid > :nth-child(4) {
        text-align: right;
    }

    .landing-footer-v5-grid > :nth-child(3) h4::after,
    .landing-footer-v5-grid > :nth-child(4) h4::after {
        left: auto;
        right: 0;
    }
}

@media (max-width: 639px) {
    .landing-footer-v5-col h4 {
        font-size: 0.65rem !important;
        margin-bottom: 0.6rem !important;
    }

    .landing-footer-v5-col .landing-footer-v5-links {
        gap: 0.4rem !important;
    }

    .landing-footer-v5-col .landing-footer-v5-links a {
        font-size: 0.78rem !important;
    }

    .landing-footer-v5-grid > :nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }

    .landing-footer-v5-grid > :nth-child(3) {
        display: none;
    }

    .landing-footer-v5-grid > :nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }

    .landing-footer-v5-grid > :nth-child(4) h4::after {
        left: auto;
        right: 0;
    }

    .landing-footer-v5-subscribe {
        max-width: 150px !important;
        margin-left: auto !important;
        margin-bottom: 0.75rem !important;
    }

    .landing-footer-v5-subscribe input {
        padding: 0.4rem 0.55rem !important;
        font-size: 0.7rem !important;
    }

    .landing-footer-v5-subscribe button {
        padding: 0.4rem 0.65rem !important;
        font-size: 0.8rem !important;
    }

    .landing-footer-v5-bottom {
        padding-top: 0.75rem !important;
    }

    .landing-footer-v5-bottom .landing-footer-copyright {
        font-size: 0.65rem !important;
    }

    .landing-footer-v5-tagline {
        font-size: 0.55rem !important;
    }
}

.landing-footer-v5-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-footer-v5-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.landing-footer-v5-links a:hover {
    color: #4a9eff;
}

@media (hover: hover) and (min-width: 1024px) {
    .landing-footer-v5-grid > :nth-child(2) .landing-footer-v5-links a:hover {
        padding-left: 6px;
    }

    .landing-footer-v5-grid > :nth-child(3) .landing-footer-v5-links a:hover,
    .landing-footer-v5-grid > :nth-child(4) .landing-footer-v5-links a:hover {
        padding-right: 6px;
    }
}

.landing-footer-v5-subscribe {
    display: flex;
    gap: 0;
    max-width: 200px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(74, 158, 255, 0.12);
}

@media (min-width: 1024px) {
    .landing-footer-v5-subscribe {
        margin-left: auto;
    }
}

@media (max-width: 639px) {
    .landing-footer-v5-subscribe {
        margin-left: auto;
    }
}

.landing-footer-v5-subscribe input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    outline: none;
}

.landing-footer-v5-subscribe input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.landing-footer-v5-subscribe input:focus {
    background: rgba(255, 255, 255, 0.05);
}

.landing-footer-v5-subscribe button {
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: none;
    border-left: 1px solid rgba(74, 158, 255, 0.12);
    color: #4a9eff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
}

.landing-footer-v5-subscribe button:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: #fff;
}

.landing-footer-v5-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.25rem;
}

.landing-footer-v5-bottom .landing-footer-copyright {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.landing-footer-v5-tagline {
    font-family: var(--font-memdex);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 639px) {
    .landing-footer-v5-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.landing-footer-disclosure-card {
    position: relative;
    margin-top: 1.5rem;
    padding: 2px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(90, 200, 232, 0.3), rgba(74, 158, 255, 0.18) 40%, rgba(90, 200, 232, 0.12) 70%, rgba(74, 158, 255, 0.28));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 60px rgba(90, 200, 232, 0.06);
}

.landing-footer-disclosure-inner {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #020a16 0%, #040e1e 50%, #061224 100%);
    overflow: hidden;
}

.landing-footer-disclosure-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 200, 232, 0.35), rgba(74, 158, 255, 0.25), transparent);
}

.landing-footer-disclosure-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(90, 200, 232, 0.06), transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(74, 158, 255, 0.04), transparent 50%);
    pointer-events: none;
}

.landing-footer-bottom .landing-footer-bottom-fade {
    display: none;
}

/* ============================================================
   LIGHT THEME (W1)
   Additive overrides under html.theme-light (js/theme-boot.js);
   dark is untouched. The --landing-* tokens flip in
   theme-light.css; these rules cover the hardcoded whites,
   navy gradients and the dark grid artwork (which swaps to the
   light grid per the artwork-family rule).
   ============================================================ */

/* Navy blend bands over the footer top → soft white fades. */
html.theme-light .landing-footer-bottom-top-blend {
    background: linear-gradient(180deg, #f1f5f9, rgba(255, 255, 255, 0.6), transparent);
}

html.theme-light .landing-footer-grid-image-top-overlay {
    background: linear-gradient(180deg, #f1f5f9, rgba(241, 245, 249, 0.5), transparent);
}

/* Dark grid artwork → light grid counterpart (artwork-family rule). */
html.theme-light .landing-footer-grid-image-wrap {
    background: url('../../assets/background-light.webp') center / cover no-repeat;
    opacity: 0.55;
}

html.theme-light .landing-footer-grid-image-wrap img {
    visibility: hidden;
}

html.theme-light .landing-footer-horizon-glow {
    background: rgba(3, 105, 161, 0.10);
}

/* Brand, copy and link inks: hardcoded whites → slate scale. */
html.theme-light .landing-footer-v5-logo-text {
    color: #0f172a;
}

html.theme-light .landing-footer-v5-desc {
    color: #475569;
}

html.theme-light .landing-footer-v5-check-us {
    color: #64748b;
}

html.theme-light .landing-footer-v5-col h4 {
    color: #0f172a;
}

html.theme-light .landing-footer-v5-links a {
    color: #475569;
}

html.theme-light .landing-footer-v5-links a:hover {
    color: #0369a1;
}

html.theme-light .landing-footer-v5-social {
    background: #ffffff;
    border-color: rgba(3, 105, 161, 0.20);
    color: #334155;
}

html.theme-light .landing-footer-v5-social:hover {
    background: #f1f5f9;
    border-color: rgba(3, 105, 161, 0.45);
    color: #0369a1;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
}

html.theme-light .landing-footer-v5-subscribe {
    border-color: rgba(15, 23, 42, 0.14);
    background: #ffffff;
}

html.theme-light .landing-footer-v5-subscribe input {
    background: #ffffff;
    color: #0f172a;
}

html.theme-light .landing-footer-v5-subscribe input::placeholder {
    color: #94a3b8;
}

html.theme-light .landing-footer-v5-subscribe button {
    background: rgba(3, 105, 161, 0.08);
    border-left-color: rgba(15, 23, 42, 0.14);
    color: #0369a1;
}

html.theme-light .landing-footer-v5-subscribe button:hover {
    background: rgba(3, 105, 161, 0.16);
    color: #075985;
}

/* Subscribe consent label hardcodes faint white inline. */
html.theme-light .landing-footer-v5-subscribe-wrap label[style],
html.theme-light .landing-footer-v5-col label[style] {
    color: #64748b !important;
}

html.theme-light .landing-footer-v5-bottom .landing-footer-copyright,
html.theme-light .landing-footer-v5-tagline {
    color: #475569;
}

/* Legal disclosure card: near-black inner sheet → white sheet; the
   cyan gradient frame stays. Inline-styled copy pinned to slate. */
html.theme-light .landing-footer-disclosure-card {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

html.theme-light .landing-footer-disclosure-inner {
    background: #ffffff;
}

html.theme-light .landing-footer-disclosure-inner::after {
    background: none;
}

html.theme-light .landing-footer-disclosure-inner p[style] {
    color: #475569 !important;
}
