/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    /* Light Mode Variables */
    --primary-color: #334155; /* Slate 700 - Monochrome Primary */
    --primary-hover: #1e293b; /* Slate 800 */
    --secondary-color: #64748b; /* Slate 500 */
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --bg-color: #ffffff;
    --light-bg: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-radius: 12px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #e2e8f0; /* Slate 200 */
    --primary-hover: #ffffff;
    --secondary-color: #94a3b8; /* Slate 400 */
    --bg-color: #0f172a; /* Slate 900 */
    --light-bg: #1e293b; /* Slate 800 */
    --text-color: #f8fafc; /* Slate 50 - Much brighter for better contrast */
    --text-muted: #cbd5e1; /* Slate 300 - Brighter muted text */
    --border-color: #334155; /* Slate 700 */
    --card-bg: #1e293b; /* Slate 800 */
    --header-bg: rgba(15, 23, 42, 0.95);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

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

/* Header */
header, .header {
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    transition: background-color 0.3s, border-color 0.3s;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.025em;
    text-decoration: none;
}

.logo svg {
    color: var(--text-color);
    display: block; /* Fix alignment issues */
}

/* Navigation */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--text-color);
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
    display: inline-block;
}

.icon.success { color: var(--success-color); }
.icon.danger { color: var(--danger-color); }

/* Hero Section */
.hero {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Quick Comparison */
.quick-comparison {
    padding: 4rem 0;
    background: var(--light-bg);
}

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

.product-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--text-color);
}

.product-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--light-bg);
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.stars {
    font-size: 1rem;
    letter-spacing: -2px;
}

.rating-text {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-info p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vs-divider {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    font-size: 1rem;
}

.cta-button.primary {
    background: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.cta-button.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.cta-button.secondary:hover {
    background: var(--light-bg);
    transform: translateY(-1px);
}

/* Quick Comparison */
.quick-comparison {
    padding: 4rem 0;
    background: var(--light-bg);
}

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

/* Features Table */
.features-table {
    padding: 4rem 0;
    background: var(--bg-color);
}

.features-table h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--primary-color);
    color: var(--bg-color);
}

th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--bg-color);
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

tbody tr:hover {
    background: var(--light-bg);
}

td {
    padding: 1.25rem 1rem;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: var(--light-bg);
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.pricing-details {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Pros & Cons */
.pros-cons {
    padding: 4rem 0;
    background: var(--bg-color);
}

.pros-cons h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.pros-cons-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.pros-cons-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.pros-cons-card h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

.pros-cons-card ul {
    list-style: none;
    padding-left: 0;
    color: var(--text-color);
}

.pros-cons-card ul li {
    padding: 0.5rem 0;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pros-cons-card ul li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
    margin-top: 10px;
    flex-shrink: 0;
}

.pros ul li::before {
    background: var(--success-color);
}

.cons ul li::before {
    background: var(--danger-color);
}

/* Detailed Comparison */
.detailed-comparison {
    padding: 4rem 0;
    background: var(--light-bg);
}

.detailed-comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.comparison-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    line-height: 1.8;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.comparison-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.comparison-content p {
    margin-bottom: 1rem;
}

/* Verdict */
.verdict {
    padding: 4rem 0;
    background: var(--bg-color);
}

.verdict h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.verdict h2 .icon {
    width: 32px;
    height: 32px;
    color: var(--text-color);
}

.verdict-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.verdict-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.verdict-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.verdict-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.verdict-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.verdict-card ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* FAQ */
.faq {
    padding: 4rem 0;
    background: var(--light-bg);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.faq-item p {
    line-height: 1.6;
    color: var(--text-color);
}

/* Star Rating System */
.stars-container {
    display: inline-block;
    font-size: 1.25rem;
    font-family: system-ui, -apple-system, sans-serif; /* Better star rendering */
    line-height: 1;
    vertical-align: middle;
}

.stars-container::before {
    content: '★★★★★';
    letter-spacing: 3px; /* Increased spacing for better visibility */
    background: linear-gradient(90deg, var(--primary-color) calc(var(--rating) / 5 * 100%), var(--border-color) calc(var(--rating) / 5 * 100%)); /* Use variable for empty star color */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 1px 1px rgba(0,0,0,0.05); /* Subtle depth */
}

/* Footer */
.footer {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer .disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.footer .disclaimer strong {
    color: var(--text-color);
}

/* Responsive Design */

/* Large Desktops */
@media (min-width: 1201px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktops & Laptops */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .comparison-grid {
        grid-template-columns: 1fr auto 1fr; /* Re-evaluate for smaller desktops */
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav {
        justify-content: center;
        width: 100%;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .vs-divider {
        transform: rotate(90deg);
        margin: 0;
    }
    .pricing-grid, .pros-cons-grid, .verdict-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape & Tablet Small */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Base font size for mobile */
    }
    .container {
        padding: 0 15px;
    }
    .header {
        padding: 1rem 0;
    }
    .nav {
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .hero {
        padding: 3rem 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .quick-comparison, .features-table, .pricing, .pros-cons, .detailed-comparison, .verdict, .faq {
        padding: 3rem 0;
    }
    h2 {
        font-size: 2rem;
    }
    .product-card {
        padding: 1.5rem;
    }
    th, td {
        padding: 1rem 0.75rem;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .nav {
        gap: 1rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .pros-cons-grid, .verdict-grid {
        grid-template-columns: 1fr;
    }
    .footer {
        padding: 3rem 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.pricing-card,
.pros-cons-card,
.verdict-card,
.faq-item {
    animation: fadeIn 0.6s ease-out forwards;
}
