:root {
    --bg-dark: #09090b;
    --glass-bg: rgba(24, 24, 27, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gold: #D4AF37;
    --red-status: #ef4444;
    --purple-status: #a855f7;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden; 
    user-select: none;
}

#workspace {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    cursor: grab;
}

#workspace:active {
    cursor: grabbing;
}

#connections {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connection-line {
    fill: none;
    stroke: rgba(212, 175, 55, 0.4);
    stroke-width: 2px;
    stroke-dasharray: 6;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -1000; }
}

.node {
    position: absolute;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 10;
    cursor: grab;
}

.node:active {
    z-index: 100;
}

.port {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.port-out { right: -7px; }
.port-in { left: -7px; }

.node-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px 12px 0 0;
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.dot.gold { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot.blue { background: #3b82f6; }
.dot.red { background: var(--red-status); box-shadow: 0 0 8px var(--red-status); }
.dot.purple { background: var(--purple-status); box-shadow: 0 0 8px var(--purple-status); }

.node-content {
    padding: 24px 20px;
}

.vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title {
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 600;
}

.desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Technologie */
.tech-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tech-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.tech-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.tech-bar .fill {
    display: block;
    height: 100%;
    background: var(--text-main);
}
.tech-bar .gold-fill { background: var(--gold); }

/* Analityka (Ścisły układ pionowy) */
.stat-record {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-record:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-main);
}

.gold-text { color: var(--gold); }
.text-sm { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }

/* Kontakt */
.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s, text-shadow 0.2s;
}

.contact-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}