/* =============================================================
   15 — Finale CTA, footer en scroll-to-top
   Premium, dark glass, mint accenten. Geen cringe.
   ============================================================= */

/* ---------- Final CTA banner ---------- */

.final-cta {
    position: relative;
    width: 100%;
    padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem);
    margin: clamp(3rem, 6vw, 5rem) 0 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(60% 80% at 8% 50%,
            rgba(var(--accent-rgb), 0.14) 0%,
            rgba(var(--accent-rgb), 0.04) 45%,
            rgba(0, 0, 0, 0) 75%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

[data-theme="light"] .final-cta {
    background:
        radial-gradient(60% 80% at 8% 50%,
            rgba(var(--accent-strong-rgb), 0.14) 0%,
            rgba(var(--accent-strong-rgb), 0.04) 45%,
            rgba(0, 0, 0, 0) 75%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.04));
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.final-cta__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.final-cta__eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-strong);
    opacity: 0.85;
}

.final-cta__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.final-cta__lead {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.final-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
    will-change: transform;
}

.final-cta__btn i {
    width: 18px;
    height: 18px;
}

.final-cta__btn--primary {
    background: var(--accent-strong);
    color: #0b0d11;
    box-shadow: 0 10px 28px -10px rgba(var(--accent-strong-rgb), 0.6);
}

.final-cta__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(var(--accent-strong-rgb), 0.75);
}

.final-cta__btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

[data-theme="light"] .final-cta__btn--ghost {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.final-cta__btn--ghost:hover {
    border-color: var(--accent-strong);
    color: var(--accent-strong);
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) 1.5rem;
    color: var(--text-secondary);
}

[data-theme="light"] .site-footer {
    background: rgba(15, 23, 42, 0.02);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.site-footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.site-footer__title {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0.7;
    margin: 0 0 0.25rem;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.site-footer__nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 160ms ease, transform 160ms ease;
    width: fit-content;
}

.site-footer__nav a:hover {
    color: var(--accent-strong);
    transform: translateX(2px);
}

/* Open source / GitHub repo card */
.gh-repos {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gh-repo {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

[data-theme="light"] .gh-repo {
    background: rgba(15, 23, 42, 0.025);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.gh-repo:hover {
    border-color: var(--accent-strong);
    background: rgba(var(--accent-strong-rgb), 0.06);
    transform: translateY(-1px);
}

.gh-repo__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.gh-repo__name {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gh-repo__stars {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .gh-repo__stars {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.gh-repo__stars i {
    width: 12px;
    height: 12px;
    color: var(--accent-strong);
}

.gh-repo__desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-repos__empty {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Social icons */
.site-footer__socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.site-footer__social {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, background 160ms ease;
}

[data-theme="light"] .site-footer__social {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.site-footer__social i {
    width: 16px;
    height: 16px;
}

.site-footer__social:hover {
    border-color: var(--accent-strong);
    color: var(--accent-strong);
    transform: translateY(-1px);
    background: rgba(var(--accent-strong-rgb), 0.06);
}

.site-footer__contact-line {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.site-footer__contact-line a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    transition: color 160ms ease, border-color 160ms ease;
}

.site-footer__contact-line a:hover {
    color: var(--accent-strong);
    border-bottom-color: var(--accent-strong);
}

/* Bottom row */
.site-footer__bottom {
    max-width: 1200px;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="light"] .site-footer__bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.site-footer__copy,
.site-footer__built {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin: 0;
}

.site-footer__built span {
    color: var(--accent-strong);
    opacity: 0.9;
}

@media (max-width: 720px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Scroll to top ---------- */

.scroll-to-top {
    position: fixed;
    right: clamp(1rem, 2.5vw, 1.75rem);
    bottom: clamp(1rem, 2.5vw, 1.75rem);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-strong);
    background: rgba(11, 13, 17, 0.55);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease, background 180ms ease, box-shadow 180ms ease;
    z-index: 90;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .scroll-to-top {
    background: rgba(248, 250, 252, 0.7);
}

.scroll-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: rgba(var(--accent-strong-rgb), 0.12);
    box-shadow: 0 6px 20px -6px rgba(var(--accent-strong-rgb), 0.5);
}

.scroll-to-top i {
    width: 18px;
    height: 18px;
}

@media (prefers-reduced-motion: reduce) {

    .final-cta__btn,
    .gh-repo,
    .site-footer__nav a,
    .site-footer__social,
    .scroll-to-top {
        transition: none;
    }
}
