:root {
    --primary: #fbbf24;
    --primary-hover: #f59e0b;
    --secondary: #3b82f6;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #22c55e;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-display);
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--border);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

/* Header Redesign */
.site-header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 0.375rem;
        border-radius: 99px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav a {
        padding: 0.5rem 1.25rem;
        border-radius: 99px;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-muted);
        transition: all 0.3s ease;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }
}

.header-actions .btn {
    border-radius: 99px;
    padding: 0.5rem 1.25rem;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-tip {
    font-size: 0.875rem;
    color: var(--secondary);
    background: rgba(59, 130, 246, 0.1);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

/* Filters */
.filters-section {
    position: sticky;
    top: 73px;
    /* Header height approx */
    z-index: 90;
    background-color: var(--bg-dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.filter-bar {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

select,
input {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 6px;
    font-family: var(--font-main);
    width: 100%;
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-group {
    flex-grow: 1;
}

/* Brands */
.brands-section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.brands-grid {
    display: grid;
    gap: 1.5rem;
}

.brand-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

@media (min-width: 768px) {
    .brand-card {
        grid-template-columns: 2fr 3fr 1fr;
        align-items: center;
    }
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.brand-info h3 {
    font-family: var(--font-display);
    margin-bottom: 0.25rem;
}

.brand-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.brand-rating {
    margin-left: auto;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.star {
    color: var(--primary);
}

.brand-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 500;
}

.brand-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Comparison Table */
.comparison-section {
    padding: 3rem 0;
    background-color: #162032;
}

.comparison-section h2 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.comparison-section>.container>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.comparison-table td {
    font-size: 0.875rem;
}

.table-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--border);
}

.note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* FAQ */
.faq-section {
    padding: 3rem 0;
    background-color: #162032;
}

.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

details {
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
}

details[open] summary::after {
    content: '-';
}

details p {
    padding: 1rem;
    padding-top: 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.footer-logos a {
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-logos a:hover {
    opacity: 1;
    color: var(--text-main);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}