/* BridgeBanks360 Homepage V3 Styling
 * Production Colors: Imperial & Gold Theme (matches bridgebanks360.com)
 * Navy #0A1931, Gold #E8C547, Teal #4AAB89
 */

body.homepage-root {
    /* Production Imperial Navy background with teal/gold accents */
    background: radial-gradient(circle at top left, rgba(74, 171, 137, 0.15), transparent 45%),
                radial-gradient(circle at top right, rgba(232, 197, 71, 0.12), transparent 50%),
                #0A1931;
}

.homepage-root .landing-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Production: Darker imperial navy gradient */
    background: linear-gradient(160deg, rgba(10, 25, 49, 0.75), rgba(5, 17, 32, 0.50));
}

body.theme-light.homepage-root .landing-shell {
    background: linear-gradient(160deg, rgba(240, 227, 202, 0.92), rgba(224, 242, 254, 0.65));
}

.homepage-root .landing-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Production: Gold and teal accent glows */
    background: radial-gradient(circle at 15% 20%, rgba(232, 197, 71, 0.14), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(74, 171, 137, 0.12), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.homepage-root .landing-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 5vw;
    backdrop-filter: blur(18px);
    /* Production: Imperial navy header with gold border */
    background: rgba(10, 25, 49, 0.80);
    border-bottom: 1px solid rgba(232, 197, 71, 0.22);
    z-index: 10;
}

body.theme-light.homepage-root .landing-header {
    background: rgba(240, 227, 202, 0.85);
    border-bottom-color: rgba(74, 171, 137, 0.18);
}

.homepage-root .landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F0E3CA;  /* Production cream text */
}

.homepage-root .landing-brand svg {
    width: 36px;
    height: 36px;
}

.homepage-root .landing-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

body.theme-light.homepage-root .landing-nav {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

.homepage-root .landing-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: rgba(245, 240, 230, 0.78);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.theme-light.homepage-root .landing-nav a {
    color: rgba(15, 23, 42, 0.7);
}

.homepage-root .landing-nav a:hover,
.homepage-root .landing-nav a:focus-visible {
    /* Production: Gold to Teal gradient on hover */
    background: linear-gradient(135deg, rgba(232, 197, 71, 0.18), rgba(74, 171, 137, 0.12));
    color: #F0E3CA;
    transform: translateY(-1px);
}

.homepage-root .landing-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.homepage-root .theme-toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* Production: Gold border with imperial navy background */
    border: 1px solid rgba(232, 197, 71, 0.35);
    background: rgba(10, 25, 49, 0.50);
    color: #F0E3CA;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-light.homepage-root .theme-toggle-button {
    border-color: rgba(74, 171, 137, 0.30);
    background: rgba(255, 255, 255, 0.85);
    color: rgba(10, 25, 49, 0.90);
}

.homepage-root .theme-toggle-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.homepage-root .landing-main {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: 3rem 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.homepage-root .hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 3rem;
    border-radius: 28px;
    /* Production: Imperial navy hero with gold border */
    background: rgba(10, 25, 49, 0.80);
    border: 1px solid rgba(232, 197, 71, 0.25);
    box-shadow: 0 26px 48px rgba(5, 17, 32, 0.60);
}

body.theme-light.homepage-root .hero {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(74, 171, 137, 0.20);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.homepage-root .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    /* Production: Gold eyebrow badge */
    background: rgba(232, 197, 71, 0.18);
    border: 1px solid rgba(232, 197, 71, 0.28);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #B8C5D3;
}

body.theme-light.homepage-root .hero-eyebrow {
    background: rgba(74, 171, 137, 0.14);
    border-color: rgba(74, 171, 137, 0.24);
}

.homepage-root .hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-top: 1.2rem;
}

.homepage-root .hero-copy p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.homepage-root .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.homepage-root .hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.15rem;
    margin-top: 2.5rem;
}

.homepage-root .hero-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    /* Production: Darker imperial navy metrics with gold border */
    background: rgba(5, 17, 32, 0.75);
    border: 1px solid rgba(232, 197, 71, 0.18);
}

body.theme-light.homepage-root .hero-metric {
    background: rgba(236, 248, 255, 0.92);
    border-color: rgba(74, 171, 137, 0.15);
}

.homepage-root .hero-metric dt {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: #B8C5D3;
}

.homepage-root .hero-metric dd {
    font-size: 1.4rem;
    font-weight: 700;
    /* Production: Teal metric values */
    color: #4AAB89;
}

body.theme-light.homepage-root .hero-metric dd {
    color: #4AAB89;
}

.homepage-root .hero-preview {
    position: relative;
    padding: 2.25rem;
    border-radius: 24px;
    /* Production: Gold to Teal gradient preview */
    background: linear-gradient(145deg, rgba(232, 197, 71, 0.18), rgba(74, 171, 137, 0.12));
    border: 1px solid rgba(232, 197, 71, 0.32);
    box-shadow: 0 24px 40px rgba(10, 25, 49, 0.50);
    overflow: visible;
}

body.theme-light.homepage-root .hero-preview {
    background: linear-gradient(145deg, rgba(232, 197, 71, 0.14), rgba(74, 171, 137, 0.12));
    border-color: rgba(74, 171, 137, 0.30);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.homepage-root .hero-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.homepage-root .preview-card-grid {
    display: grid;
    gap: 1rem;
}

.homepage-root .preview-card {
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    /* Production: Dark imperial navy cards */
    background: rgba(5, 17, 32, 0.80);
    border: 1px solid rgba(240, 227, 202, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.homepage-root .preview-card.preview-card--locked {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    min-height: 150px;
    /* Production: Imperial navy locked card with gold border */
    background: linear-gradient(145deg, rgba(10, 25, 49, 0.95), rgba(13, 33, 55, 0.92));
    border: 1px solid rgba(232, 197, 71, 0.35);
    box-shadow: 0 18px 36px rgba(5, 17, 32, 0.50);
}

.homepage-root .preview-card.preview-card--locked strong {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homepage-root .preview-card.preview-card--locked span {
    color: rgba(240, 227, 202, 0.82);
    max-width: 240px;
}

.homepage-root .locked-preview-icon {
    font-size: 2.4rem;
    /* Production: Gold glow on locked icon */
    filter: drop-shadow(0 10px 24px rgba(232, 197, 71, 0.45));
}

body.theme-light.homepage-root .preview-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(74, 171, 137, 0.16);
}

body.theme-light.homepage-root .preview-card.preview-card--locked {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.96));
    border-color: rgba(74, 171, 137, 0.24);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

body.theme-light.homepage-root .preview-card.preview-card--locked span {
    color: rgba(30, 41, 59, 0.7);
}

.homepage-root .preview-card strong {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.homepage-root .preview-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.homepage-root .feature-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.homepage-root .section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 720px;
}

.homepage-root .section-heading h2 {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.homepage-root .section-heading p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.homepage-root .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.homepage-root .feature-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 20px;
    /* Production: Imperial navy feature cards with gold border */
    background: rgba(10, 25, 49, 0.82);
    border: 1px solid rgba(232, 197, 71, 0.24);
    box-shadow: 0 18px 36px rgba(5, 17, 32, 0.50);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.theme-light.homepage-root .feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(74, 171, 137, 0.18);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.homepage-root .feature-card .feature-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* Production: Gold badge */
    background: rgba(232, 197, 71, 0.22);
    color: #F0E3CA;
    border: 1px solid rgba(232, 197, 71, 0.4);
}

body.theme-light.homepage-root .feature-card .feature-badge {
    background: rgba(74, 171, 137, 0.18);
    border-color: rgba(74, 171, 137, 0.32);
}

.homepage-root .feature-card h3 {
    font-size: 1.15rem;
}

.homepage-root .feature-card p {
    color: var(--text-secondary);
}

.homepage-root .feature-card a {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-blue);
}

.homepage-root .feature-card a:hover {
    color: var(--accent-gold);
}

.homepage-root .upload-card {
    padding: 2.5rem 3rem;
    border-radius: 28px;
    /* Production: Imperial navy upload card */
    background: rgba(10, 25, 49, 0.85);
    border: 1px solid rgba(232, 197, 71, 0.28);
    box-shadow: 0 26px 48px rgba(5, 17, 32, 0.60);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

/* Highlighted upload card with attractive colored border */
.homepage-root .upload-card--highlighted {
    border: 2px solid transparent;
    background-image: 
        linear-gradient(rgba(10, 25, 49, 0.85), rgba(10, 25, 49, 0.85)),
        linear-gradient(135deg, 
            rgba(232, 197, 71, 0.95), 
            rgba(74, 171, 137, 0.85),
            rgba(93, 173, 226, 0.8),
            rgba(232, 197, 71, 0.95)
        );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 26px 48px rgba(5, 17, 32, 0.60),
        0 0 40px rgba(232, 197, 71, 0.4),
        0 0 80px rgba(74, 171, 137, 0.25);
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        box-shadow: 
            0 26px 48px rgba(5, 17, 32, 0.60),
            0 0 40px rgba(232, 197, 71, 0.4),
            0 0 80px rgba(74, 171, 137, 0.25);
    }
    50% {
        box-shadow: 
            0 26px 48px rgba(5, 17, 32, 0.60),
            0 0 50px rgba(232, 197, 71, 0.5),
            0 0 100px rgba(74, 171, 137, 0.35);
    }
}

body.theme-light.homepage-root .upload-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(74, 171, 137, 0.22);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

body.theme-light.homepage-root .upload-card--highlighted {
    border: 2px solid transparent;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        linear-gradient(135deg, 
            rgba(232, 197, 71, 1), 
            rgba(74, 171, 137, 0.9),
            rgba(0, 102, 204, 0.85),
            rgba(232, 197, 71, 1)
        );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 22px 46px rgba(15, 23, 42, 0.14),
        0 0 30px rgba(232, 197, 71, 0.3),
        0 0 60px rgba(74, 171, 137, 0.2);
}

.homepage-root .statement-input-group {
    display: grid;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
    /* Production: Dark imperial navy input group */
    background: rgba(5, 17, 32, 0.78);
    border-radius: 14px;
    border: 1px solid rgba(232, 197, 71, 0.16);
}

body.theme-light.homepage-root .statement-input-group {
    background: rgba(240, 249, 255, 0.92);
    border-color: rgba(74, 171, 137, 0.20);
}

.homepage-root .file-input {
    border-radius: 12px;
    border: 1px solid rgba(232, 197, 71, 0.25);
    background: rgba(5, 17, 32, 0.85);
    padding: 0.75rem 0.85rem;
    color: #F0E3CA;  /* Production cream text */
}

body.theme-light.homepage-root .file-input {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(74, 171, 137, 0.22);
}

.homepage-root .remove-btn {
    justify-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(231, 76, 60, 0.35);
    background: rgba(231, 76, 60, 0.15);
    color: #ffb3b6;
    font-weight: 600;
    cursor: pointer;
}

body.theme-light.homepage-root .remove-btn {
    border-color: rgba(231, 76, 60, 0.28);
    background: rgba(231, 76, 60, 0.12);
    color: #c0392b;
}

/* Statement Actions - Button positioning in corners */
.homepage-root .statement-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .homepage-root .statement-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .homepage-root .statement-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.homepage-root .loading,
.homepage-root .error,
.homepage-root .results {
    border-radius: 18px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 20, 33, 0.86);
    box-shadow: 0 14px 28px rgba(6, 16, 28, 0.48);
}

body.theme-light.homepage-root .loading,
body.theme-light.homepage-root .error,
body.theme-light.homepage-root .results {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 102, 204, 0.12);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.homepage-root .trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 18px;
    background: rgba(12, 30, 47, 0.72);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

body.theme-light.homepage-root .trust-strip {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 102, 204, 0.15);
}

.homepage-root .bridge-intro {
    padding: 2.5rem 3rem;
    border-radius: 28px;
    background: rgba(8, 20, 33, 0.86);
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: 0 22px 44px rgba(6, 16, 28, 0.52);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

body.theme-light.homepage-root .bridge-intro {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(0, 102, 204, 0.16);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.homepage-root .bridge-intro header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.homepage-root .bridge-intro header .intro-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.homepage-root .bridge-intro h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.homepage-root .bridge-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.homepage-root .bridge-card {
    padding: 1.4rem 1.6rem;
    border-radius: 18px;
    background: rgba(12, 30, 47, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

body.theme-light.homepage-root .bridge-card {
    background: rgba(249, 253, 255, 0.92);
    border-color: rgba(0, 102, 204, 0.14);
}

.homepage-root .landing-footer {
    margin-top: auto;
    padding: 2.5rem 5vw 3rem;
    background: rgba(8, 20, 33, 0.82);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.theme-light.homepage-root .landing-footer {
    background: rgba(249, 253, 255, 0.94);
    border-top-color: rgba(0, 102, 204, 0.12);
}

.homepage-root .landing-footer strong {
    color: var(--text-primary);
}

.homepage-root .supported-banks {
    display: grid;
    gap: 1rem;
}

.homepage-root .supported-banks ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
    color: var(--text-secondary);
}

.homepage-root .btn-primary {
    /* Production: Gold to Teal gradient button */
    background: linear-gradient(135deg, #E8C547, #4AAB89);
    border: none;
    color: #0A1931;  /* Imperial navy text on gold button */
    font-weight: 700;
    padding: 0.85rem 1.4rem;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homepage-root .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(232, 197, 71, 0.35), 0 0 30px rgba(74, 171, 137, 0.25);
}

.homepage-root .btn-secondary {
    background: transparent;
    color: #F0E3CA;  /* Production cream text */
    border: 1px solid rgba(232, 197, 71, 0.35);  /* Gold border */
    padding: 0.85rem 1.4rem;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.theme-light.homepage-root .btn-secondary {
    border-color: rgba(74, 171, 137, 0.30);  /* Teal border in light mode */
    color: rgba(10, 25, 49, 0.85);
}

.homepage-root .btn-secondary:hover {
    background: rgba(232, 197, 71, 0.10);  /* Gold tint on hover */
    border-color: rgba(232, 197, 71, 0.50);
}

.homepage-root .landing-footer .bank-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

@media (max-width: 960px) {
    .homepage-root .landing-header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .homepage-root .landing-actions {
        width: 100%;
        justify-content: center;
    }

    .homepage-root .landing-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .homepage-root .hero {
        padding: 2.2rem;
    }
}

@media (max-width: 640px) {
    .homepage-root .landing-main {
        width: 92vw;
        padding: 2.5rem 0 3.5rem;
        gap: 3rem;
    }

    .homepage-root .hero {
        padding: 2rem;
    }

    .homepage-root .upload-card {
        padding: 2rem;
    }

    .homepage-root .landing-header {
        padding: 1.25rem 1.5rem;
    }
}
