/* Variables */
:root {
    --primary: #6366f1;
    /* Indigo */
    --primary-dark: #4f46e5;
    --secondary: #0f172a;
    /* Slate 900 */
    --accent: #ec4899;
    /* Pink */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --font-stack: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

/* Typography */
h1,
h2,
h3 {
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-hero,
.btn-large,
.btn-secondary,
.btn-table,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-hero {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
}

.btn-hero:hover {
    background: #db2777;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.btn-large {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.btn-large:hover {
    background: var(--primary-dark);
}

.btn-table {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-outline {
    border: 2px solid #e2e8f0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary);
    margin: 5px auto;
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .tag {
    background: #e0e7ff;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 1.5rem auto 2rem;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#e0e7ff 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: -1;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.bg-gradient {
    background: linear-gradient(to bottom, #f8fafc, #eff6ff);
}

.bg-dark {
    background: var(--secondary);
    color: white;
}

.bg-dark h2,
.bg-dark h3 {
    color: white;
}

.bg-dark p {
    color: #94a3b8;
}

/* Table */
.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th,
td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.highlight-row {
    background: #f0fdf4;
}

.tool-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--secondary);
}

.rank {
    background: var(--secondary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.highlight-row .rank {
    background: var(--accent);
}

/* Review Cards */
.review-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    position: relative;
}

.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
}

.review-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.review-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}

.pros h4 {
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.cons h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.pros ul li,
.cons ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cta-box {
    text-align: center;
    background: #eff6ff;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

/* Footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.resource-list li {
    margin-bottom: 0.5rem;
}

.resource-list a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.resource-list a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for now */
    .menu-toggle {
        display: block;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- New Styles for Tier 3 Expansion --- */

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-thumb {
    height: 200px;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Article Layout */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-meta {
    color: var(--text-light);
    margin-top: 1rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    font-size: 1.8rem;
}

.article-content h3 {
    margin-top: 2rem;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Table of Contents */
.toc {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
}

.toc h3 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

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

/* Feature Showcase */
.feature-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-item {
    text-align: center;
}

.feature-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary);
}