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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #2d1b4e 100%);
    min-height: 100vh;
    color: #e2e8f0;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
    position: relative;
    z-index: 2;
}

.title {
    font-family: 'BBH Bogle', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
}

.subtitle {
    font-family: 'BBH Bogle', sans-serif;
    font-size: 1.25rem;
    color: #cbd5e0;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    max-width: calc(4 * 280px + 3 * 2rem);
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    justify-content: center;
}

.weaving-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.weaving-line {
    position: absolute;
    width: 100%;
    height: 80px;
    opacity: 0.4;
    overflow: visible;
}

.weaving-line svg {
    width: 100%;
    height: 100%;
    display: block;
}

.node {
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.node:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2), 0 0 20px rgba(139, 92, 246, 0.1);
    background: rgba(55, 65, 82, 0.8);
}

.node:hover::before {
    opacity: 1;
}

.node-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem;
    transition: transform 0.3s;
}

.node:hover .node-image {
    transform: scale(1.1);
}

.node-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.node-description {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nodes-grid {
        grid-template-columns: repeat(auto-fit, 280px);
        max-width: calc(2 * 280px + 1 * 1.5rem);
        gap: 1.5rem;
        justify-content: center;
    }

    body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .nodes-grid {
        grid-template-columns: 280px;
        max-width: 280px;
        justify-content: center;
    }
}