/* ----------------------------------------------------------
   Cinematic 3D Footer CTA + Footer — v1.0
   ---------------------------------------------------------- */

/* ── CTA Section ──────────────────────────────────── */
.cin-cta-cinematic {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background: linear-gradient(135deg, #0B1120 0%, #0F172A 30%, #1A1050 70%, #0B1120 100%);
    isolation: isolate;
}

/* Depth layers */
.cin-cta-cinematic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(59,130,246,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139,92,246,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Lens glare */
.cin-cta-glare {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(139,92,246,var(--glare-opacity,0.12)) 0%, rgba(59,130,246,0.04) 40%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    animation: cinGlareDrift 8s ease-in-out infinite alternate;
}
@keyframes cinGlareDrift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50%  { transform: translate(-5%, 8%) scale(1.05); opacity: 1; }
    100% { transform: translate(3%, -3%) scale(0.98); opacity: 0.85; }
}

/* Light streak */
.cin-cta-cinematic::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), rgba(59,130,246,0.15), transparent);
    transform: rotate(-35deg);
    filter: blur(1px);
    z-index: 1;
    animation: cinStreakShimmer 6s ease-in-out infinite;
}
@keyframes cinStreakShimmer {
    0%, 100% { opacity: 0.3; width: 200px; }
    50%      { opacity: 0.7; width: 280px; }
}

/* Content */
.cin-cta-cinematic .cin-cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.cin-cta-cinematic .cin-cta-headline {
    font-size: 2.75rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.cin-cta-cinematic .cin-cta-sub {
    font-size: 1.15rem;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.cin-cta-cinematic .cin-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Primary button — glass accent */
.cin-cta-cinematic .cin-btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.cin-cta-cinematic .cin-btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.4), 0 0 40px rgba(124,58,237,0.15);
}

/* Secondary button — ghost glass */
.cin-cta-cinematic .cin-btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #CBD5E1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: all 0.35s ease;
}
.cin-cta-cinematic .cin-btn-cta-secondary:hover {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* ── Day Mode CTA ─────────────────────────────────── */
[data-theme="day"] .cin-cta-cinematic {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 30%, #E0E7FF 70%, #EFF6FF 100%);
}
[data-theme="day"] .cin-cta-cinematic::before {
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(59,130,246,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139,92,246,0.03) 0%, transparent 60%);
}
[data-theme="day"] .cin-cta-glare {
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.06) 0%, rgba(59,130,246,0.02) 40%, transparent 70%);
}
[data-theme="day"] .cin-cta-cinematic::after {
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.12), rgba(59,130,246,0.06), transparent);
}
[data-theme="day"] .cin-cta-cinematic .cin-cta-headline {
    color: #0F172A;
    text-shadow: none;
}
[data-theme="day"] .cin-cta-cinematic .cin-cta-sub {
    color: #64748B;
}
[data-theme="day"] .cin-cta-cinematic .cin-btn-cta-primary {
    box-shadow: 0 4px 20px rgba(37,99,235,0.2);
}
[data-theme="day"] .cin-cta-cinematic .cin-btn-cta-secondary {
    color: #334155;
    border-color: rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.02);
}
[data-theme="day"] .cin-cta-cinematic .cin-btn-cta-secondary:hover {
    color: #0F172A;
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.04);
}

/* ── Footer ───────────────────────────────────────── */
.cin-footer-v2 {
    position: relative;
    background: #060A18;
    padding: 4rem 0 2rem;
    overflow: hidden;
}

/* Top glow divider */
.cin-footer-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), rgba(139,92,246,0.3), transparent);
}
.cin-footer-glow::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer grid */
.cin-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Brand column */
.cin-footer-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}
.cin-footer-brand .brand-accent {
    color: #3B82F6;
}
.cin-footer-tagline {
    color: #64748B;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 280px;
}
.cin-footer-social {
    display: flex;
    gap: 0.75rem;
}
.cin-footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #64748B;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cin-footer-social a:hover {
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.3);
    color: #3B82F6;
    transform: translateY(-2px);
}

/* Link columns */
.cin-footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
    margin-bottom: 1.25rem;
}
.cin-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cin-footer-col li {
    margin-bottom: 0.6rem;
}
.cin-footer-col a {
    color: #64748B;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cin-footer-col a:hover {
    color: #3B82F6;
}

/* Bottom bar */
.cin-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
    text-align: center;
}
.cin-footer-bottom p {
    color: #475569;
    font-size: 0.82rem;
    margin: 0;
}

/* ── Day Mode Footer ──────────────────────────────── */
[data-theme="day"] .cin-footer-v2 {
    background: #F8FAFC;
}
[data-theme="day"] .cin-footer-glow {
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.15), rgba(139,92,246,0.1), transparent);
}
[data-theme="day"] .cin-footer-glow::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.04) 0%, transparent 70%);
}
[data-theme="day"] .cin-footer-brand {
    color: #0F172A;
}
[data-theme="day"] .cin-footer-tagline {
    color: #64748B;
}
[data-theme="day"] .cin-footer-social a {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
    color: #94A3B8;
}
[data-theme="day"] .cin-footer-social a:hover {
    background: rgba(37,99,235,0.08);
    border-color: rgba(37,99,235,0.2);
    color: #2563EB;
}
[data-theme="day"] .cin-footer-col h4 {
    color: #64748B;
}
[data-theme="day"] .cin-footer-col a {
    color: #64748B;
}
[data-theme="day"] .cin-footer-col a:hover {
    color: #2563EB;
}
[data-theme="day"] .cin-footer-bottom {
    border-top-color: rgba(0,0,0,0.06);
}
[data-theme="day"] .cin-footer-bottom p {
    color: #94A3B8;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 991px) {
    .cin-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cin-cta-cinematic .cin-cta-headline {
        font-size: 2rem;
    }
}
@media (max-width: 575px) {
    .cin-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cin-cta-cinematic {
        padding: 4rem 0;
    }
    .cin-cta-cinematic .cin-cta-headline {
        font-size: 1.75rem;
    }
}
