* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #1C2A3A;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}
.report-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
}

/* Zone 1: The Brand (Left) */
.brand-zone {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-container img {
    width: 150px;
    height: auto;
    display: block;
}

/* Zone 2: The Product (Center/Right) */
.product-zone {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

.book-image-container {
    flex-shrink: 0;
}

.book-mockup {
    height: 135px; /* Between 120-150px as specified */
    width: auto;
    display: block;
}

.book-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.book-headline {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: #1C2A3A;
    margin: 0;
    line-height: 1.3;
}

.book-subtext {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #5a6470;
    margin: 0;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007BFF;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

.text-container {
    text-align: left;
}
#ticker-tape-wrapper {
    margin-bottom: 2rem;
    flex-shrink: 0;
}
#bottom-widgets-container {
    flex-grow: 1;
    display: flex;
    gap: 2rem;
    min-height: 400px;
}
#chart-wrapper {
    flex: 3;
}
#news-wrapper {
    flex: 1;
}
.company-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    color: #1C2A3A;
}
.report-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.75rem;
    margin: 0;
    color: #2c3e50;
    line-height: 1.3;
}
.report-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #5a6470;
}

/* --- Dark Mode and Footer Styles --- */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1C2A3A;
        color: #e0e6f0;
    }
    .report-header {
        background-color: #1C2A3A;
    }
    .company-name { color: #FFFFFF; }
    .report-title { color: #e0e6f0; }
    .report-subtitle { color: #a0aec0; }
    .book-headline { color: #FFFFFF; }
    .book-subtext { color: #e0e6f0; }
    footer { color: #a0aec0; }
    footer a { color: #e0e6f0; }
    footer .disclaimer { color: #718096; }
}
footer {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #5a6470;
    flex-shrink: 0;
    margin-top: auto;
}
footer p { margin-bottom: 0.5rem; }
footer a { color: #2c3e50; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .disclaimer {
    margin-top: 1rem; font-size: 0.75rem; color: #909090;
    max-width: 800px; margin-left: auto; margin-right: auto;
}

/* --- Responsive styles for mobile --- */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }
    .report-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .brand-zone {
        justify-content: center;
        width: 100%;
    }
    .product-zone {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    .book-content {
        text-align: center;
        align-items: center;
    }
    .cta-button {
        align-self: center;
    }
    .book-mockup {
        height: 120px;
    }
    #bottom-widgets-container {
        flex-direction: column;
        flex-grow: 0; 
        min-height: auto;
		height: 1024px; /* Increased for a better mobile view */
    }

    /* Give the wrappers larger, fixed heights on mobile */
    #chart-wrapper {
        height: 512px; /* Increased for a better mobile view */
    }
    #news-wrapper {
        height: 512px; /* Increased for a better mobile view */
    }
}