/* CSS Variables */
:root {
    --color-bg: #0f0f0f;
    --color-bg-secondary: #1a1a1a;
    --color-bg-card: #242424;
    --color-text: #e0e0e0;
    --color-text-muted: #888;
    --color-primary: #6366f1;
    --color-primary-hover: #818cf8;
    --color-linear: #e74c3c;
    --color-tactile: #d4a574;
    --color-clicky: #3498db;
    --color-border: #333;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

h1, h2, h3, h4 {
    line-height: 1.2;
}

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

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo span {
    color: var(--color-primary);
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s;
}

/* Hero */
.hero {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s;
}

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

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

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

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Switch Types Section */
.switch-types {
    padding: 80px 0;
}

.switch-types h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

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

.type-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, border-color 0.2s;
}

.type-card:hover {
    transform: translateY(-4px);
}

.type-card.linear:hover {
    border-color: var(--color-linear);
}

.type-card.tactile:hover {
    border-color: var(--color-tactile);
}

.type-card.clicky:hover {
    border-color: var(--color-clicky);
}

.type-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.type-card.linear .type-icon {
    color: var(--color-linear);
}

.type-card.tactile .type-icon {
    color: var(--color-tactile);
}

.type-card.clicky .type-icon {
    color: var(--color-clicky);
}

.type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.type-card.linear h3 {
    color: var(--color-linear);
}

.type-card.tactile h3 {
    color: var(--color-tactile);
}

.type-card.clicky h3 {
    color: var(--color-clicky);
}

.type-card p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.type-examples {
    list-style: none;
}

.type-examples li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.type-examples li::before {
    content: "→ ";
    opacity: 0.5;
}

/* Popular Switches Section */
.popular-switches {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.popular-switches h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

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

.switch-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.switch-header {
    padding: 12px 20px;
}

.switch-header.linear {
    background: linear-gradient(135deg, var(--color-linear), #c0392b);
}

.switch-header.tactile {
    background: linear-gradient(135deg, var(--color-tactile), #b8956a);
}

.switch-header.clicky {
    background: linear-gradient(135deg, var(--color-clicky), #2980b9);
}

.switch-type {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.switch-card h3 {
    padding: 20px 20px 16px;
    font-size: 1.25rem;
}

.switch-specs {
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.spec {
    text-align: center;
    padding: 12px 8px;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.spec-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
}

.switch-card > p {
    padding: 16px 20px 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

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

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
}

.comparison-table th {
    background: var(--color-bg-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

.comparison-table tr {
    border-bottom: 1px solid var(--color-border);
}

.comparison-table tr:last-child {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.linear {
    background: rgba(231, 76, 60, 0.2);
    color: var(--color-linear);
}

.badge.tactile {
    background: rgba(212, 165, 116, 0.2);
    color: var(--color-tactile);
}

.badge.clicky {
    background: rgba(52, 152, 219, 0.2);
    color: var(--color-clicky);
}

/* Guides Section */
.guides-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.guides-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

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

.guide-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.guide-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.guide-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.coming-soon {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 80px 0;
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.about-section p {
    max-width: 700px;
    margin: 0 auto 16px;
    color: var(--color-text-muted);
}

/* Affiliate Products Section */
.affiliate-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
}

.affiliate-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

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

.affiliate-card {
    display: block;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.affiliate-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.affiliate-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.affiliate-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.affiliate-cta {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 12px;
}

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

.footer-links h4 {
    margin-bottom: 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

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

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

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

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 60px 20px;
    }

    .switch-specs {
        grid-template-columns: 1fr;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
    }
}
