:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --bg-card: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #22c55e;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon { font-size: 1.75rem; }
.logo-highlight { color: var(--primary); }

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

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

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

/* Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 0.875rem; }

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 12px;
}

.search-box input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 1rem;
}

.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box button {
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}
.search-box button:hover { background: var(--primary-dark); }

/* Categories */
.categories { padding: 80px 0; }
.categories h2 { text-align: center; font-size: 2.5rem; margin-bottom: 48px; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.category-icon { font-size: 3rem; margin-bottom: 16px; }
.category-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.category-card p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; }
.category-cta { color: var(--primary); font-weight: 600; margin-top: auto; }

/* Featured Tools */
.featured-tools { padding: 80px 0; background: var(--bg-light); }
.featured-tools h2 { text-align: center; font-size: 2.5rem; margin-bottom: 48px; }

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

.tool-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s;
}

.tool-card:hover { transform: translateY(-2px); }

.tool-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tool-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary);
}

.tool-info h3 { font-size: 1.125rem; margin-bottom: 4px; }
.tool-category { color: var(--text-muted); font-size: 0.875rem; }
.tool-price { font-size: 1.5rem; font-weight: 700; color: var(--success); margin-bottom: 8px; }

.tool-features {
    list-style: none;
    margin-bottom: 16px;
}

.tool-features li {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.tool-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
}

.tool-cta {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.tool-cta:hover { background: var(--primary-dark); }

/* Comparison Table */
.comparison-table-section { padding: 80px 0; }
.comparison-table-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 48px; }

.table-wrapper { overflow-x: auto; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text);
}

.comparison-table td { color: var(--text-muted); }
.comparison-table a { color: var(--primary); text-decoration: none; font-weight: 500; }
.comparison-table a:hover { text-decoration: underline; }
.comparison-table tr:hover td { background: rgba(99, 102, 241, 0.1); }

/* About */
.about { padding: 80px 0; background: var(--bg-light); }
.about h2 { text-align: center; font-size: 2.5rem; margin-bottom: 48px; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.about-card { text-align: center; padding: 32px; }
.about-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.about-card p { color: var(--text-muted); }

/* Newsletter */
.newsletter { padding: 80px 0; text-align: center; }
.newsletter h2 { font-size: 2.5rem; margin-bottom: 16px; }
.newsletter > .container > p { color: var(--text-muted); margin-bottom: 32px; }

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 16px;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-form button:hover { opacity: 0.9; }
.newsletter-disclaimer { color: var(--text-muted); font-size: 0.875rem; }

/* Footer */
.footer { padding: 60px 0 24px; border-top: 1px solid var(--border); }

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { color: var(--text-muted); }

.footer-links h4 { margin-bottom: 16px; color: var(--text); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Category Page Styles */
.category-header { padding: 60px 0; text-align: center; }
.category-header h1 { font-size: 3rem; margin-bottom: 16px; }
.category-header p { color: var(--text-muted); font-size: 1.125rem; }

.tools-list { padding: 40px 0 80px; }

.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-bar select, .filter-bar input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 0.875rem;
}

.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--primary); }

.tools-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
}

.tools-table th, .tools-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tools-table th { background: var(--bg-card); font-weight: 600; }
.tools-table tr:hover td { background: rgba(99, 102, 241, 0.05); }

.tool-name-cell { display: flex; align-items: center; gap: 16px; }

.tool-logo {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.tool-name-info h4 { margin-bottom: 4px; }
.tool-name-info p { color: var(--text-muted); font-size: 0.875rem; }

.price-tag { font-weight: 700; color: var(--success); }
.rating { color: var(--warning); }

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

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

.breadcrumb { padding: 16px 0; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .nav-links { display: none; }
    .footer-content { grid-template-columns: 1fr; }
    .comparison-table { font-size: 0.875rem; }
    .comparison-table th, .comparison-table td { padding: 12px 16px; }
    .search-box, .newsletter-form { flex-direction: column; }
}
