/* === VARIABLES & GLOBAL STYLES === */
:root {
    --primary-color: #1d4ed8; /* Blue 700 */
    --secondary-color: #3b82f6; /* Blue 500 */
    --accent-color: #16a34a; /* Green 600 */
    --negative-color: #dc2626; /* Red 600 */
    --background-color: #ffffff; /* White */
    --surface-color: #f3f4f6; /* Gray 100 */
    --card-color: #e5e7eb; /* Gray 200 */
    --text-color: #111827; /* Gray 900 */
    --muted-color: #6b7280; /* Gray 500 */
    --header-text-color: #ffffff;
    
    --font-heading: 'IBM Plex Sans', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-data: 'IBM Plex Mono', monospace;

    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; color: var(--primary-color); }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.data-font { font-family: var(--font-data); }
.positive { color: var(--accent-color); }
.negative { color: var(--negative-color); }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: #1e40af; /* Blue 800 */
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
}

section {
    padding: 4rem 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* === HEADER === */
.main-header {
    background-color: var(--primary-color);
    color: var(--header-text-color);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--header-text-color);
    text-decoration: none;
}
.logo:hover { color: var(--header-text-color); }
.logo-pro { color: var(--secondary-color); font-weight: 400; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--header-text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.main-nav a:hover::after {
    width: 100%;
}

.header-ticker {
    display: flex;
    gap: 1rem;
    font-family: var(--font-data);
    font-size: 0.9rem;
}
.header-ticker .positive { color: #4ade80; } /* Lighter green for visibility */
.header-ticker .negative { color: #f87171; } /* Lighter red */

.mobile-nav-toggle { display: none; }

/* === HERO SECTION === */
.hero-section {
    padding: 2rem 0 0 0;
    background: var(--surface-color);
}
.hero-content {
    text-align: center;
    padding: 2rem 0;
}
.hero-content h1 {
    color: var(--primary-color);
}
.hero-content .subtitle {
    max-width: 800px;
    margin: 1rem auto 2rem;
    color: var(--muted-color);
    font-size: 1.1rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.hero-image-container {
    max-width: 1000px;
    margin: 0 auto;
}
.hero-image-container img {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* === MARKET OVERVIEW === */
.market-overview-section {
    background-color: var(--background-color);
    padding: 3rem 0;
    border-bottom: 1px solid var(--card-color);
}
.market-overview-section .section-title {
    margin-bottom: 2rem;
}
.muted-note {
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--muted-color);
}
.market-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.market-box {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}
.market-box h3 {
    margin-bottom: 0.5rem;
}
.market-value {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.market-change {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}
.disclaimer-text {
    text-align: center;
    margin-top: 2rem;
    color: var(--muted-color);
    font-style: italic;
}

/* === INTRO SECTION === */
.intro-section {
    background: var(--background-color);
}
.intro-text p:last-child {
    margin-bottom: 0;
}

/* === ANALYSIS METHODS === */
.analysis-methods-section {
    background-color: var(--surface-color);
}
.analysis-column {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.analysis-column img {
    margin-bottom: 1.5rem;
}

/* === KI SECTION === */
.ki-section {
    background-color: var(--background-color);
}
.section-subtitle {
    max-width: 900px;
    text-align: center;
    margin: -2rem auto 3rem;
    color: var(--muted-color);
}
.feature-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.feature-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
}
.feature-box img {
    max-width: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
}
.feature-box h4 {
    color: var(--primary-color);
}

/* === INDICATORS (TABS) === */
.indicators-section {
    background: var(--surface-color);
}
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--card-color);
}
.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted-color);
    position: relative;
    transition: color 0.3s ease;
}
.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.tab-button.active {
    color: var(--primary-color);
}
.tab-button.active::after {
    width: 100%;
}
.tab-content {
    display: none;
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
}
.tab-content.active {
    display: block;
}
.tab-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* === METRICS TABLE === */
.metrics-section {
    background: var(--background-color);
}
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--card-color);
}
thead {
    background-color: var(--primary-color);
    color: var(--header-text-color);
}
thead th {
    font-weight: 600;
}
tbody tr:nth-child(even) {
    background-color: var(--surface-color);
}
tbody tr:hover {
    background-color: var(--card-color);
}

/* === CASE STUDY === */
.case-study-section {
    background-color: var(--surface-color);
}
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.step {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}
.step:nth-child(even) {
    flex-direction: row-reverse;
     border-left: none;
     border-right: 5px solid var(--accent-color);
}
.step img {
    flex-shrink: 0;
    width: 300px;
}
.step-content h4 {
    color: var(--primary-color);
}

/* === RESOURCES === */
.resources-section {
    background-color: var(--background-color);
}
.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--secondary-color);
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-bottom: 0.5rem;
}
.card-content .read-more {
    margin-top: auto;
    font-weight: 600;
}

/* === DISCLAIMER BOX === */
.disclaimer-box-section {
    padding: 2rem 0;
    background: var(--surface-color);
}
.disclaimer-box {
    border: 2px solid var(--primary-color);
    background: #eff6ff; /* Blue 50 */
    color: var(--text-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}
.disclaimer-box h3 {
    color: var(--primary-color);
}

/* === FAQ === */
.faq-section {
    background: var(--background-color);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--card-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.faq-answer p {
    padding: 0 0 1.5rem;
    color: var(--muted-color);
}

/* === CONTACT === */
.contact-section {
    background-color: var(--surface-color);
}
.contact-info ul {
    list-style: none;
}
.contact-info li {
    margin-bottom: 0.5rem;
}
.contact-map iframe {
    border-radius: 8px;
}

/* === FOOTER === */
.main-footer {
    background-color: var(--primary-color);
    color: #dbeafe; /* Blue 100 */
    padding-top: 3rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-column h4 {
    color: var(--header-text-color);
    margin-bottom: 1rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 0.5rem;
}
.footer-column a {
    color: #dbeafe;
}
.footer-column a:hover {
    color: var(--header-text-color);
    text-decoration: underline;
}
.footer-bottom {
    background-color: #1e40af; /* Blue 800 */
    color: #a5b4fc; /* Blue 300 */
    padding: 1rem 0;
    font-size: 0.85rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-disclaimer {
    font-weight: 600;
    color: var(--header-text-color);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .header-ticker { display: none; }
    
    .grid-2-col, .tab-grid {
        grid-template-columns: 1fr;
    }
    
    .step, .step:nth-child(even) {
        flex-direction: column;
        border-right: none;
        border-left: 5px solid var(--accent-color);
    }
    .step img { width: 100%; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .main-nav li {
        margin: 0.5rem 0;
    }
    
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .hamburger, .hamburger::before, .hamburger::after {
        content: '';
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }
    .hamburger::before {
        transform: translateY(-8px);
    }
    .hamburger::after {
        transform: translateY(8px);
    }
    .mobile-nav-toggle.active .hamburger {
        background: transparent;
    }
    .mobile-nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
    }
    .mobile-nav-toggle.active .hamburger::after {
        transform: translateY(-3px) rotate(-45deg);
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* === Contact Form Styles (Auto-Injected) === */
.contact-form-wrapper {
    background-color: var(--surface-color, #ffffff);
    padding: 2.5rem;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--primary-color, #333);
}

.contact-form-wrapper p {
    margin-bottom: 2rem;
    color: var(--text-color, #666);
    opacity: 0.8;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color, #333);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd; /* Fallback border */
    border-radius: var(--border-radius, 4px);
    background-color: var(#ffffff, #fff);
    color: var(--text-color, #333);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.contact-form .submit-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--primary-color, #007bff);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius, 4px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    margin-top: 1rem;
}

.contact-form .submit-button:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.contact-form .submit-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
