:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Header */
/* Main Content */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    /* Optional: subtle gradient or just dark */
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.25rem;
    border-radius: 99px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.4rem 1.25rem;
    border-radius: 99px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.5);
}

.nav-links a.active {
    background-color: #ffffff;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Software List Sections */
.category-section {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.software-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.software-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.software-card:hover {
    background-color: #f1f5f9;
    border-color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.software-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}

.software-info h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    min-width: 120px;
}

.software-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #e2e8f0;
    color: var(--text-muted);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
}

.software-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex: 1;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
    margin: 0;
    transition: all 0.2s;
    white-space: nowrap;
}

.download-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* AI Page Specifics */
.company-section {
    margin-bottom: 3rem;
}

.company-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Utilities */
.text-sm {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mt-2 {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 1rem;
    }

    main {
        padding: 0 1rem;
        margin: 2rem auto;
    }
}