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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Spectral', serif;
    background-color: #121820;
    color: #B0A890;
    overflow: hidden;
}

/* ===== NAVIGATION ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(18, 24, 32, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #2A3548;
    display: flex;
    align-items: center;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #F0E6D2;
}

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

.nav-links a {
    text-decoration: none;
    color: #B0A890;
    font-size: 14px;
    transition: color 200ms;
}

.nav-links a:hover {
    color: #E8A87C;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    display: grid;
    grid-template-columns: 55% 45%;
    height: calc(100vh - 60px);
    margin-top: 60px;
}

/* ===== CANVAS AREA ===== */
.canvas-area {
    background-color: #121820;
    overflow: hidden;
    position: relative;
}

.plot-graph {
    width: 100%;
    height: 100%;
    display: block;
}

.plot-graph .node {
    cursor: pointer;
    transition: opacity 200ms;
}

.plot-graph .node:hover {
    opacity: 1;
}

.plot-graph .edge {
    transition: opacity 200ms, stroke-width 200ms;
}

.plot-graph .edge.active {
    opacity: 0.8;
    stroke-width: 2px;
}

/* ===== CONTENT PANEL ===== */
.content-panel {
    background-color: #1A2030;
    overflow-y: auto;
    padding: 40px;
    max-width: 480px;
}

.panel-header {
    margin-bottom: 48px;
}

.panel-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #F0E6D2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.tagline {
    font-size: 16px;
    color: #8A95A3;
    font-weight: 400;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #F0E6D2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.content-section p {
    font-size: 16px;
    color: #B0A890;
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-section p em {
    font-style: italic;
    color: #E8A87C;
}

/* ===== DIVIDER ===== */
.divider {
    border-top: 1px solid #2A3548;
    padding-top: 48px;
}

.divider::before {
    content: '';
    display: block;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #B0A890, transparent);
    margin-bottom: 32px;
}

/* ===== FEATURE ITEMS ===== */
.feature-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2A3548;
}

.feature-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #F0E6D2;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ===== INK SPLATTER DECORATION ===== */
.ink-splatter {
    width: 40px;
    height: 30px;
    margin: 24px 0;
    opacity: 0.15;
}

/* ===== SCROLLBAR STYLING ===== */
.content-panel::-webkit-scrollbar {
    width: 6px;
}

.content-panel::-webkit-scrollbar-track {
    background: transparent;
}

.content-panel::-webkit-scrollbar-thumb {
    background: #2A3548;
    border-radius: 3px;
}

.content-panel::-webkit-scrollbar-thumb:hover {
    background: #3A4558;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 50% 50%;
    }

    .content-panel {
        max-width: none;
    }

    .nav-content {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .canvas-area {
        height: 400px;
        width: 100%;
    }

    .content-panel {
        min-height: 100vh;
        max-width: none;
        padding: 32px 20px;
    }

    .panel-header h1 {
        font-size: 28px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-content {
        flex-direction: column;
        gap: 16px;
        padding: 12px 20px;
    }

    .top-nav {
        height: auto;
    }

    .main-container {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .canvas-area {
        height: 300px;
    }

    .content-panel {
        padding: 24px 16px;
    }

    .panel-header h1 {
        font-size: 24px;
    }

    .content-section h2 {
        font-size: 18px;
    }

    .content-section p {
        font-size: 14px;
    }

    .nav-title {
        font-size: 18px;
    }

    .nav-links {
        gap: 16px;
        font-size: 12px;
    }
}
