:root {
    /* Light Theme */
    --bg-dark: #faf5ff;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f3ff;
    --bg-input: #f9fafb;

    /* Accent colors - Diagnosis Theme (Purple/Teal gradient) */
    --primary: #8b5cf6;
    --primary-light: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.2);

    /* Category colors */
    --cat-career: #f59e0b;
    --cat-personality: #ec4899;
    --cat-skill: #06b6d4;
    --cat-fun: #10b981;

    /* Text */
    --text: #1e293b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    /* Borders & Effects */
    --border: #e2e8f0;
    --border-glow: rgba(139, 92, 246, 0.3);
    --success: #22c55e;
    --error: #ef4444;

    /* Radius */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px var(--primary-glow);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(236, 72, 153, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 0% 100%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
}

/* ==================== HEADER ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: var(--text);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cat-skill) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.5px;
}

.logo-text span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--cat-skill) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--cat-skill) 50%, var(--cat-career) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 60px;
    padding: 0.5rem;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow), var(--shadow);
}

.search-icon {
    padding: 0 1.25rem;
    color: var(--text-dim);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.875rem 0;
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: var(--text);
}

.search-input::placeholder {
    color: var(--text-dim);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cat-skill) 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* ==================== MAIN CONTENT ==================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==================== CATEGORY CARDS ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.4s;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.category-card:hover::before {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cat-skill) 100%);
}

.category-card-header {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.category-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.15;
    transform: translate(30%, -30%);
}

.category-card-header.career {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, transparent 80%);
}

.category-card-header.career::before {
    background: var(--cat-career);
}

.category-card-header.personality {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, transparent 80%);
}

.category-card-header.personality::before {
    background: var(--cat-personality);
}

.category-card-header.skill {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, transparent 80%);
}

.category-card-header.skill::before {
    background: var(--cat-skill);
}

.category-card-header.fun {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, transparent 80%);
}

.category-card-header.fun::before {
    background: var(--cat-fun);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.category-count {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card-body {
    padding: 1.5rem 2rem 2rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-title svg {
    width: 20px;
    height: 20px;
    color: var(--text-dim);
    transition: all 0.3s;
}

.category-card:hover .category-title svg {
    transform: translateX(6px);
    color: var(--primary-light);
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==================== TOOL GRID ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.tool-card:hover::before {
    opacity: 1;
}

/* Coming Soon state */
.tool-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.tool-card.coming-soon:hover {
    transform: none;
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: none;
}

.soon-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    position: relative;
}

.tool-icon.career {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.tool-icon.personality {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.tool-icon.skill {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.tool-icon.fun {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.tool-category {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-category.career {
    color: var(--cat-career);
}

.tool-category.personality {
    color: var(--cat-personality);
}

.tool-category.skill {
    color: var(--cat-skill);
}

.tool-category.fun {
    color: var(--cat-fun);
}

.tool-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cat-skill) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(250, 245, 255, 0.8);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--cat-skill) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-copy {
    margin-top: 2rem;
    color: var(--text-dim);
    font-size: 0.8125rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8125rem;
    }

    .hero {
        padding: 3rem 1.5rem 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .search-box {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .search-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    main {
        padding: 1.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.25rem;
    }
}