/* ================================================================
   HOME INDEX V2
   New Marketing/Landing Page styling
   Scope: .home-v2-container
   ================================================================ */

/* --- Sticky Top Offset Support --- */
/* Assumes standard Bootstrap navbar and a yellow credit strip above/below it. */
:root {
    --nav-height: 72px; 
    --credit-strip-height: 48px;
    --total-sticky-offset: calc(var(--nav-height) + var(--credit-strip-height));
    
    /* V2 Specific Gradients/Variables complementing existing brand */
    --v2-card-bg-opacity: rgba(9, 12, 22, 0.85);
    --v2-neon-border: rgba(54, 209, 220, 0.3);
    --v2-neon-shadow: 0 0 15px rgba(54, 209, 220, 0.1);
    --v2-inner-shadow: inset 0 0 20px rgba(26, 43, 99, 0.5);
}

.home-v2-container {
    background-color: var(--surface-base, #12141f);
    color: #ffffff;
    min-height: 100vh;
}

/* Base top offset applied to the layout so nothing hides under fixed bars */
.home-v2-content-wrapper {
    padding-top: var(--total-sticky-offset);
}

/* Optional fixed bars class logic for the layout */
.home-v2-fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1040;
    background: var(--surface-nav-left, #141f3e);
}

.home-v2-fixed-credit-strip {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: var(--credit-strip-height);
    background-color: var(--accent-gold, #f7d046);
    color: var(--surface-dark-900, #12141f);
    font-weight: 700;
    z-index: 1035; /* Just under nav */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* --- Row System --- */
.home-v2-row {
    position: relative;
    overflow: hidden;
}

/* Helper for taller centered sections (e.g. Ready CTA, Quick Credit) */
.home-v2-section-tall {
    min-height: 40vh;
    max-height: 800px;
    display: flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    .home-v2-section-tall {
        min-height: auto;
        max-height: none;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Alternating Backgrounds */
.home-v2-row:nth-child(odd) {
    background-color: var(--surface-base, #12141f);
}

.home-v2-row:nth-child(even) {
    background-color: var(--surface-alt, #1d1b36);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Row 1: Hero-like Section --- */
.home-v2-hero-yt-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--v2-neon-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    aspect-ratio: 16/9; /* Fluid framing for embedded content */
    width: 100%;
}

.home-v2-hero-yt-wrapper iframe, 
.home-v2-hero-yt-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Row 2: Icon Transfer/Conversion Section --- */
.home-v2-icon-transfer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 2rem;
    background: var(--surface-panel, rgba(9, 12, 22, 0.72));
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    max-width: 900px;
}

.home-v2-icon-transfer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-gold-soft-text, #ffe490);
    text-align: center;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 600;
}

.home-v2-icon-transfer-item i,
.home-v2-icon-transfer-item svg {
    font-size: 3rem;
    color: #ffffff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.home-v2-icon-transfer-arrow {
    color: var(--accent-teal, #36D1DC);
    font-size: 2.5rem;
    animation: home-v2-transfer-pulse 2s infinite ease-in-out;
}

@keyframes home-v2-transfer-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(10px); }
}

/* --- Row 4: Glowing Number Network --- */
.home-v2-network-cell {
    padding: 0;
    overflow: hidden;
}

.home-v2-network-visual {
    background: url('../images/home-v2/number-network.svg') no-repeat center center;
    background-size: contain;
    background-color: transparent;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 550px; /* Increased to give breathing room */
    max-height: 800px;
    position: relative;
    border-radius: 12px;
    /* Removed heavy border and shadow to let the vector integrate cleanly */
}

/* --- Row 5: Mosaic Panel (No Predictions) --- */
.home-v2-mosaic-cell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.home-v2-mosaic-panel {
    background-color: transparent;
    border: none;
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--v2-neon-shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
}

.home-v2-mosaic-panel img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Let the image dominate visually; text treatment no longer required */
.home-v2-mosaic-panel::before,
.home-v2-mosaic-panel h3,
.home-v2-mosaic-panel p {
    display: none;
}

/* --- FAQ Typography — Bootstrap Standard --- */
.home-v2-faq-block {
    width: 100%;
    margin: 0 auto;
    background: var(--surface-alt, #1d1b36);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-v2-faq-block .accordion-item {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-v2-faq-block .accordion-item:last-child {
    border-bottom: none;
}

.home-v2-faq-block .accordion-button {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1.5rem 1.25rem;
    color: #ffffff;
    background: transparent;
    box-shadow: none;
}

.home-v2-faq-block .accordion-button:not(.collapsed) {
    color: var(--accent-teal, #36D1DC);
    background: rgba(54, 209, 220, 0.08);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.home-v2-faq-block .accordion-button:focus {
    border-color: rgba(54, 209, 220, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(54, 209, 220, 0.2);
}

.home-v2-faq-block .accordion-button::after {
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.5rem;
    filter: brightness(1.2);
}

.home-v2-faq-block .accordion-body {
    font-size: 1.15rem;
    line-height: 1.8;
    padding: 1.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Row 5: Dark Neon Text Panel --- */
.home-v2-neon-panel {
    background: var(--v2-card-bg-opacity);
    border: 1px solid var(--v2-neon-border);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: var(--v2-inner-shadow), var(--v2-neon-shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.home-v2-neon-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gradient-accent, linear-gradient(145deg, #36D1DC, #5B86E5));
}

.home-v2-neon-panel h3 {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.home-v2-neon-panel p {
    color: rgba(255, 255, 255, 0.85); /* Ensures contrast > 4.5:1 against #090c16 */
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Insight Visual (Row 5 Col 2) --- */
/* Removed unused .home-v2-insight-visual styles */

/* --- CTA Button Overrides for V2 --- */
.home-v2-btn-glow {
    position: relative;
    background: var(--gradient-primary, linear-gradient(90deg, #5B3E90 0%, #1A2B63 100%));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(26, 43, 99, 0.5);
    transition: all 0.3s ease;
}

.home-v2-btn-glow:hover,
.home-v2-btn-glow:focus {
    box-shadow: 0 6px 20px rgba(54, 209, 220, 0.6);
    transform: translateY(-2px);
    border-color: rgba(54, 209, 220, 0.5);
    outline: none;
}

/* --- Responsive Collapse Behavior --- */
@media (max-width: 991.98px) {
    .home-v2-icon-transfer-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .home-v2-icon-transfer-arrow {
        transform: rotate(90deg) !important;
        animation: home-v2-transfer-pulse-vertical 2s infinite ease-in-out;
    }
    
    @keyframes home-v2-transfer-pulse-vertical {
        0%, 100% { opacity: 0.5; transform: rotate(90deg) translateY(0); }
        50% { opacity: 1; transform: rotate(90deg) translateY(-10px); }
    }
    
    /* Ensure columns adjust gracefully - assumes Bootstrap grid */
    .home-v2-network-visual {
        margin-top: 0;
        min-height: 380px; /* Kept large enough to prevent vertical crowding */
        background-position: center center;
        /* Replaced contain with a 118% horizontal zoom to enlarge the art 
           while keeping the outer balls (5 and 8) safely within the crop budget (~15%) */
        background-size: 118% auto;
    }
    
    .home-v2-neon-panel {
        margin-top: 1rem;
        padding: 2rem 1.5rem;
    }

    .home-v2-ps-icon {
        width: 120px;
        height: 120px;
        font-size: 3.75rem;
    }

    .home-v2-ps-icon--problem {
        border-width: 6px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .home-v2-network-visual,
    .home-v2-icon-transfer-arrow {
        animation: none !important;
        transform: none !important;
    }
}

/* --- Problem/Solution Section --- */
.home-v2-ps-panel {
    background: var(--v2-card-bg-opacity);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.home-v2-ps-icon {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.home-v2-ps-icon--problem {
    border: 8px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.home-v2-ps-icon--solution {
    background: #198754;
    color: #ffffff;
}

.home-v2-ps-copy {
    flex-grow: 1;
}

.home-v2-ps-copy .landing-section-title {
    font-size: clamp(2.15rem, 3.4vw, 3rem);
    line-height: 1.08;
    margin-bottom: 1rem !important;
}

.home-v2-ps-copy h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-v2-ps-copy p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: clamp(1.1rem, 1.35vw, 1.35rem);
    line-height: 1.7;
}

.home-v2-ps-copy .home-v2-btn-glow {
    margin-top: 1.5rem;
}

/* --- Ready to Pick Numbers Section --- */
.home-v2-ready-section {
    padding: 4rem 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Visually wider, integrated feel — removing card chrome natively */
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Force override if the coder retains the .landing-card class */
.home-v2-row .landing-card.home-v2-ready-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.home-v2-ready-section h2.landing-section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.home-v2-ready-section p.landing-section-copy {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 2rem !important;
}

.home-v2-ready-section .btn {
    padding: 1rem 2.5rem !important;
    font-size: 1.25rem !important;
}

/* --- Mosaic Section --- */
.home-v2-mosaic-cell {
    background: var(--v2-card-bg-opacity);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Quick Credit Guide --- */
.home-v2-quick-credit {
    text-align: center;
    padding: 4rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin-inline: auto;
    width: 100%;
    /* Visually wider, integrated feel */
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Force override if the coder retains the .landing-card class */
.home-v2-row .landing-card.home-v2-quick-credit {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.home-v2-quick-credit-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.home-v2-quick-credit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
    width: 100%;
    margin-inline: auto; /* centered visually but text-aligned left */
}

.home-v2-quick-credit-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.home-v2-quick-credit-actions .btn {
    padding: 1rem 2.5rem;
    font-size: 1.25rem !important;
}

@media (max-width: 767.98px) {
    .home-v2-ps-panel {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .home-v2-ps-icon {
        width: 96px;
        height: 96px;
        font-size: 3rem;
    }

    .home-v2-ps-icon--problem {
        border-width: 5px;
    }

    .home-v2-ps-copy .landing-section-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .home-v2-ps-copy p {
        font-size: 1.05rem;
    }
    
    .home-v2-quick-credit-actions {
        flex-direction: column;
    }
}
