/* ------------------- */
/* --- COMPARISON THEME & BASE --- */
/* ------------------- */
:root {
    --bg-color: #f8f9fa;
    --bg-light-section: #ffffff;
    --text-color: #495057;
    --heading-color: #212529;
    --primary-accent: #007BFF; /* Brunj's Brand Blue */
    --border-color: #dee2e6;
    --success-color: #198754;
    --danger-color: #dc3545;
    --shadow-md: 0 4px 15px -3px rgba(33, 37, 41, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Helvetica Neue", Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ------------------- */
/* --- LAYOUT & TYPOGRAPHY --- */
/* ------------------- */
.container { max-width: 1000px; margin: 0 auto; padding: 100px 20px; }
h1, h2, h3 { font-weight: 700; color: var(--heading-color); line-height: 1.3; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h1 .subtitle {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-color);
    margin-top: 10px;
}
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; margin-bottom: 60px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
p { font-size: 1.1rem; max-width: 650px; }

.btn {
    display: inline-block;
    padding: 16px 38px;
    background-color: var(--primary-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -10px var(--primary-accent); }
.btn-secondary { background: none; border: 2px solid var(--border-color); color: var(--heading-color); }
.btn-secondary:hover { border-color: var(--primary-accent); color: var(--primary-accent); box-shadow: none; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ------------------- */
/* --- HERO SECTION --- */
/* ------------------- */
#hero { text-align: center; padding-top: 120px; padding-bottom: 120px; }
#hero p { margin: 25px auto 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }

/* ------------------- */
/* --- COMPARISON TABLE --- */
/* ------------------- */
#comparison { background: var(--bg-light-section); }
.table-wrapper {
    overflow-x: auto; /* For very narrow screens, as a fallback */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
.comparison-table th, .comparison-table td {
    padding: 20px;
    font-size: 1rem;
    vertical-align: middle;
}
.comparison-table thead {
    background-color: #f8f9fa;
    font-size: 1.2rem;
}
.comparison-table th { font-weight: 600; }
.comparison-table th:first-child { text-align: left; }
.comparison-table tbody tr { border-top: 1px solid var(--border-color); }
.comparison-table tbody tr:nth-child(even) { background-color: #fcfcfd; }

.feature-name { text-align: left; font-weight: 500; color: var(--heading-color); }
.brunj-col { background-color: rgba(0, 123, 255, 0.05); }

.check { font-size: 1.5rem; color: var(--success-color); }
.cross { font-size: 1.5rem; color: var(--danger-color); }
.limitation { font-size: 0.9rem; display: block; margin-top: 5px; color: #6c757d; }

/* ------------------- */
/* --- ADVANTAGES BLOCK --- */
/* ------------------- */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.advantage-card { padding: 30px; background: var(--bg-light-section); border: 1px solid var(--border-color); border-radius: 12px; }
.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-accent);
}

/* ------------------- */
/* --- MIGRATION & FINAL CTA --- */
/* ------------------- */
.migration-block, .final-cta-box {
    text-align: center;
    padding: 60px 40px;
    background-color: var(--bg-light-section);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}
.final-cta-box p { margin: 20px auto 30px; }

/* ------------------- */
/* --- RESPONSIVENESS --- */
/* ------------------- */
@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; }
    .container { padding: 80px 20px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 40px; }

    /* Responsive Table: Stacking Layout */
    .comparison-table thead { display: none; }
    .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td { display: block; width: 100%; }
    .comparison-table tr {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 10px;
    }
    .comparison-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-top: 1px solid var(--border-color);
        text-align: right;
    }
    .comparison-table td:first-child {
        background-color: #f8f9fa;
        border-radius: 6px 6px 0 0;
        padding: 15px;
        border: none;
        text-align: center;
        justify-content: center;
    }
    .comparison-table td:first-child .feature-name { font-size: 1.2rem; }

    .comparison-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 15px;
        text-align: left;
    }
    .brunj-col { background: none; }
}
