/* =========================================
   VARIABLES & DESIGN SYSTEM (Trustworthy)
========================================= */
:root {
    --primary: #1A56DB; /* Trust blue */
    --primary-dark: #1E429F;
    --primary-light: #E1EFFE;
    
    --success: #0E9F6E;
    --warning: #FF5A1F;
    --danger: #F05252;
    
    --bg-main: #FFFFFF;
    --bg-light: #F9FAFB;
    
    --text-main: #111827;
    --text-muted: #6B7280;
    
    --border: #E5E7EB;
    
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Cautioneo Brand Highlight */
    --brand-cautioneo: #4A3AFF;
    --brand-bg: #F4F3FF;
}

/* =========================================
   RESET & BASICS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-600 { font-weight: 600; }

.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-40 { margin-top: 40px; }
.w-full { width: 100%; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-light { background-color: var(--bg-light); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.justify-center { display: flex; justify-content: center; align-items: center; gap: 8px; }

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--brand-cautioneo);
    color: white;
}

.btn-primary:hover {
    background: #3a2de0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 58, 255, 0.2);
}

.btn-outline {
    background: white;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: #D1D5DB;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 100px;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    background: white;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    padding: 80px 0 60px;
}

.hero-content {
    max-width: 800px;
}

.badge-trusted {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--brand-cautioneo);
    position: relative;
    white-space: nowrap;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(74, 58, 255, 0.2);
    z-index: -1;
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* =========================================
   COMPARISON TABLE
========================================= */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: white;
    border: 1px solid var(--border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.compare-table th {
    padding: 32px 16px 24px;
    background: white;
    border-bottom: 2px solid var(--border);
    position: relative;
    width: 25%;
}

.compare-table th:first-child {
    text-align: left;
    padding-left: 32px;
    background: var(--bg-light);
}

.table-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.badge-winner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFB020;
    color: #4A3AFF;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(255, 176, 32, 0.4);
    white-space: nowrap;
}

.compare-table td {
    padding: 24px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.compare-table td.criteria {
    text-align: left;
    padding-left: 32px;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-light);
}

/* Highlighted Column (Cautioneo) */
.col-highlight {
    background-color: var(--brand-bg);
    border-left: 2px solid rgba(74, 58, 255, 0.2);
    border-right: 2px solid rgba(74, 58, 255, 0.2);
}

.compare-table th.col-highlight {
    border-top: 4px solid var(--brand-cautioneo);
}

.action-row td {
    padding: 32px 16px;
    border-bottom: none;
}

.verdict-box {
    background: white;
    border: 1px solid var(--border);
    border-left: 4px solid #FFB020;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.verdict-box h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   ANALYSES CARDS
========================================= */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.analysis-card {
    background: white;
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.card-title-vs {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.pros-cons li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 12px;
}

.pros-cons i {
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 1.1rem;
}

/* =========================================
   FAQ
========================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i { transition: transform 0.3s; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 300px;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    background: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--primary); }

/* =========================================
   ANIMATIONS & RESPONSIVE
========================================= */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal="fade-up"] { transform: translateY(30px); }
[data-reveal="zoom-in"] { transform: scale(0.95); }
[data-reveal].revealed { opacity: 1; transform: translate(0) scale(1); }

@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .grid-2-cols { grid-template-columns: 1fr; }
    
    .compare-table th, .compare-table td {
        padding: 16px 8px;
        font-size: 0.85rem;
    }
    .table-brand { font-size: 1rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    
    /* Responsive Table Magic */
    .compare-table thead { display: none; }
    .compare-table tr {
        display: block;
        margin-bottom: 24px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: white;
        overflow: hidden;
    }
    
    .compare-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    
    .compare-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: var(--text-muted);
    }
    
    .compare-table td.criteria {
        display: none;
    }
    
    .col-highlight {
        border-left: none;
        border-right: none;
        background: rgba(74, 58, 255, 0.05);
    }
    
    /* For the mobile table, we need JS to restructure or simply keep the grid scrollable horizontally */
    .table-wrapper {
        overflow-x: auto;
        display: block;
        padding-bottom: 16px;
    }
    
    .compare-table {
        min-width: 700px; /* Forces horizontal scroll on mobile instead of stacking if preferred */
    }
    
    .compare-table thead { display: table-header-group; }
    .compare-table tr { display: table-row; margin: 0; border: none; background: transparent; }
    .compare-table td { display: table-cell; text-align: center; }
    .compare-table td::before { display: none; }
    .compare-table td.criteria { display: table-cell; text-align: left; }
    .col-highlight { border-left: 2px solid rgba(74, 58, 255, 0.2); border-right: 2px solid rgba(74, 58, 255, 0.2); }
}
